Left here for archival purposes.

User avatar
By j3rryken
#39327 ive recently bought a few esp8266-12E modules from amica

all work well and in the beginning i flashed them with the nodemcu 0.9.6 stock firmware
but soon i discovered some problems so i tried to compile the 1.4.0 version myself

after installing in linux all the needed tools i configured user_modules.h and user_version.h to my needs
and compiled the binary succesfull

but after flashing the module was spewing garbage errors in the serial terminal (esptool)
Code: Select alldepc=0x00000000
Fatal exception (0):
epc1=0x4021058c, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x4021058c, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):

it just keeps flooding, and doesnt accept any commands, i tried to erase_flash and even flashed a 4mb zero bin file to be sure the memory is blank before flashing the new one
i did recompiled the binary with different settings and modules but results where all the same
and did a complete update of my system (ubuntu 15.10)

then i tried http://nodemcu-build.com/
just selected the modules i needed and 5 minutes later they mailed me the binaries

the rom flashed fine without problems and boot very quick !
but then i discovered in the 1.4.0 and the 1.5.0(dev) version net.tcp and udp is broken

for some reason i cannot create outgoing connections in 1.4.0 and 1.5.0 (listening sockets work perfect)
server works well, now im forced to use nodemcu 0.9.6 as client and nodemcu 1.4.0 as server

im using 2 modules to communicate with eachother one as runs as AP and accepting connections
and the other module connects to it to report sensor values over tcp

another problem is that SOFTAP and STATIONAP as access point is unstable when i connect to it with the esp8266
for some reason the connection dies after 20 or 30 minutes
so ive implemented an alarm function that checks every 5 minutes wifi.sta.status() and wifi.sta.ip()
but even the esp lost the connection, it is still returning values that is is connected to the STATIONAP (nodemcu 1.4.0)
then ive implemented a ping function
instead of checking every 5 minutes for wifi.sta.status() and wifi.sta.ip() im now sending "PING" messages to the server
and if not returning "PONG" it will execute wifi.sta.connect()

this seems to work well, but im wondering if this is in the nodemcu-build.com version only or is it affecting all versions numbered 1.4.0 ?

ive tried compiling online master and dev versions with diffrent modules

maybe someone can compile me nodemcu 1.4.0 to see if it works
my compiler just creates useless binaries for some reason

with the follwing modules: node, file, gpio, wifi, net, pwm, tmr, uart, bit, dht

thanks in advance