Comments (3)
Looks like the ASCWriter is mostly dumping the output of the Message.str() method in the .asc file,
which is not quite the format expected (as defined by the Vector document).
from python-can.
This is because you are not calling the right API
import can
can_msgs = [can.Message(timestamp=1714055256, arbitration_id=419377447, data=[0x12, 0xF3, 0x3b, 0x45, 0xcc, 0x6e])]
asc_writer = can.ASCWriter("dummy_data.asc")
for msg in can_msgs:
asc_writer.on_message_received(msg)
# or asc_writer(msg)
asc_writer.stop()
See examples and doc on how to use Loggers
https://github.com/hardbyte/python-can/blob/main/examples/simple_log_converter.py
https://python-can.readthedocs.io/en/stable/listeners.html#logger
from python-can.
@pierreluctg just looked at the example and the code again, makes perfect sense.
Thanks for taking the time to reply and sorry for the silly question, I realize the proper operation of the reader/writers was duly tested, I just couldn't figure out my mistake.
from python-can.
Related Issues (20)
- Mac OS: Deleting two separate PCAN buses simultaneously causes hard python script exit (assertion failed)
- Not able to send CANFD message in "pcan" interface HOT 2
- BLFWriter append messages to an existing log file does not take effect HOT 2
- Could not import vxlapi: function 'xlCanReceive' not found
- SYSTEC: sending remote frame does not respect dlc value
- Issues with UdpMulticastBus and MacOS
- Could not import vxlapi: Could not find module 'vxlapi64' (or one of its dependencies). HOT 2
- Tx CANFD data sending Causes BUS-OFF State HOT 2
- CAN "Transmit Buffer Full" Error HOT 1
- Export signals from .trc files HOT 1
- Tx messages can not be received with AsyncBufferedReader()
- Listener.stop() method breaks API since declared abstract HOT 2
- How to stop the log recording using can.logger and blfWriter? HOT 2
- Single millisecond send resolution with python-can, Vector HOT 2
- Align with the new CAN frame structure for socketcan adding optional DLC element
- CAN FD for Vector Hardware Interface HOT 1
- Is there any reason why the version installed by conda or pip is very old? HOT 1
- Crash in ASCReader HOT 1
- SizedRotatingLogger Filename Format Bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-can.