OTA Fail

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

When tracking the OTA process, I found that OTA verify was passed, "ws_upgrade_indicationconf ()" has also been called, and my android APP indicate "update success",

But even after restarting the APP and resetting the device, APP can not scan the device

So, OTA should fail to update to the new firmware ,

I debug the OTA process using BCM20737TAG, but in fact firmware development base on BCM20736 (as sample: ota_firmware_upgrade),

There are any problem?

0 Likes
1 Solution
Anonymous
Not applicable

Hi boont,

Thank you for your support!

Now, OTA function is OK, sorry! there is a bug in my android App.

View solution in original post

0 Likes
16 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

Perhaps you may want to explore some of the android-related links contained in the below thread.

OTA support for Android and iOS (April 2016)

0 Likes
Anonymous
Not applicable

Hi  boont,

I copy the "ws_upgrade_ota.c"/"ws_upgrade.c" to my project, and not change it except output some debug information,

During the OTA process, "ws_upgrade_indicationconf ()" has been called, why the OTA had not success?

0 Likes
Anonymous
Not applicable

Hi boont,

I used the follow .bin file as OTA target file, there are any problem?

BattManager-BCM920736TAG_Q32-rom-ram-Wiced-release.ota.bin

pastedImage_1.png

0 Likes
Anonymous
Not applicable

Hi,

any comment?

0 Likes

There could be many reasons why OTA may fail. First of all, can you let me know what is your environment:

1) are you doing this on your product board? or tag3 board?

2) if you are doing it on tag3 board, did you succeed?

3) are you using the Android OS (via a APP in a mobilephone) to update?

4) if you are using a android app, where did you get it?

5) did you increase the major and/or minor version?

Below is a good source to refer to, but it is using Win OS and a BT dongle to do the OTA updating.

How to do OTA: Step by Step with PD

And saving the .BIN file to your "OTA work folder" is correct.

Anonymous
Not applicable

Hi boont,

1.I debug the OTA process using BCM20737TAG (WICED Smart Tag),

2.Never successful.

3.Update by android APP, WICED Smart BCM92073X OTA Firmware Upgrade (2) https://community.cypress.com/servlet/JiveServlet/download/9499-6616/AndroidOtaSampleCodes_V1.1.zip

step_1: I build the project with name="Batt" / Major=1/Minor=1, and connect with APP, all is OK,

step_2: I build the project with name="Battery" /Major=1/Minor=0, and connect to APP, then active the Update process.

attched the log:

pastedImage_2.png

0 Likes

Are "Batt" and "Battery" your product IDs? Can you set them to be the same, say "Battery"?

0 Likes
Anonymous
Not applicable

Only change below String, Just want to see the name be changed after OTA

pastedImage_0.png

0 Likes

I noticed from your post #6 that the link actually discussed about Secured OTA (SOTA).

I assumed you are doing OTA, the non-secured type.

Can you download the below and try instead?

https://community.cypress.com/servlet/JiveServlet/download/9499-5157/OTA_Android_Sample_NoSecure.zip

0 Likes
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

Which version of the SDK are you using?

0 Likes
Anonymous
Not applicable

v 2.2.3

pastedImage_0.png

0 Likes

Did you do a power reset after you performed the updating?

In order to be consistent, you will need to do a "clean" before building.

0 Likes
Anonymous
Not applicable

I download the firmware by Build, then the firmware run auto.

If press the RESET key, smart phone can NOT scan the TAG again, need re-download.

So I guess we are not the same page,

I debug OTA using BCM20737TAG, BCM20737 connect with Computer by USB,

0 Likes
Anonymous
Not applicable

pastedImage_0.png

I am doing non-secured OTA, are you find some errors?

0 Likes

Can you use the below instead which is the recommended version for SDK 2.x?

https://community.cypress.com/servlet/JiveServlet/download/2011-3093-9499-6616/AndroidOtaSampleCodes...

Which android_version and mobile phone are you using?

0 Likes
Anonymous
Not applicable

Hi boont,

Thank you for your support!

Now, OTA function is OK, sorry! there is a bug in my android App.

0 Likes