Get the divice Advertising name from another component.

4 posts / 0 new
Last post
jorge
Offline
Last seen:4 years 3 months ago
加入:2016-01-25 14:20
Get the divice Advertising name from another component.

Hello!

我使用皮质M0和Imsending via uart to the DA1480 the device name to be advertised, when i put the parameter that indicates the device name, it says that have to be a const value, im using the DSPS v5.150.2.

im using this function static struct gapm_start_advertise_cmd* app_easy_gap_undirected_advertise_start_create_msg(void) and the parameter that im trying to change is NVDS_TAG_DEVICE_NAME .

i belive that is a noob thing of me. Thanks for any guidance.

问候

Keywords:
Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi jorge,

Hi jorge,

You can't change the values that are stored in the NVDS structure during runtime, if you just want to change the advertising name you can remove the function that gets the name from the nvds (nvds_get()) and place your own string in the device_name_temp_buf buffer, place the length of the name in the device_name_length and if the data can fit in the advertising string they will be placed if not the data will be placed in the scan response data.

Thanks MT_dialog

jorge
Offline
Last seen:4 years 3 months ago
加入:2016-01-25 14:20
why i can not change the

why i can not change the values in NVDS?

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi jorge,

Hi jorge,

The NVDS is a storage area that can be populated either from the OTP, SPI or populate it by your firmware and its used to keep system configuration settings, you cant change the data during runtime, please check the UM-B-051 for more info regarding the NVDS structure on Appendix A.

Thanks MT_dialog

Topic locked