Javascript 如何在Ubuntu 15.04上运行johnny five? $node hello.js 1436894483255设备/dev/ttyUSB0 1436894483279已连接/dev/ttyUSB0 1436894393287设备或固件错误连接到板时发生超时。 请检查您是否已使用正确的固件正确闪存了电路板。 见:https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-射击 events.js:87 抛出错误('未捕获,未指定的“错误”事件'); ^ 错误:未捕获、未指定的“错误”事件。 错误(本机) 在Board.emit(events.js:87:13) 在Board.log(/usr/lib/node_modules/johnny-five/lib/Board.js:623:8) 板上。(匿名函数)[作为错误](/usr/lib/node_modules/johnny-five/lib/Board.js:634:14) 在船上。(/usr/lib/node_modules/johnny-five/lib/board.js:407:12) 在Timer.listOnTimeout(timers.js:119:15)

Javascript 如何在Ubuntu 15.04上运行johnny five? $node hello.js 1436894483255设备/dev/ttyUSB0 1436894483279已连接/dev/ttyUSB0 1436894393287设备或固件错误连接到板时发生超时。 请检查您是否已使用正确的固件正确闪存了电路板。 见:https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-射击 events.js:87 抛出错误('未捕获,未指定的“错误”事件'); ^ 错误:未捕获、未指定的“错误”事件。 错误(本机) 在Board.emit(events.js:87:13) 在Board.log(/usr/lib/node_modules/johnny-five/lib/Board.js:623:8) 板上。(匿名函数)[作为错误](/usr/lib/node_modules/johnny-five/lib/Board.js:634:14) 在船上。(/usr/lib/node_modules/johnny-five/lib/board.js:407:12) 在Timer.listOnTimeout(timers.js:119:15),javascript,node.js,ubuntu-15.04,johnny-five,Javascript,Node.js,Ubuntu 15.04,Johnny Five,我已经在Ubuntu上安装了node和johnny five,并连接了Arduino Nano。但它抛出了上述错误 在运行节点应用程序之前,请尝试打开arduino: $arduino 转到文件>示例>固件数据,然后选择标准固件数据 打开后,将其上传至arduino 完成后,您应该能够运行节点应用程序而不会出现任何问题arduino IDE可能会保持与电路板的连接。尝试关闭它。您是否也安装了Firmata固件,如错误消息链接到的页面所述? $ node hello.js 14368944832

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

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

$arduino

转到文件>示例>固件数据,然后选择标准固件数据

打开后,将其上传至arduino


完成后,您应该能够运行节点应用程序而不会出现任何问题

arduino IDE可能会保持与电路板的连接。尝试关闭它。

您是否也安装了Firmata固件,如错误消息链接到的页面所述?
$ 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)