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:
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!
Can someone guide me to program ESP32 OTA via Classic Bluetooth?
Thanks
Ravishant
OTA with Classic Bluetooth
OTA with Classic Bluetooth
- Attachments
-
- Screenshot from 2019-06-11 17-10-39.png (92.14 KiB) Viewed 6185 times
Re: OTA with Classic Bluetooth
Can you confirm that your binary size is:
Total Write binary data length : 719696
Re: OTA with Classic Bluetooth
Yes, I'm sure, my file size is 719696 bytes.
Re: OTA with Classic Bluetooth
Hi! Did you get anything?
I am interested in bluetooth OTA
Cheers.
I am interested in bluetooth OTA
Cheers.
Re: OTA with Classic Bluetooth
I missed it earlier, but it looks like android app is sending additional packet at the end and this may be the issue.Ravishant wrote: ↑Tue Jun 11, 2019 12:07 pmHi 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!
Can someone guide me to program ESP32 OTA via Classic Bluetooth?
Thanks
Ravishant
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