dimorphic / bb8

Sphero Star Wars BB8 controlled via Xbox controller and Myo armband! The droid you're looking for!
GNU General Public License v3.0
17 stars 3 forks source link

trying desperately to use BB8 #2

Open metalmauro opened 6 years ago

metalmauro commented 6 years ago

Been trying for the past 2 days to get your code to work. From what I can tell, I have issues with node and the gamepad software.

Is it possible to have a sole project for the MYO band? Dying to use my BB8 with the armband.

Log attached for greater help.

2017-12-28T23_22_29_406Z-debug.log

dimorphic commented 6 years ago

Hey @metalmauro : Happy New Year first of all! What Node / npm version you using ? (node -v & npm -v output please?)

dimorphic commented 6 years ago

@metalmauro : found the versions in the log, soz, just woke up -.-

16196 verbose node v9.3.0 16197 verbose npm v5.6.0

Think some package(s) are failing now, i'll have a look into it and get back to you.

Regarding the 'sole project for the MYO', you can just change line 9 in src/index.js to myo instead of xbox. Guess it needs better documentation or indeed, splitting the examples better :) 👍

dimorphic commented 6 years ago

@metalmauro : Fixed! There was a problem with the dependencies not building anymore, i've bumped the versions and also the minimum required Node.js to v6. Check the README again as i've updated and made it a bit easier to find your BB8 UUID before actually starting either developing / running the app.

Just shooked the dust off my BB8 and Myo with this now :) Let me know if you got your BB8 moving and all is ok 🎱

Cheers.

L.E.: published 1.0.2 to npm also, be sure to get the new version.

metalmauro commented 6 years ago

Hello,

Happy New Year, sorry for the delayed message. currently running: node 9.3.0 npm 5.6.0

Have been updating in attempts to get the code to install properly, have yet to try the fix mentioned prior.

-- Matt Mauro matt.mauro@gmail.com 416 984 9151

On January 1, 2018 at 7:19:09 AM, Sabin Tudor (notifications@github.com) wrote:

Hey @metalmauro https://github.com/metalmauro : Happy New Year first of all! What Node / npm version you using ? (node -v & npm -v output please?)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dimorphic/bb8/issues/2#issuecomment-354650483, or mute the thread https://github.com/notifications/unsubscribe-auth/AThN24Muf0Wrb0pXd4Aq7RNIgE-ynU6zks5tGM08gaJpZM4ROvoM .

metalmauro commented 6 years ago

Hey Sabin,

install went well! I downgraded my node, so there was little to worry about there.

I’m not sure if I need anything else installed, ‘npm run scan’ is not finding any devices, only responding with

$ npm run scan

bb8@1.0.2 scan /Users/matthewmauro/Projects/bb8

node src/scan

is there anything else I should download?

Thanks again

-- Matt Mauro matt.mauro@gmail.com 416 984 9151

On January 2, 2018 at 10:55:55 AM, Matt Mauro (matt.mauro@gmail.com) wrote:

Hello,

Happy New Year, sorry for the delayed message. currently running: node 9.3.0 npm 5.6.0

Have been updating in attempts to get the code to install properly, have yet to try the fix mentioned prior.

-- Matt Mauro matt.mauro@gmail.com 416 984 9151

On January 1, 2018 at 7:19:09 AM, Sabin Tudor (notifications@github.com) wrote:

Hey @metalmauro https://github.com/metalmauro : Happy New Year first of all! What Node / npm version you using ? (node -v & npm -v output please?)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dimorphic/bb8/issues/2#issuecomment-354650483, or mute the thread https://github.com/notifications/unsubscribe-auth/AThN24Muf0Wrb0pXd4Aq7RNIgE-ynU6zks5tGM08gaJpZM4ROvoM .

metalmauro commented 6 years ago

Does BB-8’s Firmware have anything to do with it?

I have found my BB-8’s UUID, and can connect my MYO to the app, once started. Just can’t seem to get BB-8 connected to the app.

Sorry for the barrage of emails today

-- Matt Mauro matt.mauro@gmail.com 416 984 9151

On January 2, 2018 at 11:33:53 AM, Matt Mauro (matt.mauro@gmail.com) wrote:

Hey Sabin,

install went well! I downgraded my node, so there was little to worry about there.

I’m not sure if I need anything else installed, ‘npm run scan’ is not finding any devices, only responding with

$ npm run scan

bb8@1.0.2 scan /Users/matthewmauro/Projects/bb8

node src/scan

is there anything else I should download?

Thanks again

-- Matt Mauro matt.mauro@gmail.com 416 984 9151

On January 2, 2018 at 10:55:55 AM, Matt Mauro (matt.mauro@gmail.com) wrote:

Hello,

Happy New Year, sorry for the delayed message. currently running: node 9.3.0 npm 5.6.0

Have been updating in attempts to get the code to install properly, have yet to try the fix mentioned prior.

-- Matt Mauro matt.mauro@gmail.com 416 984 9151

On January 1, 2018 at 7:19:09 AM, Sabin Tudor (notifications@github.com) wrote:

Hey @metalmauro https://github.com/metalmauro : Happy New Year first of all! What Node / npm version you using ? (node -v & npm -v output please?)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dimorphic/bb8/issues/2#issuecomment-354650483, or mute the thread https://github.com/notifications/unsubscribe-auth/AThN24Muf0Wrb0pXd4Aq7RNIgE-ynU6zks5tGM08gaJpZM4ROvoM .

dimorphic commented 6 years ago

Hey @metalmauro ,

