亲爱的对话框,
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:
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