So, I have a BT client and a server application on two Android 4.0 and Android phones. The server is waiting for a connection through
BluetoothServerSocket serverSocket = mBluetoothAdapter.listenUsingRfcommWithServiceRecord(SDP_NAME, UUID.fromString(SDP_UUID));
and the client connects to it through
socket = device.createRfcommSocketToServiceRecord(UUID.fromString(SDP_UUID));
Then, using AsyncTask, I send data in an endless loop from client to server.
byte[] buffer = new byte[4096]; outputStream.write(buffer);
I calculated the speed and got about 230 Kb / s, which is 2.1 Mb / s, which offers Bluetooth EDR. How to send data via Bluetooth HS (24 Mbps)?
android bluetooth
The big fat panda
source share