![Ebyte E103-W07 Скачать руководство пользователя страница 25](http://html.mh-extra.com/html/ebyte/e103-w07/e103-w07_user-manual_530473025.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W07 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
24
Inquiry
AT+CIPSTART=[link
ID],”[type]”,[remote
IP],[remote port][, TCP keep alive]
+OK
Success
+ERR:[NUM]
Error
Parameter
Link ID
Connection ID. Value range is 0~7
Type
“TCP”
TCP client
“UDP”
UDP communication
remote IP
Server IP address
remote port
Server port. Max 65535
TCP keep alive
TCP heartbeat. Value range: 0 ~ 2700.
Description
1. Effective immediately;
2. When TCP keep alive is 0, close the TCP heartbeat. When this value is not set, the default is 5S;
3. LinkID needs to be manually specified. If the current LinkId has been used, an Error will be returned.
4. After the local TCP client disconnects, it will automatically reconnect. After connecting for 5 times, it still fails to
connect, and the module returns "disconnect". The time interval between each reconnection is about 500ms. 5
reconnection failures, usually because the server is shut down and the network link (hardware connection) is
disconnected.
5. Server or link issues
Example
AT+CIPSTART=0,"TCP","192.168.0.205",6001,300;
AT+CIPSTART=0,"TCP","192.168.0.205",6001;
The RFC does not mandate how long TCP must maintain a connection. However, generally TCP will keep the link from being
disconnected for 3-5 minutes. Sometimes, the router will clean up TCP links that have not passed through for a long time, and the
channel will be disconnected at this time. Therefore, for TCP, a very small data packet is usually sent to the server in about 3 minutes.
Therefore, closing the heartbeat packet may cause abnormal interruption. Usually the heartbeat of the protocol layer is turned off, and
the application layer needs to maintain a heartbeat packet by itself.
5.6.2.2 UDP communication
Instruction
Answer
Inquiry
AT+CIPSTART=[link ID],[“type”],[remote IP],[remote
port],[UDP local port],[UDP mode]
+OK
Success
+ERR:[NUM]
Error
Parameter
Link ID
Connection ID. Value range is 0~7
Type
“TCP”
TCP client
“UDP”
UDP communication
remote IP
Server IP address
remote port
Server port. Max 65535
UDP local port
Local listening port.
UDP mode
0
Fixed remote address
1
When UDP receives the network data, modify
the remote IP and PORT to the address of the
current data packet
Description
1. Effective immediately;
2. LinkID needs to be manually specified. If the current LinkId has been used, an Error will be returned.
3. UDP local port is not set or set to 0, the local port is a random port;
Содержание E103-W07
Страница 1: ...E103 W07 User Manual WIFI MESH ...