There shouldn't be a need to downgrade the Node.js version to v6, that is the minimum required, should work with higher ones, if not that's the case for another bug issue maybe.

npm run scan should run the BLE scanner and find any nearby BB8 devices, and log them, so you can find the UUID. I can't recall now if BB8 can be detected if docked (on charging platform), but works for sure out of dock.

Just be sure to wave/move the BB8 a bit when trying to scan/connect, as it might be in sleep mode.

'Just can’t seem to get BB-8 connected to the app.' - any errors there ? This or the 'npm run scan' log might help, the firmware version shouldn't matter, you should be able to connect atleast.

Another note: BB8 will spin/flash some random colors once the app is connected, as a visual signal of 'OK'.

metalmauro commented 6 years ago

Good evening,

When I used ‘npm run scan’ it returned 0 devices. I found my BB-8’s UUID through using LightBlue, an AppStore BLE scanner. I know it was my BB-8 because when connected through LightBlue, I could not connect through the standard Star Wars app on my iPhone. LightBlue’s log reads:

I have been using this as my UUID in src/config.js, as per guide.

I can connect my Myo to the app like it’s nothing, the same can’t be said for BB-8.

[MYO] Connecting...

[BB8] Connecting...

[MYO] Device discovered

[MYO] Device connected

[MYO] Setting default device

[MYO] Setting EVENTZ handlers

this is all I see

-- Matt Mauro matt.mauro@gmail.com 416 984 9151

On January 3, 2018 at 4:42:58 PM, Sabin Tudor (notifications@github.com) wrote:

Hey @metalmauro https://github.com/metalmauro ,

There shouldn't be a need to downgrade the Node.js version to v6, that is the minimum required, should work with higher ones, if not that's the case for another bug issue maybe.

npm run scan should run the BLE scanner and find any nearby BB8 devices, and log them, so you can find the UUID. I can't recall now if BB8 can be detected if docked (on charging platform), but works for sure out of dock.

Just be sure to wave/move the BB8 a bit when trying to scan/connect, as it might be in sleep mode.

'Just can’t seem to get BB-8 connected to the app.' - any errors there ? This or the 'npm run scan' log might help, the firmware version shouldn't matter, you should be able to connect atleast.

Another note: BB8 will spin/flash some random colors once the app is connected, as a visual signal of 'OK'.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dimorphic/bb8/issues/2#issuecomment-355135758, or mute the thread https://github.com/notifications/unsubscribe-auth/AThN22jipP5HjvQm7Mobqac5d0cXodDyks5tG_RigaJpZM4ROvoM .

dimorphic commented 6 years ago

Hey @metalmauro ,

Not sure about that app LightBlue app, but that UUID seems a bit weird and not the proper format at first glance. Can you try and replace all the lines, and try this id: ACAC7414CD8F45D8998253BE07B3A785, but i still think it's wrong, has proper length tho. Maybe.. ;/

Is that all the output that LightBlue has about BB8 ? Any other details?

Example of UUIDs format: 944f561f8cf441f3b5405ed48f5c63cf or f3f26d557108 or f3:f2:6d:55:71:08

metalmauro commented 6 years ago

Hey @dimorphic

Here is a list of all the UUID's that I've found through scanners either on my Mac (LightBlue), or iPhone (BLE Scanner). LightBlue: ACAC7414-CD8F-45D8-9982-53BE07B3A785 serviceUUIDs: 00001016-D102-11E1-9B23-00025B00A5A5 22BB746F-2BA0-7554-2D6F-72658705327 22BB746F-2BB0-7554-2D6F-72658705327

BLE Scanner: E9F3C39F-7873-908C-6A7C-6B4F64070157 serviceUUID: 0x22bb746f2ba075542d6f726568705327

Because the '2BA0' code showed up twice, I want to assume that is the code I'm looking for (star wars pun intended). Should I format it in anyway?

PS, still cant find anything through '$ npm run scan' I receive: '

bb8@1.0.2 scan ~/Projects/bb8 node src/scan

' and nothing else

dimorphic commented 6 years ago

@metalmauro : We're interested in the device ID / UUID, not the service / characteristic(s) UUIDs.

What's odd here is that your 2 scans with LightBlue vs BLE scanner are returning a device (i'm assuming the first id is the device id), which seems to be the same device, as this service is the same: 22BB746F-2BB0-7554-2D6F-72658705327 vs 0x22bb746f2ba075542d6f726568705327, but the listed 'device' UUID is not the same ;/

So, we need the device UUID, if those are it try them either with - between or without, but should have been the same imo, eg:

ACAC7414-CD8F-45D8-9982-53BE07B3A785 or ACAC7414CD8F45D8998253BE07B3A785 same for: E9F3C39F-7873-908C-6A7C-6B4F64070157 or E9F3C39F7873908C6A7C6B4F64070157

Also, npm run scan should output something like:

` $ npm run scan

bb8@1.0.2 scan /Users/USER/data/bb8 node src/scan [BLE] BLE state @ poweredOn `

or error in case Bluetooth is turned off (you need to turn it on manually) or whatever:

` [BLE] BLE state @ poweredOff /Users/USER/data/bb8/node_modules/noble/lib/noble.js:76 throw error; ^

Error: Could not start scanning, state is poweredOff (not poweredOn)`

Pretty odd that it's not saying anything for you. What OSX version you running ?

(Markdown formatting failing..)

metalmauro commented 6 years ago

I'm currently running OS 10.13.2

when Bluetooth is manually turned off, I get '$ npm run scan

bb8@1.0.2 scan /Users/**/Projects/bb8 node src/scan

' Until I have to ctrl-C out of it.