Left here for archival purposes.

User avatar
By Marco Schwartz
#10616 Hello,

I just put installed the NodeMCU firmware to my ESP8266 boards (one small module, and one development board from Olimex). With both, I can execute basic commands on the board via NodeMCU (via a FTDI module), but for example when I do a node.restart() I get:

c_..RS.fJS.fJS.f..

NodeMCU 0.9.5 build 20150213 powered by Lua 5.1.4
lua: cannot open init.lua

These characters (c_..RS.fJS.fJS.f..) at the start are quite strange ... is that normal? Also it prevents me from using any IDE or uploading files to the ESP8266 via Python for example. And the init.lua file should be there right?

To flash the board I tried both with the official NodeMCU flash utility & with a Python script. Is there something I am doing wrong? Thanks!
User avatar
By Marco Schwartz
#10669 Well I also can't transfer any file because of these strange characters. For example using luatool.py:

macbookpro:luatool marco$ ./luatool.py --port /dev/tty.usbserial-A9014TM4 --src init.lua --dest init.lua --baud 9600

->file.open("init.lua", "w")

ERROR
send string : 'file.open("init.lua", "w")'
expected echo : 'file.open("init.lua", "w")'
but got answer : '<???Y??
??N??
??????H??c?'

Traceback (most recent call last):
File "./luatool.py", line 118, in <module>
writeln("file.open(\""+args.dest+"\", \"w\")\r")
File "./luatool.py", line 57, in writeln
raise Exception('Error sending data to MCU\r\n\r\n')
Exception: Error sending data to MCU