
The plot subcommand is similar to the decode subcommand but messages are visualized using matplotlib instead of being printed to stdout. $ candump vcan0 | python3 -m cantools decode tests/files/dbc/motohawk.dbcĪlternatively, the decoded message can be printed on a single line: $ candump vcan0 | python3 -m cantools decode -single-line tests/files/dbc/motohawk.dbc signals ) [ signal ( 'Enable', 7, 1, 'big_endian', False, 1.0, 0, 0.0, 0.0, '-', False, None, ĭecode CAN frames captured with the Linux program candump.

get_message_by_name ( 'ExampleMessage' ) > pprint ( example_message.

load_file ( 'tests/files/dbc/motohawk.dbc' ) > db. > import cantools > from pprint import pprint > db = cantools. The example starts by parsing a small DBC-file and printing its
