Industrial-grade wireless gateway serial communication configuration

  • 2018-12-07
  • Author : Baima
  • PV : 4207

Industrial-grade wireless gateway serial communication introduction

Serial Communications are serial bits that send and receive bytes. Although it is slower than byte's parallel communication, serial ports can send data with one line and receive data with another line at the same time. It is simple to use and can realize long-distance communication.

The most important parameters of serial communication are baud rate, data bit, stop bit and parity check. For two communication ports, these parameters must match. In serial communication, the commonly used interfaces include RS-232, RS-422, RS-485, DI, DO, ADC, relay switch, Gray code, etc.

Cellular Gateway

Baima BMG500 is an industrial wireless gateway based on Linux system. It provides high-speed wireless network for users by using the network of all-netcom/4G/3G/2.5G operators. It integrates the flagship functions of full network communication, high-speed routing, WIFI coverage and local storage, and provides a permanent online communication network for the harsh unattended site. It is convenient and fast to set up a strong wireless communication network between remote equipment and management centers all over the country. It is widely used in remote data acquisition, remote equipment monitoring, remote control, remote alarm and other fields. It has obvious advantages in large-scale equipment monitoring, video monitoring of pollution sources, financial self-help, traffic snapshots and other data remote transmission occasions.


This article takes Baima industrial-grade wireless gateway BMG500 as an example to introduce the remote communication between the serial port and the server of the BMG500 under the 4G wireless connection mode.

1. Log in to WEB to configure industrial-grade wireless gateways

The Baima industrial-grade wireless gateway BMG500 provides a web-based management configuration interface.

If you are using for the first time, please configure it by default:

IP address: 192.168.1.1

Username: admin

Password: admin


Login step

A. Connect the LAN port of the wireless gateway to the network port of the PC with a network cable;

B. Open the browser on the PC, enter the username and password, and press Enter to log in to the configuration interface.

GATEWAY LOGIN PAGE


C. After you successfully log in to the web interface, you can configure the serial communication.

GATEWAY web interface


2. Industrial-grade wireless gateway serial communication configuration

Click on "Advanced Settings" -> select "Serial Communication"

GATEWAY Serial Communication


1) RS485 serial communication

RS485 serial communication

A. Set the baud rate, data bit and stop bit consistent with the lower computer;

B. Select the type of agreement;

C. Enter the server address and port number.


Data transmission and reception

In order to verify whether the connection between the Baima industrial wireless gateway BMG500 and the server is successful, you can open the network debugging assistant on the PC and the server:

As shown in the figure below, the network debugging assistant debugging assistant on the left is deployed on the server, and the serial debugging tool serial debugging tool on the right is deployed on the PC.

1) Open Debug Assistant on the server -> Select Protocol Type -> Enter the port number and open the port

Debug Assistant on the server

2) Click the serial port tool on the PC and enter the following steps:

serial port tool on the PC

  • Baimatech DTU tool is a DTU configuration tool. Here we just need to use the Debug Tool only. The steps are in the above order of identification, and the rest are not set up.


3) The serial port tool on the PC sends data to the debugging network debugging assistant of the server. It can be seen that the server has received the data "123" sent by the PC, which proves that the connection has been successful.

sends data to the debugging network debugging assistant of the server


2) RS232 serial communication

GEWFE127.jpg

A. Set the baud rate, data bit and stop bit consistent with the lower computer;

B. Select the type of agreement;

C. Enter the server address and port number.


Data transmission and reception

In order to verify whether the connection between the Baima industrial wireless gateway BMG500 and the server is successful, you can open the network debugging assistant on the PC and the server:

As shown in the figure below, the network debugging assistant  on the left is deployed on the server, and the serial debugging tool  on the right is deployed on the PC.

1) Open Debug Assistant on the server -> Select Protocol Type -> Enter the port number and open the port

Debug Assistant on the server

2) Click the serial port tool on the PC and enter the following steps:

SDWEW127.jpg

  • Baimatech DTU tool is a DTU configuration tool. Here we just need to use the Debug Tool only. The steps are in the above order of identification, and the rest are not set up.

3) The serial port tool on the PC sends data to the debugging network debugging assistant of the server. It can be seen that the server has received the data "123" sent by the PC, which proves that the connection has been successful.

serial port tool

Contact Baima
Contact Baima

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