Chengdu Ebyte Electronic Technology Co.,Ltd
E840-TTL-4G02E User Manual
Copyright ©2012–2019,
Chengdu Ebyte Electronic Technology Co.,Ltd
10
Take SOCK0 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-TTL(4G-02)_V1.0
Transmit
:
AT+SOCK=TCPC,116.62.42.192,31687
//open SOCK0 and configure the network server parameters
that SOCK0 will connect to (the parameter used here is Ebyte
test server, not recommended for users)
+OK
Transmit
:
AT+LINKSTA
//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, SOCK will automatically establish a connection with the server. After the connection is started,
data can be transmitted to each other via protocol.
a)
AT mode
:
under this mode all UART data is considered as AT command.
b)
Mode switch
,
In the transparent transmission mode, after the serial port receives the "+++" frame data, the RX pin receives
any AT command within 3 seconds, and the mode switches to the AT mode. In AT mode, send AT+EXAT<CR><LF> to
switch to transparent transmission mode.