node-rolling-spider icon indicating copy to clipboard operation
node-rolling-spider copied to clipboard

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

Open fucci opened this issue 9 years ago • 9 comments

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

fucci avatar Jan 14 '16 05:01 fucci

I had the same problem

https://github.com/voodootikigod/node-rolling-spider/issues/68

roeku avatar Jan 14 '16 07:01 roeku

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 avatar Jan 14 '16 10:01 fucci

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.

roeku avatar Jan 14 '16 18:01 roeku

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 https://github.com/voodootikigod/node-rolling-spider/issues/74#issuecomment-171739079 .

fucci avatar Jan 15 '16 02:01 fucci

Thanks @roeku !

beverts312 avatar Mar 28 '16 22:03 beverts312

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

barackd222 avatar Aug 24 '16 05:08 barackd222

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.

Thyxx avatar Mar 19 '17 20:03 Thyxx

Is this still an issue?

lynnaloo avatar Apr 08 '17 19:04 lynnaloo

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

Nighthawk1901 avatar Apr 09 '17 05:04 Nighthawk1901

Problem solved... I edited the message.

Thyxx avatar Apr 10 '17 07:04 Thyxx

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 avatar Apr 11 '17 06:04 Nighthawk1901

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?

Nighthawk1901 avatar Apr 11 '17 06:04 Nighthawk1901