当前位置:网站首页>Esp8266 - at command + network transparent transmission
Esp8266 - at command + network transparent transmission
2022-07-23 23:57:00 【C V engineering lion】
One .AT Instructions
ESP8266 It can be through serial port AT Command to communicate or control with other devices ( At first I thought AT Instruction is ESP8266 It's already sealed , It can be used directly , It didn't turn out to be , You need to install it yourself AT The firmware ), After installing the firmware, connect it directly with the data cable ESP8266 Open the serial port to communicate . Commonly used AT Order to see this blog :(16 Bar message ) Get along well with ESP8266-01——AT Instruction set _Allen zhu The blog of -CSDN Blog _esp8266at Instruction set .
Two . Model is introduced
SAT Pattern :STA The pattern is 8266 Equivalent to a terminal , You can connect other wifi The signal .
AP Pattern :STA Equivalent to a router , Other devices can be connected to 8266 Emitted wifi The signal .
STA+AP Pattern :8266 While acting as a terminal, it also acts as a router .
3、 ... and . Wireless transmission
Transparent transmission means transparent transmission ,ESP8266 The data received from the serial port is transmitted to the network server through transparent transmission , Other 8266, Mobile computers and other terminals that can connect to this server , You can log in to the server to view some status information , Note that this process is one-on-one , That is, one send and one receive , Instead of receiving more than one .
Four . Transmission experiment
1.TCP Server transparent transmission
Create a server :

Fill in the port of this machine casually , Then open the port .
1). Set up STA Pattern
AT+CWMODE=1
Correct response :OK
2). Restart the device
AT+RST
Correct response :
ready
WIFI CONNECTED
WIFI GOT IP
3). Connect the router
AT+CWJAP="HUAWEI Mate 30","1234567890"
Correct response :OK
4). Connect the module to the server you just created
AT+CIPSTART="TCP","192.168.43.155",1236
Correct response :CONNECT OK
5). Turn on transmission mode
AT+CIPMODE=1
Correct response :OK
6). Start penetrating
AT+CIPSEND
Correct response :OK
Here we are , It can be used through transmission
Output information on serial port

The network server can receive

At the same time, send

The serial port can also receive

7). End passthrough
Input +++ You can launch the transparent transmission mode
8). Power on and automatically turn on the transparent transmission mode
Sending the following command will automatically enter the transparent transmission mode when powered on
AT+SAVETRANSLINK=1,"192.168.43.155",1236,"TCP"
If you want to exit automatic access through transmission , Then first exit the transparent mode , Send again “AT+SAVETRANSLINK=0 ”
2.UDP transparent transmission

Write the host port casually , Then open the .
1). Set up STA Pattern
AT+CWMODE=1
Correct response :OK
2). Restart the device
AT+RST
Correct response :
ready
WIFI CONNECTED
WIFI GOT IP
3). Connect the router
AT+CWJAP="HUAWEI Mate 30","1234567890"
Correct response :OK
4). Inquire about IP Address
AT+CIFSR
Correct response : modular IP Address
5).AT+CIPSTART="UDP","192.168.43.155",1236,400
1236 Is the remote port ,400 Is the near end port , It's also random
Correct response :OK
6). Turn on transmission mode
AT+CIPMODE=1
Correct response :OK
7). Start penetrating
AT+CIPSEND
Correct response :OK
Here we are , Transparent transmission can be used .


You can see , Serial port and network server can send and receive each other .
8). End passthrough
Input +++ You can launch the transparent transmission mode
9). Power on and automatically turn on the transparent transmission mode
Sending the following command will automatically enter the transparent transmission mode when powered on
AT+SAVETRANSLINK=1,"192.168.43.155",1236,"UDP",400
If you want to exit automatic access through transmission , Then first exit the transparent mode , Send again “AT+SAVETRANSLINK=0 ”
边栏推荐
- Realize the function of uploading and downloading files and directories similar to RZ and SZ on the native terminal
- Sentinel链路方式流控失效解决
- 什么是 Restful 动词
- ciscn_2019_n_8
- 北大青鸟昌平校区:运维就业现状怎么样?技能要求高吗?
- Notes on cmake compilation tool
- DGS file upload
- PushGateway+Prometheus+Grafana构建Flink实时监控
- 工具推荐-语雀
- String function 1 of C language
猜你喜欢
![[opencv] - when the parameter type of cv.threshold() function is a number, what does it mean](/img/7c/be8049ece7f109b44d361c32cf2da8.png)
[opencv] - when the parameter type of cv.threshold() function is a number, what does it mean

ciscn_ 2019_ n_ eight

ciscn_ 2019_ n_ one

pwn1_sctf_2016

C语言之字符串函数一

String function 1 of C language

Operating system not found solution after importing ISO into virtual machine

【OpenCV】- cv.threshold()函数的参数type是数字时,代表的含义

北大青鸟昌平校区:运维就业现状怎么样?技能要求高吗?

第三章、组织代码
随机推荐
jarvisoj_level2
JS learning notes -- bottom implementation of array method
Why do most people think programming is difficult?
Space shooting lesson 07: add graphics
idea无法切换成中文
线程池串行化
麒麟OS和龙芯环境编译安装GreatSQL
ciscn_2019_c_1
Idea cannot be switched to Chinese
DDD thinking structure learning
What is restful verb
ret2shellcode
【三年面试五年模拟】算法工程师的独孤九剑秘籍(前六式汇总篇)V1版
【微信支付】
[ssm] joint commissioning of front and rear console protocols ②
day2
ciscn_ 2019_ n_ eight
深度学习之 9 前馈神经网络 基本概念
Beijing University qingniaochangping Campus: how about the current situation of operation and maintenance employment? Are skills required?
【细节】radio 标签 ,更换 默认选中的背景色