Commissioner Session ID TLV and Commissioner IPv6 address do not match. #8245
-
Good afternoon! I have a misunderstanding of how I should work with the commissioner. Situation: when starting the device, the commissioner starts after receiving the OT_CHANGED_THREAD_ROLE event. Here's what it should be:
But in fact, ip is random.
Most likely the problem is that netdata is updated later than the commissioner starts. This is proved by the fact that if I do not start the commissioner on the OT_CHANGED_THREAD_ROLE event, but start it some time after the role change, then the ip is set as expected. This problem causes several problems, firstly I use the IPv6 of the commissioner to determine who to send udp packets to. When should I start commissioner? What are your thoughts on this matter? Thank you! P.S. I am using nrf52840 on PCA10056 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@y-morgunov , thanks for raising this issue. It's yet clear why this behavior is occurring. Can you help share a sniffer packet capture so that we can better analyze the scenario? |
Beta Was this translation helpful? Give feedback.
-
This issue occurs when the Leader is restoring network data after a restart. After a restart, the Leader will restore network data by retrieving it from a neighboring node. If the Commissioner registers itself before it properly restores network data, the Commissioner information in the network data will be overwritten. One way to fix this issue is by having the Leader reject updates to the network data until after it has properly restored it. I submitted #8332 to implement this. |
Beta Was this translation helpful? Give feedback.
This issue occurs when the Leader is restoring network data after a restart. After a restart, the Leader will restore network data by retrieving it from a neighboring node. If the Commissioner registers itself before it properly restores network data, the Commissioner information in the network data will be overwritten.
One way to fix this issue is by having the Leader reject updates to the network data until after it has properly restored it. I submitted #8332 to implement this.