dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.76k stars 181 forks source link

Support for proximity detector for iPhone. #174

Open jayp opened 12 years ago

jayp commented 12 years ago

I have ControlPlane v1.3.6 on Mac OS X 10.8.1 and can not figure out how to a trigger a context change depending on the proximity of an iPhone (I have Bluetooth enabled on both my Mac and iPhone). If this is supported, can you please tell me how.

If not, is this because of some technical difficulty? I would like to grasp a better understanding of the issue. I know that Apple doesn't support pairing of the Mac with the iPhone (non jail-broken), but can we still do some kind of detection based on sniffing the Bluetooth protocol?

dustinrue commented 12 years ago

The iPhone would need to be in discovery mode in order for the Mac to see it. If it isn't in discovery mode then bluetooth scans will come up empty. While the bluetooth evidence source supports this sort of thing it is actually better suited for detecting connected devices.

jayp commented 12 years ago

So, the mac allowed me to establish a pairing with the iPhone. So it recognizes the device. However, it will can not let me connect to the iPhone.

But it seems that there is some low level bluetooth connection that can be attempted to made to detect the proximity of the iPhone. Yes, it's not the same as a Bluetooth connect/disconnect and a "special" handling for the iPhone. But since Apple doesn't support Bluetooth connectivity on the iPhone, and the popularity of the iPhone with Mac users, I thought it would be nice to investigate alternatives that could enable this functionality.

I know proximity (unmaintained, http://code.google.com/p/reduxcomputing-proximity/) and airlock (commercial, http://themha.com/airlock/) probably do something along those lines.

jfelixetcetera commented 10 years ago

It seems like this should definitely be possible using Bluetooth Low Energy (like http://knocktounlock.com). Obviously would only be supported on newer Macs/iPhones, but proximity sensing is such a killer feature here...

mmichon commented 9 years ago

Anybody get iPhone proximity sensing to work? It's sporadic on my configuration.