CANopenEditor icon indicating copy to clipboard operation
CANopenEditor copied to clipboard

Datatype information is being lost

Open Blabzillaweasel opened this issue 1 year ago • 3 comments

Hi there,

I have been using this software to convert .EDS to .XDD for use in another piece of software called KickDrive Zero, I have found this software requires using the "CANopen XDD V1.0, old" filetype when exporting.

I have noticed that when exporting using this filetype that a large number of entries lose their datatype information.

It does not seem to make a difference whether CANOPENNODE_V4 or CANOPENNODE_LEGACY is used as the exporter.

For example:

EDS:

[1003sub0]
ParameterName=Number of Errors
ObjectType=0x7
DataType=0x0005
AccessType=rw
DefaultValue=0
PDOMapping=0

.XDD (V1.0):

      <parameter uniqueID="UID_PARAM_100300" access="readWrite">
        <label lang="en">Number of Errors</label>
        <description lang="en"></description>
        <denotation>
          <label lang="en"></label>
        </denotation>
        <defaultValue value="0" />
      </parameter>
            <CANopenSubObject edseditor_extension_notifyonchange="false" subIndex="0000" name="Number of Errors" objectType="7" dataType="0000" lowLimit="" highLimit="" accessType="rw" actualValue="" denotation="" PDOmapping="no" uniqueIDRef="UID_PARAM_100300" />```


Blabzillaweasel avatar Nov 25 '24 23:11 Blabzillaweasel

Hi there,

I have been using this software to convert .EDS to .XDD for use in another piece of software called KickDrive Zero, I have found this software requires using the "CANopen XDD V1.0, old" filetype when exporting.

cool

I have noticed that when exporting using this filetype that a large number of entries lose their datatype information.

That is very likely, the conversion is far from perfect

It does not seem to make a difference whether CANOPENNODE_V4 or CANOPENNODE_LEGACY is used as the exporter.

The CanOpenNode option mostly affects the result of the c-code exporters so that makes sense

For example:

EDS:

[1003sub0]
ParameterName=Number of Errors
ObjectType=0x7
DataType=0x0005
AccessType=rw
DefaultValue=0
PDOMapping=0

.XDD (V1.0):

      <parameter uniqueID="UID_PARAM_100300" access="readWrite">
        <label lang="en">Number of Errors</label>
        <description lang="en"></description>
        <denotation>
          <label lang="en"></label>
        </denotation>
        <defaultValue value="0" />
      </parameter>
            <CANopenSubObject edseditor_extension_notifyonchange="false" subIndex="0000" name="Number of Errors" objectType="7" dataType="0000" lowLimit="" highLimit="" accessType="rw" actualValue="" denotation="" PDOmapping="no" uniqueIDRef="UID_PARAM_100300" />```

Do you have a EDS file with the problem you could share so we could use it to test & fix the problem?

nimrof avatar Nov 26 '24 10:11 nimrof

Please see attached .EDS example.zip

Blabzillaweasel avatar Nov 26 '24 15:11 Blabzillaweasel

This was recently fixed with #147

Please use the latest release.

CANopenNode avatar Nov 29 '24 15:11 CANopenNode

Closed due to lack of response from the OP

trojanobelix avatar Aug 18 '25 11:08 trojanobelix