Tunnel – Change by SMS of up to 9 digital outputs or 9 relays.

¿Buscas alguna otra cosa?

Scenario details:

  • You need to be able to change the status of 9 remote relays to enable / disable a number of devices connected to them. Such remote activation needs to be done by SMS messaging
  • It should only be possible to change the status of the relays from the authorized telephone numbers: +34666123456, + 34666123457 and +346661234568
  • The SMS messages to make the change of state must be simple. Therefore, to activate Relay 0 the SMS message will be “RL0ON” and to deactivate it “RL0OFF”. Exactly the same for the rest of the relays: “RL1ON” / “RL1OFF”, “RL2ON” / “RL2OFF”, … “RL8ON” / “RL8OFF”

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
SMS_atEnabled: on
SMS_atResponse: on
SMS_alias1: RL0ON>AT^MTXTUNNEL=SETIO,0,1
SMS_alias2: RL0OFF>AT^MTXTUNNEL=SETIO,0,0
SMS_alias3: RL1ON>AT^MTXTUNNEL=SETIO,1,1
SMS_alias4: RL1OFF>AT^MTXTUNNEL=SETIO,1,0
SMS_alias5: RL2ON>AT^MTXTUNNEL=SETIO,2,1
SMS_alias6: RL2OFF>AT^MTXTUNNEL=SETIO,2,0
SMS_alias7: RL3ON>AT^MTXTUNNEL=SETIO,3,1
SMS_alias8: RL3OFF>AT^MTXTUNNEL=SETIO,3,0
SMS_alias9: RL4ON>AT^MTXTUNNEL=SETIO,4,1
SMS_alias10: RL4OFF>AT^MTXTUNNEL=SETIO,4,0
SMS_alias11: RL5ON>AT^MTXTUNNEL=SETIO,5,1
SMS_alias12: RL5OFF>AT^MTXTUNNEL=SETIO,5,0
SMS_alias13: RL6ON>AT^MTXTUNNEL=SETIO,6,1
SMS_alias14: RL6OFF>AT^MTXTUNNEL=SETIO,6,0
SMS_alias15: RL7ON>AT^MTXTUNNEL=SETIO,7,1
SMS_alias16: RL7OFF>AT^MTXTUNNEL=SETIO,7,0
SMS_alias17: RL8ON>AT^MTXTUNNEL=SETIO,8,1
SMS_alias18: RL8OFF>AT^MTXTUNNEL=SETIO,8,0
SMS_aliasResponse: result
GPIO_mode0: output
GPIO_config0: normal
GPIO_mode1: output
GPIO_config1: normal
GPIO_mode2: output
GPIO_config2: normal
GPIO_mode3: output
GPIO_config3: normal
GPIO_mode4: output
GPIO_config4: normal
GPIO_mode5: output
GPIO_config5: normal
GPIO_mode6: output
GPIO_config6: normal
GPIO_mode7: output
GPIO_config7: normal
GPIO_mode8: output
GPIO_config8: normal
PIN if it has one
Device model
Gateways used
Phone numbers
Phone number 1
Phone number 2
Phone number 3
Remote AT commands
Responses to AT commands
Alias to activate the relay RL0
Alias to deactivate the relay RL0
Alias to activate the relay RL1
Alias to deactivate the relay RL1
Alias to activate the relay RL2
Alias to deactivate the relay RL2
Alias to activate the relay RL3
Alias to deactivate the relay RL3
Alias to activate the relay RL4
Alias to deactivate the relay RL4
Alias to activate the relay RL5
Alias to deactivate the relay RL5
Alias to activate the relay RL6
Alias to deactivate the relay RL6
Alias to activate the relay RL7
Alias to deactivate the relay RL7
Alias to activate the relay RL8
Alias to deactivate the relay RL8
Not obtain as a response AT command executed
GPIO0 configured as an output
Configuration as a normal output
GPIO1 configured as an output
Configuration as a normal output
GPIO2 configured as an output
Configuration as a normal output
GPIO3 configured as an output
Configuration as a normal output
GPIO4 configured as an output
Configuration as a normal output
GPIO5 configured as an output
Configuration as a normal output
GPIO6 configured as an output
Configuration as a normal output
GPIO7 configured as an output
Configuration as a normal output
GPIO8 configured as an output
Configuration as a normal output  

Details:

  • The MTX-IOT-S family modems have up to 8 digital outputs (from GPIO0 to GPIO7) and 1 integrated relay (GPIO8). The 8 digital outputs are open collector type with enough current to switch an external relay
  • Aliases, for convenience, are not case sensitive. That is, it is the same to send “RL1ON” as “Rl1ON” as “RL1on” or “rl1on”, among other combinations
  • If for your application you only need to manage a low power relay (up to 1Amp), the use of GPIO8 is recommended, since it is connected to an internal relay of the MTX-IoT-S