A prototype application that demonstrates OTA Requestor capabilities.
Before moving ahead, make sure you have OTA Provider is commissioned and running.
idf.py build
works!idf.py -p <OTARequestorSerialPort> flash monitor
./out/debug/chip-tool pairing ble-wifi 12346 <ssid> <passphrase> 20202021 3840
After commissioning is successful, announce OTA provider's presence using chip-tool. On receiving this command OTA requestor will query for OTA image.
./out/debug/chip-tool otasoftwareupdaterequestor announce-ota-provider 12345 0 0 0 12346 0
Once the transfer is complete, OTA requestor sends ApplyUpdateRequest command to OTA provider for applying the image. Device will restart on successful application of OTA image.
./out/debug/chip-ota-provider-app -f hello-world.bin
./out/debug/chip-tool pairing onnetwork 12345 20202021
User can generate the Matter OTA image by simply enabling CONFIG_CHIP_OTA_IMAGE_BUILD
config option. OTA image is generated in build
directory with name <project name>-ota.bin
. This image then can be used with OTA Provider Application.
Please make sure that version number is set to correct value. Use CONFIG_DEVICE_SOFTWARE_VERSION
and CONFIG_DEVICE_SOFTWARE_VERSION_NUMBER
config options for setting software version.
Matter OTA image can also be generated using ota_image_tool.py script.