-
Notifications
You must be signed in to change notification settings - Fork 207
Open
Labels
Description
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?