CANopen bus data translation/mapping with .eds/.dcf files on Linux Terminal Window

44 Views Asked by At

For CAN bus, data in a terminal window e.g. coming from CANplayer (CANutils), can be mapped/translated with the command:

candump vcan0 | cantools decode --single-line '/home/xyz.dbc'

Is there a similar solution for CANopen bus? Having tried:

(1) canopen-monitor -i vcan0 somehow the *.eds file(s) in the relative subdirectory /.cache/canopen-monitor are not applied.

(2) With jupyter notebooks (if this can be avoided, it would better) there is a somehow solution:

import canopen
network = canopen.Network()
node = network.add_node(0x1a, 'abc.eds')
network.connect(bustype='socketcan', channel='vcan0')
node.object_dictionary[0x2001][1].__dict__

What i am looking for is a solution that all:

  • SDO CANopen Data in the bus is mapped to the explanation in the eds file (s). (right now a file for one node would be a good start)
  • with the decimal/string realtime value.
0

There are 0 best solutions below