hardbyte / hardbyte/python-can

iscan interface doesn't seem to work with receive_own_message = True

Đang mở
#1,653 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 using the "iscan" bus interface, messages that are sent are not received by the bus. Where/How can I go about implementing this?

### To Reproduce

Create a bus instance with bustype = 'iscan' as your interface, and set the receive_own_messages flag = True

Create a printer object, and attach it to a notifier object.

Sending a message to this bus will not print anything out to stdout

### Expected behavior

Bus instance should receive its own messages when receive_own_messages flag = True. In this case, the message should be printed when sent.

### Additional context

OS and version: Windows 10
Python version: 3.10
python-can version: 4.2.2
python-can interface/s (if applicable): iscan

Traceback and logs

```python
import can
import time

def main():
with can.Bus(bustype = 'iscan', channel=0, bitrate = 500000, receive_own_messages = True) as bus:
printer = can.Printer()
can.Notifier(bus, [printer])

bus.send(can.Message(arbitration_id=1,is_extended_id=False))
time.sleep(1)
```

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.