I wrote a relatively simple script to display CAN data in realtime from the serial port of the RCP, thought it might be useful here. The lua script the RCP has loaded is just printing CAN data like : "ID, byte, byte, byte, ...". I believe there's an example script that does this in the wiki somewhere.
In short I'm reading the serial port, adding the data received to a sorted text list, then updating the text list every 0.2 sec. This is only my second attempt at python, so be gentle.
I did discover that it's pretty easy to make the lua script crash. I believe the serial buffer is filling up and then the script crashes. This doesn't seem to be the ideal way to handle that, but I'm not sure.
https://github.com/Copper280z/CanDispla ... Display.py
Displaying CAN data in realtime
General Q&A specific to RaceCapture/Pro. For app related questions post in the RaceCapture App forum. also see the <a href="http://www.autosportlabs.net/RaceCapture">RaceCapture Information Page</a>
Moderators: JeffC, rdoherty, stieg, brentp
-
- Posts: 30
- Joined: Sun Mar 15, 2015 3:03 am
- Location: United States
Return to “RaceCapture/Pro General Q&A”
Jump to
- Autosport Labs
- ↳ General Discussion
- ↳ News and Announcements
- ↳ New Project Suggestions
- CAN Devices
- ↳ ShiftX2
- ↳ AnalogX
- RaceCapture App
- ↳ RaceCapture App Operation and General Q&A
- ↳ RaceCapture App Bug Reporting / Feature Requests
- CAN bus and OBDII integration
- ↳ CAN mapping discussion
- ↳ OBDII PIDs discussion
- RaceCapture/Pro | RaceCapture/Apex | PodiumConnect
- ↳ RaceCapture/Pro introductions
- ↳ RaceCapture/Pro General Q&A
- ↳ Sensors
- ↳ Hardware and Installation
- ↳ Lua Scripting
- ↳ Telemetry
- ↳ Bug Reporting
- ↳ Feature Requests
- RaceCapture/Track
- ↳ RaceCapture/Track Introductions
- ↳ RaceCapture/Track Operation
- ↳ RaceCapture/Track Installation
- ↳ RaceCapture/Track Bug Reporting / Feature Requests
- Megajolt/E and Megajolt Lite Jr. (MJLJ)
- ↳ Ignition Map Library
- ↳ Powered by Megajolt Gallery
- ↳ Assembly
- ↳ Installation
- ↳ Operation
- ↳ Q&A
- ↳ Future Upgrades
- ↳ Bug Reporting
- ↳ Fixes/Patches/Updates
- ↳ Hard Rev Limiter