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

noble warning: unknown peripheral mambo parrot drone #25

Open
agonz519 opened this issue May 24, 2018 · 5 comments
Open

noble warning: unknown peripheral mambo parrot drone #25

agonz519 opened this issue May 24, 2018 · 5 comments

Comments

@agonz519
Copy link

image

Need some big help on this one. Have tried a good bit of things to correct this issue but feel more so like I'm doing a lot of guessing. I've checked every single issue article mentioning "unknown peripheral" and have attempted to try some of those things suggested but still no luck. Can anyone point me in the right direction for fixing this error? Willing to try anything you give me.

The drone seems to connect and is just waiting for the final takeoff command before I get endless noble warnings for the same peripheralUuid.

@agonz519 agonz519 changed the title noble warning: unknown peripheral noble warning: unknown peripheral mambo parrot drone May 24, 2018
@fetherston
Copy link
Owner

Are you in a very noisy bluetooth environment or have many devices paired with your computer?

@fetherston
Copy link
Owner

You may also want to try this patch which I have yet to merge: #16

@agonz519
Copy link
Author

Thanks so much for the quick response Chris. I’ll see about minimizing the Bluetooth noise and try that patch during my lunch break today. Will update with results. Thanks again.

@agonz519
Copy link
Author

So made the appropriate changes from the merge you shared with me. Still the same exact behavior. I'm a little new to node and javascript in general, but I did notice that in the Noble module, the part that's throwing the error in Binding.js is this:

`NobleBindings.prototype.write = function(peripheralUuid, serviceUuid, characteristicUuid, data, withoutResponse) {
var handle = this._handles[peripheralUuid];
var gatt = this._gatts[handle];

if (gatt) {
gatt.write(serviceUuid, characteristicUuid, data, withoutResponse);
} else {
console.warn('noble warning: unknown peripheral ' + peripheralUuid);
}
};`

I console logged gatt and saw that this is being populated with a ton of information, then at some point it changes to undefined, which then gives the unknown peripheral warning and just keeps doing so over and over. Any ideas about that?

Apologies if it's a little too general and might be outside of your scope (can check with the noble guy), if you have some guidance on how I can get you more relevant information let me know.

@agonz519
Copy link
Author

I mean. It says connected. The lights on the mambo stop blinking. Then it seems to be waiting for a command. Then I start getting the unknown peripheral error and the lights start blinking again. So it looks like it disconnects at some point. What might cause this?

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