Changes

11,742 bytes added ,  12:52, 30 July 2018
Line 80: Line 80:  
===Get number of bytes received===
 
===Get number of bytes received===
 
----
 
----
 +
To obtain the number of bytes received (RX bytes) by a network interface, use '''''-r''''' or '''''--brecv''''' options.
    +
'''Usage syntax''':
   −
===Get 3G connection state===
+
gsmctl <span style="color:blue;">-b</span>, <span style="color:blue;">--brecv</span> <span style="color:purple;"><INTERFACE></span>
 +
 
 +
Where ''<INTERFACE>'' is the name of a network interface.
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-r</span> <span style="color:purple;">wwan0</span>
 +
<span style="color:red;">92551</span>
 +
 
 +
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).
 +
 
 +
===Get network connection state===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get network link state===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get device IMEI===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get SIM ICCID===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get device model===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get device manufacturer===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get device serial number===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get device revision number===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get IMSI===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get SIM card state===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get GSM signal (RSSI) level===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get WCDMA RSCP level===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get WCDMA EC/IO level===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get LTE RSRP level===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get LTE SINR level===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get LTE RSRQ level===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get cell ID parameter===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get name of operator used===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get operator number===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get data carrier type===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get module temperature===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get PIN/PUK count===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get network information===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 
 +
'''Usage syntax''':
 +
 
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 
 +
===Get serving cell information===
 
----
 
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 +
'''Usage syntax''':
 +
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 +
===Get neighbour cell information===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 +
'''Usage syntax''':
 +
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 +
===Shutdown the modem===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 +
'''Usage syntax''':
 +
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 +
===List available options===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 +
'''Usage syntax''':
 +
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
 +
 +
===Print gsmctl version===
 +
----
 +
To obtain the , use '''''-''''' or '''''--''''' options.
 +
 +
'''Usage syntax''':
 +
 +
gsmctl <span style="color:blue;">-</span>, <span style="color:blue;">--</span>
 +
 +
'''Example''': obtaining the number of bytes received (RX bytes) by the mobile connection interface:
 +
 +
root@Teltonika:~# gsmctl <span style="color:blue;">-</span>
 +
<span style="color:red;"></span>
    
==SMS management options==
 
==SMS management options==

Navigation menu