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

NRF51 send two alternating advertisements?

We have an application that is an apple ibeacon, plus some extra properties that can be read (battery level for example) The "ibeacon profile" eats up all the space in the advertisement frame, so i can't use it to announce any services.

I was wondering, if i can just alternate between the ibeacon stuff and a regular announcement frame. I.e. every n-th package it would toggle. Preferably once it broadcasted the previous one on all 3 channels (this is how it works right?).

I can not use a scan response, because the scanning is part of the iOS7 core, and that just doesn't respond to announcement packages. At least that's what i see in the air with the nordic ble analyzer. All i get from that thing is the proprietary ibeacon data, then i'd rescan for a second round and hope to catch the second announcement frame with the real data.

It doesn't look like the broadcasting happens in the actual main loop though. Most examples are something like:

advertising_start(); for (;; ) { power_manage(); }

so i wouldn't know where to change the advertisement data here. I suspect that changing that using the given API, i'd actually have to put the device in standby first. That sounds time intensive.

Parents Reply Children
No Data
Related