I'm just getting started with Race Capture and want to output the data to the console to later build other scripts and when the script runs the first time it shows the correct value which is 0 for RPM and 127 for engine temperature but then it states that it can't read the values for several iterations. The dashboard seems to show them perfectly fine, any ideas as to why they show up fine initially and then I get a bunch of errors?
Only Works on first run
Only Works on first run
Straight roads are for fast cars turns are for fast drivers
Thanks Brent, you are correct the issue is that at times it's failing to obtain a reading for that PID and returning the nil value.
I modified the script to account for a nil value but why am I seeing so many OBD2: PID read fail errors? I seem to get one every 3 seconds or so and it does'n t matter what PID I'm checking either. Is this a bug?
I modified the script to account for a nil value but why am I seeing so many OBD2: PID read fail errors? I seem to get one every 3 seconds or so and it does'n t matter what PID I'm checking either. Is this a bug?
Straight roads are for fast cars turns are for fast drivers
A PID read error means RCP did not receive a response from the ECU. Worth noting, the ECU can only service one PID request at a time.
Do you have OBDII channels also enabled in the top level configuration?
If you don't have the top level OBDII configuration enabled, could you enable that for say, RPM and engine temperature and disable your script temporarily? Do you still get the PID reading errors?
Do you have OBDII channels also enabled in the top level configuration?
If you don't have the top level OBDII configuration enabled, could you enable that for say, RPM and engine temperature and disable your script temporarily? Do you still get the PID reading errors?
Brent, I did have two OBD2 channels enabled (5&12). I removed the script, rebooted rc and still saw the PID errors. I then removed the Channels and the errors went away. Does that mean that I have an issue?brentp wrote:A PID read error means RCP did not receive a response from the ECU. Worth noting, the ECU can only service one PID request at a time.
Do you have OBDII channels also enabled in the top level configuration?
If you don't have the top level OBDII configuration enabled, could you enable that for say, RPM and engine temperature and disable your script temporarily? Do you still get the PID reading errors?
Straight roads are for fast cars turns are for fast drivers