Item Modem-sleep Light-sleep Deep-sleep

Similar documents
ESP 8266: A BREAKTHROUGH IN WIRELESS SENSOR NETWORKS AND INTERNET OF THINGS

How To Use An Adh8012 Gsm Gprs Module With A Gsm (Gsm) Gpros (Gsp) Gpls (Geo) Gsp (Gpl) Gs

PROGRAMMABLE WIRELESS STAMP (PWS) USER MANUAL

HANDLING SUSPEND MODE ON A USB MOUSE

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

Hello, and welcome to this presentation of the STM32 SDMMC controller module. It covers the main features of the controller which is used to connect

AN4646 Application note

UniPi technical documentation REV 1.1

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

DS1621 Digital Thermometer and Thermostat

Z-Wave Gas Reader. Product Manual NQ-9121-EU. From your Z-wave network directly to the cloud! DESCRIPTION

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Selecting the Right MCU Can Squeeze Nanoamps out of Your Next Internet of Things Application

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

GSM. Quectel Cellular Engine. GSM TCPIP Application Notes GSM_TCPIP_AN_V1.1

FLYPORT Wi-Fi G

ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information

DS1621 Digital Thermometer and Thermostat

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

Talk2M ewon Internet Connection How To

M95 Dual SIM Application Notes

Wireless Temperature

Intelligent Home Automation and Security System

Adding WiFi to Your Embedded System. WPG Americas & Gainspan Titus Wandinger (WPG) & Su Li (Gainspan) April 23, 2013

Lab Experiment 1: The LPC 2148 Education Board

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

MeshBee Open Source ZigBee RF Module CookBook

PAC52XX Clock Control Firmware Design

LIN (Local Interconnect Network):

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

FOMA (R) /Wireless LAN Dual Terminals, Wireless LAN Technology

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board

WUA Mbps Wireless USB Network Adapter

The Energy Harvesting Tipping Point for Wireless Sensor Applications

Bluetooth for device discovery. Networking Guide

Real-Time Clock. * Real-Time Computing, edited by Duncan A. Mellichamp, Van Nostrand Reinhold

Section 29. Real-Time Clock and Calendar (RTCC)

Product Introduction and Setup Examples. RS232 to WIFI Converter

Bellplast S.R.L. Informe del Dpto. Técnico

Computer Systems Structure Input/Output

Figure 1.Block diagram of inventory management system using Proximity sensors.

IS187x_BM7x - BLEDK3 v1.01 Release Note

Bluetooth SMART Advertise-Only Beacon Reference Design

DS1821 Programmable Digital Thermostat and Thermometer

AVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

Hello, welcome to this presentation of the low power timer, or LPTMR, module for Kinetis MCUs. In this session you ll learn about the LPTMR, it s

AN141 SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES. 1. Introduction. 2. Overview of the SMBus Specification. 2.1.

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

SuperGuard VT-05 Vehicle Tracking Device

Tire pressure monitoring

Serial Communications

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

ESP bgn Smart Device ESPRESSIF SMART CONNECTIVITY PLATFORM: ESP8266

Arduino Motor Shield (L298) Manual

Using the Siemens S65 Display

WISE-4000 Series. WISE IoT Wireless I/O Modules

Self-Evaluation Configuration for Remote Data Logging Systems

Tutorial for MPLAB Starter Kit for PIC18F

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

Design of Wireless Home automation and security system using PIC Microcontroller

High-Stability Time Adjustment with Real-Time Clock Module

MARTECH SPI Tools. MARTECH SPI Tools User Manual v1.0. User Manual

Overview. 1. GPS data tracking via GSM SMS / GPRS. 2. GPS data logging in internal memory. 3. Alarm alert via GSM SMS / Dialing / GPRS

Bus Data Acquisition and Remote Monitoring System Using Gsm & Can

Freescale Variable Key Security Protocol Transmitter User s Guide by: Ioseph Martínez and Christian Michel Applications Engineering - RTAC Americas

In-Vehicle Networking

Development of an Internet based Embedded System for Smart House Controlling and Monitoring

Bidirectional wireless communication using EmbedRF

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

Eureka Technology. Understanding SD, SDIO and MMC Interface. by Eureka Technology Inc. May 26th, Copyright (C) All Rights Reserved

Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada


I.S. 1 remote I/O system Redundant coupling via PROFIBUS DP

5inch HDMI LCD User Manual

Operating Systems. Lecture 03. February 11, 2013

Wireless Sensor Network for Electric Meter Handling

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

Computer Organization & Architecture Lecture #19

ESPRESSIF SMART CONNECTIVITY PLATFORM: ESP8266EX

M85 OpenCPU Solution Presentation

Definitions and Documents

DS1104 R&D Controller Board

The Heartbeat behind Portable Medical Devices: Ultra-Low-Power Mixed-Signal Microcontrollers

Microtronics technologies Mobile:

HAC-LM Series Low Power Data Radio Module

APPLICATION. si32library. Callback CMSIS HARDWARE. Figure 1. Firmware Layer Block Diagram

Bluetooth to serial HC-06 wireless module

EVAL-UFDC-1/UFDC-1M-16

Kernel Testing: Tool and Techniques. Matt Porter Texas Instruments 21 February 2013

Quectel Cellular Engine

Transcription:

