-
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 fails to initiate AnnounceOTAProvider command when subscribed to events on OTA-Requestor Linux app #14848
Comments
What exact commands are being run? Are the two chip-tool instances running at the same time, on the same IP address, using the same fabric? If so, they are both going to try to use the same port, and that's not going to work very well.... |
Command for AnnounceOTAProvider: Yes the two instances are running at the same time, on the same IP address, using the same fabric. |
There's no workaround without code changes right now. @vivien-apple maybe we should add a way to run chip-tool with a non-default (or even ephemeral) port? Might still break, because the same node running on multiple ports is not really something that's OK per spec..... The other option would be to have some sort of shell/repl thing in chip-tool so you can issue it commands while it's listening for reports.... |
@bzbarsky-apple I saw mentions of running two Linux all-cluster-app in different docker containers in #14303 Running multiple Linux apps in separate IP namespaces should solve the issue? If so, could you provide instructions on how to do that here? |
You'd need the two apps to be on the same fabric (as in, using the same certificate store, etc). I guess as long as they are not both trying to write to it that might work... IP namespaces might do the trick, but all I don't really know anything about the specifics of how to set it up.... |
I ran the sequence of commands as reported in this issue but I do not observe the reported timeout issue. I see that Query Image succeeds and event report generation continues to run even if I am running 2 instances of chiptool.
Terminal 1 Terminal 2 Terminal 3 Terminal 4 Issue 14848 Chiptool 1 Interactive.txt |
Yes, after #16452 chip-tool uses ephemeral ports, so this works now. |
Problem
chip-tool fails to initiate AnnounceOTAProvider command with error:
[1644258223657] [3613:3389969] CHIP: [-] ../../../examples/chip-tool/commands/common/CHIPCommand.cpp:248: CHIP Error 0x00000032: Timeout at ../../../examples/chip-tool/commands/common/CHIPCommand.cpp:61
[1644258223657] [3613:3389969] CHIP: [TOO] Run command failure: ../../../examples/chip-tool/commands/common/CHIPCommand.cpp:248: CHIP Error 0x00000032: Timeout
Proposed Solution
This works when AnnounceOTAProvider command is triggered before subscribing events but should work the other way as well so events can be subscribed and received right from the beginning of OTA process.
chiptool_announce_ota.txt
chiptool_event_subscribe.txt
ota-p.txt
ota-r.txt
The text was updated successfully, but these errors were encountered: