-
Notifications
You must be signed in to change notification settings - Fork 91
ollie doesn't connect with uuid #49
Comments
Hi, @codeNgamer not sure why you are calling the Noble code directly, you do not need to do any of that when using sphero.js, it does it for you. In fact, another thing that sphero.js does is to convert a BLE address for the format "e7:40:98:2a:20:8d" to that needed by noble "e740982a208d" to connect to an Ollie. The code you should be using is something like:
That's it, unless I am missing something? |
That's what I was doing at first, but it wasn't working. I forgot to mention that the above code block gets executed server-side on the meteor framework so i wasn't sure if there was something different in it's ecosystem causing it to not work. So I figured i'd search, find it, then try to connect but it still doesn't work. Strange thing is, noble connects just fine. |
Since sphero.js is also scanning using Noble, having your own code that scans cannot work well at the present time. Once solution I have been working on, is being able to pass an existing Noble device connection into sphero.js. |
I figured that also, but using this code below doesn't work either. I'll just continue to investigate
|
Does not work inside your Meteor app? Can you share a little more context of how you call this? Also what OS/Node version, please? |
So i'm running it on osx/el capitan, meteor 1.2.1 which is based on node 0.10.40 |
How are you calling the code from your Meteor app? Sorry if my questions seem silly, but I am not very familiar with Meteor, having only played with it a little when it first came out. |
No that's fine. Basically, I pull all npm packages needed by the meteor project with the code below: Npm.depends({
noble: '1.2.1',
sphero: '0.6.0',
spheron: '0.0.3',
cylon: '1.2.0',
'cylon-ble': '0.9.0',
'cylon-ollie': '0.8.0',
}); then use the below code: var sphero = require("sphero"),
ollie = sphero("e7:40:98:2a:20:8d"); // change BLE address accordingly
ollie.connect(function() {
console.log('connected!');
}); which is executed from a script loaded server side |
Hi, @codeNgamer When using the latest release of sphero.js, you should be able to the the Noble peripheral from your code:
Please give it a try! |
Hi, @codeNgamer did you have a chance to give a it try yet? Please let us know. |
hey @deadprogram sorry for the late reply. I did try that, briefly though. it didn't work but i havent tested yet, been super busy at work. I'll drop feedback soon |
Having same issues unable to connect using uuid |
@b44p on OS X you use the UUID, on Linux you use the BLE address. Make sure you are entering the correct value as returned by the BLE scan using Noble. |
Thanks @deadprogram. I am on OSX and am using cylon-ble-scan to get the uuid. I get a 32 character string.
|
This may seem like a silly question, but you are using |
Haha - you seem to know the pain of those brain farts too well it seems - but no - i made sure i plugged in my 32 character UUID that i refrain to disclose for an unfounded fear that my ollie could be hacked remotely |
Hi, @b44p seems like this would be more correctly an issue entered on https://github.com/hybridgroup/cylon-sphero-ble would you mind opening one on that repo? |
Hey @deadprogram - I realize that I am not putting the ollie into dev mode but according to this @peterainbow created cylon-ollie. He appears to say that there he updated https://github.com/peterainbow/cylon-ollie to programmatically turn dev mode on. Am i missing something here ? |
That is all auto handled by the current version of Sphero.js so no need. |
I was able to use advertisement_discovery and get Ollie's UUID and then do this. Does not work.
|
Hi, @b44p shouldn't you be using the 32-char UUID instead of the BLE address in the code above, since you are on OSX? I booted up my OS X machine (still running Yosemite) installed the latest Sphero.js, and was able to run without troubles. |
Hey @deadprogram - tried both - no joy 👎
|
I will install El Capitan and dig in further... |
Thank you kind sir |
Hi, @b44p still researching on this. Another question: what exact Mac do you have? Including the specific Bluetooth adaptor, please. |
argh sorry for the late response - Im using 2 macs MAC1
MAC 2
|
The @b44p we have an issue open on Noble itself here: noble/noble#340 you might want to chime in. |
I've got the following code which works for the most part, except that the callback is never called from
ollie.connect()
The text was updated successfully, but these errors were encountered: