This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF8001 Attempting to add Custom Services

Hi,

I'm using a NRF8001 shield with an Arduino Leonardo, everything connection wise seems to be working. I'm using the "ble_my_project_template" and uploading various services.h files from other demos. I can see on my iPhone that the BLE devices shows up as a temperature monitor, UART, etc.

My problem is that I have been building my own services.h file using the nRFgo Studio and it compiles and uploads to the arduino (and supposedly the nrf8001) but only the name of the device changes. The available services and characteristics do not change.

My end goal is to build a set of custom Services to allow the iPhone to connect to the ble device and read sensor data. Is there an obvious reason why I can't update the services.h? Is there some sort of tutorial for this?

Thanks,

Matt

Parents
  • You can use the nRFgo studio version 1.16.1 to add the Service Changed Characteristic in nRF8001 Configuration -> GAP Settings -> Advanced GATT Settings Select the option "Add Service Changed Characteristic".

    Otherwise you can switch off and on Bluetooth as RS above suggested and it should update the cached Services and Characteristics.

    Additionally when you are using the nRFgo studio to build your services and characteristics, remember to run the run_me_compile_xml_to_nRF8001_setup.bat to convert the xml file from nRFgo studio to the services.h and services_lock.h OR use the nRFgo studio -> Generate Source files -> Generate only services.h

    Let me know how it works for you.

Reply
  • You can use the nRFgo studio version 1.16.1 to add the Service Changed Characteristic in nRF8001 Configuration -> GAP Settings -> Advanced GATT Settings Select the option "Add Service Changed Characteristic".

    Otherwise you can switch off and on Bluetooth as RS above suggested and it should update the cached Services and Characteristics.

    Additionally when you are using the nRFgo studio to build your services and characteristics, remember to run the run_me_compile_xml_to_nRF8001_setup.bat to convert the xml file from nRFgo studio to the services.h and services_lock.h OR use the nRFgo studio -> Generate Source files -> Generate only services.h

    Let me know how it works for you.

Children
No Data
Related