Phone asks pairing code at connecting
Jasperwolsing opened this issue · comments
Hi,
Really like the project, want to integrate the function in my CarPC ( raspberry).
When I run a test service, and connect my phone to the ANBR!Tusk Bluetooth device, the phone asks a code. When I try something, or just null, the service reply's disconnected.
Can anyone push me in the right direction to get it woking?
on -> stateChange: poweredOn
on -> advertisingStart: success
Bleno: Handle: 64 UUID: 77ca0d4ba34b address 77:ca:0d:4b:00:00
on -> accept:
Recieved a Pairing Request
Hande:64 uuid: 77ca0d4b0000
Got a disconnect
Got a disconnect
Got a disconnect
Able: unknown peripheral 77:ca:0d:4b:00:00 disconnected!
Thanks!
I get the same issue, I'll let you know if I find the solution.
Hey, I'm also having this same issue. Any ideas?
I also see this behavior on a Raspberry Pi ZeroW when you don't pair with the phone first using bluetoothctl
When you do pair ahead of time, then I see issue #12 -- in either case, I'm still dead in the water, and still tinkering in the hopes I can figure out how to make this work.
Sorry guys - I will have to try to get things up and running. I haven't tried using it in a long time. I do have a Raspberry Pi 3, so I will try to get it setup on that with the latest version of everything and put a guide together.
I know how it is when people suddenly take interest in an old project. Any help you can provide is appreciated but not demanded or expected. Thanks!
One other thing I might doing wrong is related to disabling bluetoothd. I find that test.js doesn't work at all when I stop bluetoothd first. If I leave it running, I can get activity. Here's an example of paring from the phone side "ANBR!Tusk" device:
on -> stateChange: poweredOn
on -> advertisingStart: success
Bleno: Handle: 64 UUID: 7fxxxxxxxxc1 address 7f:xx:xx:xx:xx:c1
on -> accept:
Recieved a Pairing Request
Here's an example of pairing with bluetoothctl first. After pairing it shows up as "raspberrypi" in the iPhone's bluetooth panel. Tapping on it to connect gives:
on -> stateChange: poweredOn
on -> advertisingStart: success
encryptChange crash
Where "encryptChange crash" is where the problem discussed in issue #12 happens.
Tried on both iOS 10 and iOS11.
I'm also super interested in seeing this project revived. Googling around, I'm surprised there arent more examples of people connecting to modern ios devices with arduino/raspberry pis... lots of potential use cases for novel ways to handle notifications.
Did Apple just add a Code verification step to connecting a blue tooth device since this project was started?