Sipy BLE sniffing
-
Hi,
Is three a way to quickly filter for known BLE devices? e.g. MAC ID etc?
My current codes scans and found many BLE edevices (few thousands) and I only need 1 to 2 devices.
My BLE devices are advertising every 1 min.
Also, sometimes the BLE sniffer is not able to find my devices, maybe 2 out of 3 times can fine my devices?Thanks.
-
@Calvin-Foo advertising every minute is quite uncommon for a BLE device. It usually ranges from about every 10 ms to a few seconds.
Most BLE devices are not constantly scanning, they scan only during the scan window, every scan interval. Also, they scan on the 3 advertising bands in a cycle. Coupled with the risk of collision or interference, this means it’s unlikely any BLE device will ever hear all advertisements from another one.
For this reason, its probably better if you reduce the advertising interval if you want to get advertisements relatively quickly.
As for filtering I don’t think there’s any support for low level filtering in the Pycom firmware, it’s up to you to filter the list of advertisements received using any criteria you want.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login