Skip to content

Debug info for mode 6 #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
EragonPower opened this issue Mar 16, 2025 · 0 comments
Open

Debug info for mode 6 #288

EragonPower opened this issue Mar 16, 2025 · 0 comments

Comments

@EragonPower
Copy link

EragonPower commented Mar 16, 2025

[obd.obd] Sending command: b'0900': Supported PIDs [01-20]
[obd.elm327] write: b'09001\r'
[obd.elm327] read: b'7E8 06 49 00 55 42 00 00 \r\r>'
[obd.OBDCommand] Message was shorter than expected (6<7). Padded message: bytearray(b'I\x00UB\x00\x00\x00')
0101010101000010000000000000000000000000

[obd.obd] 'b'0901': VIN Message Count' is not supported
None

[obd.obd] Sending command: b'0902': Vehicle Identification Number
[obd.elm327] write: b'0902\r'
[obd.elm327] read: b'7E8 10 14 49 02 01 55 55 31 \r7E8 21 42 35 32 32 30 58 36 \r7E8 22 35 39 36 36 37 35 36 \r\r>'
[obd.OBDCommand] Message was shorter than expected (20<22). Padded message: bytearray(b'I\x02\x01UU1B5220X65966756\x00\x00')
bytearray(b'UU1B5220X65966756')

[obd.obd] 'b'0903': Calibration ID message count for PID 04' is not supported
None

[obd.obd] Sending command: b'0904': Calibration ID
[obd.elm327] write: b'0904\r'
[obd.elm327] read: b'7E8 10 13 49 04 01 32 33 37 \r7E8 21 36 31 36 34 32 35 53 \r7E8 22 00 00 00 00 00 00 AA \r\r>'
[obd.OBDCommand] Message was longer than expected (19>18). Trimmed message: bytearray(b'I\x04\x01237616425S\x00\x00\x00\x00\x00')
bytearray(b'37616425S')

[obd.obd] 'b'0905': CVN Message Count for PID 06' is not supported
None

[obd.obd] Sending command: b'0906': Calibration Verification Numbers
[obd.elm327] write: b'0906\r'
[obd.elm327] read: b'7E8 07 49 06 01 31 06 43 D5 \r\r>'
[obd.OBDCommand] Message was shorter than expected (7<10). Padded message: bytearray(b'I\x06\x011\x06C\xd5\x00\x00\x00')
0643d5

From the 7 onward, it gives this error:

Traceback (most recent call last):
File "C:\RustProjects\OBDConnector\log.py", line 75, in
print(connection.query(obd.commands[9][7]))
~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant