An NCurses-based TUI application for tracking activity over the CAN bus and decoding messages with provided EDS/OD files.
$
pip install canopen-monitor
Run the monitor, binding to can0
$
canopen-monitor -i can0
Use this for an extensive help menu
$
canopen-monitor --help
The default configurations provided by CANOpen Monitor can be found in
canopen_monitor/assets. These are the default
assets provided. At runtime these configs are copied to
~/.config/canopen-monitor
where they can be modified and the changes
will persist.
EDS files are loaded from ~/.cache/canopen-monitor
Check out our Read The Docs pages for more info on the application sub-components and methods.
Linux 4.11 or greater (any distribution)
Python 3.8.5 or higher (pyenv is recommended for managing different python versions, see pyenv homepage for information)
$
sudo apt-get install can-utils
$
sudo ip link add dev vcan0 type vcan
$
sudo ip link set up vcan0
$
git clone https://github.com/Boneill3/CANopen-monitor.git
$
cd CANopen-monitor
$
pip install -e .[dev]
(Note: the -e
flag creates a symbolic-link to your local development version. Set it once, and forget it)
$
chmod 700 socketcan-dev
$
./socketcan-dev.py --random-id --random-message -r
$
canopen-monitor
$
make -C docs clean html
(Note: documentation is configured to auto-build with ReadTheDocs on every push to master)
Name | COB ID Range |
---|---|
SYNC | 080 |
EMCY | 080 + NodeID |
TPDO1 | 180 + NodeID |
RPDO1 | 200 + NodeID |
TPDO2 | 280 + NodeID |
RPDO2 | 300 + NodeID |
TPDO3 | 380 + NodeID |
RPDO3 | 400 + NodeID |
TPDO4 | 480 + NodeID |
RPDO4 | 500 + NodeID |
TSDO | 580 + NodeID |
RSDO | 600 + NodeID |
NMT (Heartbeat) | 700 + NodeID |