| 1 |
------------ |
| 2 |
Bus logging |
| 3 |
------------ |
| 4 |
|
| 5 |
Initial read only mode for mdf version 4.10 files containing CAN/LIN bus logging |
| 6 |
is now implemented. |
| 7 |
|
| 8 |
To handle this, the **canmatrix** package was added to the dependencies; you will need to install the latest code |
| 9 |
from the **canmatrix** library. |
| 10 |
|
| 11 |
Let's take for example the following situation: the .dbc contains the definition |
| 12 |
for the CAN message called "VehicleStatus" with `ID=123`. This message contains the |
| 13 |
signal "EngineStatus". Logging was made from the CAN bus with `ID=1` (CAN1). |
| 14 |
|
| 15 |
There multiple ways to address this channel in this situation: |
| 16 |
|
| 17 |
#. short signal name as found in the .dbc file |
| 18 |
|
| 19 |
.. code:: python |
| 20 |
|
| 21 |
mdf.get('EngineStatus') |
| 22 |
|
| 23 |
#. dbc message name and short signal name, delimited by dot |
| 24 |
|
| 25 |
.. code:: python |
| 26 |
|
| 27 |
mdf.get('VehicleStatus.EngineStatus') |
| 28 |
|
| 29 |
#. CAN bus ID, dbc message name and short signal name, delimited by dot |
| 30 |
|
| 31 |
.. code:: python |
| 32 |
|
| 33 |
mdf.get('CAN1.VehicleStatus.EngineStatus') |
| 34 |
|
| 35 |
#. ASAM conformant message ID and short signal name, delimited by dot |
| 36 |
|
| 37 |
.. code:: python |
| 38 |
|
| 39 |
mdf.get('CAN_DataFrame_123.EngineStatus') |
| 40 |
|
| 41 |
#. CAN bus ID, ASAM conformant message ID and short signal name, delimited by dot |
| 42 |
|
| 43 |
.. code:: python |
| 44 |
|
| 45 |
mdf.get('CAN1.CAN_DataFrame_123.EngineStatus') |
| 46 |
|