agittins / bermuda

Bermuda Bluetooth/BLE Triangulation / Trilateration for HomeAssistant
MIT License
637 stars 17 forks source link

Data gathering for iOS device traffic invisible to Bermuda #375

Open agittins opened 1 week ago

agittins commented 1 week ago

This issue is to (hopefully) gather data from people who can capture iOS BLE traffic at times when Bermuda considers the device to be AWAY or UNAVAILABLE.

The operating theory is that these devices might be sending identifiable traffic, but the habluetooth lib might be filtering it out, making the device invisible to Bermuda.

If you've managed to save some data from iOS broadcasts while Bermuda considered the device "away", please upload the saved file here, and optionally, include some screenshots if they're interesting, and any comments if things were noteworthy (eg, "I think the data at 01:32:45 was when I opened my airpods case..")

Thanks!

Post to the HA community group:

Help with analysing iPhone traffic

Howdy all - I am interested in seeing if we can do better with spotting iPhones. The HA bluetooth library does a bit of filtering on certain apple traffic, and I am wondering if it is causing Bermuda to not be able to see iPhones at times when they are actually transmitting.

Unfortunately, the only iOS devices I have here are older ones, and they are annoyingly rock-solid at being detected.

If you have:

then perhaps you could help! :slight_smile:

What I would like to see is if there is any BLE traffic being sent by an iOS device at a time that Bermuda thinks it's away. In NRFConnect, the "More" screen gives a graph of adverts, colour-coded by content, and below that a summary of the adverts as they change over time. You can then hit the three-dots, Save, and choose "Save to file". If you could gather that and forward the data to me, we might be able to find more reliable ways to track iOS devices when they go into their various power-saving modes. Or not - at this stage it's just a theory without supporting data.

User reports of iOS transmit outages

Issue #369

Issue #385, #323

Potential fixes

The espresence docs state:

Note: Some iOS devices do not emit a beacon while the phone screen is off if there is not a reason for the device to broadcast a signal, consequently the device may not appear while the screen is off. Something like an iWatch, Universal Clipboard with Handoff enabled, or other services that require the phone to communicate regularly may resolve this issue as they require the subject iOS device to communicate while ‘sleeping’. In the case you do not have a bluetooth device like an iWatch, some people report that using background apps like iCloud Family Sharing, iCloud Photo Backup, or Room Assistant have convinced the device to communicate while ‘sleeping’. This issue is not universal, but it’s not clear why this occurs at this time and you may not experience this issue even if the device seemingly has no reason to communicate.