hardbyte / hardbyte/python-can

Exception: Timeout in waiting for message

Đang mở
#1,664 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
1.6k
Fork
697
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Describe the bug
When Calling Uds() Getting timeout error as Exception: Timeout in waiting for message

### To Reproduce

rawEcu = Uds(reqId=0x7D0, resId=0x7D8, interface="vector", appName="CANalyzer", channel='1',configPath = r"C:\Users\hil133\Downloads\CanConnect")

Below is Content of Config.ini in directory C:\Users\hil133\Downloads\CanConnect
[canTp]
reqId=0x7D0
resId=0x7D8
addressingType=NORMAL
N_SA=0xFF
N_TA=0xFF
N_AE=0xFF
Mtype=DIAGNOSTICS

[can]
interface=virtual
baudrate=500000

[virtual]
interfaceName=virtualInterface

[peak]
device=PCAN_USBBUS1

[vector]
appName=testApp
channel=2

### Expected behavior
Trying to read serial number of ECU APIM(0x7D0). Serial number of ECU should be returned.
APIM is connected to
![CANConnect2](https://github.com/hardbyte/python-can/assets/48352105/7c65081d-f530-4db4-92bb-61158a3303ce)

### Additional context

OS and version: windows 10
Python version: 3.10
python-can version: 3.3.4
python-can interface/s (if applicable): Vector

Traceback and logs

import uds
from uds import Uds
import time

if __name__ == "__main__":

# This creates a Uds object manually
#rawEcu = Uds(reqId=0x7E0, resId=0x7E8, interface="vector", appName="CANalyzer")

#rawEcu = Uds(resId=0x600, reqId=0x650, interface="vector", appName="CANalyzer", channel='0',configPath = r"C:\Users\hil133\Downloads\CanConnect")
rawEcu = Uds(reqId=0x7D0, resId=0x7D8, interface="vector", appName="CANalyzer", channel='1',configPath = r"C:\Users\hil133\Downloads\CanConnect")
# This sends the request for Ecu Serial Number
print (rawEcu)
#time.sleep(30)
esnRaw = rawEcu.send([0x22, 0xF1, 0x8C],responseRequired=True)
# This prints the raw payload returned from the ECU
print(esnRaw)

![image](https://github.com/hardbyte/python-can/assets/48352105/4b2a133e-721d-40b5-86d8-fbf653ebd04a)
![CANConnect](https://github.com/hardbyte/python-can/assets/48352105/9adf42f9-f93f-4b07-921d-8bdc42784190)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.