Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hilch/canopen-message-interpreter
Python script to interpret CAN traces as CANopen messages
https://github.com/hilch/canopen-message-interpreter
Last synced: 3 months ago
JSON representation
Python script to interpret CAN traces as CANopen messages
- Host: GitHub
- URL: https://github.com/hilch/canopen-message-interpreter
- Owner: hilch
- License: gpl-3.0
- Created: 2023-06-01T06:49:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-19T10:04:14.000Z (11 months ago)
- Last Synced: 2024-08-02T14:05:58.926Z (6 months ago)
- Language: Python
- Size: 1.9 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-B-R - canopen-message-interpreter - Python script to interpret CAN traces as CANopen messages according to CiA DS301 / V4.2.0. (Communication / CAN)
README
# canopen-message-interpreter
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)Python script to interpret CAN traces as CANopen messages according to CiA DS301 / V4.2.0.
See [CiA group](https://can-cia.org/) for specification.
[Controller Area Network (CAN bus)](https://en.wikipedia.org/wiki/CAN_bus) is a vehicle bus standard designed 1983 by Robert Bosch GmbH.
[CANopen](https://en.wikipedia.org/wiki/CANopen) is a higher level communication protocol and device profile specification for embedded systems used in automation based on CAN.
There are many tools available to record CAN messages. Usually they provide simple text files.
But for CANopen it would mean to translate all bytes manually since they usually do not provide higher level interpreters out of the box.
I did not found any free tools to interpret CANopen at all. And even (expensive) professional tools don't present all data (which I am interessted in).
So this (incomplete and non perfect) tool might help.
# Usage
```
usage: analyze.py [-h] -s SOURCE [-o OUTPUT] -f {pcan}
( on Windows: py analyze.py [-h] -s SOURCE [-o OUTPUT] -f {pcan} )options:
-h, --help show this help message and exit
-s SOURCE, --source SOURCE
trace file (*.*)
-o OUTPUT, --output OUTPUT
output file (*.csv)
-f {pcan}, --format {pcan}
trace format type ('pcan')
```
## --sourceCAN trace file.
(currently only [PCAN-View](https://www.peak-system.com/) *.trc is supported)## --output
output file.
(currently only CSV with ';' as separator is supported)## --format
- pcan : [PCAN-View](https://www.peak-system.com/) *.trc files (currently only V1.1 is supported)## Example
```
py analyze.py -s sample1.trc -o sample1.csv -f pcan
```