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

trying desperately to use BB8 #2

Open
metalmauro opened this issue Dec 28, 2017 · 12 comments
Open

trying desperately to use BB8 #2

metalmauro opened this issue Dec 28, 2017 · 12 comments
Labels

Comments

@metalmauro
Copy link

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
Copy link
Owner

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

@dimorphic
Copy link
Owner

@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 dimorphic added the bug label Jan 1, 2018
dimorphic pushed a commit that referenced this issue Jan 1, 2018
…script (Windows support) and bump the Node version required to >= v6 - fixes bug #2
@dimorphic
Copy link
Owner

dimorphic commented Jan 1, 2018

@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
Copy link
Author

metalmauro commented Jan 2, 2018 via email

@metalmauro
Copy link
Author

metalmauro commented Jan 2, 2018 via email

@metalmauro
Copy link
Author

metalmauro commented Jan 2, 2018 via email

@dimorphic
Copy link
Owner

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'.

@dimorphic dimorphic reopened this Jan 3, 2018
@metalmauro
Copy link
Author

metalmauro commented Jan 3, 2018 via email

@dimorphic
Copy link
Owner

dimorphic commented Jan 11, 2018

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
Copy link
Author

metalmauro commented Jan 12, 2018

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:
'

[email protected] scan ~/Projects/bb8
node src/scan

'
and nothing else

@dimorphic
Copy link
Owner

dimorphic commented Jan 22, 2018

@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

[email protected] 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
Copy link
Author

I'm currently running OS 10.13.2

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

[email protected] scan /Users/**/Projects/bb8
node src/scan

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

Repository owner deleted a comment from muhammadmnorouzi Feb 23, 2024
Repository owner deleted a comment from ARRNAV26 Feb 23, 2024
Repository owner deleted a comment from nerypy Mar 5, 2024
Repository owner deleted a comment Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants