-->
Page 1 of 1

Device needs a reprogram after a few days

PostPosted: Tue May 30, 2017 6:53 am
by Dr pepper
I'm using a Esp8266 01 module.
The device hosts a wepage directly, and works fine for a few days, but then my browser will not connect to it, the esp still communicates over its serial connection, but wont talk to a browser over the net.
Powering down and back on again doesnt fix things, however if I pull the module and reprogram it, then it'll work again for another few days.
I have a 10uF tant across the supply, PD is grounded, all other pins are not connected 'cept power & comms.

Re: Device needs a reprogram after a few days

PostPosted: Sun Jun 04, 2017 2:44 pm
by Dr pepper
Ok I have some more information.
The routers gateway address changes, it was 192.168.1.1, then after a few days it went to 192,168,1,4, then after another esp reprogram it worked for a while bu then changed again to 192.168.1.6.
Is this te be expected, mt router at home doesnt do this, this one at work is only used for this and security cams.
Could the routers ip be setup with dhcp?
After some googling I found that this issue can be related to connection stay alive, but I'm not sure how.
Any ideas welcome.

Re: Device needs a reprogram after a few days

PostPosted: Sun Jun 04, 2017 4:54 pm
by Dr pepper
Well I think I sussed it (I hope).
There was another reserved address on the router 192.168.1.130, the address for my esp8266 is 192.168.1.13, as soon as I deleted the 130 address things are working better.
Odd as 192.168.1.130 is an illegal IP and the router wont let me re-insert it.
And the lan IP is static, whereas the Wan IP on this router is dynamic.
Somehow the Esp must have been assigned a dynamic IP, and once timed out I could no longer connect.