Apply asc format since format v8.1
A solution to solve issue #1531.
Mainly include 2 changes in ASCReader class:
- extract header when initial ASCReader, to get correct
start_time,version,date, etc before iterate the messages. I think this is necessary; - new function
_process_fd_can_frame_2to process CANFD message in ASCFormat since V8.1;
Remaining issue:
some tests can not pass, mainly because after the change, correct absolute timestamp is get when iterate the messages;
@Tian-Jionglu Are you still working on the tests? I cannot merge if the tests are failing.
Commits to parse the ASC format version using packaging.
Jobs in working: change ASC format test to adjust absolute time.
The ASC tests are still failing.
When diving into test example, i found my mistake at the start. The symbolic name issue is not only related to ASC format version. In fact, SymblicName works for symbolic logging at first place. I'm still looking for example about symblic logging.
I would close this PR in coming days, and start a new PR to inherit the change to fix absolute time in ASC format. If there is already support about symbolic logging in python-can, please give me a hint.
see PR #1788