Telemetry R2M - Raceroom to Motec logger/exporter

Discussion in 'Community Workshop' started by KrisP, Mar 30, 2022.

  1. KrisP

    KrisP Member

    Joined:
    Jan 8, 2022
    Ratings:
    +14 / 0 / -0
    Hi Raceroomers!

    Here's a little utility I've been working on lately that some of you might find useful. It records Raceroom telemetry and saves it in a Motec i2 readable format. It's only meant for driver development and for adjusting setups, so not all the data exposed in Raceroom's shared memory section are logged.

    To keep file sizes down it doesn't use the same sample rate for all channels, e.g. the brake bias setting is recorded at only 4 Hz while the suspension related channels are sampled at 200 Hz.

    It's - rather unimaginatively - called R2M and is very light on CPU (~0.01% in my tests) and memory usage, so if you want to log a 24 hour race you should be able to do so, provided you have enough disk space.

    You can read more and download it here: https://github.com/KrisP69/R2M/releases/latest

    Bug reports and suggestions are welcome.

    Changes in version 1.03:
    • Fixed a game state tracking issue which caused R2M to sometimes miss session phase changes
    • Changed brake pressure channels to log all four pressures instead of only front and rear
    • Added clutch pedal and turbo pressure channels
     
    • Like Like x 8
    • Winner Winner x 1
    • Wonderful Wonderful x 1
    Last edited: Apr 14, 2022
  2. DonaldD

    DonaldD Member

    Joined:
    Jan 6, 2022
    Ratings:
    +8 / 0 / -0
    Oh man this is exactly what I have been waiting for.
    THANK YOU :D
    One of the reasons Im extremely excited about this is because I know from iRacing and rF2 how extremely satisfying it is to use the real (and free!) MoteC telemetry tool to evaluate ones setups.
    I guess its also positive news that you have reduced the params exported to what is relevant for car setups.

    EDIT: If you ever should think about creating a similiar "exporter" to the other sim I use AMS2 - then PM me.
    Because I would gladly pay some "fee" to you to be able to use such an exporter to that other sim.:p
     
    Last edited: Mar 30, 2022
  3. Thomas Jansen

    Thomas Jansen Sector3 Developer Beta tester

    Joined:
    Apr 5, 2018
    Ratings:
    +554 / 0 / -0
    Really nice project!

    So far the only things I would suggest adding is ABS activation (I assume we have that available in shared memory), and all brake temps. I guess you probably only included the left side brakes for front/rear to save resources?
     
  4. Mike Kara

    Mike Kara New Member

    Joined:
    Jun 26, 2021
    Ratings:
    +4 / 0 / -0
    not working for me not getting any data at all
    I did full laps, half laps, few laps and I got nothing in the output folder
    it telling me that logger is activated so should work
    I'm on windows 8.1
     
    Last edited: Apr 6, 2022
  5. KrisP

    KrisP Member

    Joined:
    Jan 8, 2022
    Ratings:
    +14 / 0 / -0
    Thanks for the feedback, guys.

    @DonaldD AMS2 is another under-appreciated sim I enjoy playing, so that's probably something I'll look into eventually.

    @Thomas Jansen ABS and the last two brake temps has been added in v1.02.

    @Mike Kara Sorry to hear that. I only have access to Windows 10/x64 machines (and the release build is compiled for x64,) but I can't think of any reason why it shouldn't work on Windows 8.1, unless you're using a 32-bit machine/OS?
     
    • Like Like x 2
  6. DonaldD

    DonaldD Member

    Joined:
    Jan 6, 2022
    Ratings:
    +8 / 0 / -0
    Sounds promising.
    Then you will be my hero :D
    Then maybe I can again get some use of my MoteC workspaces from iRacing and rF2.;)
     
  7. Mike Kara

    Mike Kara New Member

    Joined:
    Jun 26, 2021
    Ratings:
    +4 / 0 / -0
    8.1 Pro x64, so nothing weird
    I have no clue why it's not working but it is what it is
     
  8. KrisP

    KrisP Member

    Joined:
    Jan 8, 2022
    Ratings:
    +14 / 0 / -0
    • Like Like x 1
  9. Mike Kara

    Mike Kara New Member

    Joined:
    Jun 26, 2021
    Ratings:
    +4 / 0 / -0
    installed it but it changed nothing :(
     
  10. KrisP

    KrisP Member

    Joined:
    Jan 8, 2022
    Ratings:
    +14 / 0 / -0
    I have just resurrected a very old AMD Phenom II Windows 8.1 system I had forgot about (I tried with a virtual machine first, but Raceroom wont run there) and R2M worked perfectly there, so I've really no idea why it doesn't work for you, sadly.
     
    • Like Like x 1
  11. Muzarati

    Muzarati Member

    Joined:
    Jan 27, 2018
    Ratings:
    +7 / 0 / -0
    Doesn't work for me either? It creates a log file but what data is there is all scrambled and doesn't make sense?

    I used to use this with AMS and it worked really well...was excited to see this :(
     

    Attached Files:

  12. KrisP

    KrisP Member

    Joined:
    Jan 8, 2022
    Ratings:
    +14 / 0 / -0
    I'm sorry to hear that. I'd love to figure out what the root cause is, but as it's virtually impossible for me to fix problems that I can't reproduce locally I'd appreciate if you (and anyone else experiencing problems) would run msinfo32.exe (aka. "System Information",) click File->Save and then PM me the resulting .nfo file together with a description of the issue - then hopefully some common factors will pop up. I'd also like to examine the corrupted log files you recorded, so please PM me them if you can.
     
    • Like Like x 2
  13. Muzarati

    Muzarati Member

    Joined:
    Jan 27, 2018
    Ratings:
    +7 / 0 / -0
    Will do after the Easter break, thanks :)
     
  14. Alex Hodgkinson

    Alex Hodgkinson Sector3 Developer

    Joined:
    Jun 5, 2017
    Ratings:
    +1,894 / 0 / -0

    Excellent work.

    Is there a reason that only left-side brake temperatures are being logged currently? I'm positive we send right hand side values to shared mem.

    upload_2022-4-29_13-56-20.png