Jump to content

Template:Gsmctl commands: Difference between revisions

mNo edit summary
No edit summary
Line 251: Line 251:
----
----
To obtain the modem's serial number, use '''''-a''''' or '''''--serial''''' options.
To obtain the modem's serial number, use '''''-a''''' or '''''--serial''''' options.
<b>Note</b>: From FW version <i>R_00.07.03</i> this argument has been removed.


'''Usage syntax''':
'''Usage syntax''':
Line 333: Line 335:
  root@Teltonika:~# gsmctl <span style="color:blue;">-q</span>
  root@Teltonika:~# gsmctl <span style="color:blue;">-q</span>
  <span style="color:red;">-55</span>
  <span style="color:red;">-55</span>
<b>Note</b>: From FW version <i>R_00.07.03</i> this argument returns all signal related values. Example:
root@Teltonika:~# gsmctl -q
RSSI: -69
RSRP: -103
SINR: 2
RSRQ: -16


'''Possible responses''':
'''Possible responses''':
Line 342: Line 352:
----
----
To obtain the router's current WCDMA [[RSCP]] level, use '''''-X''''' or '''''--rscp''''' options.  
To obtain the router's current WCDMA [[RSCP]] level, use '''''-X''''' or '''''--rscp''''' options.  
<b>Note</b>: From FW version <i>R_00.07.03</i> this value has been moved under <span style="color:blue;">-q</span> argument.


'''Usage syntax''':
'''Usage syntax''':
Line 361: Line 373:
----
----
To obtain the router's current WCDMA [[EC/IO]] level, use '''''-E''''' or '''''--ecio''''' options.
To obtain the router's current WCDMA [[EC/IO]] level, use '''''-E''''' or '''''--ecio''''' options.
<b>Note</b>: From FW version <i>R_00.07.03</i> this value has been moved under <span style="color:blue;">-q</span> argument.


'''Usage syntax''':
'''Usage syntax''':
Line 380: Line 394:
----
----
To obtain the router's current LTE [[RSRP_and_RSRQ|RSRP]] level, use '''''-W''''' or '''''--rsrp''''' options.
To obtain the router's current LTE [[RSRP_and_RSRQ|RSRP]] level, use '''''-W''''' or '''''--rsrp''''' options.
<b>Note</b>: From FW version <i>R_00.07.03</i> this value has been moved under <span style="color:blue;">-q</span> argument.


'''Usage syntax''':
'''Usage syntax''':
Line 399: Line 415:
----
----
To obtain the router's current [[SINR]] level, use '''''-Z''''' or '''''--sinr''''' options.
To obtain the router's current [[SINR]] level, use '''''-Z''''' or '''''--sinr''''' options.
<b>Note</b>: From FW version <i>R_00.07.03</i> this value has been moved under <span style="color:blue;">-q</span> argument.


'''Usage syntax''':
'''Usage syntax''':
Line 418: Line 436:
----
----
To obtain the router's current [[RSRP and RSRQ|RSRQ]] level, use '''''-M''''' or '''''--rsrq''''' options.
To obtain the router's current [[RSRP and RSRQ|RSRQ]] level, use '''''-M''''' or '''''--rsrq''''' options.
<b>Note</b>: From FW version <i>R_00.07.03</i> this value has been moved under <span style="color:blue;">-q</span> argument.


'''Usage syntax''':
'''Usage syntax''':
Line 555: Line 575:
----
----
To obtain information related to the mobile network information, use '''''-F''''' or '''''--network''''' options.
To obtain information related to the mobile network information, use '''''-F''''' or '''''--network''''' options.


'''Usage syntax''':
'''Usage syntax''':
Line 573: Line 595:
**'''''<channel>''''' - channel ID
**'''''<channel>''''' - channel ID


<b>Note</b>: From FW version <i>R_00.07.03</i> the values are returned in a different format. Example:
root@Teltonika:~# gsmctl -F
LTE | LTE_B3 | 24602


