User Tools

Site Tools


amc2020:group_n:deepsleep

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
amc2020:group_n:deepsleep [2020/07/27 18:21] – [3.2 The Code Explained] jonas001amc2020:group_n:deepsleep [2021/08/24 17:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<html>
 +  <left>
 +    <a href="https://wiki.eolab.de/doku.php?id=amc2020:group_n:start"; onmouseover="style.color='green'";>
 +      <span style="color:#2E71B8"; onmouseover="style.color='green'"; onmouseout="style.color='#2E71B8'";>
 +        &#8617 Back to the main page
 +      </span>
 +    </a>
 +  </left>
 +</html>
 +
 ====== ESP32 Deep Sleep Mode ====== ====== ESP32 Deep Sleep Mode ======
  
Line 99: Line 109:
         </li>         </li>
     </ol>     </ol>
 +</html>
 +
 +==== 3.3 Results ====
 +
 +Apart from the timestamps on the left, the result in the serial monitor should look like this. In the data that the ESP32 prints by itself, it can be seen that the reset occured due to waking up from deep sleep (1). Furthermore, the last serial print command was not executed because deep sleep was activated before that could happen.
 +
 +When comparing the time stamps (1, 3 and 4) it becomes visible that the wake up from deep sleep occurred always 1 minute after the last wake up. However, the milliseconds are always varying a little bit. This might be due to the temperature compensation of the DS3231 through which the capacitance and therefore the frequency of the oscillator are changed. So, there might be very small inaccuracies, but they are constantly compensated for by the module, such that the total drift stays very low.
 +
 +<code>
 +18:50:42.643 -> ets Jun  8 2016 00:22:57
 +18:50:42.643 -> 
 +18:50:42.643 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) //1
 +18:50:42.643 -> configsip: 0, SPIWP:0xee
 +18:50:42.643 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
 +18:50:42.643 -> mode:DIO, clock div:1
 +18:50:42.643 -> load:0x3fff0018,len:4
 +18:50:42.643 -> load:0x3fff001c,len:1216
 +18:50:42.643 -> ho 0 tail 12 room 4
 +18:50:42.643 -> load:0x40078000,len:10864
 +18:50:42.643 -> load:0x40080400,len:6432
 +18:50:42.643 -> entry 0x400806b8
 +18:50:43.793 -> ESP32 woke up from deep sleep.
 +18:50:43.793 -> Going back to sleep in 3
 +18:50:44.783 -> Going back to sleep in 2
 +18:50:45.743 -> Going back to sleep in 1
 +18:50:46.743 -> Going back to sleep in 0                                  //2
 +18:51:42.633 -> ets Jun  8 2016 00:22:57                                  //3
 +18:51:42.633 -> 
 +18:51:42.633 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
 +18:51:42.633 -> configsip: 0, SPIWP:0xee
 +18:51:42.633 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
 +18:51:42.633 -> mode:DIO, clock div:1
 +18:51:42.633 -> load:0x3fff0018,len:4
 +18:51:42.633 -> load:0x3fff001c,len:1216
 +18:51:42.633 -> ho 0 tail 12 room 4
 +18:51:42.633 -> load:0x40078000,len:10864
 +18:51:42.633 -> load:0x40080400,len:6432
 +18:51:42.633 -> entry 0x400806b8
 +18:51:43.782 -> ESP32 woke up from deep sleep.
 +18:51:43.782 -> Going back to sleep in 3
 +18:51:44.763 -> Going back to sleep in 2
 +18:51:45.753 -> Going back to sleep in 1
 +18:51:46.763 -> Going back to sleep in 0
 +18:52:42.653 -> ets Jun  8 2016 00:22:57                                  //4
 +18:52:42.653 -> 
 +18:52:42.653 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
 +18:52:42.653 -> configsip: 0, SPIWP:0xee
 +18:52:42.653 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
 +18:52:42.653 -> mode:DIO, clock div:1
 +18:52:42.653 -> load:0x3fff0018,len:4
 +18:52:42.653 -> load:0x3fff001c,len:1216
 +18:52:42.653 -> ho 0 tail 12 room 4
 +18:52:42.653 -> load:0x40078000,len:10864
 +18:52:42.653 -> load:0x40080400,len:6432
 +18:52:42.653 -> entry 0x400806b8
 +18:52:43.753 -> ESP32 woke up from deep sleep.
 +18:52:43.753 -> Going back to sleep in 3
 +18:52:44.753 -> Going back to sleep in 2
 +18:52:45.793 -> Going back to sleep in 1
 +18:52:46.783 -> Going back to sleep in 0
 +</code>
 +
 +<html>
 +  <center>
 +    <span>
 +    <a href="javascript:self.scrollTo(0,0)"; onmouseover="style.color='green'";>
 +      <span style="color:#2E71B8"; onmouseover="style.color='green'"; onmouseout="style.color='#2E71B8'";>
 +        Back to the top &#10548
 +      </span>
 +    </a>
 +    </span>
 +  </center>
 </html> </html>
amc2020/group_n/deepsleep.1595866871.txt.gz · Last modified: 2021/08/24 17:34 (external edit)