This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

combined iBeacon advertising and standard advertising

Hi

Any ideas how best to implement a combined iBeacon and standard advertising device (both devices are active at the same time) ?

The iBeacon has to send an advertisement every 100ms.

It would be useful if we could vary the advertisement interval for the standard device

Thanks in advance

John

Parents
  • Hi John,

    If you want to combine just limited number of advertisements (e.g. 2 or 3) and your desired adv. interval is a multiple of any allowed interval (basic Adv. interval is limited to at least 20ms - for connectable non-directional ADV_IND - or 100ms - for other ADV packet types, it also needs to be multiple of 0.625ms base timing unit) then you can easily alter adv. data by radio notification events as shown in this example.

    Your case with 100ms and two adv. packet formats is pretty trivial unless you want to advertise non-connectable iBeacon message (otherwise simply store two sets of ADV and SCAN_RSP data, start infinite adv. at 50ms interval and before each session exchange the data through standard SD API so effectively you will transmit two types of packets with 100ms interval, they will just be 50ms shifted - which is desired anyway I guess).

    Cheers Jan

Reply
  • Hi John,

    If you want to combine just limited number of advertisements (e.g. 2 or 3) and your desired adv. interval is a multiple of any allowed interval (basic Adv. interval is limited to at least 20ms - for connectable non-directional ADV_IND - or 100ms - for other ADV packet types, it also needs to be multiple of 0.625ms base timing unit) then you can easily alter adv. data by radio notification events as shown in this example.

    Your case with 100ms and two adv. packet formats is pretty trivial unless you want to advertise non-connectable iBeacon message (otherwise simply store two sets of ADV and SCAN_RSP data, start infinite adv. at 50ms interval and before each session exchange the data through standard SD API so effectively you will transmit two types of packets with 100ms interval, they will just be 50ms shifted - which is desired anyway I guess).

    Cheers Jan

Children
No Data
Related