-
Notifications
You must be signed in to change notification settings - Fork 639
ASCReader: Skip J1939TP messages #701
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #701 +/- ##
========================================
Coverage 68.34% 68.34%
========================================
Files 69 69
Lines 6199 6199
========================================
Hits 4237 4237
Misses 1962 1962 |
Could you also add a line in test/data/logfile.asc? |
Of course. In a real logfile the J1939TP entry would be preceded by a number of normal CAN messages containing parts of the J1939TP message. Should I also include those in the example file?
|
We should probably document that behavior in the class. Can you do that? Besides, is there some official documentation of the file format we can link to?
Why not add the J1939TP in a few places, like at the start, in between and at the end? It shouldn't hurt. |
Not to my knowledge. |
Thank you @bessman for these improvements! |
.asc files can contain J1939 Transport Protocol messages, which look something like this:
0.297743 1 J1939TP FEE3p 6 0 0 - Rx d 23 A0 0F A6 60 3B D1 40 1F DE 80 25 DF C0 2B E1 00 4B FF FF 3C 0F 00 4B FF FF FF FF FF FF FF FF FF FF FF FF
This change makes ASCReader skip such messages, instead of breaking.