Skip to content

User guide 2G (GSM GPRS) 09

Florian edited this page Jan 27, 2019 · 1 revision

2G gateway

Not yet updated with JSON functionnality

Level of complexity: high

Receiving SMS from 2G

Subscribe to the base topic "home" with mosquitto:

sudo mosquitto_sub -t +/# -v

Generate your SMS by sending an SMS to the phone number of the A6/A7 SIM card you will see :

home/OpenMQTTGateway/2GtoMQTT/phone +33123456789 home/OpenMQTTGateway/2GtoMQTT/date 2018/04/22,16:17:51+02 home/OpenMQTTGateway/2GtoMQTT/message Hello OpenMQTTGateway

Send data by MQTT to send an SMS message with A6/7

`sudo mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTto2G/PHO_0123456789 -m "hello"`

This command will send by SMS the sentence "hello" and use the phone number 0123456789

Arduino IDE serial data received when publishing data by MQTT

We see that the Arduino receive the value 1315156 on the MQTT subject "MQTTto433" and send the data by RF

Arduino IDE serial data received when receiving SMS

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.