Changes

m
no edit summary
Line 1: Line 1: −
<p style="color:red">The information on this page is updated in accordance with the [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.4'''] firmware version .</p>
+
<p style="color:red">The information on this page is updated in accordance with the [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.08'''] firmware version .</p>
 
__TOC__
 
__TOC__
 
==Summary==
 
==Summary==
   −
'''AT commands''' ("AT" meaning 'attention') are instructions used to control a modem. The command set consists of a series of short text strings which can be combined to produce commands for operations such as dialing, managing SMS functions, and changing the parameters of the connection. Many of the commands that are used to control wired dial-up modems, such as ATD (Dial), ATA (Answer), ATH (Hook control) and ATO (Return to online data state), are also supported by GSM/GPRS modems and mobile phones. This section is an overview of some AT commands that can be used with RUT routers.
+
'''AT commands''' ("AT" meaning 'attention') are instructions used to control a modem. The command set consists of a series of short text strings that can be combined to produce commands for operations such as dialing, managing SMS functions, and changing the parameters of the connection. Many of the commands that are used to control wired dial-up modems, such as ATD (Dial), ATA (Answer), ATH (Hook control), and ATO (Return to online data state), are also supported by GSM/GPRS modems and mobile phones. This section is an overview of some AT commands that can be used with RUT routers.
    
==gsmctl commands==
 
==gsmctl commands==
Line 11: Line 11:  
===SSH===
 
===SSH===
 
----
 
----
To log in to a RUT router via SSH, download the free '''PuTTY''' app if you're using Windows; if you're using a Linux based OS, just use the Terminal app. In both cases you will need to know three things: the router's LAN IP address, user name and password. The default LAN IP address for all RUT routers is '''192.168.1.1'''; the default log in information is username: '''root'''; password: '''admin01''' (NOTE: the user name used for SSH connections (i.e., root) is not the same as the user name used to log in to the router's WebUI (i.e., admin)).
+
To log in to a RUT router via SSH, download the free '''PuTTY''' app if you're using Windows; if you're using a Linux-based OS, just use the Terminal app. In both cases you will need to know three things: the router's LAN IP address, user name and password. The default LAN IP address for all RUT routers is '''192.168.1.1'''; the default login information is username: '''root'''; password: '''admin01''' (NOTE: the user name used for SSH connections (i.e., root) is not the same as the user name used to log in to the router's WebUI (i.e., admin)).
   −
If you're using PuTTY, enter the router's LAN IP address into the '''Host Name (or IP address)''' field, select SSH Connection type and click '''Open'''. After this you will be prompted to enter the user name and password.  
+
If you're using PuTTY, enter the router's LAN IP address into the '''Host Name (or IP address)''' field, select SSH Connection type and click '''Open'''. After this, you will be prompted to enter the username and password.  
    
If you're using Linux, open a Terminal and type this command:
 
If you're using Linux, open a Terminal and type this command:
Line 40: Line 40:  
   -b, --band                    Print current band
 
   -b, --band                    Print current band
 
   -q, --signal                  Get signal levels
 
   -q, --signal                  Get signal levels
 +
  -G, --cainfo                  Get carrier aggregation bands are using right now
 +
 
'''modem commands:'''
 
'''modem commands:'''
 
   -A, --at <cmd>                Execute AT command.
 
   -A, --at <cmd>                Execute AT command.
Line 57: Line 59:  
   -U  --ussd <command>          The command allows control of the Unstructured Supplementary Service Data. (response saved in /tmp/ussd file)
 
   -U  --ussd <command>          The command allows control of the Unstructured Supplementary Service Data. (response saved in /tmp/ussd file)
 
   -Y  --switch                  Switch sim card for modem
 
   -Y  --switch                  Switch sim card for modem
 +
  -T  --simslot                Get current sim card slot for modem
 
   -Q, --reboot                  Reboot the modem
 
   -Q, --reboot                  Reboot the modem
 
'''sms managing options:'''
 
'''sms managing options:'''
Line 81: Line 84:  
==AT command usage==
 
==AT command usage==
   −
To use a specific AT command via SSH, you can use the ''gsmctl -H''. After this your console will enter shell mode where you can then just type AT commands in their regular format. Or you can use ''gsmctl -A <AT_COMMAND>'' to execute AT commands one at a time. Continuing from the example above, lets say you want to find out the RSSI value. While there are quite a few commands that can be used to achieve this goal, lets use the '''AT+CSQ''' that is used when executing ''gsmctl -q'':
+
To use a specific AT command via SSH, you can use the ''gsmctl -H''. After this, your console will enter shell mode where you can then just type AT commands in their regular format. Or you can use ''gsmctl -A <AT_COMMAND>'' to execute AT commands one at a time. Continuing from the example above, let's say you want to find out the RSSI value. While there are quite a few commands that can be used to achieve this goal, lets use the '''AT+CSQ''' that is used when executing ''gsmctl -q'':
    
[[File:Gsmctl A.png|border|center|class=tlt-border|441x84px]]
 
[[File:Gsmctl A.png|border|center|class=tlt-border|441x84px]]
Line 110: Line 113:  
[[File:Gsmctl COPS.png|border|center|class=tlt-border|439x120px]]
 
[[File:Gsmctl COPS.png|border|center|class=tlt-border|439x120px]]
   −
As you can see, ''gsmctl'' returns a more user friendly value while ''AT+COPS?'' returns raw data. The response format of the ''AT+COPS?'' is '''+COPS: <mode>[,<format>[,<oper>][,<Act>]]'''. Explanations for individual values are provided below.
+
As you can see, ''gsmctl'' returns a more user-friendly value while ''AT+COPS?'' returns raw data. The response format of the ''AT+COPS?'' is '''+COPS: <mode>[,<format>[,<oper>][,<Act>]]'''. Explanations for individual values are provided below.
    
  <oper>        Operator in format as per <mode>
 
  <oper>        Operator in format as per <mode>