This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can device name support multi-language

Hi,

We have a device needs to support user change the device name. We already finished this function. The changed device name can be store in internal flash, and broadcast from next advertising. My question is: whether the device name can support multi-language. The user scenario as below,

  1. User set their favorite name through Android or iOS App, the name may be in Chinese, Japanese, German,...or any other country language.
  2. nRF51822 store the new name in the internal flash.
  3. Next advertising, user can see their setting name on App correctly.

Please give me any your advice to achieve this function. Thanks for any coming information.

Parents
  • From the Bluetooth spec

    12.1 DEVICE NAME CHARACTERISTIC
    The Device Name characteristic shall contain the name of the device as an UTF-8 string ...
    

    Since UTF8 encodes every unicode codepoint then you can have any and every language you like.

  • RK, thanks for your comment. Then can I directly use the "sd_ble_gap_device_name_set()" function to change the device name as that UTF8 string which was set from App? And next advertising, can I see the correct device name (Chinese or Japanese...) from the Bluetooth setting on Android device?

    I tried this , but not success. Should I need to modify somewhere to make it work?

Reply
  • RK, thanks for your comment. Then can I directly use the "sd_ble_gap_device_name_set()" function to change the device name as that UTF8 string which was set from App? And next advertising, can I see the correct device name (Chinese or Japanese...) from the Bluetooth setting on Android device?

    I tried this , but not success. Should I need to modify somewhere to make it work?

Children
No Data
Related