-
Notifications
You must be signed in to change notification settings - Fork 174
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
Commissioning Problem on release/v1.4 branch. (Received ArmFailSafe (0s), CHIP Error 0x000000AC: Internal error) (CON-1527) #1257
Comments
This is the error in your chip-tool logs, which says you used the wrong setup passcode.
chip-tool command from your logs shows that you are using setup passcode as 7580858. But you built the partition with setup passcode 20202021 using mfg-tool.
For chip-tool command help please add
|
I tried to enter the issue in Github. chip-tool pairing onnetwork 0x7283 20202021 |
@halilakpinarr please please provide the device and chip-tool logs in the file, similar to what you have done in the issue description |
@shubhamdp logs are like this. |
@halilakpinarr Thanks for the logs. Can you please pull the latest release/v1.4 and try with the below patch?
|
@shubhamdp i did what you said. commissioning failed again. i tried again by doing fullclean and erase_flash. i flashed the application and factory partitions. i am leaving the new logs below. |
@halilakpinarr I got the problem, and its in the controller code, you will have to use connectedhomeip's latest master branch to build the chip-tool, it has the fix. On v1.4-branch, I removed this code which reads the For esp-matter, the patch I mentioned above is anyway needed, so I'll get that merged soon. Until then please try with any one option. Follow-up, does this fails on ecosystems as well? eg: Apple Home. |
@shubhamdp I will continue my development from the old version. I will try what you mentioned in v1.4 and come back. |
@halilakpinarr can you please share the device logs when commissioning fails with Apple Home for further debugging? If possible can you please set the log-defaul-level to debug through menuconfig to help debug this issue. Additionally, can you please help me with the Apple Home version details.
|
I haven't updated connectedhomeip yet, I need to downgrade and make my own developments. Commissioner; Another Topic, |
Looking at the logs attached in #1257 (comment), ConnectMaxTime has nothing to do with anything: chip-tool is sending an AttestationRequest command and the server is responding with FAILURE, which is why commissioning fails. |
@shubhamdp I downgraded and was working on this version. I flashed the application code compiled with this version (a6da273) |
By default, the factory data provider implementation reads the Certification Declaration (CD) from the 'chip-factory'. You have enabled Please check the documentation here, https://github.com/project-chip/connectedhomeip/blob/master/src/platform/ESP32/ESP32SecureCertDACProvider.h#L35-L55. Either you can se the CD using this API, or please disable that option so that the certification declaration that you have provided during |
In #1257 (comment), commits that you have mentioned in are all same(a6da273). For setting the CD through application, we will push an example code for reference. |
@halilakpinarr Patch that I provided you in #1257 (comment) has been merged into release/v1.4 in 30af618, please pull the latest changes when testing. |
@halilakpinarr did above comments help resolve the problem? |
@shubhamdp I have not had a chance to try it yet, but I will let you know when I do. |
Describe the bug
We are doing matter bridge development with ESP32 Ethernet.
During commissioning with ESP Matter, we had no problem working with this commit ID. esp-matter commit id -> 7d3ec1e
We migrated ESP Matter to release/v1.4 and now commissioning fails.
We migrated ESP-IDF from v5.2.1 to v5.2.3.
ESP32 -> GeneralCommissioning: Received ArmFailSafe (0s)
chip-tool -> CHIP Error 0x000000AC: Internal error
Environment
ESP-Matter Commit Id: release/v1.4 a6da273
ESP-IDF Commit Id: v5.2.3
SoC (eg: ESP32 or ESP32-C3): esp32
Device Logs (Please attach the log file):
esp32_log.txt
Host Machine OS: Ubuntu 22.04
Home hub apps: apple tv, chip tool
Commissioner's logs if present:
chip-tool-log.txt
ESP MFG tool
esp-matter-mfg-tool --dac-in-secure-cert
-cn "Bridge"
-v 0xFFF2
-p 0x8001
-dm 2
--discriminator 3840
--vendor-name "manufacturer"
--product-name "test device"
--passcode 20202021
--hw-ver-str 1.0
--serial-num 12345678
--product-label "bridge"
--pai
-k ~/esp/esp-matter/connectedhomeip/connectedhomeip/credentials/test/attestation/Chip-Test-PAI-FFF2-8001-Key.pem
-c ~/esp/esp-matter/connectedhomeip/connectedhomeip/credentials/test/attestation/Chip-Test-PAI-FFF2-8001-Cert.pem
-cd ~/esp/esp-matter/connectedhomeip/connectedhomeip/credentials/test/certification-declaration/Chip-Test-CD-FFF2-8001.der
two binaries are flashed on the correct nvs partitions.
SDK Config
CONFIG_ENABLE_ESP32_FACTORY_DATA_PROVIDER=y
CONFIG_ENABLE_ESP32_DEVICE_INSTANCE_INFO_PROVIDER=y
CONFIG_ENABLE_ESP32_DEVICE_INFO_PROVIDER=y
CONFIG_SEC_CERT_DAC_PROVIDER=y
CONFIG_ENABLE_SET_CERT_DECLARATION_API=y
CONFIG_CHIP_FACTORY_NAMESPACE_PARTITION_LABEL="fctry"
CONFIG_DEVICE_VENDOR_ID=0xFFF2
CONFIG_DEVICE_PRODUCT_ID=0x8001
CONFIG_DEFAULT_DEVICE_HARDWARE_VERSION=1
CONFIG_DEVICE_SOFTWARE_VERSION_NUMBER=1
CONFIG_DEVICE_TYPE=14
Regarding Release/v1.4;
I compiled the zigbee bridge application in release/v1.4, I changed only ethernet and telemetry parameters on it.
Comissioning failed again, I think there is a problem with release/v1.4.
The text was updated successfully, but these errors were encountered: