Chat about current Lua tools and IDEs

User avatar
By ArchimedesPi
#9845 I wrote, not too long ago, yet another Python-based ESP8266 lua script uploader for the NodeMCU Lua firmware.
Get it here.
One of the cool things that my script, LuaUpload can do is upload through Telnet to a ESP8266 running the telnet server lua script.
I'd appreciate bug reports, feature requests, and most of all, pull requests. I've not been very active on this project, but I intend to continue developing it, now that I'm not bogged down with work.

Liam
User avatar
By raz123
#10071 Tried to use it. Couldn't find the luaupload.exe that your readme talks of.

EDIT: managed to find it, here.

Tried running it in Win32, under an elevated cmd prompt. Errors:

Code: Select allD:\esp8266\luaupload\luaupload.exe upload --port COM1 --baud 115200 text.txt
Could not open serial port COM1 at 115200
Traceback (most recent call last):
  File "<string>", line 89, in <module>
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\click.core", line 610, in __call__
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\click.core", line 590, in main
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\click.core", line 936, in invoke
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\click.core", line 782, in invoke
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\click.core", line 416, in invoke
  File "<string>", line 84, in upload
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\luaupload.esp8266", line 12, in connect
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\serial.serialwin32", line 38, in __init__
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\serial.serialutil", line 282, in __init__
  File "c:\Users\Liam\Documents\GitHub\esp8266-luaupload\build\luaupload\out00-PYZ.pyz\serial.serialwin32", line 66, in open
serial.serialutil.SerialException: could not open port u'COM1': WindowsError(5, 'Access is denied.')


No sweat. Was just trying things. I think that you might want to add a binary upload option.
User avatar
By ArchimedesPi
#10841
raz123 wrote:Tried to use it. Couldn't find the luaupload.exe that your readme talks of.

EDIT: managed to find it, here.

Sorry about that, I've updated the readme to be easier to understand :D

raz123 wrote:Tried running it in Win32, under an elevated cmd prompt. Errors:

Code: Select allD:\esp8266\luaupload\luaupload.exe upload --port COM1 --baud 115200 text.txt
Could not open serial port COM1 at 115200
Traceback (most recent call last):
  <...>
serial.serialutil.SerialException: could not open port u'COM1': WindowsError(5, 'Access is denied.')


This is a general problem with Pyserial, and many Windows programs that use serial.
One of the solutions I've seen is to disable and then reenable the serial port in Device Manager.
Also, could you install pyserial and try using miniterm.py to open a connection?
That would tell me if it's a problem with PySerial or with my program's usage of PySerial.

raz123 wrote:I think that you might want to add a binary upload option.

Could you elaborate on that? I'd be happy to implement it if I knew more about what you want :)

BTW thanks for testdriving my code!