how to change the advertising type

4 posts / 0 new
Last post
ambient
Offline
Last seen:5 years 9 months ago
Joined:2014-08-29 01:38
how to change the advertising type

Hi dialog,
I`m using DA1458x_SDK_3.0.6 for the DA14580. I`m trouled with changing the adverting type.
The DA1458x_SDK_3.0.6 sets the advertising type to undirected type.
How to change the advertising type to non-connectable undirected type?

比ks in advance!
Best regards

MH_Dialog (not verified)
Hi Ambient,

Hi Ambient,

Could you please try GAPM_ADV_NON_CONN to replace GAPM_ADV_UNDIRECT?
There are more detailed information in DA14580 reference design: BEACON SDK

BR,
MH_Dialog

ambient
Offline
Last seen:5 years 9 months ago
Joined:2014-08-29 01:38
Hi MH_Dialog,

Hi MH_Dialog,
I have tried GAPM_ADV_NON_CONN to replace GAPM_ADV_UNDIRECT. But it doesn't work.
I'm using DA14580 as peripheral device and a smart phone as a central to measure the distance between these two devices.
By the current version of firmware, the distance is measured for only one time.
After the DA14580 is detected, the distance data is never updated.
有什么办法可以更新数据的距离?

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
Joined:2014-06-26 08:49
Hello ambient,

Hello ambient,

do you want to change the data in advertisement packet? you need to turn off advertising, update advertising packet, and start advertising again.

Or, could you just use rssi value for estimating the distance?