Chat freely about anything...

User avatar
By Synergy
#14613 Hi Guys,
I just joined here to see if i could get some info/feedback on the ESP8266 modules.

I have been playing with one of these modules now for a month or so and i have been running into one problem in particular.
I will explain.

So i start up the module (it is connected to a usb to ttl adapter) and i open up tera term.
I send reset command and i get a little jargon followed by www.ai-thinker.com version: 0.9.2.4.
I run through the process of searcing for my router and connecting to it.
Check for an IP addess, all good have an ip address of 192.168.0.13
So now were connected to the router (virgin super hub 2)

So i open up command prompt and i ping the ip address, This is where things get sketchy.
I start by pinging the module, data packets received, all good. But for some reason in the router settings i cant see the device. Its as if the router doesnt know its there. I can see my phone, playstation, chromecast and PC but not the ESP8266.

Is there a reason for this?

Second thing thats becoming a problem is the server setup. So i would like to set this up as a webserver.
So i send AT commands for multiple connections, and then i start the server listening on port 80.
If i goto a web browser on my PC and type in 192.168.0.13:80 then the module picks up the GET request. Using teraterm i can then send data in response to the GET request and then close the connection and it is displayed on the web browser as expected.

The problem lies where the module for some unexplained reason randomly stops listening for incoming connections. It no longer responds when you enter its IP into a browser and it also stops responding to pings. However the device still responds to all AT commands. Even tho the device is still responding to AT commands resending the commands to start the server will not work. The only way to solve the problem is to restart the module and then reissue comands to start listening for connections. All is well until it decides its had enough.

This is a big problem for me as i want to have the device accessable at any time. I would also like to make use of port forwarding to access the device. If im not home then i cannot reset the device in order to establish a connection.

Would anyone have any information on these 2 issues i am getting and how they may be solved?

Thank you in advance.
User avatar
By Synergy
#14622 Just one other thing, when a get request is received i can send data using the AT+CIPSEND command

So for example if i receive +IPD,0 then i send <AT+CIPSEND=0,X> X being the amount of characters i am sending.
When it comes to close the connection <AT+CIPCLOSE=0> This should close the connection between the browser and the module. Sometimes but rarely i get an unlink, as would be expected.
However more often than not, the module receives another GET request. These come from the following channel, i.e +IPD,1

So i send a command to close that connection and i get another GET request, Fromboth +IPD,0 and +IPD,2 after i close both these connections then i get the unlink.

Where are these connections likely to be coming from ?
User avatar
By _pike
#22528
Synergy wrote:Just one other thing, when a get request is received i can send data using the AT+CIPSEND command

So for example if i receive +IPD,0 then i send <AT+CIPSEND=0,X> X being the amount of characters i am sending.
When it comes to close the connection <AT+CIPCLOSE=0> This should close the connection between the browser and the module. Sometimes but rarely i get an unlink, as would be expected.
However more often than not, the module receives another GET request. These come from the following channel, i.e +IPD,1

So i send a command to close that connection and i get another GET request, Fromboth +IPD,0 and +IPD,2 after i close both these connections then i get the unlink.

Where are these connections likely to be coming from ?



Hello I have the same question as you.Did you understand why is this happenning? I have two modules the one of it has the 0.9.2.4 and the other one i updated to 0.9.5.