-
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
iOS chiptool fails to pair and commission the esp32 device #15640
Comments
@danh-geo I faced a similar issue with commissioning esp32c3 devkit using the latest CHIPTool app. For more information please go though this: #15299 (comment) |
Thanks @ajay-gantayet for your experience. I'll give that a try. If this is to be the case, it would be useful if the app in its UI or even in the README would specify this? |
I installed 15.4 beta onto my device. Whilst I no longer see the issue above, the QR scanner still doesn't pair/commission the device properly. I was expecting the textfield "Paired Devices" to populate which it didn't. I was also expecting the At the moment of scanning the QR code, these are the app logs I now retrieve:
Which means I see it get as far as this:
Has anyone actually manage to pair it with the iOS device and have it list the paired device within the app? My aim is to use the app to pair and send on/off commands. Whilst I can successfully do this via the standalone CHIP tool, I cannot achieve it with the iOS demo app. |
OK I finally got it to work using the 15.4 beta on my device. My issue was that I had already paired the esp32 with the standalone CHIP tool. So I ran the following commands:
Which cleared the state/pairing info. This time instead of pairing the standalone CHIP tool to test it, I launched the iOS app and used the QR scanner. I scanned the code successfully and it paired/commissioned. I noticed the textfield for "Paired devices" didn't update, it still has () but if I left the screen and re-entered, it finally had my device id. And then I could access the light on/off cluster screen and successfully turned the light on and off. |
Can someone also let me know if this is possible... I have the iOS app paired and sending on/off commands to the esp32. I can see it has used device id 8 within the app. How can I use the standalone chip tool to also send on/off commands to the esp32? I've tried: But it doesn't work. I'd like to be able to send on/off commands from the app AND the standalone chip tool. Is this possible? And if so, how do I do it? |
I managed to send ono/off commands with both the iOS app and the standalone chip tool. It only worked when I added the iOS app first, and then the standalone CHIP tool as the second admin. I wasn't able to pair via the standalone chip tool first, and then add the iOS app as a second admin. Regardless here are the steps for both... Working:
I could then send on/off commands with both chip tools (app and standalone) Couldn't get working:
|
iOS CHIPTool and the command-line chip-tool are separate admins on separate fabrics. The "Couldn't get working" steps should allow you to paste the manual code and then commission the same device in iOS CHIPTool, and this does work last I tested. But the node id will be different, because these are independent fabrics. |
CHIP commit id: 031edd0
esp32 App: examples/all-clusters-app
Device: esp32devkit-c
I'm attempting to pair our esp32 device using the iOS app. I can pair it just fine when I use the standalone CHIPTool using terminal with the following command:
./out/debug/chip-tool pairing ble-wifi {NODE_ID} {SSID} {PW_FOR_SSID} {SETUP_PIN_CODE} {DISCRIMINATOR}
Once paired with theabove, I can turn the light on my board on and off using:
./out/debug/chip-tool onoff on {NODE_ID} 1
./out/debug/chip-tool onoff off {NODE_ID} 1
Now when I use the QR Code Scanner in the iOS app I can see things happening, it asks me for bluetooth prompt, it also asks me for my ssid and pw which I provide. I can see in the logs it mentions:
DevicePairingDelegate Pairing complete. Status ../../../../../../../../../../../Desktop/oldCHIP/src/controller/CHIPDeviceController.cpp:979: Success
But ultimately, towards the end it fails with:
In the app Paired Devices is still empty as indicated by empty brackets () on the QR Code screen, as well as the Light on/off cluster screen which shows zero device ids in the picker.
I've attached the logs of the app when I attempt to pair with the QR code, and the logs of my esp32 board during this process.
Ultimately, it seems to be when it gets inside here when it fails and calling the commissionDevice function.
Thanks for any help.
(on a side note to enter the QR code scanning screen due to it crashing, see issue: #15638 we had to modify KeyValueStoreManagerImpl.mm see link for details.)
app-log.txt
board-log.txt
The text was updated successfully, but these errors were encountered: