hardbyte / hardbyte/python-can

SeeedBus does not transmit bus messages

オープン
#1,691 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
1.6k
フォーク
697
PR マージ指標
30日以内にマージされた PR はありません

説明

### Describe the bug
SeeedBus can be used with the logger and viewer scripts but data transmitted via it does not seem to actually reach the canbus.

### To Reproduce
I have both a Kvaser Leaf and a SeeedStudio adapter connected to the same bus which is connected to an motorcycle ECU.
If use can.logger to sniff the bus with seedstudio and transmit the commands below, the seedstudio adapters records the messages and the response. If I reverse things and log with kvaser and transmit with seeedstudio, nothing shows up in the logger at all.
```
import can
# with can.Bus(interface='kvaser', channel=0) as bus:
with can.Bus(interface='seeedstudio', channel='COM12') as bus:
msg = can.Message(arbitration_id=0x18da10f1, data=[0x02, 0x3e, 0x80, 0x55, 0x55, 0x55, 0x55, 0x55], is_extended_id=True, is_rx=False)
bus.send(msg)
recv_msg = bus.recv(timeout=1.0)

msg = can.Message(arbitration_id=0x18da10f1, data=[0x02, 0x3e, 0x00, 0x55, 0x55, 0x55, 0x55, 0x55], is_extended_id=True, is_rx=False)
bus.send(msg)
recv_msg = bus.recv(timeout=1.0)
```

### Expected behavior
```
> python -m can.logger -i seeedstudio -c COM12
Connected to SeeedBus: Serial interface: COM12
Can Logger (Started on 2023-11-13 20:58:35.139360)
Timestamp: 1699927130.034850 ID: 18da10f1 X Rx DL: 8 02 3e 80 55 55 55 55 55
Timestamp: 1699927131.046703 ID: 18da10f1 X Rx DL: 8 02 3e 00 55 55 55 55 55
Timestamp: 1699927131.051705 ID: 18daf110 X Rx DL: 8 02 7e 00 aa aa aa aa aa
```

### Additional context

OS and version: Win10
Python version: 3.8 32bit
python-can version: [5c1c46f](https://github.com/hardbyte/python-can/commit/5c1c46fdbd5935c5a7a8b34aa6a8df3af201616b)
python-can interface/s (if applicable): seeedstudio

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。