Modify Device Name using AT commands

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
prakash Solanki
Offline
Last seen: 5 months 3 weeks ago
Joined: 2021-01-06 11:12
Modify Device Name using AT commands

Hello

I want to modify the device name of ble module from the current "CodeLess".

I am using codeless (data pump) for the Da14531 module. I have enabled AT+ADVDATA, AT+ADVSTART and AT+ADVSTOP. If I use following will it change advertisng device name.

When the DA14531 is initialised, and send following commands:

 

AT+ADVSTOP

AT+ADVDATA=04:09:45:46:47

AT+ADVSTART

 

Will this change the name of device to “ABC”

 

Thanks

 

P

PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

Thanks for posting online and for your interest in our TINY module / CodeLess solutions.

According to the CodeLess user guide ( section 9 ), there isn’t any AT command for changing the device name.

Pleas open the CodeLess source code and navigate to user_app_on_init() function in user_codeless.c file

The Device name is stores in the advertising and scan response date Specifically, the “CLv2” is stored into the adverting data and the “Codeless” into scan response data. So, in order to change the device name, please configure that two lines accordingly.

Thanks, PM_Dialog

prakash Solanki
Offline
Last seen: 5 months 3 weeks ago
Joined: 2021-01-06 11:12
Hi

Hi

Thanks for response. I want to be able to modify the name dynamically, not hard coded, by sending a command via UART.

 

Thanks

 

P

PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

Thanks for your comment. As mentioned before, there isn’t such an AT command for changing the device name dynamically.

Thanks, PM_Dialog

prakash Solanki
Offline
Last seen: 5 months 3 weeks ago
Joined: 2021-01-06 11:12
Hi

Hi

Is there a way by creating new AT command or is it not possible at all.

Thanks

PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

Yes - please see section 6. Adding Custom Commands :

http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/customcommands.html

Thanks, PM_Dialog

prakash Solanki
Offline
Last seen: 5 months 3 weeks ago
Joined: 2021-01-06 11:12
Hi

Hi

Any example ot tutorial available to modify device name

 

Thanks

 

PM_Dialog
Offline
Last seen: 1 month 1 week ago
Staff
Joined: 2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

There isn’t any tutorial that demonstrating this. You should modify the CodeLess example to do this and create your own AT command.

Thanks, PM_Dialog