The most tools generate and accepts SocketCAN formats as industry standard.
Many variants of CAN log formats can be converted to each other in CLI (sed, awk, etc), but not yours.
At least it have two issues:
Mixed digit representation: ID in hex and payload in decimal: SocketCAN-format use hex for both ID and data
Untrivial data order: timestamp in middle of CAN frame body: SocketCAN-format use timestamp at the top of string
For reference here of two possible (from many others) example of SocketCAN logs:
absolute time:
(1605793322.823716) can0 07A#6294400000108000 R
(1605793322.823924) can1 120#0000AA9D51FF0090 R
(1605793322.824380) can1 094#0DF3000080000339 R
(1605793322.827396) can1 070#18000001070FFFFF R
Hi and thanks for that great work. My points are:
The format
seems like custom.
The most tools generate and accepts SocketCAN formats as industry standard. Many variants of CAN log formats can be converted to each other in CLI (sed, awk, etc), but not yours.
At least it have two issues:
For reference here of two possible (from many others) example of SocketCAN logs:
absolute time:
relative time:
The both allows to convert in CSV format, but dec->hex convert and reordering hard to proceed in CLI.
Happy hacking!