![](/img/trans.png)
[英]How to receive a CAN frame sent in python which uses a CANard library?
[英]How to send and receive CAN message using ISOTP protocol in Python-can which uses CANard library?
我想發送一個超過8個字節的CAN消息。 我在SocketCAN isotpsend
和isotprecv
使用了CAN-ISOTP協議來發送和接收正常工作的CAN消息。 同樣如何在使用CANard庫的python-can中發送和接收CAN消息? 另外,在接收方收到的消息將被分段還是在發送方以這種方式接收,因為在SocketCAN中,當我使用isotprecv
,消息在發送方以這種方式被發送,並且不零散。
看一下can-isotp , isotp.TransportLayer
對象在Python中實現ISO-TP,並且與硬件isotp.TransportLayer
。
您必須提供2個回調以與Canard交互(發送和接收)。 其余的由TranportLayer對象處理。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.