Changes

334 bytes added ,  13:24, 30 July 2018
Line 60: Line 60:     
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.
 
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.
 +
 +
'''Possible responses''':
 +
* IP address (32-bit numeric address written as four numbers separated by periods)
    
===Get number of bytes sent===
 
===Get number of bytes sent===
Line 78: Line 81:  
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.
 
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.
   −
The units in the response are '''bytes''' (not bits).
+
'''Possible responses''':
 +
* An integer number representing '''bytes''' (not bits) sent
    
===Get number of bytes received===
 
===Get number of bytes received===
Line 97: Line 101:  
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.
 
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.
   −
The units in the response are '''bytes''' (not bits).
+
'''Possible responses''':
 +
* An integer number representing '''bytes''' (not bits) received
    
===Get network connection state===
 
===Get network connection state===
Line 118: Line 123:  
===Get network link state===
 
===Get network link state===
 
----
 
----
To obtain the , use '''''-''''' or '''''--''''' options.
+
To obtain the registration state of the mobile network, use '''''-g''''' or '''''--netstate''''' options.
    
'''Usage syntax''':
 
'''Usage syntax''':
   −
  gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
+
  gsmctl <span style="color:blue;">-g</span>, <span style="color:blue;">--netstate</span>
   −
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
+
'''Example''': obtaining the registration state of the mobile network:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-g</span>
 +
<span style="color:red;">registered (home)</span>
   −
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
+
'''Possible responses''':
<span style="color:red;"></span>
+
* registered (home)
 +
* registered (roaming)
 +
* unregistered
 +
* searching
 +
* unknown
    
===Get device IMEI===
 
===Get device IMEI===

Navigation menu