Comments (4)
I am facing the same issue where OSX is unable to get a response back from BB8 once a command is issued:
Unhandled rejection Error: Command sync response was lost.
at Sphero.handler (/Users/shah/projects/node/ai8/node_modules/sphero/lib/sphero.js:252:21)
From previous event:
at Sphero.command (/Users/shah/projects/node/ai8/node_modules/sphero/lib/sphero.js:180:10)
at Sphero.device.setRgbLed (/Users/shah/projects/node/ai8/node_modules/sphero/lib/devices/sphero.js:369:12)
at Sphero.device.color (/Users/shah/projects/node/ai8/node_modules/sphero/lib/devices/custom.js:168:19)
at file:///Users/shah/projects/node/ai8/js/orb.js:7:7�[0m
My current environment is:
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G31
node -v
v6.9.5
npm -v
3.10.10
system_profiler SPBluetoothDataType | sed -n "/Apple Bluetooth Software Version\:/,/Manufacturer\:/p" | tr -s "[\n]" "[ ]" | sed "s:.*Address\: ::g" | sed "s: Manufacturer\:.*::g" | grep "[[:graph:]]"
80-E6-50-1B-50-31 Bluetooth Low Energy Supported: Yes Handoff Supported: Yes Instant Hot Spot Supported: Yes
from sphero.js.
I have the same issue, as far as I can tell BB8 is not sending back acks/responses that the framework is expecting. I increased the timeout when initializing the bb8 object but it just waits longer before showing an error.
Here is a very simple ping exhibiting the issue:
var sphero = require("sphero"),
bb8 = sphero("368062352763460e9591981b2974cac5", {timeout: 2000});
bb8.connect(function() {
bb8.ping(function(err, data) {
console.log(err || "data: " + data);
});
});
from sphero.js.
Same with SPRK+
Unhandled rejection Error: Command sync response was lost.
at Sphero.handler (/Users/andrux/Documents/Sphero/node_modules/sphero/lib/sphero.js:252:21)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
from sphero.js.
same with sprk+, ditto
As mentioned here: #37 I don't get this error if I entirely leave sensor streaming turned off.
from sphero.js.
Related Issues (20)
- Luminance with color red doesn't work well
- Unable to connect to multiple devices (Ollie and/or BB-8) HOT 2
- Feature Request: Go to a position in a coordination system.
- Unable to connect to Ollie after using sphero.js HOT 2
- Sphero 2.0 Connection fails most of the time HOT 1
- BB-8 command sync response error HOT 5
- Can't connect to BB-8 (advertisement-discovery.js hangs) HOT 3
- Almost impossible connection with BB-8 HOT 6
- Issue an updated release (0.9.3)
- Sphero SPRK controlled via Mac fills up queue and lags with executing commands HOT 2
- Unable to connect to R2D2 HOT 2
- Unable to connect to the Sphero Mini HOT 17
- Support for BB-9E HOT 23
- Is this project dead? HOT 10
- Connection issues... Possible workaround/hack HOT 2
- Cannot turn off sensor streaming
- Unhandled rejection TypeError: Cannot read property 'write' of null HOT 2
- Details about Sphero Mini communications? HOT 5
- Not working with Sphero Bolt HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sphero.js.