Closed 404-code closed 1 year ago
@404-code did you run esp-idf/install.sh
script?
For applications in connectedhomeip repository, please follow steps mentioned in https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/esp32/setup_idf_chip.md
@404-code did you run
esp-idf/install.sh
script?
thanks first, I have already installed the idf and matter environment (./install.sh esp32c3 and ./scripts/bootstrap). After I run export.sh and activate.sh in same terminal, it prompt that message when I use idf.py."Please use idf.py only in an ESP-IDF shell environment."
This is because you are using the latest IDF and you do not have esp_idf_monitor
python package installed in matter python environment.
You may hit few more issues faced in https://github.com/project-chip/connectedhomeip/issues/27313. I'd suggest you take a look at that as well.
This is because you are using the latest IDF and you do not have
esp_idf_monitor
python package installed in matter python environment.You may hit few more issues faced in project-chip/connectedhomeip#27313. I'd suggest you take a look at that as well.
thanks, it works. But I face another promble, I couldn't commission it by apple or google home. The error message is:
I (447495) chip[DL]: Confirm received for CHIPoBLE TX characteristic indication (con 1) status= 14
I (447495) CHIP[DL]: Write request received for CHIPoBLE RX characteristic con 1 12
I (447505) chip[EM]: >>> [E:51114r S:0 M:231935804] (U) Msg RX from 0:E532F14AB282BC0B [0000] --- Type 0000:40 (SecureChannel:StatusReport)
E (447525) chip[SC]: Received error (protocol code 2) during PASE process: 38
E (447535) chip[SC]: Failed during PASE session setup: 38
E (447535) chip[SVR]: Commissioning failed (attempt 1): 38
it seems that the password is not 20202021. I don't change any configuration, just use demo default menuconfig.I tried chip-tool on raspberrypi, and I intentionally used the wrong password. Finally, I got the same error log.
the chip repo is the tag: v1.1.0.1, I just replace the scripts/setup/requirements.esp32.txt with the file in master branch.
@404-code Please attach complete logs for better understanding. Can you try commissioning with chip-tool? For, Home apps, which onboarding code you are using?
I may have a guess but not sure, if thats because of this... try enabling CONFIG_MBEDTLS_HKDF_C=y
option.
@shubhamdp I enable the CONFIG_MBEDTLS_HKDF_C=y
option, it works. Now I would close the issue. Thank you.
Result
I tried the release/v5.1 branch, and it prompted "
Please use idf.py only in an ESP-IDF shell environment.
" It works by idf v4.4.5Envirionment
esp-idf: release/v5.1(79b1379662) v4.4.5(ac5d805d0e) matter sdk: v1.1.0.1 project: lighting demo (connectedhomeip/examples/lighting-app/esp32)
Step
Other
I have compiled successfully once, but the device couldn't be commissioned. Error info:
Here is the log: