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

How can I measure the advertising intervals of a peripheral?

I would like to know how frequently my peripheral is sending advertising and data packets. I've tried using ble-sniffer-osx but it doesn't actually reveal any device names for some reason, so it's not trivial to use. Is it possible to do this using Xcode's Bluetooth Explorer utility to do this?

Parents
  • I'm afraid you won't be happy with my answer: it's more complex then this;) Briefly:

    • In Broadcasting/Scanning phase (Advertising) should advertiser periodically send either one or 3 packets (if one then it should rotate all 3 adv. channels, if 3 then it should send one per channel in short sequence and then wait another advertising interval).
    • This is normally valid but note that a) broadcaster can decide to avoid some adv. channels (for whatever reasons but typically to reduce power consumption), b) if it is scannable advertisement then it can after any ADV_xxx packet receive active SCAN_REQ which means that it will send out another Tx packet with up to 31B of payload, c) broadcasting shouldn't be really taken as clear data transport because it's unreliable and by default there is no way to find out if data reached the listener or not, d) in BT 5.0 it becomes more... (1/x)
Reply
  • I'm afraid you won't be happy with my answer: it's more complex then this;) Briefly:

    • In Broadcasting/Scanning phase (Advertising) should advertiser periodically send either one or 3 packets (if one then it should rotate all 3 adv. channels, if 3 then it should send one per channel in short sequence and then wait another advertising interval).
    • This is normally valid but note that a) broadcaster can decide to avoid some adv. channels (for whatever reasons but typically to reduce power consumption), b) if it is scannable advertisement then it can after any ADV_xxx packet receive active SCAN_REQ which means that it will send out another Tx packet with up to 31B of payload, c) broadcasting shouldn't be really taken as clear data transport because it's unreliable and by default there is no way to find out if data reached the listener or not, d) in BT 5.0 it becomes more... (1/x)
Children
No Data
Related