Closed kaizh102 closed 2 years ago
Hi, @leo102, please check if this helps: https://github.com/mamert/python-uds/tree/P2_CAN_Client_fix Every matched frame received resets the timer - so we can still legitimately time out between consecutive frames.
Hi, @leo102, please check if this helps: https://github.com/mamert/python-uds/tree/P2_CAN_Client_fix Every matched frame received resets the timer - so we can still legitimately time out between consecutive frames.
It worked. Can you help commit this change to the main branch?
Can you help commit this change to the main branch?
Sure, PR created
Can I interest you in callbacks for the 0x78 PENDING response, as well?
per ISO 15765-3, the P2_CAN_Client is the time between below two events:
client (tester) sent out the diagnostic request
client receives the first frame (or single frame) response from the sever (ECU/Vehicle).
Current implementation seems to be the between tester sent out diagnostic request and ECU sent out all the responses (first frame and all the consecutive frames).
This is causing the module raise timeout error when ECU is responding with multiple frames for one diagnostic request.