collin80 / SavvyCAN

QT based cross platform canbus tool
MIT License
1k stars 278 forks source link

Log Format Add Request #823

Open ba05 opened 2 months ago

ba05 commented 2 months ago

Is it possible to read logs in this format? If not what would be involved in adding this functionality?

2011-04-25-10:16:43.004,2,127250,3,255,8,ff,8b,0a,ff,7f,ff,7f,fd
2020-08-22T13:53:01.536Z,7,65313,17,255,8,13,99,ff,7f,ff,ff,ff,ff
2011-04-25-10:15:37.690,6,59392,3,12,8,01,ff,ff,ff,ff,34,ff,00
2021-01-27T23:34:19.539Z,3,129029,1,255,43,ff,de,48,48,af,94,32,70,eb,69,fd,aa,6d,bc,01,00,d7,1b,22,44,ef,47,f6,88,82,ac,fe,ff,ff,ff,ff,24,fc,1b,32,00,46,00,80,f8,ff,ff,00
2020-08-22T13:53:02.193Z,2,129025,127,255,8,b0,dd,b1,1f,1b,2f,3d,03
2020-08-22T13:52:57.591Z,7,126993,6,255,8,60,ea,24,ff,ff,ff,ff,ff

Link to log from canboat GitHub project

I think this format is "Actisense" format.

collin80 commented 2 months ago

It's probably possible. But, it sure would help if I knew what all the fields mean. At first I thought it was TimeStamp, Length, ID, byte0, byte1, etc but it's not. The second number certainly isn't length like I thought. I'll have to dig into their code a bit to figure out what each field is.

Also, quite a lot of the traffic listed is well over 8 bytes. Some lines might even be over 64 bytes. SavvyCAN is capable of loading CAN-FD frames where there are up to 64 bytes. The file you linked to isn't raw CAN traffic but rather NMEA traffic already collected into messages from the individual frames. It might not be that easy to import.

ba05 commented 1 month ago

I believe the data is NMEA 2000 and the messages over 64 bytes are from fast packet messages that have been combined. Am I understanding correctly that *.dbc files cannot specify fast packet message format? Would be amazing if could also specify a JSON decode file such as this one https://github.com/canboat/canboat/blob/master/analyzer/pgns.json#L20161 that handle NMEA 2000 (fastpacket) data.