pylessard / python-udsoncan

Python implementation of UDS (ISO-14229) standard.
MIT License
575 stars 199 forks source link

send uds req with suppress postive response bit failed #187

Closed xueshawu closed 8 months ago

xueshawu commented 9 months ago

CAN Device : Vector 1630. using the examples.rst code, send req: 10 03, it's ok, send req: 10 83, the CANOE Trace view show failed. the python logger: DEBUG: Sendding 2 bytes :[b' 1083],logger and CANoe Bus error as below picture issue_1 issue_2

pylessard commented 9 months ago

Start by validating that you can simply sends raw CAN messages. Maybe you have the wrong bitrate or need to configure your bus object as CAN FD. The issues is certainly below the UDS or the ISOTP layer.

xueshawu commented 9 months ago

bitrate is configed ok, because send 10 03 ok(client.change_seesion(3)), like blow code with Clinet(conn) as client: client.change_session(3)

but when enable the suppress postive response bit, send 10 83 failed. like blow code

with Clinet(conn) as client:
  with client.suppress_postive_response:
       client.change_session(3)
pylessard commented 9 months ago

There's no link between suppress positive response and can level error. I can't help unless you do some serious diagnostic sorry