SMS / Commands

The Commands tab helps you enable individual commands sent via SMS. The user must be logged in.

Information Reading (INF) – command for sending an SMS containing basic information (signal, mobile network technology used, operator code and name, battery status).

Parameter Reading (GET) – command for sending SMS containing information of selected parameters.

Parameter Change (SET) – command for changing parameters in the settings.

Password Change (PWD) – command for changing the device password.

Factory Defaults (DEF) – command for restoring the device factory settings.

Restart (RST) – command for restarting the device.

Setting up SMS commands

Caution

  • The commands are only valid with upper case letters.

  • You can only enter one type of command at a time using SMS.

  • The maximum SMS length is 140–160 characters, if a setting outside the allowed range is requested or there is another error in the message, the setting change will not be performed.

Tip

Refer to Subs. List of Parameters for an overview of parameters and their identifiers.

Command

SMS format

Example

Note

Reading Information (INF)

EG INF <pwd>

EG INF initial_pasword

The command response includes information on the device serial number, FW version, IMEI and IMSI, roaming, signal strength, mains power status, battery status and time to battery replacement.

The content of the response can be set using the INF Message Format parameter.

In case 2 SIM cards are used in the device, both IMSI versions will be sent in the SMS reply, the other information only refers to the active SIM card.

Parameter Reading (GET)

EG GET <pwd> <p1> [<p2> [<p3> …]]

EG GET initial_pasword 150 swg_enable sim1_pin

A command for getting information on the My2N settings, SMS function on the device and the PIN code

For the GET and SET commands it is possible to use multiple parameters at once, the separating character of each parameter is a space. Parameters are entered with a numerical / text identifier and can be combined. We recommend using numerical identifiers, which contain fewer characters.

Parameter Change (SET)

EG SET <pwd> <p1>=<v1> [<p2>=<v2> [<p3>=<v3> …]]

EG SET initial_pasword 150=1 sgw_period=60 sim1=1234 243=(internet.t-mobile.cz)

Command for enabling the My2N service, setting the INF message period to every 60 minutes, changing SIM 1 PIN to 1234 and setting APN):

For the GET and SET commands it is possible to use multiple parameters at once, the separating character of each parameter is a space. Parameters are entered with a numerical / text identifier and can be combined. We recommend using numerical identifiers, which contain fewer characters.

This command allows you to change parameter values; configurable parameters must be assigned numbers. If entered as a text, the parameter must be enclosed in round brackets.

Password Change (PWD)

EG PWD <pwd> <new_pwd>

EG PWD initial_pasword amber

The new version of the initial password will be set as amber.

Factory Defaults (DEF)

EG DEF <pwd>

EG DEF initial_pasword

Sending the command will restore the device factory settings and reboot the device.

Device Restart (RST)

EG RST <pwd>

EG RST initial_pasword

The device is restarted.

Response (OK / ERR)

EG [OK|ERR] msg=<msg> cmd=<cmd> seq=<seq>

Response with setpoint (VAL / INF)

EG [VAL|INF] <p1>=<v1> [<p2>=<v2> …]

Events (EVT)

  • EG EVT power=[charge|backup|fully|error]

  • EG EVT start

  • EG EVT slot=[1|2]

  • EG EVT input=[0|1] missed=&lt;num&gt;

Feedback messages for commands (shape)

Feedback messages for commands (description)

EG SET OK

The setting was successful

EG ERR Unknown Command

Command other than SET, GET, DEF, RST, INF used

EG ERR Password

Invalid password

EG ERR Invalid Parameters

Invalid parameter in command

EG ERR Invalid Syntax

Non-compliance with characters (spaces, equal signs, etc.)

Parameters

Tip

Refer to the List of Parameters subsection for an overview of parameters and their identifiers.

Parameter

Description

<pwd>

Authorization password

<new_pwd>

New password for authorization

<pn>

Parameter number

<vn>

Numeric value or text value in brackets

<msg>

  • Successful

  • Unknown command

  • Invalid password

  • Invalid parameters

  • Invalid syntax

  • Not allowed

  • Time limit

  • Error

<cmd>

Command that responds (CNF, DEF, SET, RST, INF)

<seq>

Sequential counter

<num>

Numeric value

  • Set parameter 100 (sgw_enable) to 0 and parameter 101 (sgw_ident) to EGIP 1:

    EG SET pwd 100=0 sgw_ident=(EGIP 1)

  • Example of reading parameter 100:

    EG GET pwd 100 sgw_ident

このページは役に立ちましたか?