Details of the example scenario:
- The scenario is very simple: you only need to send an SMS when a digital signal from an external circuit changes from “0” to “1”.
- The SMS alarm must be sent for security reasons to five telephone numbers (677777771, 677777772, 677777773, 677777774, 677777775). The text must be “ALARM DETECTED”.
- Once the alarm is produced, the digital signal can change continuously and therefore the number of SMS messages that can be sent must be limited to one per hour.
Configuration files for the MTX-65i and MTX-Tunnel for the proposed solution:
This configuration is what must be inputted in the configuration file of the modem to be able to carry out the implementation described in the scenario.
|MTX_model: MTX65i||The chosen MTX model is MTX65i|
|MTX_mode: none||A Serial GPRS Tunnel is not necessary|
|MTX_urc: off||We do not need the URC information messages|
|ALARM_gpioEnabled: on||We activate the SMS alarm service due to digital input changes|
|ALARM_gpioValue: 1||The alarm will be sent when the digital input changes from “0” to “1”|
|ALARM_gpioMessage1: ALARM DETECTED||Text to be sent via SMS.|
|ALARM_gpioPause: 3600||Stops more than one alarm being sent in an hour|
|ALARM_smsNumber1: 677777771||Telephone 1 where the SMS alarm is to be sent|
|ALARM_smsNumber2: 677777772||Telephone 2 where the SMS alarm is to be sent|
|ALARM_smsNumber3: 677777773||Telephone 3 where the SMS alarm is to be sent|
|ALARM_smsNumber4: 677777774||Telephone 4 where the SMS alarm is to be sent|
|ALARM_smsNumber5: 677777775||Telephone 5 where the SMS alarm is to be sent|