Changes

1,408 bytes added ,  10:00, 30 July 2018
no edit summary
Line 14: Line 14:     
''gsmctl'' commands are used in tandem with various options that specify what type of action should be executed. This section overviews all of the available ''gsmctl'' options.
 
''gsmctl'' commands are used in tandem with various options that specify what type of action should be executed. This section overviews all of the available ''gsmctl'' options.
 +
----
 +
'''Example structure'''
 +
 +
Individual options are described in their separate subsections of this article. To find the information you are looking for more effectively, refer to the table of contents at the top of the page or use your browser's find feature ('''Control + F''').
 +
 +
Each option is presented with the usage syntax and an example command. For easier differentiation of the different elements that make up the examples, different colors are used:
 +
* <span style="color:blue;">options</span> are highlighted in blue
 +
* <span style="color:red;">responses</span> are highlighted in red
 +
* <span style="color:purple;">additional information</span> is highlighted in purple
 +
 +
----
 +
'''Two execution methods'''
    
Each option can be executed in two distinct ways. One is shorter, the other is longer and more descriptive. For example, to obtain the modem's IMEI you can either use:
 
Each option can be executed in two distinct ways. One is shorter, the other is longer and more descriptive. For example, to obtain the modem's IMEI you can either use:
Line 20: Line 32:     
longer version: '''''gsmctl --imei'''''
 
longer version: '''''gsmctl --imei'''''
 +
----
 +
'''Combined options'''
 +
 +
Multiple options can be combined together to obtain more than one parameter at a time. For example, to obtain the name of the operator used, signal strength and connection type with one command use this:
 +
 +
shorter version: '''''gsmctl -oqt'''''
 +
 +
longer version: '''''gsmctl --operator --signal --conntype'''''
   −
===Get IP address of logical interface===
+
Note that in the shorter version multiple options can be used together with one hyphen (-) symbol with no spacing, while in the longer version different options must be separated by spaces and before each option a double hyphen (--) is required.
 +
 
 +
===Basic options===
 +
----
 +
This subsection overviews basic ''gsmctl'' options, usually related to obtaining
 +
 
 +
====Get IP address of logical interface====
 
----
 
----
 
To obtain the IP address of a network interface, use '''''-p''''' or '''''--ip''''' options.
 
To obtain the IP address of a network interface, use '''''-p''''' or '''''--ip''''' options.
 
   
 
   
'''Usage''':
+
'''Usage syntax''':
 
   
 
   
<span style="color:blue;">-p</span>, <span style="color:blue;">--ip</span> <span style="color:purple;"><INTERFACE></span>
+
gsmctl <span style="color:blue;">-p</span>, <span style="color:blue;">--ip</span> <span style="color:purple;"><INTERFACE></span>
    
Where ''<INTERFACE>'' is the name of a network interface.  
 
Where ''<INTERFACE>'' is the name of a network interface.  
Line 36: Line 62:  
  <span style="color:red;">10.139.75.221</span>
 
  <span style="color:red;">10.139.75.221</span>
   −
'''''wwan0''''' is the name of the mobile interface when the connection type is set to QMI (default). You can use the '''''ifconfig''''' command to check the names of existing network interfaces.
+
Where '''''wwan0''''' is the name of the mobile interface when the connection type is set to QMI (default). You can use the '''''ifconfig''''' command to check the names of existing network interfaces.
===Basic options===
  −
----
      
====Get number of bytes sent====
 
====Get number of bytes sent====