Chengdu Ebyte Electronic Technology Co. Ltd E840-DTU(4G-02)User Manual
Copyright
©
2012
–
2019,Chengdu Ebyte Electronic Technology Co. LTD.
11
For example
:
AA FE 55 00 00 03 11 22 33 //00: SOCK0 link
,
00 03
:
the valid data length received this
time 11 22 33
:
real data
Demonstration
:
Take SOCK2 as an example
:,
Transmit
:
+++(do not add new line for transmitting ) //enter AT command
Transmit
:
AT+VER(add new line for transmitting ) //read version info. And enter AT command setting at the
same time
+OK=E840-DTU(4G-01)_V1.0
Transmit
:
AT+SOCK2=1,TCPC,116.62.42.192,31687 //open SOCK2 and configure the network server
parameters that SOCK2 will connect to (the parameter used
here is Ebyte test server, not recommended for users)
+OK
Transmit
:
AT+LINKSTA2 //read if SOCK2 has started connection with server
+OK=Connect
Transmit
:
AT+POTOCOL=ON // open protocol transmission mode
+OK
Transmit
:
AT+POTOCOL //inquire if protocol transmission is on
+OK=ON
AT+REBT //restart
+OK
Waiting for the radio to restart, SOCK2 will automatically establish a connection with the server. After the connection is
started, data can be transmitted to each other via protocol.