Topic

FAQ
Login Register
How to modify the device name of the tslr8258
Dec 02, 2021 15:28

/

A

/A

Dear All, 


How can I modify the device name of the tslr 8258 in the SDK.

At the moment, when I can the device to handle the provision, it is show "Unknow device".

I can change the content in the app_config_8258.h like this:

#define ID_VENDOR 0x8003 // for report

#define ID_PRODUCT_BASE 0x8000

#define STRING_PRODUCT L"DQH SOS ALARM"

#define STRING_SERIAL L"DQH SOS ALARM"

#define DEV_NAME "DQH SOS ALARM"


But it only show "DQH SOS ALARM" when i have paired and search in Proxy.


Help me please!

Thanks so much.



3 replies
xin Dec 15, 2021 19:02
0
/A

The data in the PB-GATT advertising packet does not contain the device name, but is defined by SIG as shown in the figure below。


So you changed the device name, it can only be reflected in the device name attribute in GATT。


nghung121 [Author] Dec 16, 2021 12:33
0
/A

thank you for your reply. 

So how can I set the name of the BLE device when I scan it and handle provision?


I have implemented with alias name, but it only uses 9 chars for the name.


Thank so much!

xin Dec 16, 2021 15:37
0
/A

Because the device name is not included in the pb-adv package, telink’s provision configuration tools are all used to handle provision based on the mac address.  If you have to scan/handle provision through the device name, you can modify the scan response data, this part of sig is not uniformly defined(by api “mesh_scan_rsp_init”).