robotastic / ble-ancs

A NodeJS library for Apple Notification Center Service over BLE
MIT License
80 stars 15 forks source link

Phone asks pairing code at connecting #11

Open Jasperwolsing opened 7 years ago

Jasperwolsing commented 7 years ago

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!

laurrentt commented 7 years ago

I get the same issue, I'll let you know if I find the solution.

asowers1 commented 7 years ago

Hey, I'm also having this same issue. Any ideas?

jake-b commented 7 years ago

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.

robotastic commented 7 years ago

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.

jake-b commented 7 years ago

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.

robotastic commented 7 years ago

I will probably need help from you guys… It is has been a long time since I got this project up and running…

On Sep 20, 2017, at 9:19 AM, jake-b notifications@github.com wrote:

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: 7fb18c9747c1 address 7f:b1:8c:97:47: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 https://github.com/robotastic/ble-ancs/issues/12 happens.

Tried on both iOS 10 and iOS11.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/robotastic/ble-ancs/issues/11#issuecomment-330848573, or mute the thread https://github.com/notifications/unsubscribe-auth/AAG53LRZVsXLSQzii4K4HhKm_uCv4gE5ks5skRDJgaJpZM4MFJkA.

auggernaut commented 6 years ago

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?