-->
Page 2 of 4

Re: ESP reliability and firmware update

PostPosted: Thu May 26, 2016 6:54 am
by mixxx2005
UPDATE!
Even with 470microF capacitor module hangs after around 200 cycles.
What is cause of this? :(

Re: ESP reliability and firmware update

PostPosted: Thu May 26, 2016 7:47 am
by martinayotte
Maybe something in your code ?
(My modules are running since weeks without any problems).

Re: ESP reliability and firmware update

PostPosted: Thu May 26, 2016 9:04 am
by xtal
You might try disabling the 1-wire code , and just simulate the 1-wire value , to see if that clears
the issue. Onewire can be very frustrating .....
I'm using LINKUSB Onewire adapters and have discovered that the reset pulse is sometimes
less than the 480us , It appears to do this whenever it feels like it, or may be some other slave causing the issue, I haven't pursued this yet, I just compensated my DIY DS2450 Slave to accept it...
Ascii Letters/CMDS are sent to LINKUSB . The reset is usually 488us but sometimes is 360us..
Any way try without 1-wire to see if that is the issue...

Re: ESP reliability and firmware update

PostPosted: Thu May 26, 2016 11:52 am
by mixxx2005
thanks guys, I removed part from code , where ESP is waiting for response from server and everything seems to work for about 1 hour.

part what seems to cause troubles :
Code: Select all  int timeout = millis() + 1000;
  while (client.available() == 0) {
    if (timeout - millis() < 0) {
           client.stop();
      return;
    }
  }
 
  // Read all the lines of the reply from server and print them to Serial
  while(client.available()){
    String line = client.readStringUntil('\r');
  } - See more at: http://www.esp8266.com/posting.php?mode=reply&f=6&t=10127&sid=cf849056a6b493125a69f941db3419e8#sthash.Euh1Icki.dpuf