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

Is it possible to change GAP device name in runtime without system reset?

Hi, I am developing on a nrf51822 based board using s110 softdevice v. 6.0.0. In my program I need to change the bluetooth GAP device name in runtime during connection session. I tried to change it by sd_ble_gap_device_name_set() and sd_ble_gap_conn_param_update() funtions with no effect. Could you tell me please, if is it possible to change the GAP device name during bluettoth connection without system reset?

Thank you very much! Regards, Radek

Parents
  • Changing Device Name at Runtime: Yes, provided the connection should not exist at that instance of time.

    So probable sequene should be:

    • Disconnect, - Stop doing adv. -> Change name and set new gap_device name -> update param-> also update the adv params for the recently changed name.
    • Now start adv -> you should see the updated name so broadcasting.

    I know i have given then answer briefly, i hope you will figure it out. And that how i also carried out for not only changing name but also to change some bits in data packet which was essential for the corresponding project.

Reply
  • Changing Device Name at Runtime: Yes, provided the connection should not exist at that instance of time.

    So probable sequene should be:

    • Disconnect, - Stop doing adv. -> Change name and set new gap_device name -> update param-> also update the adv params for the recently changed name.
    • Now start adv -> you should see the updated name so broadcasting.

    I know i have given then answer briefly, i hope you will figure it out. And that how i also carried out for not only changing name but also to change some bits in data packet which was essential for the corresponding project.

Children
No Data
Related