AndiDittrich / NodeMCU-Tool

:wrench: Upload + Manage Lua files on NodeMCU
https://www.npmjs.com/package/nodemcu-tool
MIT License
310 stars 54 forks source link

Mac OSX serial port problem #53

Closed arrowcircle closed 5 years ago

arrowcircle commented 5 years ago

Hi! On Mac OSX nodemcu devices appear not as /dev/ttyUSB0, but as /dev/tty.SLAB_USBtoUART.

Here is two outputs:

./nodemcu-tool devices
[NodeMCU-Tool]~ Unable to establish connection
[NodeMCU-Tool]~ Cannot open port "/dev/ttyUSB0"
nodemcu-tool devices --port /dev/tty.SLAB_USBtoUART
[NodeMCU-Tool]~ Connected
[device]      ~ Arch: esp8266 | Version: 2.2.0 | ChipID: 0x3a7c4f | FlashID: 0x1640ef
[device]      ~ Connected Devices | Total: 1
[device]      ~ - /dev/tty.SLAB_USBtoUART (Silicon Labs, undefined)
[NodeMCU-Tool]~ disconnecting

How it could be fixed?

AndiDittrich commented 5 years ago

Hi @arrowcircle ,

hmmm it shouldn't open a port to list devices...i will check this.

best regards, Andi

AndiDittrich commented 5 years ago

HI @arrowcircle ,

thanks for your report! it is fixed in 3.0.1 (current master branch)

background: during the refactoring of the codebase i've used some special commands for testing...therefore the devices action tried to establish a serial connection which is not required by the command.

sorry for this!

best regards, Andi

AndiDittrich commented 5 years ago

v3.0.1 has been release (GitHub + NPM)

arrowcircle commented 5 years ago

Thank You!