GRDs and Middleware

Connection between GRD-MQ and the broker

Configuration of the GRD-MQ to broker connection

Communication with the broker uses a TCP/GPRS connection. To be able to establish the connection it is necessary to:

Configuring the broker connection

The broker's address and port are configured on the MQTT tab

mqttbroker1

mqttbroker2

 

Enabling the connection with the broker

When this option is enabled, we tell the cLAN-MQ to establish connection with the specified configuration. If this option is disabled the cLAN-MQ will not establish outgoing connections.

Host - Port

The IP address or URL of the server where the broker is running must be entered here. The cLAN-MQ can resolve URLs using DNS.

Unencrypted connections default port is 1883. Encrypted port is tipically 8883.

Encrypt

The cLAN-MQ can establish the link without encription ("No encryption") or using TLS 1.2 and TLS 1.0

CA signed server certificate: No cerfificate required.

CA certificate only: You must upload the CA certificate for validation

Self signed certificates: You must upload CA certificate, client certificate and client key

 

warn

 

For GRD-MQ to be able to use "CA certificate only" and "Self signed certificates" the GRDs clock must be setted properly.

You can do this from "Monitor" in the configuration software.

 

Client ID, Username y Password

This parameters must match the ones configured on the broker.

Keep Alive

Time in seconds to send the MQTT keep alive message (to keep the link alive in case there's no other MQTT message)

Certificates upload:

warn

You must be connected to the cLAN to upload the certificates.

They are not included in the configuration

After pressing the "Certificates" this window will pop up.

mqttbroker2

File format must be PEM

Advanced

SMS password

This password can be used to protect remote SMS configuration

Monitoring the GRD-MQ to broker connection

Monitoring the connection in the GRD-MQ

To verify whether the entered configuration into the GRD-MQ is the correct one we have the possibility of monitoring the status of the connections and the signal.

To access the monitoring screen of the configurator click on the “Monitor” button. Then, the following screen will be displayed:

From here, the following parameters related to the connection are of interest: “Signal, SIM State, GPRS State and Link State”.

Signal level

It indicates the signal level in dBm, the minimum value is -113 dBm, data transmission is impossible at this value.

Use this chart as reference for signal qualtity.

signal

SIM State

If a PIN is entered incorrectly 3 consecutive times, the SIM card will block. To unblock it, you would need to enter its PUK. For more information contact your cell phone operator.

If the PUK is entered erroneously too many times (the number of times depends on the telephone operator) you should change the SIM card. For additional information please contact you cell phone operator.

GPRS State

The following are the possible states of the GPRS connection.

Link State

The TCP connection state can also be monitored. Remember that to be able to establish such a connection, you must count first on a GPRS service.
Once the GPRS connection is established, the possible TCP connection states are:

2020-11-19