4G_2G DTU Products Function
- 9 -
Figure 2.
Transparent Throughput Mode
Under this mode, the user's serial device can send data to the specified server on the network
through this module. The module can also receive data from the server and forward the information to
the serial device.
The user does not need to pay attention to the data conversion process between the serial port
data and the network data packet, and the data transparent communication between the serial port
device and the network server can be realized by simple parameter setting.
This module supports 3 socket connections, which are SOCKA, SOCKB, and SOCKC, which are
independent of each other. Each socket supports TCP client or UDP client.
For TCP connections, users can set the communication method for long or short connections. A
short connection means that the connection is initiated when the serial port data is received, and the
connection is automatically disconnected after a certain period of time. The server resources are
greatly saved, but the connection process takes a certain amount of time, causing data transmission
delay, and the server cannot actively send data to the device. Long connection means that data can
be sent and received at any time, but it takes up server connection resources.
The data transmission case is as follows:
1
、
After setting the following communication parameters command, the device will restart,
nat2.iotworkshop.com, port:3006 is High Flying
’s TCP test server (3008 port for UDP).
Figure 3.
AT+NETP Setting Case