Skip to content

Fix so *.asc files created by canASCwriter can be read by Vector CANalyzer #1136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nateimig18 opened this issue Oct 7, 2021 · 4 comments
Closed
Milestone

Comments

@nateimig18
Copy link

nateimig18 commented Oct 7, 2021

now = datetime.now().strftime("%a %b %m %I:%M:%S.%f %p %Y")

Im not sure if this was intentional but it seems like Vector CANalyzer does not like header timestamps in terms of microseconds and refuses to import the "asc" log to view or replay.

The fix:

now = (lambda x: x.strftime('%a %b %m %I:%M:%S.%f')[:-3]+x.strftime(' %p %Y'))(datetime.now())
@felixdivo
Copy link
Collaborator

Hm, it would be nice if Vector changed their implementation. It would make the tool more robust to other input (e.g. ours) and the data more precise.

@hartkopp
Copy link
Collaborator

Hm, it would be nice if Vector changed their implementation. It would make the tool more robust to other input (e.g. ours) and the data more precise.

The ASC file format is a grown file format from the start of this century. And Vector is pretty clear when you look into the can_log_trigger_asc_format.pdfyou can see the liability disclaimer. It's just a neat documentation - no guaranties ;-)

You might also check asc2log and log2asc from the SocketCAN can-utils (https://github.com/linux-can/can-utils).
I did my very best there to provide a CAN FD capable converter for the ASC format (to the SocketCAN/Linux CAN log format).

@felixdivo
Copy link
Collaborator

you can see the liability disclaimer

Sure 😃, but better compatibility with such an easy fix is something that I'd expect as a customer.

@j-c-cook
Copy link
Contributor

@zariiii9003 This was resolved in #1362.

@felixdivo felixdivo added this to the 4.1.0 Release milestone Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants