Aller au contenu principal
Suchen Sie etwas anderes?
Scenario details:
- It is necessary to send a series of commands by SMS to an electronic team, so that it executes actions
- The communication with the electronic equipment is through a proprietary binary protocol and is done through an RS232 port at 9600.8, n, 1. Therefore, it is necessary to implement an SMS-RS232 gateway
- The user needs to be able to send two types of messages by SMS. The message “OPEN” sends via serial port of the modem to the electronic equipment the data frame {0x01} {0x02} OPE1 {0x03}. The message “CLOSE” causes the sending by the serial port of the modem to the electronic equipment the data frame {0x01} [0x02} OPE2 {0x03}. Where 0x01, 0x02 and 0x03 are binary characters (not printable), while OPE1 and OPE2 are alphanumeric characters
Solution: MTX-Tunnel firmware + MTX-Java-IoT/MTX-Java-T/MTX-Java-T2
EXAMPLE of configuration (config.txt file) for the indicated scenario. Solution for quick communication via Socket TCP:
| Configuration | Observations |
| COMM_baudrate: 9600 COMM_bitsperchar: 8 COMM_autorts: off COMM_autocts: off COMM_stopbits: 1 COMM_parity: none SMS_allPhones: on SMS_sendIP: on SMS_ATEnabled: on SMS_ATResponse: on MTX_PIN: 0000 MTX_mode: none MTX_model: 199801145 SMS_alias1: OPEN>AT^MTXTUNNEL=RS232,0,<HEX>0102</HEX>OPE1<HEX>03</HEX> SMS_alias2: CLOSE>AT^MTXTUNNEL=RS232,0,<HEX>0102</HEX>OPE2<HEX>03</HEX> SMS_aliasResponse: result |
Serial port baud rate |
Details:
- When the modem receives an SMS message with the text “OPEN” the modem will send by its serial port the bytes 0x01 0x02 followed by the alphanumeric text OPE1 and ending with the 0x03 byte
- It is possible to put multiple sections with the <HEX> </ HEX> tags. Among them, all hexadecimal values must have 2 digits. That is, the value “1” should be written as “01”
Les accès par défaut sont :
Saisir le mode de connexion « Ethernet » ou « modem » :
Dans le cas d’une configuration par Ethernet, veiller à ce que les paramètres IP soient compatibles avec l’accès au serveur d’après la configuration du réseau local du concentrateur. Dans le cas d’une connexion par Ethernet, la configuration doit être compatible avec la topologie du réseau local du concentrateur afin qu’il puisse accéder aux serveurs. Cette configuration se fait via la page de configuration « Networks » (voir chapitre 3.2.2.3 : « Réseaux (Networks) »).
Dans le cas d’une connexion par modem, la configuration du modem doit être correcte avant de pouvoir effectuer une connexion. Cette configuration se fait dans la page de configuration « Modem » (voir chapitre 3.2.2.4 : « Modem »).
Les paramètres des serveurs à configurer au minimum sont les suivants :
Il faut donc configurer les champs : « Interface », « Type », « Server type », « Address », « Port », « Login » et « Password ».
Les autres champs peuvent être laissés aux valeurs par défaut à condition que les répertoires aient été créés correctement auparavant. Voir chapitre 3.1.2 : « Fichiers de configuration » pour plus de détails.


Attendre. Le concentrateur va redémarrer avec sa configuration usine.







