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

iOS: notify device name changed

Hi,

My configuration:

- microcontroller: nrf52840
- softdevice: s140_nrf52_6.0.0_softdevice
- SDK: nRF5_SDK_15.0.0

We're developing an iOS mobile application that communicate over BLE with a device mounting an nrf52840 microcontroller.

We're encountering a problem with device name.


iOS application has to perform these steps:

- connect to the device
- change the device name
- disconnect
- reconnect using the new device name

We're using "ServiceChanged characteristic" to notify to iOS mobile app the change of the device name, but it seems doesn't work.
iOS application, after disconnection, see the old device name during advertising.

iOS application has to connect and disconnect several times before see the new device name during advertising.

Could you help us please?

Thanks

  • Hi, 

    I don't think using "Service Changed" can help here. Doing Service Changed only trigger the phone to do service discovery, not clearing the name cached on advertising packets. 

    Usually to force the phone to clear the advertising name cache we have to turn off and on Bluetooth. 

    Another option is to change the device address when you have a new name, this way you appear as a new device to the phone. This won't work if you want to keep bond information. 

Related