I am setting up where an ESP8266 (a single one right now, more to come in the future) communicates via WIFI with a host computer. No cloud solution should be involved and communication should be simple, therefore I just choose basic TCP/IP communication. The host computer sends short commands that consist of a couple of bytes. I am using simple code that is relying on code samples for TCP servers provided here and elsewhere.
Now the funny/frustrating thing is, that the communication from host to ESP8266 is reliable and fast as long as my router provides the network ("FritzBox", standard WIFI router). Ping shows that 100% of packets arrive the ESP in time, establishing a socket connection from the python script on my windows host works immediately.
Things get complicated if I host the WIFI network from my LinkitSmart 7688 board (SEED-Studio, OpenWRT). I need several attempts to establish a connection. Even more, the ESP crashes or stops responding during all transmits. Also, trying to connect to a client (my PC, if the python script is running) take much longer. The system gets very unstable, so that I can't use it within my project.
Does anyone have a suggestion how to find a solution? The issue seems to be on the side of the router. signal strength is similar to the strength of my home WIFI router. I can access HTML maintenance pages from my router via WIFI.
However, I am a bit concerned since the ESP seems to get unreliable in situations where signal strength decreases.
Many thanks to everyone in advance for your comments and suggestions.
Best
T.P.