首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Ubuntu 15.04上运行johnny-five?

如何在Ubuntu 15.04上运行johnny-five?
EN

Stack Overflow用户
提问于 2015-07-15 01:31:16
回答 2查看 573关注 0票数 1
代码语言:javascript
复制
$ node hello.js 
1436894483255 Device(s) /dev/ttyUSB0  
1436894483279 Connected /dev/ttyUSB0  
1436894493287 Device or Firmware Error A timeout occurred while connecting to the Board. 

Please check that you've properly flashed the board with the correct firmware. 

See: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting 
events.js:87
      throw Error('Uncaught, unspecified "error" event.');
            ^
Error: Uncaught, unspecified "error" event.
    at Error (native)
    at Board.emit (events.js:87:13)
    at Board.log (/usr/lib/node_modules/johnny-five/lib/board.js:623:8)
    at Board.(anonymous function) [as error] (/usr/lib/node_modules/johnny-five/lib/board.js:634:14)
    at Board.<anonymous> (/usr/lib/node_modules/johnny-five/lib/board.js:407:12)
    at Timer.listOnTimeout (timers.js:119:15)

我已经在Ubuntu上安装了node和johnny-five,并连接了Arduino Nano。但是它抛出了上面的错误。

EN

回答 2

Stack Overflow用户

发布于 2015-07-21 16:05:57

在运行node应用程序之前,尝试打开arduino:

$ arduino

转到文件>示例> Firmata,然后选择StandardFirmata

一旦它打开,上传它的到你的arduino。

完成后,您应该能够毫无问题地运行您的节点应用程序

票数 1
EN

Stack Overflow用户

发布于 2015-11-26 23:53:08

arduino IDE可能持有与主板的连接。试着合上它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31413468

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档