Basic nRF8001 Advertising Data

CloudCityEvan

  • Full Member
  • ***
    • Posts: 14
  • Senior iOS Developer | twitter: @interactivlogic
    • View Profile
    • Cloud City Development
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!


Evan K. Stone | Senior iOS Developer | Cloud City Development | http://www.cloudcity.io


CloudCityEvan

  • Full Member
  • ***
    • Posts: 14
  • Senior iOS Developer | twitter: @interactivlogic
    • View Profile
    • Cloud City Development
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... ;)
Evan K. Stone | Senior iOS Developer | Cloud City Development | http://www.cloudcity.io


CloudCityEvan

  • Full Member
  • ***
    • Posts: 14
  • Senior iOS Developer | twitter: @interactivlogic
    • View Profile
    • Cloud City Development
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?
Evan K. Stone | Senior iOS Developer | Cloud City Development | http://www.cloudcity.io


Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 357
    • View Profile
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


CloudCityEvan

  • Full Member
  • ***
    • Posts: 14
  • Senior iOS Developer | twitter: @interactivlogic
    • View Profile
    • Cloud City Development
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

Evan K. Stone | Senior iOS Developer | Cloud City Development | http://www.cloudcity.io


 

SMF spam blocked by CleanTalk