ESP8266 series chip provides the following 3 sleep modes that can be configured, you can choose and and configure with the specific requirements. Modem-sleep Light-sleep Deep-sleep The differences of the 3 sleep modes are shown as Table 1-1. Table1-1. The differences of the 3 sleep modes Item Modem-sleep Light-sleep Deep-sleep Wi-Fi Turn off Turn off Turn off System Clock Turn on Turn off Turn off RTC Turn on Turn on Turn on CPU Turn on Pending Turn off Substrate current 15 ma 0.6 ma ~ 20 μa Average current DTIM = 1 16.2 ma 1.8 ma DTIM = 3 15.4 ma 0.9 ma DTIM = 10 15.2 ma 0.55 ma Notes: For modem-sleep and light-sleep mode, SDK provides interfaces to enable sleep mode, and the system decides when to go into sleep. For the details refer to 2. Modem-sleep and 3. Light-sleep. In deep-sleep mode, you can call the function to control when to go into sleep. For the details refer to 4. Deep-sleep. RTC (Real-Time Clock) DTIM (Delivery Traffic Indication Message) Espressif Systems 2015.06

The modem-sleep of ESP8266 only works on the station mode, and will be enabled when connecting to the router. ESP8266 keep connecting with the router through the DTIM beacon mechanism. The DTIM beacon interval of the router is from 100 ms to 1000 ms. In modem-sleep mode, the ESP8266 will close the Wi-Fi module circuit within the two DTIM Beacon interval in order to the power savings, and it will be automatically waked up before the next Beacon arrival. The sleep time is decided by Beacon DTIM of router. During sleep, ESP8266 can keep the Wi-Fi connecting with router, and receiving the interactive information from mobile phone or server. The system will go into the modem-sleep mode via the following interface. wifi_set_sleep_type(modem_sleep_t) In the modem-sleep, the system can be waken up automatically, you don t need to configure the interface. Modem-sleep is generally used to the application scenarios that should keep the CPU chip power on, such as Pulse Width Modulation (PWM) light needs CPU control with real-time.

The working mode of light-sleep is similar to the modem-sleep mostly, the difference is light-sleep will power off the clock and suspend internal CPU, that will cause a lower power consumption than modem-sleep. The system will go into the light-sleep mode via the following interface. wifi_set_sleep_type(light_sleep_t) After the Wi-Fi connection, and CPU is idle, it automatically enters the light-sleep mode. Under the light-sleep mode, the CPU will not respond to the signal and interrupt from the peripheral hardware interface under the pause state. Therefore, the ESP8266 need to be waked up via external GPIO, and the wake process is less than 3 ms. The GPIO wake can only be configured as the level trigger mode, the interface is as follows. void gpio_pin_wakeup_enable(uint32 i, GPIO_INT_TYPE intr_state); uint32 i The IO serial number of the wake-up function. The trigger mode of wake-up. GPIO_INT_TYPE intr_state GPIO_PIN_INTR_LOLEVEL GPIO_PIN_INTR_HILEVEL Light-sleep mode can be used to the application scenarios that can real-time respond to the sending data from the router with which CPU is keeping connection. And the CPU can be idle when the command is not received. For example, the application of the Wi-Fi switch, the CPU need to carry out GPIO operation until receives the control commands while most of the time it's idle. Espressif Systems

If the cycle time of the system application is less than beacon interval time of DTIM, the light-sleep mode won t be enabled. Espressif Systems

Compared to the other two modes, the deep-sleep is controlled by the user, and the deep-sleep can be enabled immediately when user calls interface function. In this mode, the chip will disconnect all Wi-Fi connection and data connection and enter the sleep mode. Only the RTC module is still working, responsible for the timing of the chip wake-up. When using the deep-sleep, you must connect the GPIO16 with the EXT_RSTB pin of the chip. Go into the deep-sleep mode via the following interface. void system_deep_sleep(uint32 time_in_us) uint32 time_in_us = 0 uint32 time_in_us 0 Don't wake up at regular intervals. Automatically wake up at regular intervals. The software workflow of the waking-up from deep-sleep can be configured by the following interface to affect the average power consumption of the long run. bool system_deep_sleep_set_option(uint8 option)

deep_sleep_set_option(0) deep_sleep_set_option(1) deep_sleep_set_option(2) deep_sleep_set_option(4) The 108th byte of esp_init_data_default.bin decides whether make a RF calibration after the waking-up from deep-sleep. Make RF calibration after the waking-up from deep-sleep with a higher power consumption. Don't make RF calibration after the waking-up from deep-sleep with a lower power consumption. Don't turn on RF after the waking-up from deep-sleep with a lowst power consumption as modem-sleep. The init parameter is the parameter in esp_init_data_default.bin. For example, change the 108th byte of data to 8, and call deep_sleep_set_option (0), which means that chip will be undertaken the RF calibration every 8 times Deep-sleep wake up. For the details refer to: http://bbs.espressif.com/viewtopic.php?f=5&t=272. In the Deep-sleep state, a low level pulse can be generated from the chip IO pin via an external EXT_RSTB, and the chip can be awakened and launched. Notice: If the automatic wake-up and the external wake-up need to be the same time, we need to use the appropriate line logic operation circuit when the external circuit is designed. Deep-sleep can be used for low-power sensor applications, or the cases that do not need data transmission most of the time. The device can wake up from the deep-sleep state at intervals to measure and upload the data, and then go to the deep-sleep again. You can also store multiple data in the memory RTC (memory RTC can still save the data in the deep-sleep mode), and then send it at a time.