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

Hello, where can I find the BLE_GAP.h file or how is it generated and used by nRF8001? Thanks

I am trying to use nRF UART app and nRF8001 chip. But I cannot change the device name. I intend to change the device name after nRF UART app detects the device. Plus when I program the chip, I should be able to put a writeable Device Name.

Parents
  • You should use the nRFgo studio to edit the XML file for the UART over BLE project or the XML file that you are using. The nRFgo studio is available as a free download from the Nordicsemi website

    Open the nRFgo studio application File -> Open -> nRF8001 -> Open your XML file. Then go to nRF8001 configuration -> GAP Settings -> Writeable device name -> Check ON the "over the air" and the "From application controller with Pipe".

    Save your XML file using File -> Save

    Now generate the Service.h file using nRF8001 Setup -> Generate Source files -> Generate only Services.h (Alternately you can run the run_me_compile_xml_to_nRF8001_setup.bat batch file that is present in your application folder)

    This will generate a Pipe ( PIPE_GAP_DEVICE_NAME_SET ) in the Services.h file that allows you to set a new device name using the ACI Set local Data message. (lib_aci_set_local_data() function)

    An example to use the lib_aci_set_local_data function is present in the UART over BLE example.

  • Thank you very much David. That helps me a lot. Could you please also tell how do I configure the nRF8001 chip. And where can I find the GAP settings. I am using the arduino uno board to program the nRF8001 chip. Thanks. I really appreciate all your help.

Reply Children
No Data
Related