don/BluetoothSerial

Pairing problem with Android

scloby opened this issue · 10 comments

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

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 commented

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

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

Thanks

Hi @don,

 i have a GT-p7500 samsung galaxy tab running android 4.0.4, the app

does the same on some other devices that we own,
i really appreciate any help,

Thanks

Muhia

On Fri, Jul 12, 2013 at 2:45 AM, Francesco Medda
notifications@github.comwrote:

@don https://github.com/don Can I give you some more informations to
resolve this issue?

Thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-20850310
.

Muhia Njoroge
254 751-459803
skype:muhia.john.njoroge
Ovtygen Web Solutions
personal website: http://muhia-njoroge.herokuapp.com/
http://ke.linkedin.com/pub/caleb-njoroge/24/a4/aa0

(__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
http://ke.linkedin.com/pub/caleb-njoroge/24/a4/aa0

don commented

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

Thanks a lot @don,

On Sat, Jul 13, 2013 at 7:07 AM, Don Coleman notifications@github.comwrote:

@CalebMuhia https://github.com/CalebMuhia I found a GT-P7510 with
4.0.4, I'l try and duplicate the problem in the next few days


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-20914348
.

Muhia Njoroge
254 751-459803
skype:muhia.john.njoroge
Ovtygen Web Solutions
personal website: http://muhia-njoroge.herokuapp.com/
http://ke.linkedin.com/pub/caleb-njoroge/24/a4/aa0

(__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
http://ke.linkedin.com/pub/caleb-njoroge/24/a4/aa0

Thanks @don :)

don commented

@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

Hi @don,
i really appreciate your effort in helping us solve the problem, i will
take a look at the info too, see if there is anything i can do,

Thanks a lot man, this will go a long way in helping us solve the problem,

On Wed, Jul 24, 2013 at 5:26 PM, Don Coleman notifications@github.comwrote:

@scloby https://github.com/scloby @CalebMuhiahttps://github.com/CalebMuhiaI 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


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-21488366
.

Muhia Njoroge
254 751-459803
skype:muhia.john.njoroge
Ovtygen Web Solutions
personal website: http://muhia-njoroge.herokuapp.com/
http://ke.linkedin.com/pub/caleb-njoroge/24/a4/aa0

(__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
http://ke.linkedin.com/pub/caleb-njoroge/24/a4/aa0

don commented

@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);