espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
257 stars 154 forks source link

OTA MQTT with AWS did not work ESP32-C3 (CA-200) #103

Closed YogeshG30 closed 2 years ago

YogeshG30 commented 2 years ago

Dear All,

We are working on BLE Wi-Fi Gateway using ESP32-C3 (ESp32-C3-DevKitM-1).

While working on OTA MQTT functionality with esp-idf 4.4 and Esp-aws-iot, we came across following observation

We have installed esp-idf from "Epressif-IDE 2.4.0 with ESP-IDF 4.4 Windows 10, size 1GB" option of esp-idf windows installer link.

For ota_mqtt reference code, functionality we are using latest Esp-aws-iot from below link https://github.com/espressif/esp-aws-iot/tree/release/beta

We compiled ota_mqtt and tested OTA functionality using ESP32.

For ota_mqtt compiling it is giving file missing error for ESP32-C3. We received patch from ESP and now code is compiling.

During signing image using Sign a new firmware image for me --> Code signing profile --. Create a code signing profile --> Device hardware platform, ESP32-C3 is not present in the list.

Then we understood following guideline

Tried Windows Simulator code signing profile to produce a compatible signature. But OTA did not work with following error.

E (514394) OTA: Failed to decode Base64 data: base64Decode returned error: error=1 E (514404) OTA: Failed to extract document parameter: error=4, paramter key=sig-sha256-ecdsa I (514404) OTA: Failed to parse JSON document as AFR_OTA job: DocParseErr_t=4 E (514414) OTA: Failed to parse custom job document: OtaJobParseErr_t=OtaJobParseErrUnknown, jobIdLength=17 E (514424) OTA: Failed to parse the job document after parsing the job name:

Tomorrow we are going to take deep understanding and will give further attempt.

From ESP side any reference guidelines available for OTA from AWS for ESP32-C3, then please share with us so it will speed up our development.

Thanks....

YogeshG30 commented 2 years ago

Today OTA from AWS works with Code Signing with Windows Simulator.....