CANopen - Main Index Value not in Table (only text)

asked 2023-04-18 16:05:40 +0000

zkl gravatar image

updated 2023-04-18 16:12:28 +0000

grahamb gravatar image

When using Wireshark for CANopen its most important to select the records. Therefore in the table (and as filter) there should be the main index value. When i select below in the CANopen Data field the line I can mark it and request to copy the entry into the table. E.g:. "OD main-index: Identity object (0x1018)" Unfortunately the "0x1018" gets lost. "Only Identity object" gets copied.

Already in the table there is COB-id, Node-Id and Function. Also the value of OD sub-index. Here: "0x01"

For information purposes, here the *.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

I should get back the 1018sub1, the vendor ID in the Data Field canopen.sdo.data.bytes ( for PDO there is also canopen.pdo.data.bytes) e.g. "00 00 00 60"

How can i retrieve it?

edit retag flag offensive close merge delete

Comments

Do you have a capture file that you can share (on a public share)?

grahamb gravatar imagegrahamb ( 2023-04-18 16:12:58 +0000 )edit

What you corrected (withe new line command) is a big part of this *.eds file. Thanks for correcting and asking. Here is a dcf-file: coctl.dcf (They are nearly the same as eds but they have additionally the line parameter value e.g.: ParameterValue=0x00000001

zkl gravatar imagezkl ( 2023-04-18 16:25:22 +0000 )edit

It seems its a bug. (Unfortunately i cannot upload two screenshots). I cannot see the field value of canopen.sdo.main_idx (e.g. 0x1018) in the Table View. But I can see this value when i make a table export (of selected rows) to JSON. Then its the field (seen e.g. with Firefox): canopen.sdo.main_idx "0x1018" Somehow i get the impression 0x1018 was taken and hard exchanged through the description with unfortunately loosing the 0x1018 original value.

zkl gravatar imagezkl ( 2023-04-27 09:36:18 +0000 )edit