当前位置:网站首页>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 .
边栏推荐
- Republishing and routing strategy of OSPF
- Dynamic routing ofps protocol configuration
- OSPF静态大实验
- C语言——字符和字符串、算术运算符、类型转换
- (前缀和/思维)Codeforces Round #806 (Div. 4)F. Yet Another Problem About Pairs Satisfying an Inequality
- NB-IOT联网通信
- mgre的全连和星型拓扑实验
- 选择器的使用语法与场景以及背景图片大小、文字盒子阴影、过度效果的使用方法
- C语言——关系运算符和逻辑运算符、if语句、switch语句、分支结构的嵌套
- The latest C language introduction and advanced - the most complete and detailed C language tutorial in history!! Section 1 - overview of C language
猜你喜欢

OSPF的重发布及路由策略

RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)

HCIA动态路由RIP基础实验

2022 latest live broadcast monitoring 24-hour monitoring (III) analysis of barrage in live broadcast room

通过对射式红外传感器计次实验讲解EXTI中断

Dynamic routing rip protocol experiment

OSPF configuration in mGRE environment and LSA optimization - reduce the amount of LSA updates (summary, special areas)

HCIA Basics (1)

测开基础 日常刷题 (持续更新ing...)

OSPF protocol knowledge summary
随机推荐
Static routing default routing VLAN experiment
Solution: various error reports and pit stepping and pit avoidance records encountered in the alchemist cultivation plan pytoch+deeplearning (II)
C语言——while语句、dowhile语句、for循环和循环结构、break语句和continue语句
Codeforces Round #807 (Div. 2), problem: (C) Mark and His Unfinished Essay
Introduction to STM32 lesson 1
HCIA Basics (1)
2022最新直播监控24小时监控(三)直播间弹幕解析
ospf协议概述以及基础概念
[Database Course Design] SQLSERVER database course design (student dormitory management), course design report + source code + database diagram
Timer interrupt experiment
TCP的三次握手与四次断开
2022zui new Tiktok 24-hour round robin live broadcast monitoring (I) live broadcast room start-up monitoring
关于编程的自我介绍和规划
Unity Huatuo example project source code analysis and inspiration
(题意+详细思路+加注释代码) Codeforces Round #805 (Div. 3)F. Equate Multisets
Text to image paper intensive reading ssa-gan: text to image generation with semantic spatial aware Gan
Test and open basic daily question brushing (continuous updating...)
Simple application of rip V2 (V2 configuration, announcement, manual summary, ripv2 authentication, silent interface, accelerating convergence)
ACM mode input and output exercise
JS——初识JS、变量的命名规则,数据类型