Establishing communication connections
In an example system comprising a location engine and a protocol engine, the location engine determines a direction of movement between a first device and a second device and the protocol engine establishes a communication connection when a distance between the first device and the second deice is less than a distance designated for automatic connection.
1. A system comprising:
a location engine to:
determine a direction of movement between a peripheral device and a host device; and
a protocol engine to:
in response to a determination that the peripheral device has been previously paired with the host device and the direction of movement of the host device is towards the peripheral device, establish a communication connection when a first distance between the peripheral device and the host device is less than a second distance designated for automatic connection, the second distance being less than a maximum distance corresponding to a protocol technology for the communication connection; and
in response to a determination that the direction of movement of the host device is away from the peripheral device, disconnect the communication connection when the first distance between the peripheral device and the host device is greater than the second distance.
2. The system of claim 1 , wherein the protocol engine is to:
identify a user preference that designates the second distance as a user-defined connection distance and whether to establish the communication connection between the peripheral device and the host device within the user-defined connection distance; and
select a first protocol to establish the communication connection based on the user preference.
3. The system of claim 1 , wherein the protocol engine is to:
disconnect the communication connection when the first distance between the peripheral device and the host device is greater than a third distance, the third distance being less than the maximum distance corresponding to the protocol technology and greater than the second distance by a tolerance distance.
4. The system of claim 1 , wherein:
the location engine receives a received signal strength indicator (RSSI) via a first protocol;
the communication connection uses a second protocol different from the first protocol; and
the protocol engine is to transfer audio signals or video signals via the communication connection in response to the communication connection being established when the first distance is less than the second distance.
5. The system of claim 4 , wherein the location engine is further to:
identify the first distance of the peripheral device from the host device based on the RSSI from the first protocol; and
perform a signal strength threshold calibration for the host device based on the RSSI associated with a signal from the peripheral device and the second distance.