ESP8266 WiFi 模組用戶手冊 V1 - ESP-01 串口WIFI 無 第 2 页 共 33 页 ESP8266 WiFi 模块用户手册V1.0 目 錄 術語和縮寫

  • View
    219

  • Download
    4

Embed Size (px)

Transcript

  • 1 33

    ESP8266 WiFi V1.0

  • 2 33

    ESP8266 WiFi V1.0

    ...................................................................................................... 4

    1. .......................................................................................................... 5

    1.1. ............................................................................................................ 5

    1.1.1 ............................................................................................ 5

    1.1.2 ............................................................................................ 6

    1.1.3 ..................................................................................... 7

    1.2. .................................................................................................... 8

    1.3. ......................................................................................................... 11

    1.4. .................................................................................................. 12

    1.5. .......................................................................................................... 13

    1.6. WiFi ............................................................................................... 14

    1.7. ........................................................................................... 14

    2. ......................................................................................................... 15

    2.1. ................................................................................................. 15

    2.2. .................................................................................................. 15

    2.3. ................................................................................................. 15

    2.4. AiCloud ................................................................................................. 15

    3. ......................................................................................... 16

    3.1. ................................................................................................. 17

    3.2. AT .......................................................................................... 20

    3.2.1 AT ............................................................................................. 20

    3.3. WiFi AT ................................................................................ 20

    3.3.1 WiFi AT+CWMODE ........................................... 20

  • 3 33

    ESP8266 WiFi V1.0

    3.3.2 :AT+CWLAP .............................................. 21

    3.3.3 :AT+CWJAP ................................................................ 21

    3.3.4 :AT+CWQAP ............................................................... 22

    3.3.5 AP :AT+CWSAP ........................................... 22

    3.4. TCPIP AT ..................................................................................... 23

    3.4.1 TCP/UDP AT+CIPSTART ..................................... 23

    3.4.2 TCP/UDP AT+CIPSTATUS ........................... 23

    3.4.3 AT+CIPMUX ......................................................... 24

    3.4.4 AT+CIPSEND ........................................................... 25

    3.4.5 TCP/UDP AT+CIPCLOSE ..................................... 25

    3.4.6 IP AT+CIFSR ........................................................ 26

    3.4.7 ............................................................................... 27

    3.4.8 TCPIP AT+CIPMODE ..................................... 30

    3.4.9 AT+CIPSTO ...................... 30

    3.4.10 AT+CIOBAUD ......................................................... 30

    4. ........................................................................................................ 31

    1 4

    2 7

    3 Pin 10

    4 11

    5 12

  • 4 33

    ESP8266 WiFi V1.0

    2 ........................................................................................... 8

    3 ........................................................................................................ 13

    4 WiFi ................................................................................ 14

    5 ......................................................................................... 14

    6 ........................................................................ 16

  • 5 33

    ESP8266 WiFi V1.0

    WiFi Wireless Fidelity

    UART Universal Asynchronous Receiver & Transmitter

    DTIM Delivery Traffic Indication Message

    SOC System On a Chip

    P2P Point to Point

    TCP Transmission Control Protocol

    IP Internet Protocol

    STBC Space-Time Block Coding

    MIMO Multiple Input Multiple Output

    MPDU MAC Protocol Data Unit

    MSDU MAC Server Data Unit

    IEEE Institute Of Electrical And Electronics Engineers

    bps Bits Per Second

    CCK Corporate Control Key

    DQPSK Differential Quadrature Phase Shift Keying

    DBPSK Differential Binary Phase Shift Keying

    QAM Quadrature Amplitude Modulation

    OFDM Orthogonal Frequency Division Multiplexing

    WPA Wi-Fi Protected Access

    WPS Wi-Fi Protected Setup

    TKIP Temporal Key Integrity Protocol

    WAPI Wlan Authentication And Privacy Infrastructure

    WEP Wired Equivalent Privacy

    CRC Cyclic Redundancy Check

    1

    http://www.chazidian.com/dict/Institute%20Of%20Electrical%20And%20Electronics%20Engineers/

  • 6 33

    ESP8266 WiFi V1.0

    1.

    1.1.

    ESP8266 UART-WiFi

    Wi-Fi

    ESP8266 PCB IPEX

    ESP8266

    1.1.1

    802.11 b/g/n

    STA/AP/STA+AP

    TCP/IP TCP Client

    Socket AT

    UART/GPIO

    Smart Link

    OTA

    32 MCU

    3.3V

    1.1.2

    ESP8266

    1. 2.54

  • 7 33

    ESP8266 WiFi V1.0

    2.

    3.

    4.

    5. 10*10

  • 8 33

    ESP8266 WiFi V1.0

    1.1.3

    ESP8266-01

    ESP8266

    IEEE 802.11b/g/n

    2.412GHz-2.484GHz

    802.11b: +16 +/-2dBm (@11Mbps)

    802.11g: +14 +/-2dBm (@54Mbps)

    802.11n: +13 +/-2dBm (@HT20, MCS7)

    802.11b: -93 dBm (@11Mbps ,CCK)

    802.11g: -85dBm (@54Mbps, OFDM)

    802.11n: -82dBm (@HT20, MCS7)

    I-PEX SMA

    PCB

    UARTIICPWMGPIOADC

    3.3V

    GPIO Max15ma

    =>

    ~70mA,: 200mA

    =>

    : ~12mA,: 200mA

  • 9 33

    ESP8266 WiFi V1.0

    1.2.

    ESP8266 UARTIICPWMGPIOADC

    1

  • 10 33

    ESP8266 WiFi V1.0

    3 Pin

    PIN Function Description

    1 URXD 1UART_RXD

    2General Purpose Input/OutputGPIO3

    2 UTXD

    1UART_TXD

    2General Purpose Input/OutputGPIO1

    3

    5 RESETGPIO

    16 Reset

    6 GND GND

    8 VCC 3.3V

    9 ANT WiFi Antenna

    11 GPIO0

    1 WiFi StatusWiFi

    2

    Flash Boot

    UART Download

    12 ADC ADC0V-1V

  • 11 33

    ESP8266 WiFi V1.0

    1.3.

    3.3V 25

    [1]

    [2] 90%

    802.11b CCK 1Mbps

    Pout=+19.5dBm 215 mA

    802.11b CCK 11Mbps

    Pout=+18.5dBm 197 mA

    802.11g OFDM54 Mbps

    Pout=+16dBm 145 mA

    802.11nMCS7Pout=+14dBm 135 mA

    802.11b 1024 -80dBm 100 mA

    802.11g 1024 -70dBm 100 mA

    802.11n 1024 -65dBm 102 mA

    70 mA

    0.5 A

    4

  • 12 33

    ESP8266 WiFi V1.0

    1.4.

    3.3V

    2412 2484 MHz

    50

    -10 dB

    72.2Mbps PA 14 15 16 dBm

    802.11b PA 17.5 18.5 19.5 dBm

    CCK 1Mbps -98 dBm

    CCK 11Mbps -91 dBm

    6Mbps(1/2BPSK) -93 dBm

    54Mbps(3/4 64-QAM) -75 dBm

    HT20MCS765Mbps72.2Mbps -71 dBm

    OFDM6Mbps 37 dB

    OFDM54Mbps 21 dB

    HT20MCS0 37 dB

    HT20MCS7 20 dB

    5

    172.2Mbps 802.11n MCS=7GI=200uS

    2802.11b +19.5dBm

  • 13 33

    ESP8266 WiFi V1.0

    1.5.

    2

    1.6. WiFi

    ESP8266PCBIPEX

    PCB IPEX

    ESP8266

  • 14 33

    ESP8266 WiFi V1.0

    3 WiFi

    :

    1

    2 RF 50 90

    15mm

    1.7.

    Refer to IPC/JEDEC standardPeak Temperature :

  • 15 33

    ESP8266 WiFi V1.0

    2.

    2.1.

    ESP8266 PWM GPIO

    460800bps

    PWM LED

    GPIO

    2.2.

    ESP8266 STA/AP/STA+AP

    STA ESP8266

    AP ESP8266

    STA+AP

    2.3.

    CH340 Wi-Fi

    DTU

    Wi-Fi /

    LED

    POS Wi-Fi

    2.4. AiCloud

    AiCloud Ai-Thinker

  • 16 33

    ESP8266 WiFi V1.0

    AiCloud

    AiCloud Web Android/iOS App

    3.

    Ai-Thinker UART_WiFi

    ESP8266 MCU

    WiFi

    UART RGB

  • 17 33

    ESP8266 WiFi V1.0

    5

    Notice

    1011010,110000 app

    2011010,001010

    3011110,001010

    4011010,000101

    3.1.

    1./PC

    AT+CWJAP="SSID","PWD"

    2./PC wifi Esp8266

    PC

    1.AT server tcp

  • 18 33

    ESP8266 WiFi V1.0

    2.PC pc tcp server pc

    AT+CIPSTART="pc IP",

  • 19 33

    ESP8266 WiFi V1.0

    3. pc server

    4.

Recommended

View more >