Lower granularity for INQUIRY interval
Quoted 6 lines · Steven Singer <steven.singer <at> csr.com> wrote :
Quoted 3 lines · Catalin Drula
Is there a way to perform INQUIRY for intervals with a lower granularity than 1.28 seconds? I know the Bluetooth specification says no.
Quoted 6 lines
To inquire for less than 10.24 seconds is a bad idea. Unless you inquire for a single contiguous block lasting 10.24 seconds you do not have a good probability of picking up all devices.
Note that, for example, 8 consecutive 1.28 second inquiries is not guaranteed to work.
Actually, if you look in the actual Inquiry response protocol,
you can see that it is guaranteed to not work at all, because of the random backoff (10.7.4) you will never get any answer in 1.28 sec.
I wish the Inquiry protocol was not designed this way, because
designed more straightforwardly, doing periodic inquiry for a shorter time and more frequently *could* have the same probability of discovery (over time, not per Inquiry), the same overhead, but guarantee much shorter connection latency.
By the way, the whole Inquiry process is why you can't use
BlueTooth for any kind of location beacon or casual discovery.
More info on my experiment on the topic in my "On-Demand
BlueTooth" paper.
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Papers/papers.html Have fun... Jean
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 7 lines · Jean Tourrilhes
Quoted 2 lines · Steven Singer <steven.singer <at> csr.com> wrote :
Note that, for example, 8 consecutive 1.28 second inquiries is not guaranteed to work.
Actually, if you look in the actual Inquiry response protocol,
you can see that it is guaranteed to not work at all, because of the random backoff (10.7.4) you will never get any answer in 1.28 sec.
The random backoff is for 0 to 1023 slots - 0 to 0.64 seconds. The device may start scanning straight after the backoff. The spec says that the device must wait for at least the backoff, but doesn't state that it must wait until the next time it was scheduled to scan. In fact, the spec implies that the point of the random backoff is so that if two devices both hear the same inquiry transmission, they should respond at different times. Since most devices have the same inquiry scan interval, waiting for the next interval would be counter-productive as it would guarantee that the two devices would respond simultaneously. In addition, the inquiry scan interval doesn't have to be 1.28 seconds. In a scenario where you are trying to get fast connections, you could well imagine that devices will be using a shorter inquiry scan interval.
Even then, your argument applies only to the first 1.28 second inquiry. After that any device that was hit during the first 1.28 seconds should be primed to answer in the second 1.28 second burst (note that I said that the 1.28 second bursts should be consecutive).
For 1.2 devices this problem doesn't exist because 1.2 device respond before they back off. This means that every device on the right train (or in interlaced inquiry scan) should respond at least once (neglecting boundary conditions and collisions).
- Steven
Signature · 19 lines
********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bluez-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-devel