TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: CloudCityEvan on December 11, 2015, 08:26:23 PM

Title: Basic nRF8001 Advertising Data
Post by: CloudCityEvan on December 11, 2015, 08:26:23 PM
When one uses the basic demo (https://codebender.cc/sketch:91073#TinyShield_NRF8001_BLE_Example.ino) with the TinyShield Nordic, what Service UUIDs does it advertise and are those UUIDs documented anywhere?

Are there default Service and Characteristics that the device is set up with?

I'm using LightBlue on iOS to try to detect the device and I can't really tell if it's in the list.

Additionally, can we use lib_aci_set_local_data() to set/change the name of the device?

Thanks!


Title: Re: Basic nRF8001 Advertising Data
Post by: CloudCityEvan on December 11, 2015, 08:53:44 PM
I think I may have answered my own question. I unplugged my device from my computer and disconnected the battery, then plugged it back into the USB and I now have a name and UUID that I can track.

I basically added a call to lib_aci_set_local_data() into UART.h in the same location that RBL does it in their version of the nRF8001 library code and it seems to have worked.

I have a very simple iOS app that I wrote that is giving me the UUID and the device name.

The next step is to see if I can get an iOS app to communicate with it... ;)
Title: Re: Basic nRF8001 Advertising Data
Post by: CloudCityEvan on December 14, 2015, 03:34:20 PM
Is the XML file that was created in nRFgo to define the UUIDs for the UART functionality in the TinyShield NRF8001 BLE available somewhere?

Or are those UUIDs (for services and characteristics) at least documented somewhere?
Title: Re: Basic nRF8001 Advertising Data
Post by: Ben Rose on December 14, 2015, 05:26:10 PM
Hi Evan,

The example uses Nordic's default UART service. Nordic's site has the UUIDs and example iOS/Android code, their github example has the XML file.

https://www.nordicsemi.com/eng/Products/nRFready-Demo-Apps/nRF-UART-App
https://github.com/NordicSemiconductor/ble-sdk-arduino/tree/master/libraries/BLE/examples/ble_uart_project_template

This should get you going.

Ben
Title: Re: Basic nRF8001 Advertising Data
Post by: CloudCityEvan on December 14, 2015, 05:50:30 PM
Hi Ben!

Yeah - after using LightBlue and looking at the Nordic example code I came to that conclusion, and thank you for confirming it! :D