Skip to content

Ability to change the od/node ID at runtime #580

@belliriccardo

Description

@belliriccardo

Hi,
I have an application where a board's node ID needs to be changed at runtime, and quite frequently as well. I've seen in the docs for all of the network nodes, that for the id parameter: [...] Changing this after initializing the object will not have any effect.
I've tried manually going around and changing the id to the relevant object, as such:

# od: ObjectDictionary
# node: RemoteNode

od.node_id = new_id
node.id = new_id
node.sdo.rx_cobid = 0x600 + new_id
node.sdo.tx_cobid = 0x580 + new_id
# And so on; I only use SDO anyways

But, the SDO readings still fail. They only succeed if the id is correct when instantiating the od/node. Is there a way to address this without re-instantiating a RemoteNode every time the id of a node is changed? Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions