Adv packet change with keeping advertising

5 posts / 0 new
Last post
yterasaki
Offline
Last seen:4 years 7 months ago
加入:2015-05-08 09:28
Adv packet change with keeping advertising

亲爱的对话框,

I'm now using Beacon reference code (3.40.6) and I'd like to change the part of adv packet without stopping
advertising. Could you tell me how to access the BLE resource which is reflected to adv packet?
Currently adv interval is 100mS and I plan to implement this modification in the app_resume_from_sleep().

Best Regards,
yukio

Device:
MT_dialog
Offline
Last seen:1 month 4 weeks ago
工作人员
加入:2015-06-0811:34
Hi ytesasaki,

Hi ytesasaki,

Unfortunately, the advertising string can't change while the BLE is advertising, you first have to stop advertising, change the string and start advertising again. What do you mean "the BLE resource which is reflected to adv packet"?

Thanks MT_dialog

yterasaki
Offline
Last seen:4 years 7 months ago
加入:2015-05-08 09:28
亲爱的对话框,

亲爱的对话框,

Thanks for your comment. I understand that it is impossible to change the adv packet without stopping the adv.
My meaning of "BLE resources..." is that the variable in the SRAM which affects to the actual packet of advertising.

Best Regards,
yukio

MT_dialog
Offline
Last seen:1 month 4 weeks ago
工作人员
加入:2015-06-0811:34
Hi yterasaki,

Hi yterasaki,

The advertising data in the beacon reference design are placed in a gapm_start_advertise_cmd struct in the adv_data member (&cmd->info.host.adv_data). Does this answer you question ?

Thanks MT_dialog

yterasaki
Offline
Last seen:4 years 7 months ago
加入:2015-05-08 09:28
Thanks, Dialog

Thanks, Dialog
As you explains, adv data is transfered to BLE by the struct of gapm_start_advertise_cmd. My intention was
that I want to touch the adv packet inside the BLE directly without stopping the advertising, but your prior
answer said that it is impossible. So, I will seek another way to work around.

Best Regards,
yukio

Topic locked