This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Changing the Peripheral Name

Part Number: CC2640R2F

Hi Everyone,

I have imported Project Zero and modified as per my application requirement. While I'm scanning BLE through iOS I'm getting advertising local data and device name as per my application design but I'm also getting a peripheral name as "Simple Peripheral". How can I change the Peripheral Name in Project Zero Example.

Thanking you,

Vijay Rakesh.

  • Hi Vijay,

    Correct me if wrong but you are receiving the name "Simple Peripheral"even though you have Project Zero on the device, so you're expecting the device name of "Project Zero"?

    If so, this is addressed in our troubleshooting section in the FAQ thread: e2e.ti.com/.../404236

    Q: When switching sample applications on my board or LaunchPad, my iOS or Android device is not able to "see" new Characteristics or Services

    A: This condition occurs since the smart device caches GATT attribute handles in order to speed up the re-connection process. For example, when reprogramming the device with Project Zero after it was previously running SimplePeripheral will show the "old" Simple GATT Profile characteristics in a BLE app such as Light Blue or BLE Scanner. To force the phone to re-discover the attributes the phone's BT GATT cache must be cleared. If the device was previously paired/bonded, tap the device name in the Bluetooth settings menu and select Forget this Device or Unpair depending on your phone OS version. Next, complete the following procedure based on iOS or Android:
    In iOS 10 and earlier, toggle Aeroplane mode ON then OFF in the Settings or Control Center menu (this also switches the Bluetooth radio off then on). For iOS 11 and later, you must toggle Bluetooth OFF then ON from the Settings > Bluetooth menu due to changes on how the Bluetooth radio is manged in these iOS versions
    On Android, the procedure can vary by make and model, but most recent versions can choose Settings > Apps > Scroll over to All > Choose Bluetooth Share and tap on Clear Cache. Just as with iOS, un-pair the device if it was previously bonded.

    -Sy Su
  • Hi Sy Su,

    As i'm running project zero code, The advert data is "Project Zero R2" and attDeviceName is "Project Zero" while i'm scanning through the ble scanner it is showing advert data as "Project Zero R2" and Device Name as "Project Zero" apart from these i'm also getting peripheral name as "Simple peripheral" . I need to change the peripheral name and i did everything as mentioned above but still observing the peripheral name as "simple peripheral".

    Thanking You,
    Vijay Rakesh
  • Vijay,

    Have you tried the suggested answer above?

    Also it is not clear to me what you mean by "peripheral name".  Can you provide a screenshot of your phone to get a better understanding?

    One thing you could try is adding the device name to the scanRspData (if it isn't already):

    // GAP - SCAN RSP data (max size = 31 bytes)
    static uint8_t scanRspData[] =
    {
     // complete name
     16,
     GAP_ADTYPE_LOCAL_NAME_COMPLETE,
     'P', 'r', 'o', 'j', 'e', 'c', 't', ' ', 'Z', 'e', 'r', 'o', ' ','R','2'
    };

    -Sy Su

  • Hi Vijay,

    A response hasn't been provided in 2 weeks. As a result, I am marking this thread closed.
    Feel free to create a new thread on this topic if it hasn't been resolved.

    -Sy Su