SendAtCommand: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
|-
|-
|SendAtCommand
|SendAtCommand
|Port index, 'ATCommand' (*)
|Port index, ATCommand (*)
|Issue an AT Command to the specified module.
|Issue an AT Command to the specified module.
|}
|}


(*) Note that the ATCommand must be entered with quotes it the AT Command itself includes quotes.
(*) 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:'''
"%s\n", mode (ENABLED | DISABLED)
 
~# SendAtCommand 0, "ATI4"
 
ATI4


'''EXAMPLE:'''
Quectel
 
RM500Q-AE
 
Revision: RM500QAEAAR13A03M4G


~# GsmRegistrationMode 0 DISABLED<br>
OK
OK


~# GsmRegistrationMode 0<br>
'''OR'''
DISABLED


~# GetGsmPortStatus 0<br>
~# SendAtCommand 0,'AT+QCALLCFG="voice_enable"'
NOT_REGISTERED


~# SelectGsmOperator 0 MANUAL 22001<br>
+QCALLCFG: "voice_disable",1
OK (8287)


~# GetGsmPortStatus 0<br>
OK
REGISTERED (4)

Revision as of 12:54, 4 June 2024

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