complete event of adv start

2 posts / 0 new
Last post
yterasaki
Offline
Last seen:4 years 5 months ago
加入:2015-05-08 09:28
complete event of adv start

亲爱的对话框,

I would like to confirm the timing of complete event of adv start cmd.

For exam, in the following sequence,
Start advertise with 100mS interval
1st adv
100-mS interval
2nd adv
100-mS interval
3rd adv
100-mS interval
......

In this case,
Q1: Complete event of adv start (such as GAPM_ADV_UNDIRECT or etc) is asserted aftrer every adv?
Or complete event never occurs because adv keeps operation untill it is stopped by other reson.
Q2: If complete event doesn't occur, how I can get the completion interupt of each adv? I want to change
the portion of adv packet every time.

Best Regards,
yukio

Device:
MT_dialog
Offline
Last seen:1 week 18 hours ago
工作人员
加入:2015-06-0811:34
Hi yterasaki,

Hi yterasaki,

Q1: You dont get a complete event after every advertising interval...you will get a GAPM_CMP_EVENT when the operation is completed or canceled. The operation is completed when you perform directed advertising or the operation is cancelled.

Q2: You can check the beacon reference design in the app_asynch_trm() function it uses a mechanism to count the advertising events, maybe this will help.

Thanks MT_dialog