Change device name

Hello Nordic Engineer,

I know that I can modify #define DEVICE_NAME "device001" in sdk_config.h, but it takes a lot of time to compile and flash the program every time. It seems like there should be another way to quickly solve this.

【1】Is it possible to modify it through the iOS nRF Connect app, but with a prerequisite? Do I need to add some code in the 52811 program? (My product uses nRF52811)

【2】Can it be solved through the command line with J-Link? But I've never used the command line before...

【3】Are there any other methods? I just want to solve the problem quickly, and I don't mind how many methods there are.

Thanks

Parents
  • Yes, you can change the device name via the nRF Connect app, but only if your firmware allows it. You’d need to add code to handle a GATT characteristic for the device name and store it (e.g., in flash).

    Yes, possible with J-Link command line using nrfjprog --memwr or similar, but you’d have to know the memory address where the name is stored not super convenient unless scripted.

    Easiest quick fix: add a UART or BLE command in your firmware to change the name at runtime and save it to flash, so you don’t need to recompile every time.

    Hope! it would be helpful.

    myinfo kroger login

Reply
  • Yes, you can change the device name via the nRF Connect app, but only if your firmware allows it. You’d need to add code to handle a GATT characteristic for the device name and store it (e.g., in flash).

    Yes, possible with J-Link command line using nrfjprog --memwr or similar, but you’d have to know the memory address where the name is stored not super convenient unless scripted.

    Easiest quick fix: add a UART or BLE command in your firmware to change the name at runtime and save it to flash, so you don’t need to recompile every time.

    Hope! it would be helpful.

    myinfo kroger login

Children
Related