CANviz update: CANopen (CiA 301 +CiA 402) decode shipped (v0.3.2) - drive state without an EDS file
Posted about CANviz a few months back - open source browser-based CAN analyzer. Just shipped v0.3.2 with a full CANopen decoder - figured the robotics crowd would want to know.
The part most relevant here: CiA 402 drive state without loading an EDS. Standard TPDO1 puts Statusword in bytes 0-1, so as soon as heartbeat and PDO frames come in you get Operation Enabled / Fault / Quick Stop / Ready to Switch On per node. Upload an EDS and PDO signals get named and feed into the signal plot.
Without any config at all: frame type labeling from COB-ID, node discovery from heartbeat traffic, NMT state per node, EMCY decode to error code and register flags, SDO request/response pairing with object names from a built-in 180-entry CiA 301/402 dictionary.
There are also NMT command buttons (Operational, Pre-Op, Stop, Reset) and CiA 402 Controlword shortcuts (Enable, Switch On, Shutdown, Quick Stop, Fault Reset) with a confirm step before sending.
I haven't personally tested this against an ODrive or Maxon EPOS. Would like to know what breaks - particularly whether the default TPDO1 assumption holds on drives that use non-standard PDO mappings.
pip install --upgrade canviz