On Correct Configuration of GPRS in Different Work Modes of Baima IP Modem and the Server

  • 2018-06-18
  • Author : Baima
  • PV : 713

1. Connection diagram


Modem Connection diagram


2. Open DTU configuration software and connect server


DTU configuration software page


Server (using network debug assistant as a tool)

Server (using network debug assistant as a tool)


3. Configuration of GPRS in Different Work Modes of DTU (IP Modem)and the Server

GPRS work modes: include FTCP, HTCP, CTCP, NUDP, CUDP and HUDP(as below). Among them: FTCP, HTCP, CTCP are DTU TCP clients, only registration package and heartbeat package are not the same; NUDP, CUDP, HUDP are DTU do UDP client, but registration package and heartbeat package is different.


Modem GPRS work modes


aaa1229.jpg


Taking Baima BMD100 GPRS IP Modem as an example, this paper expounds the ways and differences of establishing connection between BMD100 and the server under TCP and UDP modes.


3.1, A connection between the server and BMD100 - TCP mode

First, open the server and select TCP Server for protocol type


BMD100 - TCP mode


The second step goes into BMD100 configuration page and sets GPRS work mode to TCP (where FTCP is selected), and the center address (example: sundge.vip) and port number (example: 10000) correspond to the server, and then save the parameters and restart the device.



After successful connection, you can observe that the server received heartbeat packets and data sent by BMD100:


heartbeat packets and data sent by BMD100


heartbeat packets and data sent by BMD100


3.2, A connection between the server and BMD100 - UDP mode

First, open the server and select UDP Server for protocol type


UDP


The second step goes into BMD100 configuration page and sets GPRS work mode to UDP (where CUDP is selected), and the center address (example: sundge.vip) and port number (example: 10000) correspond to the server respectively. Unlike the TCP setting, the custom registration package and the custom heartbeat package need to be configured, and then save the parameters and restart the equipment.


sets GPRS work mode to UDP


After successful connection, you can observe that the server received the heartbeat packets and data sent by BMD100:


Receive heartbeat packet

Contact Baima
Contact Baima

Baima, M2M product R&D, IoT platform service, international operation provider. Join us to create a win-win cooperation