简体   繁体   English

如何使用 python 将原始 CAN 数据转换为人类可读格式?

[英]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.

相关问题 如何将 json 转换为 python 中的人类可读格式? - how to convert json into human readable format in python? 如何在python中将二进制和ascii的组合转换为人类可读的格式 - How to convert combination of binary and ascii to human readable format in python 如何在Python中将RFC 822时间戳转换为人类可读格式? - How can I convert an RFC 822 timestamp into a human readable format in Python? 如何使用 Python 将 .dat 文件的内容转换为人类可读的形式? - How to convert the content of a .dat file to a human readable form using Python? 在 Python 中将原始 Netflow 数据解码为人类可读的文本 - Decode raw Netflow Data to human readable text in Python 使用Python的人类可读二进制数据 - Human-readable binary data using Python 如何将长格式日期转换为人类可读格式 - How to convert a long format Date to Human Readable format 无法将Epoch值转换为人类可读日期格式python - Unable to convert Epoch value to Human readable date format python 将python中的单位转换为非人类可读格式 - Convert number with units in python to NON human readable format 如何使用 Python 将 FlatBuffer 消息从二进制转换为人类可读的文本格式? - How to convert FlatBuffer message from binary to human readable text format with Python?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM