View Single Post
Old 02-26-2022, 04:36 PM   #161
Stephane3296
Junior Member
 
Join Date: Feb 2022
Drives: 2014 Scion FRS
Location: Ontario, Canada
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by geraldjust View Post
you will be better off getting a good form somewhere like stackoverflow. since your using generic obd2. it means they can probably help you and it would apply for this car too. but it may be that somehow your program is declaring you PID as a value greater then a byte?
Awesome thanks, we tested the code with the general PIDs found on the Wikipedia page for engine rpm and other Can-Bus IDs, all of which are lower than 256 when decoded from hex (0C, 0D). The code worked, as in no errors occurred, but it wasn't providing any data as it wasn't the proper Can ID. However, the BRZ uses different PIDs, those of which are higher than 256 which is when we encountered the problem.

I have contacted the people developing the python-can module with the same question, however, I will still post on the StackOverflow forums page to see what they say.

Thank you again for the input!
Stephane3296 is offline   Reply With Quote