More than one advertising packet

Hi Expertise,

I'm using S140 and SD version 7.

I have two packets of advertising data:
Packet A, 31 bytes.
Packet B, 20 bytes.

Packet A is required to be advertised every 500ms while packet B only when needed.
How can I advertise packet B without affecting packet A interval?
My idea is to send packet B just after packet A is sent as below:



Do we have an efficient method to switch it accordingly?

Thanks & Best Regards,
Rezan

 

Parents Reply
  • Hi Jørgen,

    Thanks for the information given.

    Do you need the two packets to be separate advertising packets, or could you put the data from packet B in the scan response packet?

    Ideally yes. For the scanner device to notice the Packet B easier, because there will be many devices sending Packet A. Btw maybe I'm wrong, I think I need to study further how the scan response will look like on the scanner side before coming to a conclusion.

    Only one advertising set is supported with S140 v7, so you will have to update the advertising data, and also stop/restart the advertising if you want to use a different advertising interval.

    Currently I did this. But I think I need to handle it more efficiently.
    Is there any callback/event when advertising is finished?
    If have, and we turn ON it, will it increase the current consumption?

    Thanks & best Regards,

    Rezan

Children
No Data
Related