Giter Site home page Giter Site logo

Comments (4)

ShahNewazKhan avatar ShahNewazKhan commented on June 10, 2024

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.

YBadiss avatar YBadiss commented on June 10, 2024

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.

andriitishchenko avatar andriitishchenko commented on June 10, 2024

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.

avidj avatar avidj commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.