hengdu Ebyte Electronic Technology Co., Ltd.
EA01-SG UserManual
Copyright ©2012–2020
,C
hengdu Ebyte Electronic Technology Co., Ltd
13
3.10
TCP/UDP TRANSPARENT TRANSMISSION CHANNEL FUNCTION
CONFIGURATION
3.10.1
TCP / UDP ADDRESS AND PORT CONFIGURATION
AT ORDER
RESPONSE
AT+SOCKADDR
=<ADDR>,<PORT>,<LOCAL_PORT>,<TYPE><NEWLINE>
OK
AT+SOCKADDR<NEWLINE>
ADDRESS:< ADDR >,PORT:<
PORT >,LOCAL PORT:
<LOCAL_PORT>,TYPE:<TYPE>
OK
Socket0 Address Supports IP Address And Domain Name, And The Maximum Byte Length Supports 50
Bytes. The Device Will Automatically Connect To Socket0 After Soft Restart, Hardware Reset And Normal
Power-On. When The Device Wakes Up From Deep Sleep, It Needs To Enter The On And Off Command
at+Sock on off To Connect To Socket0. If The Server Does Not Release The Link Before Connecting, The
Terminal Needs To Successfully Disconnect The Link Before Connecting To Socket0.
Configuration Parameter Description
:
<Addr>
,
Support IPAddressOrDomainName,The MaximumByteLengthIs50 Bytes.
<Port>
,
Remote Server Port
。
<Local_Port>
,
Local Port, 0 Means Freely Selected By TCP IP, Default Is 0.
<Type>
,
0 Means TCP Protocol, 1 Means UDP Protocol.
Note: When It Needs To Be Saved After Power-Off, Input AT+NRB Command Will Save The Parameters
To Flash, And Automatically Restart To Take Effect.
Socket Connection Status Changes Will Be Actively ReXSSTATE:<Id>,<STATE>
;
<Id>
,
Indicates The Created Socket Id, Currently Only 0 And 1 Are Supported. Only 0 Can Be Used For TCP/DUP
Channels, And 1 Is Used For COAP, MQTT, And EBYTE Cloud Channels.
<STATE>, Indicates Socket Connection STATE, 1 Indicates Connection STATE, 0 Indicates Disconnection.
If Socket0 Is Successfully Connected, It Will Actively XSSTATE:0,1, And When The Server Or
Terminal Disconnects Socket0, It Will Also Actively XSSTATE:0,0.
3.10.2
OPEN AND CLOSE THE SOCKET0 CONNECTION FOR THE TCP / UDP
AT ORDER
RESPONSE
AT+SOCKONOFF=<ENABLE>,<ON-OFF><NEWLINE>
+XSSTATE:< ID>,<STATE>
OK
Parameter Configuration Instructions
:
<Enable>
,
It Indicates Whether The TCP / UDP Channel Is Enabled, 1 Means Enabled, And 0 Means Not Enabled.The Default Is To
Enable The Opening Of The TCP / UDP Channel.
<On-Off>
,
It Indicates Socket0 On Or Off, 1 Open And 0 Closed.
Note: When The Power Loss Needs To Be Saved, The Input at + NRB Instruction Will Save The Parameters Into The Flash, And
Automatically Restart The Effect.
3.11
HEARTBEAT PACKET FUNCTION CONFIGURATION
Содержание EA01-SG
Страница 1: ...EA01 SG User Manual NB IoT Module...