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

Discover works fine, but unable to run index.js with success #74

Open
fucci opened this issue Jan 14, 2016 · 9 comments
Open

Discover works fine, but unable to run index.js with success #74

fucci opened this issue Jan 14, 2016 · 9 comments

Comments

@fucci
Copy link

fucci commented Jan 14, 2016

Colleague is running successful with Mac, I am running Ubuntu 14.04 with noble, temporal, rolling-spider, and bluetooth-hci-socket node modules.

Discover showed my minidrone
1: RS_B075911 (e014b3783d48), RSSI -54

When I run index.js, just hangs

Any advice is appreciated,
also any pointers on how to get debugging or logging on also appreciated.

Apologies if I sound dumb..... still getting up to speed with node

Thanks for this great piece of code/functionality

@roeku
Copy link

roeku commented Jan 14, 2016

I had the same problem

#68

@fucci fucci closed this as completed Jan 14, 2016
@fucci
Copy link
Author

fucci commented Jan 14, 2016

Thanks roeku, you mentioned, the following - so the BLE stops scanning, and it can then set up
this.ble.stopScanning();

is this correct

Also, there are 2 more things I should mention
A. when I say the index.js hangs, I get the following coming up, which I think it means it stops

noble warning: unknown peripheral e014b3783d48

B. assuming it does not matter where I run the index.js files

appreciate your help

@fucci fucci reopened this Jan 14, 2016
@roeku
Copy link

roeku commented Jan 14, 2016

Go into lib/drone.js and add this line to 201
this.ble.stopScanning();
under
this.peripheral = peripheral;

And then execute the index.js or another file in the eg folder. As far as I know this should resolve your issue.

@fucci
Copy link
Author

fucci commented Jan 15, 2016

yippee !!!!

that worked - many thanks

I am still a little confused, why I had to include that one line of code in
my version on ubuntu

  • when my colleague on Mac did not

regardless - I am very happy

  • Thank You

On Fri, Jan 15, 2016 at 5:29 AM, roeku [email protected] wrote:

Go into lib/drone.js and add this line to 201
this.ble.stopScanning();
under
this.peripheral = peripheral;

And then execute the index.js or another file in the eg folder. As far as
I know this should resolve your issue.


Reply to this email directly or view it on GitHub
#74 (comment)
.

@beverts312
Copy link

Thanks @roeku !

@barackd222
Copy link

For us this solved the problem, but not after having to re-connect
Thank you

@Thyxx
Copy link

Thyxx commented Mar 19, 2017

Edit:
My bad, the Rolling Spider was paired with computer...
Remove the pairing, run the script and all work perfectly.

Hi,
Same problem here:
noble warning: unknown peripheral eXXXXXXXXXXX

Discover.js works fine but I can't run index.js
Already add this.ble.stopScanning(); but there is no difference.

Drone: Rolling-Spider
Distrib: Debian 8

Thanks in advance.

@lynnaloo
Copy link
Collaborator

lynnaloo commented Apr 8, 2017

Is this still an issue?

@Nighthawk1901
Copy link

yes, it is. Even in the latest updates version it still shows. I have windows 10 and using rolling spider.

@Thyxx
Copy link

Thyxx commented Apr 10, 2017

Problem solved...
I edited the message.

@Nighthawk1901
Copy link

Nighthawk1901 commented Apr 11, 2017

I simply changed my built in Bluetooth...all you have to do in windows is use zadig, select intel wireless Bluetooth and replace the driver to WINusb. To change back, simply download the update for the driver from intel, run the program, and click repair, then restart your pc for it too work. I dont know if changing this however, can effect how well the drone operates.

@Nighthawk1901
Copy link

Nighthawk1901 commented Apr 11, 2017

And i just tried. again. Still not working, same error "noble warning: unknown peripheral exxxxxxxxxxxx". So i hit ctrl c on nodejs cmd prompt, and write the cmd again "node rs_test.js". The error doesn't come up, and the drone takes of and does what it was meant to. When it finishes, I write the same cmd again, and I get "unknown handle 3585 disconnected". After that i get the same noble warning error, and the drone doesn't fly again. Only flies once, then wont fly again until i reboot my pc and the drone. Even then, it's luck. What do i do?

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

7 participants