当前位置:网站首页>Esp8266wi fi data communication
Esp8266wi fi data communication
2022-07-27 02:18:00 【Did Li fish today?】
summary :
1. This paper mainly introduces the short-range communication field in the development of Sensor Networks Wi-Fi Communications
2. Through this study, you can master ESP8266 Wi-Fi Working mode ;
3. master ESP8266 Wi-Fi Communication module AT Instructions ;
4.TCP Connection method and data transmission ;
Wi-Fi Technical introduction
Wi-Fi This term is commonly mistaken for Wireless fidelity (Wireless Fidelity) In WLAN, it refers to “ Wireless Compatibility Certification ”, In essence, it is a kind of commercial certification , It is also a wireless networking technology , Like Bluetooth Technology , Both belong to the short-range wireless technology used in the office and home . Compared with Bluetooth Technology , It has a higher transmission rate , Longer transmission distance , Widely used in mobile phones 、 The notebook 、 Automobile and other products .
ESP8266Wi-Fi Introduction to communication module
ESP8266 The biggest feature of the chip is its high cost performance ,ESP8266 The chip scheme is a complete system Wi-Fi Solution , It can carry software applications or uninstall all through another application processor Wi-Fi Network function .
ESP8266 It can be done by GPIO Port integrated sensors and other specific devices , Realize the minimum resource occupation in the early development and operation .ESP8266 Highly integrated on-chip , Including wireless switch balun、 Power management converter 、 Therefore, only a few external circuits are needed , When the design PCB Minimize resources .
ESP8266 There is a set of software development kit (SDK) The SDK It provides users with a set of data receiving function interfaces , Users don't have to care about the underlying network , Focus on the upper development of the Internet of things , Use the corresponding interface to complete the corresponding network data sending and receiving .
ESP8266Wi-Fi Communication working mode
ESP8266 There are three working modes :station、soft-AP、station+soft-AP Pattern .
station Pattern : The module is equivalent to a router connecting to the Internet , Mobile phones are controlled through the Internet .
soft-AP:ESP8266 As a hot spot , Realize the communication between mobile computer and module , Wireless LAN control
station+soft-AP Pattern : Two modes coexist , It can be controlled by the Internet , It can also be controlled by LAN , It is generally used in network communication in the host of master-slave relationship , Communication .
To configure Wi-Fi AP Working mode
( One ) Use FLASH_DOWNLOAD_TOOLS_v2.4_150924( It is recommended to use ) Tool burning Wi-Fi Module firmware

( Two ) Turn on the serial assistant , Choose the right one COM mouth , set baud rate 115200, Data bits 8, Check bit None, Stop bit 1, Flow control none , Input "AT" Click send to return OK It indicates that the module is normal

( 3、 ... and )AT+CWMODE=2, Set up AP Working mode 1:station 2:softAP 3:station+ softAP
( The module and the connected network need to be disconnected before configuration )

( 3、 ... and )AT+CWDHCP=0,1; Set the module on AP In mode DHCP function

( Four ) Restart the module AT+RST

( 5、 ... and )AT+CWSAP_CUR=” Wireless name ”, ” password ”,” Hot channel ”,” encryption ”. The corresponding relationship of encryption method is as follows 0:OPEN 1: WEP 2: WPA_PSK 3: WPA2_PSK,4: WPA_WPA2_PSK.

( 6、 ... and )AT+CIPAP=”IP” Set up ESP8266IP Address , This setting will not be saved FLASH,AT+CIPAP? Inquire about IP


( 7、 ... and )AT+CIPMUX=1 start-up AP Multi connection support client ID Number 0-4

( 8、 ... and )AT+CIPSERVER=1,8080 Start server mode
( Nine )AT+CIFSR see IP Address and MAC Address

To configure Wi-FiStation Pattern
( One ) send out AT+CWMODE=2; Set up station Pattern
![]()
( Two )AT+CWDHCP=1,1;station Pattern , obtain DHCP

( 3、 ... and ) Restart the module AT+RST
( Four )AT+CWLAP scanning AP list

