need to check if phone is nearby
Posted: 14 Mar 2014 23:35
Hello,
I am planning to hide an old phone in my car and use it to get alerted (and to find my car) when it was stolen.
Since the old phone will be connected to car power, battery life is not an issue for this one. I plan to activate gps and use the trigger "periodical location update" to get a new location every interval. Then I will check the distance to the last known position and if it gets larger, send a sms to my own phone, that my car is moving.
Since I don't need this information, if I move the car by myself (or my wife) I need to check (aka have a condition), if my own phone (or the one of my wife) is near the car phone. Do you have an idea how to accomplish this condition?
My first Idea was to enable bluetooth on both devices and try to connect my phone as keyboard. You can find the flow in the attachment. I found out, that after a period of time the test fails and then works if I check a second time.
So my question: Do you know of a reliable way to check if an other device is available? (I think Bluetooth or WLAN (wifi direct) could be an option.)
I am planning to hide an old phone in my car and use it to get alerted (and to find my car) when it was stolen.
Since the old phone will be connected to car power, battery life is not an issue for this one. I plan to activate gps and use the trigger "periodical location update" to get a new location every interval. Then I will check the distance to the last known position and if it gets larger, send a sms to my own phone, that my car is moving.
Since I don't need this information, if I move the car by myself (or my wife) I need to check (aka have a condition), if my own phone (or the one of my wife) is near the car phone. Do you have an idea how to accomplish this condition?
My first Idea was to enable bluetooth on both devices and try to connect my phone as keyboard. You can find the flow in the attachment. I found out, that after a period of time the test fails and then works if I check a second time.
So my question: Do you know of a reliable way to check if an other device is available? (I think Bluetooth or WLAN (wifi direct) could be an option.)