Thursday, 2 January 2020

Johnny Five Over Bluetooth Connection Issue

I want to run commands from my computer to an Arduino using JS/Johnny-Five, wirelessly. I have an Uno and an HC-05. I set the HC-05 up per the instructions in this URL. I can pair my computer to it and I have uploaded StandardFirmata to the Uno. But it seems to time out when I try to communicate with it.

When I type, through NodeJS command line

> var five = require("johnny-five");
> var board = new five.Board({repl: false, port:'/dev/cu.ailaGduino-DevB'})

I get:

1480635008609 Connected /dev/cu.ailaGduino-DevB  
undefined
> 1480635018633 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

It later mentions Timer.listOnTimeout as part of the error call stack.

The Arduino IDE lists that specific device when paired, I guess that's why it says "Connected".

When I try the same command again, I get

> var board = new five.Board({port:'/dev/cu.ailaGduino-DevB'})
1480635041136 Connected /dev/cu.ailaGduino-DevB  
undefined
> 1480635041138 Error Error Resource temporarily unavailable Cannot lock port  

It was fine through USB.

Any ideas?



from Johnny Five Over Bluetooth Connection Issue

No comments:

Post a Comment