( 5、 ... and )AT+CWJAP? Query the connected hotspot instructions AT+CWQAP Disconnect hotspot command

( 6、 ... and )AT+CWJAP="China mobile","12345678" Connect AP

To configure Wi-Fi station+soft-AP Pattern
( One ) send out AT+CWMODE=3; Set up station+soft-AP Pattern

( Two )AT+CWDHCP=2,1;station+soft-AP Pattern , obtain DHCP

( 3、 ... and ) Restart the module AT+RST
( Four )AT+CWJAP="China mobile","12345678" Connect AP
( 5、 ... and )AT+CWSAP_CUR=” Wireless name ”, ” password ”,” Hot channel ”,” encryption ”. To configure ESP8266 hot spot information
AT+CWSAP? View hotspot information

The mobile phone can search the hotspot information to connect

( 6、 ... and )AT+CIPAP=”IP” Set up ESP8266IP Address , This setting will not be saved FLASH Read information AT+CIPAP?
( 7、 ... and )AT+CIPMUX=1 start-up AP Multi connection support client ID Number 0-4
( 8、 ... and )AT+CIPSERVER=1,8080 Start server mode , Support ID Number 0-1 0 Single chain road 1 Multiple links .
( Nine )AT+CIFSR see IP Address and MAC Address

Use the mobile phone to connect the module , thus Wi-Fi Three basic configurations are completed , The next article explains Wi-Fi Data communication reporting cloud platform .
边栏推荐
- Solution: various error reports and pit stepping and pit avoidance records encountered in the alchemist cultivation plan pytoch+deeplearning (I)
- 【mysql】mysql启动关闭命令以及一些报错解决问题
- 定时器中断实验
- 第三讲--GPIO输入输出库函数使用以及相关例程
- JS 99 multiplication table
- 二层封装技术(HDLC、PPP--PAP\CHAP、GRE)实验练习
- TCP的三次握手与四次断开
- Ospf基础配置应用( 综合实验: 干涉选举 缺省路由 区域汇总 认证--接口认证)
- 初识C语言(2)
- RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)
猜你喜欢

7.16 written examination of Duoyi network

TCP's three handshakes and four waves (brief introduction)

VLAN原理简述、具体实验配置
![[explain C language in detail] this article takes you to know C language and makes you impressed](/img/37/205c1c6eb2ba704941e48ff89c6268.png)
[explain C language in detail] this article takes you to know C language and makes you impressed

C语言——数据类型、基本数据类型的取值范围

The basic configuration of static routing (planning of IP address and configuration of static routing) realizes the accessibility of the whole network.

Text to image intensive reading of paper gr-gan: gradually refine text to image generation

2022zui新抖音24小时循环值守直播监控(一)直播间开播监控

CAN总线通信应用

Test and open basic daily question brushing (continuous updating...)
随机推荐
通过对射式红外传感器计次实验讲解EXTI中断
OSPF在MGRE环境下的实验
C语言——数组、字符串处理函数、strlen、strcpy和strncpy、strcat和strncat、strcmp和strncmp
OSPF协议知识汇总
6.28同花顺笔试
Flink1.13.6 detailed deployment method
Autojs learning - realize the display of date and lunar time
HCIA(网络初级综合实验练习)
Is index reproduction text generation image is score quantitative experiment whole process reproduction inception score quantitative evaluation experiment step on the pit and avoid the pit process
7.8 Ruijie online written examination
HCIA (network elementary comprehensive experimental exercise)
NAT(网络地址转化协议)
(史上最详细)Codeforces Round #805 (Div. 3)E. Split Into Two Sets
【mysql】mysql启动关闭命令以及一些报错解决问题
MySQL课程2.表的各种查询
C语言——关系运算符和逻辑运算符、if语句、switch语句、分支结构的嵌套
STM32入门教程第二讲
Influence of pre frequency division value and automatic reload value on interrupt frequency
Golang - sync包的使用 (WaitGroup, Once, Mutex, RWMutex, Cond, Pool, Map)
lvs+keepalived项目实战