[英]How to convert raw CAN data to human readable format using python?
The sample data is given here.这里给出了样本数据。
0.005225 1 282 Rx D 8 00 00 FF F5 FF FF 14 01
I know the meaning of each byte and its unit. 0.005225 1 282 Rx D 8 00 00 FF F5 FF FF 14 01
我知道每个字节的含义和它的单位。 I want to decode this data into human readable format, such as CAN ID description, value with or without units.我想将此数据解码为人类可读的格式,例如 CAN ID 描述、带或不带单位的值。 How to do it in python?
如何在 python 中做到这一点? Any libraries?
有图书馆吗?
Have you tried python-can
python package?你试过
python-can
python package吗? It also has a Message
object where you can initiate the Message
object from a bytearray
.它还有一条
Message
object ,您可以在其中从bytearray
启动Message
object 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.