Trigger when separating devices - Forum

Forum Navigation
You need to log in to create posts and topics.

Trigger when separating devices

Hello gents,
I want to create an application that a user can install on either of their two devices.
The application should run in the background and trigger the user (popup / sound) when both devices are physically separated (by bluetooth/location?)

The goal is to notify a user if he forgets one of the two devices when getting out...

Does anyone here have an idea on how I can easily fix this?

Grtz,

@guust

It occurs to me to make the application record the location (geo-position) of the device at specified intervals and record this data on the server. Then it would compare the received value with what the second device recorded on the server. It could be the same file on the server, where the first device writes to the first line, and the second to the second. Or it can be two different files - one for each device. A specified difference in meters will mean that the devices are separated.

Gaev, CDY@44 and Guust have reacted to this post.
GaevCDY@44Guust

Not a gent ;)

@guust, I keep location services on my phone turned off for privacy and power reasons, so here is a Bluetooth idea..,.

The solution wouldn't have to use Bluetooth to actually communicate, but if it is possible to list all the bluetooth devices nearby (NW.js ?) then you can poll the list at regular intervals and see when the other one drops out because they are too far apart.

No need to be contact a server, use a remote database, or transfer data. The limited range of Bluetooth does all the work for you.

@susan

I tried this idea a couple of years ago, it does look logical, but came across that some phones (including my Nokia 5) are only visible to external devices if they have the Bluetooth settings screen open. Perhaps this was a feature of the technology I was using. I had to give up the idea at the time. I wanted to do two projects - automatically mark students' presence in class and lock the computer if I went outside the Bluetooth signal with my phone.

susan has reacted to this post.
susan

@vadim I can see how not having devices visible by default is good security. In that case, your location idea is best!

@susan

Perhaps there are better options. Or there will be soon.

It is possible to fantasize on this subject. :) For example, the devices can emit sounds with a set periodicity at a frequency inaudible to humans (if it is possible, of course) and if they stop hearing each other, then they are separated.

 

CDY@44 and Darbdenral have reacted to this post.
CDY@44Darbdenral