Pairing problem with Android #8

Closed
scloby opened this Issue Jun 28, 2013 · 10 comments

3 participants

@scloby

Hello,
when I use the .connect function and a MAC address allready associated (to my android 4.0.4 galaxy tab 10.1) the system allways ask me for the pin code of the bluetooth device.

When I write the pin code the connection work correctly, but if I close the connection and reopen it the system ask me the PIN.

I checked at the system settings and the device is correctly paired.

Please help me :(

Thanks

Francesco

@CalebMuhia

Hello,

I too have the same problem with the device pairing, hope it get fixed soon or does someone already have a workaround for this?

Thanks
Muhia

@don
Owner

@CalebMuhia what hardware are you using? What Android version?

@scloby

@don Can I give you some more informations to resolve this issue?

Thanks

@CalebMuhia
@don
Owner

@CalebMuhia I found a GT-P7510 with 4.0.4, I'l try and duplicate the problem in the next few days

@CalebMuhia
@scloby

Thanks @don :)

@don
Owner

@scloby @CalebMuhia I am able to duplicate the problem on a GT-P7510 Samsung Tab using with a Seeed Studio Bluetooth shield.

Here's some more info http://kenneththorman.blogspot.com/2013/06/android-403-and-404-bluetooth-pairing.html

I'll work on a solution

@CalebMuhia
@don
Owner

@scloby @CalebMuhia Based on the info in http://kenneththorman.blogspot.com/2013/06/android-403-and-404-bluetooth-pairing.html it looks like Android 4.0.3 and 4.0.4 have a problem with the Secure Bluetooth connection. I was able to get the GT-P7510 to prompt every time for the Bluetooth password.

I modified a local copy to use an Insecure Bluetooth connection and it works on the Galaxy Tab without prompting the user.

In order to make a patch, I need to work out what the JavaScript API will look like. I'm thinking something like

bluetoothSerial.connectInsecure(macAddress, success , failure);
@don don added a commit that closed this issue Sep 18, 2013
@don Add API for Insecure Bluetooth connections.
Android only. See  http://goo.gl/1mFjZY

Fixes #8
45de643
@don don closed this in 45de643 Sep 18, 2013
@don don added a commit that referenced this issue Sep 18, 2013
@don v 0.2.1
Fixes #8 - add connectInsecure
Fixes #9 - fix logic
Update docs
fa5180a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment