Tunnel – SMS alarms to change up to 8 digital inputs.

¿Buscas alguna otra cosa?

Scenario details:

  • 8 dry contact sensors need to be monitored
  • In the event of a state change in any of them, an SMS message must be sent to several phone numbers. Each dry contact must have a personalized message that identifies the sensor that caused the alarms, as well as whether the alarm was activated (dry contact closed) or opened (dry contact open).
  • The phone numbers that will receive the SMS alerts are +34666123456, + 34666123457 and +346661234568
  • To avoid sending a high number of SMS (in case of rapid changes in a certain entry), a timeout of 60 seconds must be established per entry, that is, no more than 1 SMS per minute will be sent for changes in a certain entry

Solution: MTX-Tunnel firmware + MTX-IOT-S [4-N]

Configuration example (config.txt file) for the indicated scenario:

Configuration Observations
MTX_pin: 0000
MTX_model: 199802407
MTX_mode: none
SMS_allPhones: off
SMS_validPhone1: +34666123456
SMS_validPhone2: +34666123457
SMS_validPhone3: +34666123458
ALARM_smsNumber1: +34666123456
ALARM_smsNumber2: +34666123457
ALARM_smsNumber3: +34666123458
GPIO_mode0: input
GPIO_config0: sms;2;60;Alarma GPIO0 ON;Alarma GPIO0 OFF
GPIO_mode1: input
GPIO_config1: sms;2;60;Alarma GPIO1 ON;Alarma GPIO1 OFF
GPIO_mode2: input
GPIO_config2: sms;2;60;Alarma GPIO2 ON;Alarma GPIO2 OFF
GPIO_mode3: input
GPIO_config3: sms;2;60;Alarma GPIO3 ON;Alarma GPIO3 OFF
GPIO_mode4: input
GPIO_config4: sms;2;60;Alarma GPIO4 ON;Alarma GPIO4 OFF
GPIO_mode5: inputGPIO_config5: sms;2;60;Alarma GPIO5 ON;Alarma GPIO5 OFF
GPIO_mode6: input
GPIO_config6: sms;2;60;Alarma GPIO6 ON;Alarma GPIO6 OFF
GPIO_mode7: input
GPIO_config7: sms;2;60;Alarma GPIO7 ON;Alarma GPIO7 OFF
PIN if it has one
Device model
Gateways used
Phone numbers
Phone number 1
Phone number 2
Phone number 3
Phone number 1
Phone number 2
Phone number 3
GPIO0 configured as input
GPIO0 SMS configuration
GPIO1 configured as input
GPIO1 SMS configuration
GPIO2 configured as input
GPIO2 SMS configuration
GPIO3 configured as input
GPIO3 SMS configuration
GPIO4 configured as input
GPIO4 SMS configuration
GPIO5 configured as input
GPIO5 SMS configuration
GPIO6 configured as input
GPIO6 SMS configuration
GPIO07 configured as input
GPIO7 SMS configuration

Details:

  • The configuration of the inputs as “sms; 2; 30; GPIO0 ON alarm; GPIO0 OFF alarm” indicates the following:
    “sms” > The input is configured to send alarm by SMS
    “2” > The 2 indicates that the digital input is configured to send an SMS message both by activating the input (when it closes, bringing it to ground) and by deactivating the input (when it opens). If you want to send an SMS message only when closing the entry (taking it to ground), you should indicate a value of “1”
    “60” > Indicates the timeout of the digital input. This means that, even if there are multiple changes in the digital input, more than 1 SMS will never be sent in those 60 seconds. Note: in the event that the entrance closes and it opens again after 5 seconds, an SMS will be received indicating the closure and, after 60 seconds, the opening
    “Alarm GPIO0 ON” > Indicates a text message to be sent when the input is activated (when the input is ground)
    “Alarm GPIO0 OFF” > Indicates a text message to be sent when the input is deactivated