KS0339 Keyestudio 8266 WIFI Module 2PCS

From Keyestudio Wiki
Jump to: navigation, search
keyestudio 8266 WIFI Module (2PCS)


Product Overview

Overview:

The package includes 2pcs of ESP8266 WIFI module.
It is an ultra-low-power UART-WiFi pass-through module with industry-leading package size and ultra-low power technology.
It is specially designed for mobile devices and IoT applications. It can connect users' physical devices to Wi-Fi wireless network for Internet or LAN communication, achieving the networking function.


Features:

  • 1)Support wireless 802.11 b/g/n standard
  • 2)Support three working modes: STA/AP/STA+AP
  • 3)Built-in TCP/IP protocol stack to support multiple TCP Client connections
  • 4)Support various Socket AT commands
  • 5)Support UART/GPIO data communication interface
  • 6)Support Smart Link intelligent networking function
  • 7)Support remote firmware upgrade (OTA)
  • 8)Built-in 32-bit MCU, able to double as an application processor
  • 9)Ultra low consumption, suitable for battery powered applications.
  • 10) 3.3V single power supply


Basic Parameters:


0339图片2.png

0339图片3.png


Hardware Introduction:

ESP8266 hardware has plentiful interfaces, and can support UART,IIC,PWM,GPIO,ADC and more, suited for mobile devices and IoT applications.

  • Module pins diagram:


0339图片4.png


  • Pins definition:


0339图片5.png


Power Consumption:

The following measured power consumption data is based on a 3.3V power supply at 25°ambient temperature.

  • 1. All measurements are done at the antenna interface.
  • 2. All transmit data is based on a 90% duty cycle and measured in continuous transmission mode.


0339图片6.png


Radio Frequency Indicator:

The following data are measured at indoor temperature when the voltage is 3.3v.
0339图片7.png

Note: 1. 72.2Mbps is measured in 802.11n mode,MCS=7,GI=200uS.
2.The output power of up to +19.5dBm can be reached in 802.11b mode.


Function Description

Main Function:

ESP8266 can realize the main functions as follows:

  • Serial port passthrough: data transmission, good reliability of transfer; the maximum transmission rate is up to 460800bps.
  • PWM regulation and control: light adjustment, RGB LED adjustment, motor speed control and more.
  • GPIO control: control the switches, relays and more.


Working Mode:

ESP8266 module supports three working modes: STA/AP/STA+AP

  • STA mode: The ESP8266 module can access to the Internet through a router, so the mobile phone or computer can remotely control the device through the Internet.
  • AP mode: The ESP8266 module acts as a hotspot to enable communication directly with the mobile phone or computer to achieve wireless control of the local area network (LAN).
  • STA+AP mode: The coexistence mode of the above two modes, that is, can achieve the seamless switching through the Internet control, more convenient for operation.


Applications:

  • 1)Serial port CH340 to Wi-Fi;
  • 2)Industrial transparent transmission DTU;
  • 3)Wi-Fi remote monitoring/control;
  • 4)Toy field
  • 5)Color LED control;
  • 6)Integrated management of fire protection and security intelligence;
  • 7)Smart card terminals, wireless POS machines, Wi-Fi cameras, handheld devices, etc



Basic AT Commands

Test the AT

  • Syntax Rules:

thumb


WiFi Function AT Command

Select WiFi Application Mode: AT+CWMODE

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


List out Access Point: AT+CWLAP

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Add Access Point: AT+CWJAP

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Exit Access Point: AT+CWQAP

  • Syntax Rules:

thumb


Set the AP Mode: AT+CWSAP

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb



TCPIP AT Command

Build TCP/UDP Connection: AT+CIPSTART

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Get TCP/UDP Connection Status: AT+CIPSTATUS

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Start Multilink: AT+CIPMUX

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Send Data: AT+CIPSEND

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Close TCP/UDP Connection: AT+CIPCLOSE

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Get Local IP Address: AT+CIFSR

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Select TCPIP Mode: AT+CIPMODE

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Set the Sever Timeout: AT+CIPSTO

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


Set the Baud Rate: AT+CIOBAUD

  • Syntax Rules:

thumb


  • Parameter Definition:

thumb


AT Command Settings

When setting the AT command, you should use a USB to Serial module, that is FT232 module, and a WIFI to serial shield.
Connect well and then connect them to your computer using mini USB cable.
thumb

Connected successfully, open the ESP8266 debugging tool, set the baud rate to 115200, click to open the Serial Port, and click Test the AT.
You should see the data received window will print out AT OK. To set other AT commands, the method is similar.

You can download the ESP8266 debugging tool from the link below:
https://drive.google.com/open?id=1UAYAhdqr2iXO49ibkLyV4c2Aieteihs6


thumb



Firmware Programming

When setting the AT command, you should use a USB to Serial module, that is FT232 module, and a WIFI to serial shield.
Connect well and then connect them to your computer using mini USB cable.
thumb

Then open flash_download_tools_v3.6.5software, click to open thumb

You can download the flash download tools v3.6.5 from the link:
https://drive.google.com/open?id=1Zjg-lg7ySsmN4C3A0Oz9UJCdXqtkdf_R


thumb

Wait for a minute, pop up the below interface, click the ESP8266 Download Tool.
thumb

Pop up the interface to set the firmware burning. This is the address of firmware burning. thumb

thumb

Hold the FLASH button on the shield, and Tap START button, then press RST button on the shield, release the FLASH button. The module will enter the download mode. Shown below.
thumbthumb

Firmware download completed, can enter the corresponding software to set the AT command.



Resources Download

Download all the information here:
https://drive.google.com/open?id=12Bbvwp4T9M1l1yXyZcdQzoXifMvhGZ4c

Download the PDF:
https://drive.google.com/open?id=1NlO4T_7S_2yZ8S_k7Bzjs1TipCMJu_cm



Buy from