Multiple frames from BLE device
From: Jason Anderssen <hidden>
Date: 2016-08-15 06:49:33
Hi All,
Getting into this bluez programming, I have a BLE beacon that transmits 3 different frames, however, when I use very similar code from hcitool.c :
while(select(descriptor) ) {
…
…
…
int len = read(descriptor);
..
…
…
}
It always gets a single frame from the beacon, I never see the 3 different frames, after I reset the parameters to start the scan again, I may see a different frame for a little while, then I might see another frame for a little while.
I suspect the underlying code is only accepting one advertisement per cycle, and then ignoring all subsequent advertisements from the same MAC address ? (just a guess)
So my question is, what is the correct way to get multiple advertisements from the same beacon, if my assumption above is correct ?
I have been studying the bluez tools code to try and work around it, but thought I would cut to the chase and get some professional advice from the guru’s on this list :-)
Thanks again for you help in advance.
Cheers
Jason