API for setting up advertising packets

7 posts / 0 new
Last post
VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
API for setting up advertising packets

Hello Dialog,

I want to be able to flexibly configure the advertised data. Now it's really difficult to play with advertisement packets. Can you give me a quick tutorial

BR; VEsa

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
OK, i think i understood more

OK, i think i understood more now. i want to change device name dynamically, how to do it? i found gapm_peer_name_ind in gapm_task.h and it has device name field but i cannot find where it is sset

br, Vesa

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
Ok, so I found out now that

Ok, so I found out now that there is a message type "GAPM_PEER_NAME:IND"" for changing the device name. However, it is not used anywhere in the SDK. So somehow it is copied straight to the memory? I will try to use that GAPM message, maybe it will work?

Br, Vesa

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
Hello, for some reason I

Hello, for some reason I cannot set the nvds field NVDS_TAG_APP_BLE_ADV_DATA, I always get an Length violation NVDS_LENGTH_OUT_OF_RANGE. Even if the length was zero

What to do?

Br, Vesa

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
Hi,

Hi,

I don't understand why in file nvds.c, in function custom_nvds_get_func case NVDS_TAG_APP_BLE_ADV_DATA there is this condition:
if (*lengthPtr < NVDS_LEN_APP_BLE_ADV_DATA)

但这似乎更logical to me, I think I don't understand some part:
if (*lengthPtr > NVDS_LEN_APP_BLE_ADV_DATA)

BR, Vesa

summer20100514
Offline
Last seen:4 years 2 months ago
Guru
加入:2014-12-30 05:01
Do you now figure out the

Do you now figure out the meaning of the following line ?
if (*lengthPtr < NVDS_LEN_APP_BLE_ADV_DATA)

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
Hi summer20100514,

Hi summer20100514,

Sorry, I don't remember anymore...