ESP8266 Developer Zone The Official ESP8266 Forum 2015-11-08T07:43:37+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=1161 2015-11-08T07:43:37+08:00 2015-11-08T07:43:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4478#p4478 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]>
I moved to the NODEMCU with same setup and code and its been stable for days...no issues when coming out of deep sleep...could they have fixed the implementation issue on the ESP8266?

testing...stay tuned.

Statistics: Posted by TheWho — Sun Nov 08, 2015 7:43 am


]]>
2015-11-08T07:42:08+08:00 2015-11-08T07:42:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4477#p4477 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]>
TheWho wrote:
bump


Update: it was suggested that adding a pullup resister to GPIO 2 and GPIO 0 would stabilize deep sleep. Tried it...still hangs randomly...still seeking solution...

Any suggestions?

Statistics: Posted by TheWho — Sun Nov 08, 2015 7:42 am


]]>
2015-11-02T09:44:26+08:00 2015-11-02T09:44:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4404#p4404 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]> Statistics: Posted by TheWho — Mon Nov 02, 2015 9:44 am


]]>
2015-10-29T00:30:43+08:00 2015-10-29T00:30:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4347#p4347 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]>
OlgaPaw wrote:
Hello.
I'm trying to run deep sleep with SDK code, but have no idea in which code place it wakes up. After wakeup esp prints some unidentified chars to UART, but nothing else happend. I use esp-12. With no extra connections. Also tried with esp-01 with the same result.
What should I do? Should I connect GPIO16 to sth? To What?

thanks for answers


GPIO will need to be connected to RST pinout. I used a jumper to do that or you can solder a wire.
I'm using the ESP-12 on a breakout board. The ESP-01 requires a wire to be soldered from the chip wire to the pin.
The deep sleep code will wake up and restart at the beginning.

Statistics: Posted by TheWho — Thu Oct 29, 2015 12:30 am


]]>
2015-10-28T22:02:50+08:00 2015-10-28T22:02:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4345#p4345 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]> I'm trying to run deep sleep with SDK code, but have no idea in which code place it wakes up. After wakeup esp prints some unidentified chars to UART, but nothing else happend. I use esp-12. With no extra connections. Also tried with esp-01 with the same result.
What should I do? Should I connect GPIO16 to sth? To What?

thanks for answers

Statistics: Posted by OlgaPaw — Wed Oct 28, 2015 10:02 pm


]]>
2015-10-23T11:09:09+08:00 2015-10-23T11:09:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4246#p4246 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]>
thank you.

Statistics: Posted by TheWho — Fri Oct 23, 2015 11:09 am


]]>
2015-10-22T15:43:08+08:00 2015-10-22T15:43:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4235#p4235 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]>
To wake up from deep-sleep, XPD_DCDC has to connect to EXT_RSTB with 0 ohm resistor.

Thanks for your interest in ESP8266!

Statistics: Posted by ESP_Faye — Thu Oct 22, 2015 3:43 pm


]]>
2015-10-21T09:21:11+08:00 2015-10-21T09:21:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4195#p4195 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]> Statistics: Posted by TheWho — Wed Oct 21, 2015 9:21 am


]]>
2015-10-10T14:13:22+08:00 2015-10-10T14:11:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4041#p4041 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]> Could the resistance be incorrect?

********************************************************************************************************************
Here's the code I'm using.
********************************************************************************************************************
#include <DHT.h>
#include <ESP8266WiFi.h>

// replace with your channel's thingspeak API key,
String apiKey = "<Key>";
const char* ssid = "<Network>";
const char* password = "<Key>";

const char* server = "api.thingspeak.com";
#define DHTPIN 5 // what pin we're connected to

DHT dht(DHTPIN, DHT11, 15);
WiFiClient client;

void setup() {
// Time to sleep (in seconds):
const int sleepTimeS = 300;

float h = dht.readHumidity();
float t = dht.readTemperature(true);

Serial.begin(115200);
delay(10);
dht.begin();

WiFi.begin(ssid, password);

Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(3000);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");

if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}

