You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue when using python-can to parse BLF files. Specifically, when parsing BLF files generated by certain tools(Tsmaster), I observed incorrect payload data in 64-byte CAN FD frames. The problem consistently appears starting at 48 bytes. However, the same BLF files can be parsed correctly using Tsmasterand CANoe.
CANoe:
I checked the first message object in your file. The mValidDataBytes field has a value of 64, but the object only contains 48 data bytes. This causes python-can to read parts of the next object.
This is a bug in TSMaster, but the python-can implementation could be more robust, too.
Edit: Like CANoe, binlog.dll also adds padding with 0x00 bytes, so maybe this is valid according to blf format...
I checked the first message object in your file. The mValidDataBytes field has a value of 64, but the object only contains 48 data bytes. This causes python-can to read parts of the next object. This is a bug in TSMaster, but the python-can implementation could be more robust, too.
Edit: Like CANoe, binlog.dll also adds padding with 0x00 bytes, so maybe this is valid according to blf format...
Thank you for your response and quick fix. I have downloaded the updated script and successfully read the payload. Thanks again!
Describe the bug
I encountered an issue when using python-can to parse BLF files. Specifically, when parsing BLF files generated by certain tools(Tsmaster), I observed incorrect payload data in 64-byte CAN FD frames. The problem consistently appears starting at 48 bytes. However, the same BLF files can be parsed correctly using Tsmasterand CANoe.
CANoe:
python-can:
Please investigate this issue. Thank you!
To Reproduce
I have attached the BLF file.
2024_12_31_14_09_35.zip
Expected behavior
Additional context
OS and version: windows 11
Python version:Python 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
python-can version:4.5.0
python-can interface/s (if applicable):
The text was updated successfully, but these errors were encountered: