esp-matter sdk and (simple) OTA update

antonio.asaro.ca
Posts: 5
Joined: Fri Feb 23, 2024 10:49 am

esp-matter sdk and (simple) OTA update

Postby antonio.asaro.ca » Fri Feb 23, 2024 11:04 am

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

antonio.asaro.ca
Posts: 5
Joined: Fri Feb 23, 2024 10:49 am

Re: esp-matter sdk and (simple) OTA update

Postby antonio.asaro.ca » Mon Feb 26, 2024 5:44 pm

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?

rohit.j
Posts: 2
Joined: Tue Feb 27, 2024 5:49 am

Re: esp-matter sdk and (simple) OTA update

Postby rohit.j » Tue Feb 27, 2024 6:02 am

> 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?

antonio.asaro.ca
Posts: 5
Joined: Fri Feb 23, 2024 10:49 am

Re: esp-matter sdk and (simple) OTA update

Postby antonio.asaro.ca » Wed Feb 28, 2024 8:29 pm


rohit.j
Posts: 2
Joined: Tue Feb 27, 2024 5:49 am

Re: esp-matter sdk and (simple) OTA update

Postby rohit.j » Mon Mar 04, 2024 5:51 am

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