if (client.connect(server, 80)) { // "184.106.153.149" or api.thingspeak.com
String postStr = apiKey;
postStr += "&field1=";
postStr += String(t);
postStr += "&field2=";
postStr += String(h);
postStr += "\r\n\r\n";

client.print("POST /update HTTP/1.1\n");
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("X-THINGSPEAKAPIKEY: " + apiKey + "\n");
client.print("Content-Type: application/x-www-form-urlencoded\n");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("\n\n");
client.print(postStr);

Serial.print("Temperature: ");
Serial.print(t);
Serial.print(" degrees Fahrenheit Humidity: ");
Serial.print(h);
Serial.println("% send to Thingspeak");
}
client.stop();

//Serial.println("Waiting...");
// thingspeak needs minimum 15 sec delay between updates
// delay(300000);

// deepSleep time is defined in microseconds. Multiply
// seconds by 1e6
ESP.deepSleep(sleepTimeS * 1000000);
delay(1000);
}

void loop() {
}

Statistics: Posted by TheWho — Sat Oct 10, 2015 2:11 pm


]]>
2015-10-10T14:11:58+08:00 2015-10-10T14:11:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4040#p4040 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]> Could the resistance be incorrect?

********************************************************************************************************************
Here's the code I'm using.
********************************************************************************************************************
#include <DHT.h>
#include <ESP8266WiFi.h>

// replace with your channel's thingspeak API key,
String apiKey = "<Key>";
const char* ssid = "<Network>";
const char* password = "<Key>";

const char* server = "api.thingspeak.com";
#define DHTPIN 5 // what pin we're connected to

DHT dht(DHTPIN, DHT11, 15);
WiFiClient client;

void setup() {
// Time to sleep (in seconds):
const int sleepTimeS = 300;

float h = dht.readHumidity();
float t = dht.readTemperature(true);

Serial.begin(115200);
delay(10);
dht.begin();

WiFi.begin(ssid, password);

Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(3000);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");

if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}

if (client.connect(server, 80)) { // "184.106.153.149" or api.thingspeak.com
String postStr = apiKey;
postStr += "&field1=";
postStr += String(t);
postStr += "&field2=";
postStr += String(h);
postStr += "\r\n\r\n";

client.print("POST /update HTTP/1.1\n");
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("X-THINGSPEAKAPIKEY: " + apiKey + "\n");
client.print("Content-Type: application/x-www-form-urlencoded\n");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("\n\n");
client.print(postStr);

Serial.print("Temperature: ");
Serial.print(t);
Serial.print(" degrees Fahrenheit Humidity: ");
Serial.print(h);
Serial.println("% send to Thingspeak");
}
client.stop();

//Serial.println("Waiting...");
// thingspeak needs minimum 15 sec delay between updates
// delay(300000);

// deepSleep time is defined in microseconds. Multiply
// seconds by 1e6
ESP.deepSleep(sleepTimeS * 1000000);
delay(1000);
}

void loop() {
}

Statistics: Posted by TheWho — Sat Oct 10, 2015 2:11 pm


]]>
2015-10-09T15:07:39+08:00 2015-10-09T15:07:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=4024#p4024 <![CDATA[Re: ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]>
Documentation about sleep mode

To wake up from deep-sleep, XPD_DCDC needs to connects to EXT_RSTB with 0 ohm resistor.

Statistics: Posted by ESP_Faye — Fri Oct 09, 2015 3:07 pm


]]>
2015-09-27T12:57:05+08:00 2015-09-27T12:57:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1161&p=3877#p3877 <![CDATA[ESP8266-12 HANGS WHEN COMING OUT OF DEEP SLEEP MODE]]>
The issue is that the ESP8266 will hang when coming out of deep sleep. Whens it's in a deep sleep the red LED will be dim. When it hangs, it turns bright red and the blue light may or may not be lit. It works for hours and then fails for hours with no distinct pattern.

What has me stumped is that I've tried multiple power supplies and cannot detect a pattern.

Any reasons or solutions?

Statistics: Posted by TheWho — Sun Sep 27, 2015 12:57 pm


]]>