1.1.8.1.2.1.1. cli.cmd_etl.batetl.etl.can_decode.CANDecode
- class cli.cmd_etl.batetl.etl.can_decode.CANDecode(dbc: str, timestamp_pos: int, id_pos: int, data_pos: int)
Class to decode CAN messages
- Parameters:
dbc – Path to the .dbc file
timestamp_pos – Position of the timestamp in a CAN message
id_pos – Position of the CAN id in a CAN message
data_pos – Position of the data in a CAN message
- __init__(dbc: str, timestamp_pos: int, id_pos: int, data_pos: int) None
Methods
__init__
(dbc, timestamp_pos, id_pos, data_pos)decode_msg
(msg)Method to the decoded passed CAN messages.