Closed Chuntianhong closed 2 years ago
what devices do you use, and what is the exception?
I use Bluetooth PLC device. On Android 7 table connect with PLC. But on Android 9 table doesn't connect with PLC.
socket.connect() read failed, socket might closed or timeout, read ret: -1
This is the error. Thank you for your check and help me.
I am not aware of general connection issues with Android 9. Very likely caused by vendor specific Android customization. Does it work with https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal?
Thank you. I will try with this app.
Unfortunately, This app also doesn't connect.
is the device paired correctly?
Yes it was correctly paired.
then most likely it's an issue with vendor specific Android customization or bad bluetooth driver/hardware in the Android tablet
Hello, I wonder how you solved this issue? I am encountering the same problem. My android app on android tablet can successfully create socket and send out something, but in Serial Bluetooth Terminal side, it keeps showing "read failed, socket might closed or timeout, read ret: -1"
It appeared in the factory-specific industrial tablets ordered for on-demand. Other Android devices work well with Bluetooth connections. So we reported this issue to the factory and already got new PCBAs recently and still need to test again. I will reply again once we finish the test.
Hello, I wonder how you solved this issue? I am encountering the same problem. My android app on android tablet can successfully create socket and send out something, but in Serial Bluetooth Terminal side, it keeps showing "read failed, socket might closed or timeout, read ret: -1"
We got new PCBAs with new WAN chip from the factory and tested it yesterday. After change it, Bluetooth module works correctly. So I guess the same issue on your side. You would change tablet device or contact the device manufacturer.
I have a connection issue. The app on Android 9 device(API 29) doesn't connect to Bluetooth device. With the same app, the app on Android 7 connects to the same Bluetooth device,
In connect() function, it gives exception. Would you give me any suggestion?