Skip to content
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

Error: Command Disallowed when connecting on Raspberry Pi #658

Closed
lrucker1 opened this issue Jul 22, 2017 · 2 comments
Closed

Error: Command Disallowed when connecting on Raspberry Pi #658

lrucker1 opened this issue Jul 22, 2017 · 2 comments

Comments

@lrucker1
Copy link

I got this code working on MacOS : https://github.com/lrucker1/homebridge-dotti
but when I ran it on Raspberry Pi it had several problems:
first, "startScanning([DottiServiceUuid], false)" never found the Dotti device.
I tweaked it to accept everything and filtered it by device address instead, then it hit "Command Disallowed"

Raspberry Pi 3, "Raspbian GNU/Linux 8 (jessie)" , everything freshly installed.

"sudo homebridge -D"
[7/22/2017, 12:00:40 AM] Homebridge is running on port 51828.
[7/22/2017, 12:00:40 AM] [Dotti] Starting Noble scan..
[7/22/2017, 12:00:40 AM] [Dotti] Found accessory cbcb2f1752a1, address cb:cb:2f:17:52:a1, expected 5c:31:3e:8b:26:a4. Skipping...
[7/22/2017, 12:00:40 AM] [Dotti] Found accessory e10afefebb69, address e1:0a:fe:fe:bb:69, expected 5c:31:3e:8b:26:a4. Skipping...
[7/22/2017, 12:00:40 AM] [Dotti] Found accessory 5c313e8b26a4, address 5c:31:3e:8b:26:a4, connecting..
[7/22/2017, 12:00:40 AM] [Dotti] Noble connection failed: Error: Command Disallowed (0xc)

Full debug output and hcidump attached:

hcidumpOutput.txt
hciDump.txt
homebridgeRun.txt

@lrucker1
Copy link
Author

Although I had rebooted at least twice and still hit that, the reboot after I filed this worked. Though the code that's uploaded to github still fails because startScanning only works with an empty uuid list.

@sandeepmistry
Copy link
Collaborator

@lrucker1 closing this as resolved. Some Bluetooth adapters don't allow scanning and connecting at the same time. https://github.com/sandeepmistry/noble#adapter-specific-known-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants