This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Detecting when my iPhone rings on the network…

0

I would like to know if you think it is doable to sense on a network when an iPhone is ringing (as it communicates this fact to other iOS devices somehow) - and then script this on a PC using something like AutoIT to make a web call to a web service...

Does anyone know about this type of apple-device communication? Is one able to determine which packets are 'rings' vs. other traffic? Or, as I suspect, is there some sort of secure comm channel set up between devices such that you can't tell what the traffic type is...

In case you're curious, the longer story is that My father is very hard of hearing... In spite of many ringer tones / visual ring settings / etc, he misses more calls than he makes. I put a lighting control system in his place and could flicker the lights from a computer program if I am able to know when the phone is ringing...

asked 25 Nov '15, 14:43

andy123's gravatar image

andy123
11114
accept rate: 0%

(as it communicates this fact to other iOS devices somehow)

What indicates that it does so? Are you referring to the "iPhone Cellular Calls" feature of Continuity?

(25 Nov '15, 23:21) Guy Harris ♦♦

2 Answers:

1

I doubt that the iPhone just broadcasts a simple and easily identifiable packet, I'd expect that the communication is not only encrypted but that the Apple devices in the group have to register and authorize themselves to the iPhone, so your emulator would have to do the same unless you've got another apple device so that you could just monitor packets running between the two Apple devices (and possibly guess by their size).

So in your situation, I would probably rather look for a Bluetooth handsfree that could be hacked at hardware level to behave similar to this one, i.e. to control your light beacon system.

If the Bluetooth range is insufficient (but as vibrating alert of the iPhone is not a solution, your father probably doesn't carry it with him around the house, so range should not be an issue), an alternative would be some arrangement at telephony service level. The simplest way is to set up an account with some SIP (VoIP) service and run a kind of command line VoIP client at the PC, which would indicate the incoming calls to an application controlling the light beacons (SIPp is not a VoIP client but it is a good candidate as it can invoke arbitrary executables). It then depends on arrangement with the telephony operator whether the call would be forked to both numbers or whether it would be forwarded from iPhone's number to the VoIP number and your father would have to pick the calls up on the PC (for that case, SIPp is not applicable!) or would call back from the iPhone. The call forwarding trigger would have to be "no answer" with a short timeout so that the calling number would be registered at the iPhone to allow calling back but then the call would move to the power ringer quickly.

Instead of a VoIP service, you could use another mobile number assigned to some kind of "alarm system mobile communicator board", as devices of this kind are usually equipped with dry contacts allowing to control external electrical circuits.

answered 26 Nov '15, 01:29

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%

1

I don't think that the iPhone will send any signal to the local network when it receives a call. Maybe through Continuity as @Guy Harris indicated. But that communication will be encrypted, so nothing to analyze with Wireshark.

Maybe you should think about alternative ways to detect a phone call. Maybe the following project is what you are looking for.

http://mad-science.wonderhowto.com/how-to/trigger-anything-from-anywhere-with-just-phone-call-0135369/

You can certainly extend this to "listen" to the sound of the ringing phone to trigger an action, instead of using the light detector. Although detecting a certain 'sound wave' is not that easy!!

https://www.google.com/#q=arduino+trigger+based+on+sound
https://www.google.com/#q=micro+controller+trigger+based+on+sound

http://hellomico.com/getting-started/
http://interface.khm.de/index.php/lab/interfaces-advanced/radio-signal-strength-sensor/

Just an idea ....

Or you just buy a proven commercial solution for this type of problem....

http://bellman.com/sensor/

Regards
Kurt

answered 26 Nov '15, 08:33

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 26 Nov '15, 08:58