Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data gathering for iOS device traffic invisible to Bermuda #375

Open
agittins opened this issue Nov 12, 2024 · 0 comments
Open

Data gathering for iOS device traffic invisible to Bermuda #375

agittins opened this issue Nov 12, 2024 · 0 comments
Assignees
Labels
cogitating Not planned, but on the backburner as a thought. Needs time to percolate. discussion Broader discourse on ideas vs specific features iOS Transmit Outages Issues identified as being due to iOS devices not transmitting during power-save etc. moreinfo More information required to progress further

Comments

@agittins
Copy link
Owner

agittins commented Nov 12, 2024

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:

  • at least one iOS device that should be always visible, but Bermuda often shows as away or unavailable
  • another phone/tablet that can run NRFConnect or similar
  • a bit of time to stuff around

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

  • Recent iPhone?
  • Mainly happens on arriving home, BT adverts don't start for perhaps 15 minutes
  • Suspect possible interaction with not transmitting until after home wifi is active?

Issue #385, #323

  • Iphone 15, iPhone 15PRO
  • iOS 18.0.1 (both)
  • Daytime usually OK, outages between ~ 9PM and 1AM.

Potential fixes

  • Install the Room Assistant App, as it sends BLE broadcasts
  • Install a COVID19 exposure tracking app, as they seem to be able to transmit reliably
  • An iOS setting "Auto-toggle visibility" being turned off may improve things. Unclear where this setting is or how it's accessed or enabled. Perhaps an app needs to be granted location permissions first, then it shows up in this list? Not sure.

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.

@agittins agittins self-assigned this Nov 12, 2024
@agittins agittins added moreinfo More information required to progress further discussion Broader discourse on ideas vs specific features cogitating Not planned, but on the backburner as a thought. Needs time to percolate. labels Nov 12, 2024
@agittins agittins added the iOS Transmit Outages Issues identified as being due to iOS devices not transmitting during power-save etc. label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cogitating Not planned, but on the backburner as a thought. Needs time to percolate. discussion Broader discourse on ideas vs specific features iOS Transmit Outages Issues identified as being due to iOS devices not transmitting during power-save etc. moreinfo More information required to progress further
Projects
None yet
Development

No branches or pull requests

1 participant