Follow these steps to correct bit-shift errors caused by misalignment between the DBC definition and the raw CAN payload:
- Open the .dbc file in a text editor or a dedicated DBC management tool.
- Locate the specific Message ID identified as having nonsensical data values.
- Compare the 'Start Bit' and 'Signal Length' parameters in the DBC file against the raw hexadecimal payload in your .asc or .log trace file.
- Calculate the required bit-offset adjustment by identifying the delta between the observed data transition and the defined start bit position.
- Update the 'Start Bit' integer value in the DBC file to align with the actual bit-start position observed in the trace.
- Save the .dbc file and reload it into your CAN analysis software.
- Verify the fix by re-parsing the trace file and confirming that the decoded signal values now fall within the expected operational range for the vehicle system.
Safety Precaution: Always perform data decoding analysis on a copy of the original trace file to prevent accidental modification of raw diagnostic logs.
Sources
Comments
Sign in to join the conversation
Sign InNo comments yet. Be the first to share your thoughts!