Closed lboue closed 2 months ago
@lboue , can you please confirm that during commissioning using apple-home, have you scanned the qrcode specified in the README here. If you have used the appropriate QR code, can you please give a retry as it worked fine for me with apple home. The logs seem to show that the failure is due to ble connection termination by remote user i.e apple home in this case (due to various possible reasons). Seems like an arbitary failure.
Yes, exactly. That's exactly what I did.
With this iPhone, pairing with Matter over Thread development kits from SiliconLabs works perfectly. I only have problems with the esp-matter SDK and ESP32 boards.
I noticed several errors in the log file. Is there any way to fix that?
[22:04:24]E (932) esp_matter_core: Cannot set bounds because of val type mismatch: expected: 8, min: 15, max: 15
[22:04:24]E (1482) chip[DIS]: Failed to remove advertised services: 3
[22:04:24]E (1502) chip[DIS]: Failed to advertise commissionable node: 3
[22:04:24]E (1512) chip[DIS]: Failed to finalize service update: 3
[22:04:40]E (17192) chip[DL]: ble_gap_terminate() failed: Error CHIP:0x00000048
[22:05:40]E (76902) chip[SVR]: Commissioning failed (attempt 1): 32
[22:05:40]E (76932) chip[DIS]: Failed to remove advertised services: 3
[22:05:40]E (76952) chip[DIS]: Failed to advertise commissionable node: 3
[22:05:40]E (76952) chip[DIS]: Failed to finalize service update: 3
[22:06:15]E (112342) chip[DL]: ble_gap_terminate() failed: Error CHIP:0x00000048
I noticed that CONFIG_ENABLE_ESP32_FACTORY_DATA_PROVIDER
is enabled in sdkconfig.defaults
https://github.com/espressif/esp-matter/blob/a4739acde12cd3e8c845e449986c7540d1a83307/examples/generic_switch/sdkconfig.defaults#L40-L47
But not in sdkconfig.defaults.esp32h2
Is this the expected behavior? Should the file sdkconfig.defaults.esp32h2
be modified?
@lboue , if you notice the sdkconfig file of your project after setting the target to esp32h2, it has the required options including CONFIG_ENABLE_ESP32_FACTORY_DATA_PROVIDER=y
. The sdkconfig.defaults.esp32h2
has configs specific to esp32h2 or the configs that should be overriden for the values already set in sdkconfig.defaults
when target is esp32h2. For e.g.: CONFIG_ESP_SECURE_CERT_DS_PERIPHERAL=n
' in sdkconfig.defaults
and it is enabled in sdkconfig.defaults.esp32h2
. If you have a look at the sdkconfig
file, it is enabled.
@lboue , when we tried at our end, the commissioning seemed to work fine. Can you please mention about what is the frequency of the commissioning failure at your end?
@lboue , when we tried at our end, the commissioning seemed to work fine. Can you please mention about what is the frequency of the commissioning failure at your end?
I've tested with several C6 and H2 boards and it fails every time. I've never succeeded in Matter Thread commissioning with esp-matter SDK. I
@lboue , we have tried for about 8-10 iterations of commissioning with the same ios version(17.6.1) as specified above on the same commit specified. It works prefectly fine with esp32h2. For confirming the commissioning over thread, can you please try out the esp32h2 thread-light on launchpad here . Please click on connect device. Select the chip and flash the application. Click on reset device and commission with the QR code provided on the UI. Also, can you please provide the sdkconfig file .
@lboue , can you please run the command esptool.py -p <port> read_flash 0x10000 0xc000 /tmp/nvs.bin
and provide the nvs bin.
Describe the bug
Commissioning fails with Generic-switch example with ESP32-H2 board. Confirmation packets seems to be received, but the commisioning is running down.
Could you help me to fix this issue?
Steps
Environment
ESP-Matter Commit Id: 22fad1243ba0121845c8eff648eb57f0a99a13f5
ESP-IDF Commit Id:
SoC (eg: ESP32 or ESP32-C3): ESP32-H2
Device Logs (Please attach the log file):
Host Machine OS:
Host Machine Python version:
Commissioner app and versions if present: iOS 17.6.1
Home hub app and versions if present: HomePodOS 17.6.1
Commissioner's logs if present:
Any additional details Log file generic-switch-esp32h2_Commissioning_failed.log