Hi,
I've been able to compile, modify (added temperature + contact sensors), upload and commission the light example from espressif's matter-sdk into HomeAssistant. This one https://github.com/espressif/esp-matter ... ples/light - so, not the connectedhomeip light* examples. I'd like to be able to upload firmware updates as easily as possible. The documentation I've read describes setting CONFIG*OTA and CONFIG*SOFTWARE*VERSION* flags in sdkconfig and using linux providers or ESPrainmaker ... but it's all a bit over my head. Can someone kindly show me the steps (e.g. code to add to app_main.cpp, if needed; flags to set ...) to support OTA updates as simply as possible. If there's a way to get HomeAssistant to push firmware to the esp32, I'd do that. But, maybe not possible, `cause it sounds like the esp32 as an OTA requestor has to fetch firmware.
Thanks,
--Antonio
esp-matter sdk and (simple) OTA update
-
- Posts: 5
- Joined: Fri Feb 23, 2024 10:49 am
-
- Posts: 5
- Joined: Fri Feb 23, 2024 10:49 am
Re: esp-matter sdk and (simple) OTA update
FYI - I got it all to work.
In case anyone else is interested, I did the following ...
- using menuconfig, set matter OTA flag, checked the REQUESTOR flag is set
- compiled esp32 firmware (which generates OTA image in build/)
- initial erase + flash firmware on esp32 - e.g project v1.0
- update project version in CMakelist - project v2.0
- build esp32 firmware again
- compiled linux ota-provider-app
- using Home Assistant, commissioned both
- using Home Assistant, shared both (but one at a time)
- using chip-tool, commissioned with HA pairing code (matched the node # that HA assigned - probably not necessary)
- using chip-tool, wrote ota-provider acl
- using chip-tool, announced availability of firmware to requestor
The announcement triggered esp32 to fetch firmware from my PC with BLE adapter.
Success.
I initially tried using ESPrainmaker but kept getting "not authorized to perform this operation" when I tried to upload a firmware image.
Anyone know why/how to fix that?
In case anyone else is interested, I did the following ...
- using menuconfig, set matter OTA flag, checked the REQUESTOR flag is set
- compiled esp32 firmware (which generates OTA image in build/)
- initial erase + flash firmware on esp32 - e.g project v1.0
- update project version in CMakelist - project v2.0
- build esp32 firmware again
- compiled linux ota-provider-app
- using Home Assistant, commissioned both
- using Home Assistant, shared both (but one at a time)
- using chip-tool, commissioned with HA pairing code (matched the node # that HA assigned - probably not necessary)
- using chip-tool, wrote ota-provider acl
- using chip-tool, announced availability of firmware to requestor
The announcement triggered esp32 to fetch firmware from my PC with BLE adapter.
Success.
I initially tried using ESPrainmaker but kept getting "not authorized to perform this operation" when I tried to upload a firmware image.
Anyone know why/how to fix that?
Re: esp-matter sdk and (simple) OTA update
> The documentation I've read describes setting CONFIG*OTA and CONFIG*SOFTWARE*VERSION* flags in sdkconfig and using linux providers or ESPrainmaker
Can you point me to the documentation?
Can you point me to the documentation?
-
- Posts: 5
- Joined: Fri Feb 23, 2024 10:49 am
Re: esp-matter sdk and (simple) OTA update
It says you can use linux OTA provider or ESP32 OTA provider. There is no any mention of ESPRainmaker. You cannot use ESPRainmaker.
Who is online
Users browsing this forum: Baidu [Spider] and 76 guests