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

Change device name via UART

Hello,

I use a Bluetooth chip nrf52832. I want change the name of the device with the UART port from my Windows PC, but I don't find command or byte to change the device name. Can you help please? The device name appears ever "Nordic_UART".

Thanks

Arnaud

Parents
  • Hello,

    From what you are saying, I assume you are using the BLE app UART from the SDK?
    If so, the define you are looking for is on line 85 of the main.c file.
    Namely: 

    #define DEVICE_NAME                     "Nordic_UART"                               /**< Name of device. Will be included in the advertising data. */


    Keep in mind that the central device will actively look for a device names Nordic_UART to pair with - and as such you will need to change this in your central device code, to match the new device name.

    Best regards,
    Karl

  • Hello Karl,

     

    Thanks for your response.

    I use only an HyperTerminal (PORT COM, 115200 bauds) to communicate between the nrf52832 (connected via UART on the PC) and Bluetooth BLE of a smartphone.

    I have received a chip "ready to use", I cannot change or use SDK.

     I can already send or receive data.

    Best regards,

    Arnaud

  • Hello Arnaud,

    If the device is already programmed by someone else, you would have to ask them how to operate the application. If it is programmed with the BLE UART example I mentioned in my last comment, then it is not possible to change the device name by an UART command.
    However, if it is programmed by someone else which just happened to use the Nordic_UART default device name, then there might exist a list of possible commands over UART - but this is only known by those that have programmed the device.
    Who gave you the device, and is it an nRF52 Development Kit or a custom board?

    Keep in mind that if the basis for the application is the BLE UART example, then you might not be able to communicate with it using BLE if the device name changes - as I mentioned in my previous comment.

    Best regards,
    Karl

Reply
  • Hello Arnaud,

    If the device is already programmed by someone else, you would have to ask them how to operate the application. If it is programmed with the BLE UART example I mentioned in my last comment, then it is not possible to change the device name by an UART command.
    However, if it is programmed by someone else which just happened to use the Nordic_UART default device name, then there might exist a list of possible commands over UART - but this is only known by those that have programmed the device.
    Who gave you the device, and is it an nRF52 Development Kit or a custom board?

    Keep in mind that if the basis for the application is the BLE UART example, then you might not be able to communicate with it using BLE if the device name changes - as I mentioned in my previous comment.

    Best regards,
    Karl

Children
No Data
Related