-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Problems Solved #89
Comments
If you rather me do a pull request and change it myself, I can do so. I just figured this was minor enough to suggest to you this way. |
I found that after I connected, and then send the command, which is the first Bluetooth device is not responding, only after disconnecting the Bluetooth device will execute the instruction. My Android phone is version 4.4.2, Bluetooth device is Bluetooth 2.0. I am very depressed! |
The solution not working for me! @SkySrfr Please help :) |
Oh man, this was patched and closed 7 years ago. Assuming you are using the latest version, I would guess you are having a different problem, but I haven't looked at this stuff in years, so I doubt I can be of any help. Maybe file a new ticket? |
Okay! Thanks for replying :DDD |
@viren-vii did anything worked for you? |
@vaibhiarora03 I worked on this which worked fine with connections of Bluetooth classic devices. |
@viren-vii okay. thanks. |
I had some issues connecting to a bluetooth serial device with my Android 4.1.2 and my Android 4.4.2 phone. Turns out it was related to this: http://stackoverflow.com/questions/18657427/ioexception-read-failed-socket-might-closed-bluetooth-on-android-4-3?rq=1
I fixed it by changing run() in BluetoothSerialService.java to start with this:
...
This also made it necessary to remove 'final' from mmSocket, but I'm sure there is a better way to execute the same idea.
If you are running this on Android and seeing "read failed, socket might closed or timeout, read ret: -1" in your log, this will most likely solve the problem.
Thanks for all your work on this plugin! Hopefully this can help someone down the line...
The text was updated successfully, but these errors were encountered: