SendAtCommand: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
(Created page with "This command sets/gets GSM auto registration mode. If it is enabled GSM port will automatically try to register to GSM network, otherwise will wait explicit command (SelectGsmOperator) in order to do this. If mode parameter is not specified command will return current auto registration mode. '''COMMAND:''' {| class="wikitable" !Command !Input Arguments !Returns |- |GsmRegistrationMode |Port index, [Registration mode] |Command status or the actual Registration mode...")
Tag: 2017 source edit
 
m (added Category:R2D2 using HotCat)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
This command sets/gets GSM auto registration mode.  
This places an AT Command to the specified modem port.  


If it is enabled GSM port
'''COMMAND:'''  
will automatically try to register to GSM network, otherwise will wait
explicit command (SelectGsmOperator) in order to do this.
 
If mode parameter is not specified command will return current auto registration mode.
 
'''COMMAND:'''
{| class="wikitable"
{| class="wikitable"
!Command
!Command
Line 13: Line 7:
!Returns
!Returns
|-
|-
|GsmRegistrationMode
|SendAtCommand
|Port index, [Registration mode]
|Port index ATCommand (*)
|Command status or the actual Registration mode
|Issue an AT Command to the specified module.
|}
|}
(*) Note that the ATCommand must be entered with quotes if the AT Command itself includes double quotes or spaces. See below.


'''OUTPUT:'''
'''OUTPUT:'''


Command status for set command:<br>
Response from the modem to the AT command.
"%s\n", command_status (OK | ERROR)


Or actual auto registration mode for get command:<br>
'''EXAMPLE:'''<syntaxhighlight lang="text">
"%s\n", mode (ENABLED | DISABLED)
~# SendAtCommand 0, "ATI4"
 
ATI4
'''EXAMPLE:'''
Quectel
 
RM500Q-AE
~# GsmRegistrationMode 0 DISABLED<br>
Revision: RM500QAEAAR13A03M4G
OK
</syntaxhighlight>'''OR'''<syntaxhighlight lang="text">
~# SendAtCommand 0,'AT+QCALLCFG="voice_enable"'
+QCALLCFG: "voice_disable",1
OK
OK
</syntaxhighlight>


~# GsmRegistrationMode 0<br>
[[Category:GENERAL]]
DISABLED
[[Category:R2D2]]
 
~# GetGsmPortStatus 0<br>
NOT_REGISTERED
 
~# SelectGsmOperator 0 MANUAL 22001<br>
OK (8287)
 
~# GetGsmPortStatus 0<br>
REGISTERED (4)

Latest revision as of 11:26, 27 March 2025

This places an AT Command to the specified modem port.

COMMAND:

Command Input Arguments Returns
SendAtCommand Port index ATCommand (*) Issue an AT Command to the specified module.

(*) Note that the ATCommand must be entered with quotes if the AT Command itself includes double quotes or spaces. See below.

OUTPUT:

Response from the modem to the AT command.

EXAMPLE:

~# SendAtCommand 0, "ATI4"
ATI4
Quectel
RM500Q-AE
Revision: RM500QAEAAR13A03M4G
OK

OR

~# SendAtCommand 0,'AT+QCALLCFG="voice_enable"'
+QCALLCFG: "voice_disable",1
OK