-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chip-tool] Restart address update on failure #11779
[chip-tool] Restart address update on failure #11779
Conversation
PR #11779: Size comparison from 5623978 to cd268ff Decreases (1 build for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
Our address resolution timeout is 10s - is it actually taking that long for these devices to come online, we should move this retry into the SDK itself or make the timeout adjustable. The node resolve actually happens as a part of the IP commissioning process as well. Do we need to add a retry there as well, or is that not required for devices that are already on the network? The calls that happen as a part of chip tool are only for BLE commissioning (currently). Is this issue happening just as a part of the network startup? |
@cecille Normally, it doesn't take that long, but on some setups that involve Sleepy End Devices and OTBR running on a Raspberry Pi it does seem to take even more than 10s. Also, you're probably talking about the miminal mDNS resolver (right?), while other platforms may use different timeouts. Avahi seems to use something around 5s and I can't find API to change that. I'm not sure about IP commissioning, but I guess it should take less time to update DNS-SD info in such a case. I'm open to recommendations if you know a place in the SDK code where we could add the code, but I think not all |
@Damian-Nordic - TE7 cherrypicks are closed, however we can put this on the TE7.lts branch once it is merged if you want. |
@andy31415 Oh, I somehow missed that. Then we will probably need recommending some hacks on the firmware side to people who experience commissioning failures with chip-tool during TE7. |
For some devices, it may take more time to appear on the network and become discoverable over DNS-SD, so don't give up on the address resolution failure and restart the address update.
cd268ff
to
3987c55
Compare
PR #11779: Size comparison from 7c47bed to 3987c55 Decreases (1 build for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
Fast tracking, given this is adding to a test tool. |
For some devices, it may take more time to appear on the network and become discoverable over DNS-SD, so don't give up on the address resolution failure and restart the address update.
Problem
For some devices, it may take more time to appear on the network and become discoverable over DNS-SD. Some users reported issues with
chip-tool
failing to discover an address of a Thread Sleepy End Device because of certain delays in an SRP update processing. Consequently, they had to restart the entire commissioning to move on.Change overview
Don't give up on the address resolution failure and restart the address update.
Testing
Tested using
chip-tool
and a Thread device by manually delaying the OTBR start.