Nicholas3388 / LuaNode

Lua sdk for Esp32/Esp32c2/Esp32c3/Esp32c6/Esp8266/STM32L4
Other
1.13k stars 286 forks source link

node.restart() kills the USB connection #10

Open erknie opened 7 years ago

erknie commented 7 years ago

I noticed that if you call node.restart() the boot process kills the USB ->serial connection to the computer you are using to talk to Luanode. I am using a Mac running Yosemite, and tried it on several different terminal programs. Zterm, miniterm.py, picocom, they all hang when you issue an node.restart() so you have to quit the terminal program and restart it.

I am using the device /dev/cu.SLAB_USBtoUART to talk to LuaNode on the DOIT ESP-32 Dev board which comes with LuaNode already installed.

Nicholas3388 commented 7 years ago

@erknie Hi, I am using /dev/tty.SLAB_USBtoUART on Mac OS Sierra to talk to LuaNode. I used screen /dev/tty.SLAB_USBtoUART 115200 to input commands. It works well, when input node.restart(), the device will restart without killing USB connection. Maybe you can try to download and install my CP210x driver from the following link: https://pan.baidu.com/s/1pL4TPfP , and then use screen command to talk to LuaNode.

erknie commented 7 years ago

Ok, I did some more tests and it works in Arduino IDE serial monitor, on an older Mac OSX so you may be right. I will try your driver tonight.

rzr commented 6 years ago

it works fine on my debian linux system running GNU screen