🎁📬❄️📦 Holiday Shipping Deadlines are approaching! International customers and domestic ground - get your orders in 12/9/2020 📦❄️📬🎁
0

Can't update BLE Friend firmware
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't update BLE Friend firmware

by pandas0629 on Thu Mar 26, 2020 12:30 pm

I have been trying to upgrade the firmware on the nRF51822 Bluefruit LE Friend32 with the Bluefruit Connect app v3.3.1 installed on my Samsung Galaxy S9. It currently has version 0.6.2 installed from the factory. When the upgrade begins and the device switches to the DFU mode, I can't connect anymore and get a GATT error. Help needed

pandas0629
 
Posts: 2
Joined: Thu Mar 26, 2020 12:26 pm

Re: Can't update BLE Friend firmware

by mikeysklar on Thu Mar 26, 2020 4:26 pm

Which version of the BLE Friend do you have? The first generation nRF1822 part is limited to v0.5.0.

For the V1 (blue PCB) Bluefruit LE Friend, which is based on the first generation 16KB SRAM nRF51822 parts, you must use the 0.5.0 or lower series firmware.


If you do have the newer 32k SRAM boards you should be able try up to ver 0.7.0.

https://github.com/adafruit/Adafruit_Bl ... E_Firmware
Attachments
6F4DBF7B-78FF-4380-B5D7-D04659792909.jpeg
6F4DBF7B-78FF-4380-B5D7-D04659792909.jpeg (154.82 KiB) Viewed 208 times

mikeysklar
 
Posts: 2398
Joined: Mon Aug 01, 2016 8:10 pm

Re: Can't update BLE Friend firmware

by ronald_b on Mon Apr 13, 2020 2:15 pm

Having the exact same problem.

Also have a Samsung Galaxy S9, Trying to update my Bluefruit LE UART Friend running 0.6.2 (Factory Installed).

I am able to connect with Bluefruit LE Connect v3.3.1 but when I try to upgrade the firmware even to 0.6.5 I see:

Starting DFU
Starting Boot Loader
Connecting

Upload Failed
GATT ERROR

Not sure what else to try.

Thanks,

ronald_b
 
Posts: 2
Joined: Mon Apr 13, 2020 2:01 pm

Re: Can't update BLE Friend firmware

by ronald_b on Mon Apr 13, 2020 2:53 pm

So, I just tried updating the firmware using my wife's Pixel 3 and it works fine.

I suspect its a problem with the Samsung Galaxy S9

ronald_b
 
Posts: 2
Joined: Mon Apr 13, 2020 2:01 pm

Re: Can't update BLE Friend firmware

by plc_gremlin on Sat Oct 10, 2020 7:40 pm

I am going to post this hear since it sounds like the same problem in case anyone else runs into it.
I have a Samsung Galaxy S10 and cannot update FW on the Bluefruit LE UART Friend.
Product is the https://www.adafruit.com/product/2479
It pops up with the "GATT ERROR".
I can use a Samsung S7 and it works fine.
We have updated FW on well over 100 of these with an old android tablet and never had trouble. Must be something up with newer Android releases and the Android Bluefruit Connect App. Not sure if its worth anyone's time to look into it but other people will likely run into this.

plc_gremlin
 
Posts: 23
Joined: Mon Jul 09, 2012 12:34 pm

Re: Can't update BLE Friend firmware

by jevada on Sun Oct 11, 2020 9:15 am

plc_gremlin wrote:I have a Samsung Galaxy S10 and cannot update FW on the Bluefruit LE UART Friend.
<snip>
Must be something up with newer Android releases

The BT implementation in the Galaxy S10 is awful. At work (I do IoT development for a living) we see a lot of problems with Samsung's S10. For example: when scanning for BLE device, the galaxy simply stops scanning when it discovered 30 devices. The application needs to empty the BT cash before it can find other devices which makes normal discovery next to impossible if you are in a BT mesh environment (mesh uses the advertisement mechanism to communicate through the network).

Can you empty your BT cash before starting the Bluefruit Connect app? Would be interesting to see if that improves anything...

jevada
 
Posts: 143
Joined: Fri Dec 15, 2017 5:29 am

Re: Can't update BLE Friend firmware

by plc_gremlin on Sat Oct 24, 2020 4:39 pm

Just an update on this.
I had a chance to try this again on Samsung S10 and cleared the Bluetooth Cache first.
Opened Adafruit Bluefruit Connect App.

Started the firmware update process.
it makes it through the
"Starting Bootloader..."

then it stays on "Connecting..." for approx 20 seconds.
Never makes it past 0%.

Then displays:
Upload Failed
GATT ERROR

plc_gremlin
 
Posts: 23
Joined: Mon Jul 09, 2012 12:34 pm

Re: Can't update BLE Friend firmware

by mikeysklar on Mon Oct 26, 2020 11:24 am

@plc_gremlin,

Sorry to hear the cache clear did not work. It seems like a lot of people are suffering from the Android BLE implementation. Maybe it makes sense to use a non-android device to update your BLE32 friend firmware?

somewhat helpful github thread and article:
https://github.com/android/connectivity ... /issues/18
https://medium.com/@martijn.van.welie/m ... 36dcd53b02

Our troubleshooting advice is quite limited to cycle bluetooth, cycle power and bluetooth cache clear.

https://learn.adafruit.com/bluefruit-le ... leshooting

mikeysklar
 
Posts: 2398
Joined: Mon Aug 01, 2016 8:10 pm

Re: Can't update BLE Friend firmware

by plc_gremlin on Mon Oct 26, 2020 8:49 pm

Thanks for looking into it. I read through those links and it seems Android BLE is a bugger.
Its not a problem for us right now. Like I mentioned, we use alot of these and have older Android devices that will still flash the FW. We have been using the original Bluefruit Connect app codebase for our custom Android app and it still works fine once the FW is upgraded. Even on the S10, I have no trouble connecting with UART service and transferring data.
If I had time, I wish I could compile a clean version of Adafruit Bluefruit Connect App and see if it would flash FW on S10.
This one:
https://github.com/adafruit/Bluefruit_LE_Connect_Android

plc_gremlin
 
Posts: 23
Joined: Mon Jul 09, 2012 12:34 pm

Please be positive and constructive with your questions and comments.