Dear reader,
I'm making my first steps with the DA14580 chip and I use the DSPS code to communicate between a smartphone and a micro-controller that is connected to a PAN1740 (a.k.a. DA14580-01).
I would like to change the name of the device and add the lower 4 bytes of the unique ID of the DA14580.
What is the correct way of changing the NVDS record? Is this the only place to change? Is there a function to read the unique ID?
Anyone who could give direction on how to achieve this within the current release of the DSPS code for the DA14580?
Cheers,
Roland
Device:

Hi roland,
In all the SDK5 application you can change the advertising string and the device's name in the NVDS by changing the user_config.h file and the corresponding definition USER_ADVERTISE_DATA and USER_DEVICE_NAME. About thedevice's unique ID i suppose that you mean the bd address of the device, you can change it from theCFG_NVDS_TAG_BD_ADDRESS。nvd处理function is the custom_nvds_get_func() function in the nvds.c file which is called by the jump table, for the bd address get invokation case if the bd address isn't populated by the OTP (nvds_read_bdaddr() gets the be address value from the OTP) and is filled with zeros then the NVDS value (hard coded value in fw) takes place in the NVDS structure.
Thanks MT_dialog