Bus logging

Initial read only mode for mdf version 4.10 files containg CAN bus logging is now implemented.

To handle this, canmatrix package was added to the dependecies; you will need to install the latest code from the canmatrix development branch.

Let’s take for example the following situation: the .dbc contains the definition for the CAN message called “VehicleStatus” with ID=123. This message contains the signal “EngineStatus”. Logging was made from the CAN bus with ID=1 (CAN1).

There multiple ways to address this channel in this situation:

  1. short signal name as found in the .dbc file

    mdf.get('EngineStatus')
    
  2. dbc message name and short signal name, delimited by dot

    mdf.get('VehicleStatus.EngineStatus')
    
  3. CAN bus ID, dbc message name and short signal name, delimited by dot

    mdf.get('CAN1.VehicleStatus.EngineStatus')
    
  4. ASAM conformant message ID and short signal name, delimited by dot

    mdf.get('CAN_DataFrame_123.EngineStatus')
    
  5. CAN bus ID, ASAM conformant message ID and short signal name, delimited by dot

    mdf.get('CAN1.CAN_DataFrame_123.EngineStatus')