Reply
Posts: 47
Registered: ‎09-09-2015

Android Application for Blue Gecko's Available

[ Edited ]

The Blue Gecko application for Android has been updated and contains the following features:

 

- Over-the-Air firmware update for Blue Geckos

- Attribute Protocol MTU change feature added

- Connection interval change feature added

- Refresh GATT services feature added

- Bug fixes and improvements

 

The application is available in the Google Play store and the source code in the documentation 
and software download pages.

 

Google Play Store

 

Blue Gecko Software Downloads

 

Let us know your feedback and any features you would like to see in the application.

The iOS version is also being updated and available soon.

Posts: 3
Registered: ‎02-11-2015

Re: Android Application for Blue Gecko's Available

I downloaded the file from menu
     "Blue Gecko Software Downloads" -> "Silicon Labs' Android Application for Blue Gecko
      but it is old version 1.2 from Apr-2016
     (http://www.silabs.com/documents/login/software/Android-1.2.zip)

Is the link correct?


Posts: 2,672
Registered: ‎09-01-2015

Re: Android Application for Blue Gecko's Available

Posts: 3
Registered: ‎02-11-2015

Re: Android Application for Blue Gecko's Available

It is just .apk. that looks same as version 1.3 from Android PlayStore.

But I asked about sources.

Posts: 2,672
Registered: ‎09-01-2015

Re: Android Application for Blue Gecko's Available

OK apparently a wrong file was uploaded. I will try to get this fixed asap.

Posts: 7
Registered: ‎08-10-2016

Re: Android Application for Blue Gecko's Available

The source code for 1.3 doesn't seem to be available.

Posts: 2,672
Registered: ‎09-01-2015

Re: Android Application for Blue Gecko's Available


Corvus wrote:

The source code for 1.3 doesn't seem to be available.


We're working on it. There's some issues related to the source code distribution (not the source itself) that need to be sorted out first. 

Posts: 2
Registered: ‎04-20-2017

Re: Android Application for Blue Gecko's Available

Hi,

I tried to use the OTA from the Blue Gecko Android App to update the Blue Gecko BGM121 with no luck.

 

In the Bluetooth Browser, I picked the "Thermometer Example" device.

On the menu, I picked OTA --> partial OTA

I set the folder and the App fields with the relevant info. 

I kept all other fields in their default values and pressed the OTA

I got:
bg_err_unspecific alarm and got disconnected...

 

Any idea what is the issue here?

Did anyone here manage to perform OTA with the Android App?

Thanks,

Harel

Posts: 2,672
Registered: ‎09-01-2015

Re: Android Application for Blue Gecko's Available

I just tested partial OTA with the "SoC Smartphone" example from SDK 2.3.1 and it worked without any issues. I used BGM121 in my test.

 

When performing partial OTA, it is important to make sure that the new application image (app.ebl) is built with the same SDK version that the firmware that is currently installed on the target.

 

 

 

Posts: 7
Registered: ‎08-10-2016

Re: Android Application for Blue Gecko's Available

I've found the OTA transfer to work flawlessly as well.  However I'm trying to piece together the extent of the security available.

 

I see the options for ensuring a bonded and encrypted connection for the transfer but are there any options for the OTA to ensure that only signed and valid firmware is transferred and/or executed when not using Zigbee that Im missing?

 

Thanks.

Posts: 2,672
Registered: ‎09-01-2015

Re: Android Application for Blue Gecko's Available

Signing of update images and other advanced features are available when using Gecko bootloader. Gecko bootloader is common bootloader used by all of our wireless stacks, it was released quite recently (same time as the 2.3.1 BLE SDK).

 

Have a look at following appnote for more info:

https://www.silabs.com/documents/public/user-guides/ug266-gecko-bootloader-user-guide.pdf

 

Posts: 2,672
Registered: ‎09-01-2015

Re: Android Application for Blue Gecko's Available

There is one minor change needed in the BGScript examples (SDK 2.3.1) to make the OTA work smoothly with the Blue Gecko app:

 

 

# This event indicates that a remote client is attempting to write a value of 
# an attribute in the local GATT database, where the attribute was defined 
# in the gatt.xml file to have type = "user".
event gatt_server_user_write_request(connection, characteristic, att_opcode, offset, value_len, value_data)

	# Check if the user-type OTA Control Characteristic was written. 
    if characteristic = ota_control then
		call gatt_server_send_user_write_response(connection,characteristic,0) #added
        boot_into_dfu = 1
		call endpoint_close(connection)
        # After the connection is closed, the "le_connection_closed" event is raised 
		# which then boots the device into DFU mode.
    end if 
        
end 

 

The code snippet above is from thermometer script example. I have added a call to gatt_server_send_user_write_response so that the write request is acknowledged before closing connection.  Only one line added to the code, otherwise the example is unchanged.

Posts: 19
Registered: ‎10-11-2015

Re: Android Application for Blue Gecko's Available

Hi,

 

In my device the app result to be incompatible.

What are the requirements to install the app?

 

 

P.S.:

I have an Archos 55 platinum with Android 5.1

Posts: 2,672
Registered: ‎09-01-2015

Re: Android Application for Blue Gecko's Available

The Android app compatibility requirements:

Minimum SDK = 19, which is Android 4.4.4

 

So it should work in your Android 5.1 at least in terms of SDK compatibility.

Posts: 47
Registered: ‎09-09-2015

Re: Android Application for Blue Gecko's Available

 

Also we have published the source code the the various Android and iOS applications in github.

The Blue Gecko iOS application is going through updates and the target to have it available in Apple store and github in 9th June.

 

Blue gecko Android:

Thunderboard Android:

Thunderboard iOS:

Posts: 19
Registered: ‎10-11-2015

Re: Android Application for Blue Gecko's Available

@MikkoSavolainen@JaakkoVthanks for your response.

 

I found the issue: my Phone don't have bluetooth low energy!

@MikkoSavolainenit is possible to run Blue Gecko and Tuntherboard app on PC, maybe run the app to debug it? What software can I use for this task?

 

 

Posts: 47
Registered: ‎09-09-2015

Re: Android Application for Blue Gecko's Available

Hi,

 

The source code of the apps are in our github and you can use Android Studio or xCode and run the app on an emulator on a PC and debug it.

 

Android Studio

Apple xCode

Posts: 7
Registered: ‎06-14-2017

Re: Android Application for Blue Gecko's Available

I am having trouble with the android project on github.  If I downloaded a zip file it is invalid.  If I use the github desktop, the project has errors and will not load.  In both cases there seems to be a problem with file names too long.  Any ideas? 

Posts: 2,807
Registered: ‎08-25-2015

Re: Android Application for Blue Gecko's Available

Hi,

 

Thanks for reporting this. Indeed I have the same problem when downloading the zip. I asked internally to get it fixed.

 

Regards,

Tiago

Posts: 2,807
Registered: ‎08-25-2015

Re: Android Application for Blue Gecko's Available

Hi,

 

We removed the builds from the repo so now the zip works fine. It also decreased the size from 88MB to just under 4MB.

 

I was able to unzip the previous version with 7-zip by the way, but windows built-in extraction tool was giving the error.

 

Regards,

Tiago