I
I
IGOR EZHKOV2020-01-14 16:12:10
Bluetooth
IGOR EZHKOV, 2020-01-14 16:12:10

How fast can a smartphone connect to an already paired bluetooth device?

Suppose there are two HID Bluetooth devices HID1 and HID2 at a distance of 200-300m from each other. The range (secure connection) of HID1 and HID2 is about 10 m. The smartphone is pre-paired with both devices and moves from HID1 to HID2 at a speed of 60 km/h. and moves on. Those. it will be in HID2 coverage area for a while. Question: will he have time to connect to HID2 in this short time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2020-01-14
@402d

For android only for transfer connection. If you still read back, then another thread is created.

remoteDevice = defaultAdapter.getRemoteDevice(getMacAddress());
createRfcommSocketToServiceRecord = remoteDevice.createRfcommSocketToServiceRecord(myUUID);
createRfcommSocketToServiceRecord.connect();
dataOutputStream = new DataOutputStream(createRfcommSocketToServiceRecord.getOutputStream());

I do not know explicit timeouts for operations. If you periodically try to connect, then you will be able
to make attempts in 30 seconds. All functions either do what they're supposed to or throw exceptions.
In my practice of communicating with a thermal printer, it floats from less than one second to 25.
You can forget to turn on the printer, and then press the power button somewhere, as I wrote above, for 30 seconds.
72km / h = 20 m / s It turns out we have less than 1 second, but I can’t imagine how you will start the exact connection at a distance of 10 meters from the device.
Satellite geolocation + -50 meters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question