Skip to content

UDS connection via CAN ,self.tp.recv time out waiting for message #57

@saheelsikander

Description

@saheelsikander

Hello Richard,

i was trying python-ids , but unfortunately with the documents and example provided i am not able to establish connection, code snippet and error log is shown below,
appreciate your help in solving this issue .

Code:
import can
from uds import Uds

test1 = Uds(transportProtocol="CAN",reqId=0x600, resId=0x650, bustype="vector",device="CAN",appName="pythonUds",channel="0")
#print(dir(test1))
esnRaw = test1.send([0x22, 0xF1, 0x8C])
print(esnRaw)

This sends the request for Ecu Serial N

Error:
Traceback (most recent call last):
File "D:\Python_Learning\Diagnostics.py", line 7, in
esnRaw = test1.send([0x22, 0xF1, 0x8C])
File "C:\Users\ssikander\AppData\Local\Programs\Python\Python38-32\lib\site-packages\uds\uds_communications\Uds\Uds.py", line 140, in send
response = self.tp.recv(self.__P2_CAN_Client)
File "C:\Users\ssikander\AppData\Local\Programs\Python\Python38-32\lib\site-packages\uds\uds_communications\TransportProtocols\Can\CanTp.py", line 340, in recv
raise Exception("Timeout in waiting for message")
Exception: Timeout in waiting for message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions