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.

sample code for device name change through OTA not working

Other Parts Discussed in Thread: CC2540

Hi ,

sample code (present in the following link ) for device name change through OTA not working ! I have replaced the SimpleBLEpheripheral.C present in the zip file with the SimpleBLEpheripheral.C in the project simple_BLE_pheripheral.

link:

http://processors.wiki.ti.com/index.php/File:Cc2540_deviceNameWrite.zip

Am using CC2540 DK ,in the central device am running hostTestReleaseAll app.


In the link it is mentioned as 
" it is necessary to first change the permission to writable with 
GGS_SetParameter( GGS_W_PERMIT_DEVICE_NAME_ATT, sizeof ( uint8 ), &devNamePermission );
Additionally, you can register a callback function with GGS to notify the application when the device name has been changed."

But I cannot find these lines in the code i have downloaded .

Upon reading 0x0003 it shows Success but nothing is displayed .Upon writing "PERMISSION DENIED " !!!!

Any help ?

Thanks in Advance,
Senthil. 

  • Hello Senthil,

    I'm very interested as well to find a way to change the Keyfob name (name is harcoded)

    If I'm correct, the code provided to change the name is already available in the keyfob demo sample code is'nt it?

    GGS_SetParameter( GGS_DEVICE_NAME_ATT, GAP_DEVICE_NAME_LEN, attDeviceName );

    I do not understand what we can do with this code.

    The name is set when the device is started BUT is it possible to change the name from an external app (iPhone4S application) and keep the new name persistent after device (keyfob) has restarted ?

    Tx a lot for your help

    -Fred

  • Hi Visticote ,

    Sorry for late reply ,

    There are so many way to transmit the packet of data (20 bytes ) from the keyfob to dongle or the other way .I have used GATT_notification () to send the data from keyfob to dongle ,But i don't know how can read the data that was sent by GATT_notification on the other end ( in the Dongle ) to change the name.

    If any ti guys put some light over this it will much helpful 

    Thanks ,

    Senthil kumar