===Get serving cell information===
===Get serving cell information===
----
----
To obtain the , use '''''-K''''' or '''''--serving''''' options.
To obtain the serving cell information, use '''''-K''''' or '''''--serving''''' options.


'''Usage syntax''':
'''Usage syntax''':
Line 589: Line 615:
  <span style="color:red;">+SGCELLINFOEX:LTE,FDD LTE,246,02,1037079,109,4051,23,146,3,100,1850,19850,-63,-99,-13,199,19,4,255,-,-,4,-,0,-,0,0,0</span>
  <span style="color:red;">+SGCELLINFOEX:LTE,FDD LTE,246,02,1037079,109,4051,23,146,3,100,1850,19850,-63,-99,-13,199,19,4,255,-,-,4,-,0,-,0,0,0</span>


<b>Note</b>: From FW version <i>R_00.07.03</i> the values are returned in a different format. Example:


root@Teltonika:~# gsmctl -K
Access tech: LTE | TDD mode: FDD | MCC: 246 | MNC: 2 | UE state: 3


===Get neighbour cell information===
===Get neighbour cell information===
----
----
To obtain the , use '''''-I''''' or '''''--neighbour''''' options.
To obtain the neighbor cell information, use '''''-I''''' or '''''--neighbour''''' options.


'''Usage syntax''':
'''Usage syntax''':
Line 604: Line 633:
  <span style="color:red;">+QENG: "neighbourcell intra","LTE",522,269,-9,-87,-58,0,-,-,-,-,-</span>
  <span style="color:red;">+QENG: "neighbourcell intra","LTE",522,269,-9,-87,-58,0,-,-,-,-,-</span>


===Get VoLTE state status===
----
To obtain the VoLTE state, use '''''-v''''' or '''''--volte_state''''' options.
<b>Note</b>: This argument is supported from FW version <i>R_00.07.03</i>.
'''Usage syntax''':
gsmctl <span style="color:blue;">-v</span>, <span style="color:blue;">--volte_state</span>
'''Example''': obtaining the VoLTE state.
root@Teltonika:~# gsmctl -v
Active
===Get operator station time===
----
To obtain the operator station, use '''''-H''''' or '''''--modemtime''''' options with time argument (1 - GMT, 2 - local).
'''Usage syntax''':
gsmctl <span style="color:blue;">-H</span>, <span style="color:blue;">--modemtime</span> <span style="color:purple;"><1/2></span>
'''Example''': obtaining the operator time
root@Teltonika:~# gsmctl -H 1
22/12/01,12:27:14
===Get modem info in json format===
----
To obtain the full modem information in JSON format, use '''''-E''''' or '''''--info''''' options.
<b>Note</b>: This argument is supported from FW version <i>R_00.07.03</i>.
'''Usage syntax''':
gsmctl <span style="color:blue;">-E</span>, <span style="color:blue;">--info</span>
'''Example''': obtaining the modem information
root@Teltonika:~# gsmctl -E
{
"name": "Quectel EG06-E",
"model": "EG06-E",
"manuf": "Quectel",
"driver": "Quectel EG06 AT",
"usb_id": "3-1",
...
===Reboot the modem===
----
To reboot the modem, use '''''-Q''''' or '''''--reboot''''' options. After the command is executed, the modem will start rebooting.
'''Usage syntax''':
gsmctl <span style="color:blue;">-Q</span>, <span style="color:blue;">--reboot</span>
'''Example''': rebooting the modem
root@Teltonika:~# gsmctl <span style="color:blue;">-Q</span>
<span style="color:red;">Modem was reset</span>
'''Possible responses''':
*Modem was reset




Line 789: Line 885:


First you need to create a /tmp/.smstext file and append some text you want to send
First you need to create a /tmp/.smstext file and append some text you want to send
<b>Note</b>: From FW version <i>R_00.07.03</i> this argument has been removed.


To send a base64 SMS message, use '''''-S -b''''' or '''''--sms --send-b64''''' options
To send a base64 SMS message, use '''''-S -b''''' or '''''--sms --send-b64''''' options