OTA with Classic Bluetooth

Ravishant
Posts: 2
Joined: Tue Jun 11, 2019 11:19 am

OTA with Classic Bluetooth

Postby Ravishant » Tue Jun 11, 2019 12:07 pm

Hi all,
I have been trying to implement OTA via Classic Bluetooth. Somehow, I got the data bytes to be delivered to ESP via Android App. The code of OTA is attached below:
OTA.c
(10.41 KiB) Downloaded 863 times
Now I am getting checksum issue as below:
I (151164) OTA Function : Total Write binary data length : 719696
I (151164) esp_image: segment 0: paddr=0x00110020 vaddr=0x00000000 size=0x00000 ( 0)
I (151164) esp_image: segment 1: paddr=0x00110028 vaddr=0x00000000 size=0x00000 ( 0)
I (151174) esp_image: segment 2: paddr=0x00110030 vaddr=0x00000000 size=0x00000 ( 0)
I (151184) esp_image: segment 3: paddr=0x00110038 vaddr=0x00000000 size=0x00000 ( 0)
I (151194) esp_image: segment 4: paddr=0x00110040 vaddr=0x00000000 size=0x00000 ( 0)
I (151204) esp_image: segment 5: paddr=0x00110048 vaddr=0x00000000 size=0x00000 ( 0)
E (151214) esp_image: Checksum failed. Calculated 0xef read 0x0
E (151214) OTA Function : esp_ota_end failed!

Image

Can someone guide me to program ESP32 OTA via Classic Bluetooth?

Thanks
Ravishant
Attachments
Screenshot from 2019-06-11 17-10-39.png
Screenshot from 2019-06-11 17-10-39.png (92.14 KiB) Viewed 6185 times

chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

Re: OTA with Classic Bluetooth

Postby chegewara » Tue Jun 11, 2019 8:51 pm

Can you confirm that your binary size is:
Total Write binary data length : 719696

Ravishant
Posts: 2
Joined: Tue Jun 11, 2019 11:19 am

Re: OTA with Classic Bluetooth

Postby Ravishant » Wed Jun 12, 2019 7:44 am

Yes, I'm sure, my file size is 719696 bytes.
Screenshot from 2019-06-12 13-10-52.png
Screenshot from 2019-06-12 13-10-52.png (38.08 KiB) Viewed 6152 times

kengster
Posts: 7
Joined: Fri Dec 06, 2019 8:32 pm

Re: OTA with Classic Bluetooth

Postby kengster » Thu Jan 09, 2020 2:45 pm

Hi! Did you get anything?

I am interested in bluetooth OTA

Cheers.

chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

Re: OTA with Classic Bluetooth

Postby chegewara » Thu Jan 09, 2020 3:06 pm

Ravishant wrote:
Tue Jun 11, 2019 12:07 pm
Hi all,
I have been trying to implement OTA via Classic Bluetooth. Somehow, I got the data bytes to be delivered to ESP via Android App. The code of OTA is attached below:
OTA.c

Now I am getting checksum issue as below:
I (151164) OTA Function : Total Write binary data length : 719696
I (151164) esp_image: segment 0: paddr=0x00110020 vaddr=0x00000000 size=0x00000 ( 0)
I (151164) esp_image: segment 1: paddr=0x00110028 vaddr=0x00000000 size=0x00000 ( 0)
I (151174) esp_image: segment 2: paddr=0x00110030 vaddr=0x00000000 size=0x00000 ( 0)
I (151184) esp_image: segment 3: paddr=0x00110038 vaddr=0x00000000 size=0x00000 ( 0)
I (151194) esp_image: segment 4: paddr=0x00110040 vaddr=0x00000000 size=0x00000 ( 0)
I (151204) esp_image: segment 5: paddr=0x00110048 vaddr=0x00000000 size=0x00000 ( 0)
E (151214) esp_image: Checksum failed. Calculated 0xef read 0x0
E (151214) OTA Function : esp_ota_end failed!

Image

Can someone guide me to program ESP32 OTA via Classic Bluetooth?

Thanks
Ravishant
I missed it earlier, but it looks like android app is sending additional packet at the end and this may be the issue.
If you count all bytes: 799 * 900 + 596 = 719696, then last packet with 9 bytes is not necessary.

Who is online

Users browsing this forum: No registered users and 71 guests