6 posts / 0 new
Last post
pnndra
Offline
Last seen:2 years 9 months ago
加入:2014-06-17 10:05
Directed advertising

Hi,
we are trying to create an "invisible" beacon that will connect only to specific counterparts. our idea would be to use directed advertising in order to connect to specific central devices (that we have control on) but when we try this we see that (in the same software) the advertisement period drops from 700ms to 10 sec. is there any way to change this behaviour? we didn't find any specific parameter to alter this period.
我们应当还有什么considering?
thanks,

Dario

Device:
MT_dialog
Offline
Last seen:6 days 10 hours ago
Staff
加入:2015-06-08 11:34
Hi pnndra,

Hi pnndra,

If you are trying directed advertising you are going to be able to advertise for about 1.28 secs then the advertising stops with a GAPM_CMP_EVT. This is defined by the specification and there is no way to change this. If you want to continue the directed advertising you can issue the directed advertising procedure again there is no limitation in that.

Thanks MT_dialog

pnndra
Offline
Last seen:2 years 9 months ago
加入:2014-06-17 10:05
Hi,

Hi,
thanks, restarting the advertising procedure every time the directed advertising complete event is received i was able to see the device sending the advertising packets continuously.
The only problem is that i see the packets sent with a too high rate, one packet every two slots (one packet every 1.25ms). The intv_min and intv_max parameters seems to be now uneffective. Is there any way to slow down the packets rate when in directed advertising?

Thanks in advance and best regards,

Dario

MT_dialog
Offline
Last seen:6 days 10 hours ago
Staff
加入:2015-06-08 11:34
Hi pnndra,

Hi pnndra,

When directed advertising is performed the interval_max and interval_min parameters are ignored.

Thanks MT_dialog

pnndra
Offline
Last seen:2 years 9 months ago
加入:2014-06-17 10:05
hi, we figured that out. is

hi, we figured that out. is there any way to modify this behaviour or shorten the advertisement period? what we really would like is to perform directed advertisement only for a short time (to limit consumption) even if central doesn't reconnect immediately.

thanks,

Dario

MT_dialog
Offline
Last seen:6 days 10 hours ago
Staff
加入:2015-06-08 11:34
Hi pnndra,

Hi pnndra,

The advertising period in directed advertising is fixed, it lasts for 1.28 secs and the intervals are stictly predefined, there is no way to change it. In order to minimize consuption you can issue a app_adv_start and stop the directed advertising before the 1.28 limit with app_adv_stop().

Thanks MT_dialog