Skip to content

SDO data size truncated to length of the default value in the EDS #135

@iurly

Description

@iurly

When trying to read (download) string SDOs from a node, the value returned by .raw is truncated to the length of the value contained in the EDS, even though the node returns a longer value.

For instance, if I have:

[100A]
ParameterName=Manufacturer_software_version
ObjectType=0x7
;StorageLocation=RAM
DataType=0x0009
AccessType=const
DefaultValue=3.00
PDOMapping=0

when trying to read node.sdo[0x100a].raw

  • Up to version 0.6.0, I would get the whole string
  • From version 0.7.0 onwards, I would get it truncated to the first 4 characters (length of default value 3.00), even though everything looks correct on the wire.
    This is probably related to PDO and SDO expected and actual data size #64.

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions