CANopen - using *.eds or *.dcf files (to be uploaded)

asked 2023-04-18 16:16:43 +0000

zkl gravatar image

When using Wireshark for CANopen values get retrieved from the CANopen-bus.

The description of the values for each node and the sub-index is in a *.eds (or the very similar *.dcf) file.

Here some entries in a node4711.eds file:

[1016sub1]
ParameterName=Consumer Heartbeat Time 1
ObjectType=7
DataType=7
AccessType=rw
PDOMapping=0
DefaultValue=0x0000

[1017]
ParameterName=Producer Heartbeat Time
ObjectType=7
DataType=6
AccessType=rw
PDOMapping=0
DefaultValue=1000

[1018]
ParameterName=Identity Object
ObjectType=9
SubNumber=5

[1018sub0]
ParameterName=Number of entries
ObjectType=7
DataType=5
AccessType=ro
PDOMapping=0
DefaultValue=4

[1018sub1]
ParameterName=Vendor Id
ObjectType=7
DataType=7
AccessType=ro
PDOMapping=0
DefaultValue=0

When retrieving the vakue for 1018sub1 i should have the description "Vendor-ID added" (but i only see OD main Index (0x1018) and OD sub index (0x01) and the retrieved value.

Commercial tools allow to upload the eds file and parse the name/description from this text file.

(Also for Linux i did not find a line parser (as a plan B solution)). Any suggestion?

edit retag flag offensive close merge delete

Comments

There is a software where a lot can be learned/explained on the issue: [https://github.com/CANopenNode/CANope...] (https://github.com/CANopenNode/CANope...)

  • --- CANopenEditor CANopenEditor is a fork from https://github.com/robincornelius/lib..., author Robin Cornelius. Its homepage is https://github.com/CANopenNode/CANope... CANopen Object Dictionary Editor:
    • Imports: CANopen electronic data sheets in EDS or XDD format.
    • Exports: CANopen electronic data sheets in EDS or XDD format, documentation, CANopenNode C source files.
    • GUI editor for CANopen Object Dictionary, Device information, etc. CANopen is the internationally standardized (EN 50325-4) (CiA301) higher-layer protocol for embedded control system built on top of CAN. For more information on CANopen see http://www.can-cia.org/CANopenNode is free and open source CANopen Stack. This is the build branch with binaries. For sources see the main branch.

-- Unfortunately it does not allow to combine this - maybe the two Softwares should be combined/integrated ...(more)

zkl gravatar imagezkl ( 2023-05-10 10:56:37 +0000 )edit