Closed micheldrescher closed 5 years ago
@micheldrescher
it is not the desired behaviour... please read https://github.com/AndiDittrich/NodeMCU-Tool/blob/master/docs/Reset_on_Connect.md
the issue is caused by the DTS/RTS lines which are invoked by the serialport driver during initialization....
Thanks for the link, but it doesn't fix my problem.
How do prevent that from happening? The current workaround to invoke terminal and manually do a dofile("hello_world.lc")
is rather clunky and time consuming...
To clarify, I am not EE-ing my own boards, I am using a Wemos D1 mini. And it is only the terminal operation that causes the problem!
use another NodeMCU module......or fix the serialport driver
the issue does only appear on a few modules...for example the "original" NodeMCU module work fine.
Node.js (by proxyof serialport) seems to be a bad choice for IoT/embedded development then, anyway...
Guess I'll have to look for a different tool then.
@micheldrescher
the issue is related to the OS serialport driver (usb<>serial chip) and the HW design of the NodeMCU modules...
Hi,
I finally managed to get nodemcu-tool to work on Mac OS X. However, I can't get the --run option of the terminal operation to work - I have no idea what is going on.
It seems that for whatever reason, invoking
terminal
operation resets the ESP8266 to rebooting. Is that desired behaviour? If so, It should not interfere with the--run
sub-command.See below for a capture on what happens on my terminal when trying to get a very simple hello world Lua script to execute via terminal. The underlying point is that for my actual developments I cannot use the
run
operation, because my Lua scripts include asynchronous callbacks, andrun
exits before these even have the chance to run and produce (debug) output.My .nodemcu contents is:
And here is the log of my terminal activities. You can clearly see that the file
hello_world.lc
exists and can be invoked via therun
operation of nodemcu-tool - but not when I try to execute it vianodemcu-tool terminal --run hello_world.lc
What is going on?
Cheers, Michel