LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 11 / 56
1.3. Description of Data Access Modes
The modules support three data access modes:
Buffer access mode
Direct push mode
Transparent transmission mode
When opening a socket service with
AT+QIOPEN
, you can specify the data access mode by
<access_mode>
. After the socket service is opened, the data access mode can be changed with
AT+QISWTMD
.
1. In buffer access mode, the module buffers data upon receiving it and reports a URC in the format of
+QIURC: "recv",<connectID>[,<data_len>]
to notify the host of the incoming data. The host can
read the buffered data with
AT+QIRD
.
2. In direct push mode, the module outputs the received data directly through a URC in the format of
+QIURC: "recv",<connectID>,<currectrecvlength><CR><LF><data>
or
+QIURC: "recv",<con
nectID>,<currentrecvlength>,<remoteIP>,<remote_port><CR><LF><data>
.
See
Chapter 2.4.2
for more details.
3. In transparent transmission mode, the corresponding COM port (such as UART port, USB modem
port, etc.) enters exclusive mode, where data received from the port is sent to the Internet directly,
and data received from the Internet is outputted via the port directly.
Exit from transparent transmission mode
The module can exit from transparent transmission mode through either of the following ways.
1) Execute
+++
. Follow the requirements below to prevent the
+++
from being misinterpreted as
data:
a) Do not input any character within 1 second before and after inputting
+++
.
b) Input
+++
within 1 second, and wait until
OK
is returned. When
OK
is returned, the module
is switched to buffer access mode.
2) Change MAIN_DTR from LOW to HIGH to make the module enter command mode. In this case,
AT&D1
(see
document [1]
) should have been set before the module enters transparent
transmission mode.
Return to transparent transmission mode
1) By
AT+QISWTMD
. Specify
<access_mode>
as 2 when executing this command. When
transparent transmission mode is entered successfully,
CONNECT
is returned.
2) By
ATO
. After a connection exits from transparent transmission mode, executing
ATO
will switch