3.2.9 Commands

In the Commands tab you can enable the reception of commands sent in SMS to 2N® LiftGate.


  • Allow from HTTP API – enable the reception of commands via HTTP API (no more restrictions).



  • Description – user definable field for a SMS command enable description
  • Phone number – sender’s number (only international with “+” at the beginning).
  • Password at SMS beginning – password to be located at the SMS beginning.

Caution

  • If no password is completed, the SMS must contain the command text only.
  • If a password is completed, the SMS must contain the password, space and command text.
  • If the SMS enable table is not completed, the reception of SMS from any number is allowed.

Caution

  • Wildcards for "Phone number": * = any string to end, ? = any character.
  • Leave "Password at SMS beginning" empty, if you do not want to use it.
Command List
sys reset
  • restarts the system
sys getinfo
  • sends back an SMS with identification data
cfg default
  • resets configuration defaults
cfg apn1 <apn> <name><pass>
  • sets the APN parameters, user name and password in the Configuration / Mobile Data, SIM 1 section
  • <apn> is mandatory, <name> a <pass> may be empty. The command parameters can be separated with a space, comma or semicolon.
cfg apn2 <apn> <name> <pass>
  • sets the APN parameters, user name and password in the Configuration / Mobile Data, SIM 2 section
  • <apn> is mandatory, <name> a <pass> may be empty. The command parameters can be separated with a space, comma or semicolon.
out <idx> <sts>
  • sets the logic output (relay) to the required value (parameter <idx> is relay "1" or "2", <sts> is "0" or "1")
    • 0 = open, 1 = closed
      The command parameters can be separated with a space, comma or semicolon.

Caution

  • If CFG and APN are only completed, the user name and password fields remain empty.


Tip

 Examples of Commands

  • Command format if a password is set for the phone number:
    • kd56ur3c5t sys getinfo for sending ID data or kd56ur3c5t sys reset for main unit restart.
    • kd56ur3c5t cfg apn1 internet.t-mobile.cz,LiftGate for APN1 setting.
  • Command format if there is no password for the phone number:
    • cfg default resets the main unit configuration defaults
    • apn2 cfg APN2 internet.t-mobile.cz LiftGate password1234 for APN2 setting.