rwaldron / johnny-five

JavaScript Robotics and IoT programming framework, developed at Bocoup.
http://johnny-five.io
Other
13.26k stars 1.76k forks source link

Using latest version of ConfigurableFirmata gives "Device or Firmware Error" #43 #1784

Open therealhugocosta opened 2 years ago

therealhugocosta commented 2 years ago

I'm trying using an ESP32 dev board with firmata over wifi. I'm using ConfigurableFirmata because that is the only one i could find that supports the ESP32.

The master branch of ConfigurableFirmata brings support for the ESP32 over wifi. https://github.com/firmata/ConfigurableFirmata/blob/master/examples/ConfigurableFirmata/ConfigurableFirmata.ino

After many tryouts i've found out that the tcp connection is made to the board but johnny-five gives "Device or Firmware Error".

` 1648652962399 Available Firmata
1648652962482 Connected Firmata
1648652972489 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

If connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again.
five error { type: 'error', timestamp: 1648652972489, class: 'Device or Firmware Error', message: 'A timeout occurred while connecting to the Board. \n' + '\n' + "Please check that you've properly flashed the board with the correct firmware.\n" + 'See: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting\n' + '\n' + "If connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again.", data: null } five error Error: A timeout occurred while connecting to the Board. at Timeout._onTimeout (/root/node_modules/johnny-five/lib/board.js:394:28) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)

`

Maybe there is something with the latest ConfigurableFirmata not supported by johnny-five?

o-in25 commented 1 year ago

@therealhugocosta Did you ever get this working? I have an ESP32 as well and am interested in running J5 but I've been hitting some roadblocks

lemio commented 10 months ago

Same here