Hello Everyone,
I was making a connection with a Bluetooth RFID Reader via bluetooth admin and serial, as described in the following tutorial.
https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/
But I receive a timeout with the following error:
The reader comes with its own SDK, they send you the sources and an apk so you can make the connection with your own APP, I have tried that app on the phone and it works, connects correctly and reads the rfid tags.
I have read the java code of that sdk, but I can not identify any parameters to change in the connection so that it is successful with bluetooth admin.
I do not know if you can help me check the connection of that SDK and try to translate it into B4A code so I can exploit the functionality of the RFID and the full power of B4A.
Attached the link sdk https://goo.gl/nP8LBb, can you help me to review those sources ??? I have reviewed the original sources but I can not identify which parameter is different to change.
Also attached a small video https://goo.gl/ayPjKJ testing the application that comes with the reader and that is the application of that SDK to see how it works.
Thank you very much in advance.
I was making a connection with a Bluetooth RFID Reader via bluetooth admin and serial, as described in the following tutorial.
https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/
But I receive a timeout with the following error:
B4X:
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:916)
at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:928)
at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:536)
at anywheresoftware.b4a.objects.Serial$1.run(Serial.java:157)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
connected: false
The reader comes with its own SDK, they send you the sources and an apk so you can make the connection with your own APP, I have tried that app on the phone and it works, connects correctly and reads the rfid tags.
I have read the java code of that sdk, but I can not identify any parameters to change in the connection so that it is successful with bluetooth admin.
I do not know if you can help me check the connection of that SDK and try to translate it into B4A code so I can exploit the functionality of the RFID and the full power of B4A.
Attached the link sdk https://goo.gl/nP8LBb, can you help me to review those sources ??? I have reviewed the original sources but I can not identify which parameter is different to change.
Also attached a small video https://goo.gl/ayPjKJ testing the application that comes with the reader and that is the application of that SDK to see how it works.
Thank you very much in advance.
Last edited: