-
Notifications
You must be signed in to change notification settings - Fork 90
BB-8 command sync response error #85
Comments
It seemed to be a issue with the newest version noble(1.8.0). You should be able to avoid this by rolling back to noble@1.7.0. It will be great if we can figure out what in noble broke the code. |
Thanks for the response! I'll test it out this week and will report back here. |
I can confirm the experienced behavior with using my BB8. Minimal scriptvar sphero = require("sphero"),
bb8 = sphero("C9:35:XX:XX:XX:XX");
bb8.connect(function() {
setInterval(function() {
bb8.ping();
}, 1000);
}); Error message (every second)
System & NodeOS: Arch Linux Node: WorkaroundDowngrade |
I think I have very common issue. Did you manage to fix that? I am trying to use this https://github.com/charliegerard/leap_sphero.git I tested on different versions of MacOS, but I still have the same issue. Fixes tried 2/ Call ping() after connect() #37 Current Config Issue Fist few commands execute instantly, but then after 10-20 seconds (about 30-50 commands), they suddenly they start lagging up to few seconds long lags and I was getting following message Unhandled rejection Error: Command sync response was lost. I tried sending commands more often and less often, it made no difference. And I also tried waiting (for example 60 seconds) and then started sending commands. It looks like Sphero starts to lag 10-20 seconds after I start to send commands no matter how many commands I send and how much I waited before. The error line is in this funcion: /**
|
Seems like your issue isn't quite similar to mine, since I got the error immediately after connecting to the Sphero and sending a single command. Downgrading the noble package partially solved the problem for me. But I ended up using Cylon.js, which did the trick for me. |
Hi,
I'm trying to program BB-8 with the Javascript API. I'm on Windows 10 and have installed all the necessary dependencies, and I am using a bluetooth 4.0 USB. When I run a basic script, f.e. just change the color of BB-8, the robot does it successfully. But when trying to get a response back, I always get the error:
Unhandled rejection Error: Command sync response was lost.
at Sphero.handler (C:\Users\toonr\AppData\Roaming\npm\node_modules\sphero\lib\sphero.js:252:21)
at ontimeout (timers.js:380:14)
at tryOnTimeout (timers.js:244:5)
at Timer.listOnTimeout (timers.js:214:5)
Or, when using Cylon.js, a similar error:
Error: Command sync response was lost.
at Sphero.cb (C:\Users\toonr\AppData\Roaming\npm\node_modules\cylon-sphero-ble\node_modules\sphero\lib\sphero.js:243:21)
at ontimeout (timers.js:380:14)
at tryOnTimeout (timers.js:244:5)
at Timer.listOnTimeout (timers.js:214:5)
Noble also throws a warning before this error, saying an unknown handle is disconnected.
So executing a command (or multiple) is working perfectly, but I can't seem to get data back from the BB-8. Any ideas on what the cause could be? Thanks in advance!
The text was updated successfully, but these errors were encountered: