OTA with BLE

gibson12345
Posts: 58
Joined: Wed Jul 17, 2019 11:45 pm

OTA with BLE

Postby gibson12345 » Mon Aug 05, 2019 4:13 am

Hello,

Just wondering how I would setup characteristics and store them in a partition.

I understand how to complete the OTA once I have the file just unsure on how to setup the characteristics for BLE to receive the .bin file.
Are there any examples where object transfer service was used in BLE or some custom service?

Cheers,
Gibson

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

Re: OTA with BLE

Postby chegewara » Sat Aug 10, 2019 11:59 pm

You have to configure characteristics usual way. This is only snippet from app i wrote as proof of concept, maybe it will help you:
https://github.com/espressif/arduino-es ... -447420118

gibson12345
Posts: 58
Joined: Wed Jul 17, 2019 11:45 pm

Re: OTA with BLE

Postby gibson12345 » Sun Aug 11, 2019 11:51 pm

Did you ever develop that code further? Could I look at your BLE setup? How do you use indications I have not been able to find any real documentation on them or how they work.

Did you use the object transfer service or did you write a custom service?

Cheers,
Gibson

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

Re: OTA with BLE

Postby chegewara » Wed Aug 14, 2019 8:45 pm

Yes, i had it working. Currently i am trying to write OTA over BLE example and will create repository on github when i finish it.
It is working now, but after OTA update i have very strange issue, my esp32 with new fw is restarting 3 times with unusual error logs.

I am using custom service and characteristics for that.

gibson12345
Posts: 58
Joined: Wed Jul 17, 2019 11:45 pm

Re: OTA with BLE

Postby gibson12345 » Thu Aug 15, 2019 11:35 pm

Hey chegewara,

Thanks for the reply I would love to have a look at your repo once you've committed to it. Give me a heads up once you've made it public.

Cheers,
Gibson

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

Re: OTA with BLE

Postby chegewara » Sat Aug 17, 2019 8:16 am


Who is online

Users browsing this forum: Baidu [Spider] and 135 guests