简体   繁体   中英

Extract data from hex CAN payload

Essentially I have this .blf file which has a bunch of CAN frames in hex.

In CAN, one frame has a bunch of message fields.

I'd like to grab the Data field.

For example: 1a01 2122 25f4 a187 ea80 2891 a223 4542

Is a CAN frame. Somewhere in that frame is the Data message that I can convert into Decimal.

How do I go about recognizes which Hex codes contain the message?

Thanks in advnace

BLF format not only contains the data of the CAN frame, but also other information like the id of the application which created the BLF file, timestamps, arbitration id, etc.

Additionally the data could also be compressed.

As you have python in the tags, I'd suggest you take a look at python-can This library has support for reading and writing BLF files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM