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
 
No edit summary
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 it the AT Command itself includes quotes.


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

Revision as of 12:37, 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 it the AT Command itself includes quotes.

OUTPUT:

Command status for set command:
"%s\n", command_status (OK | ERROR)

Or actual auto registration mode for get command:
"%s\n", mode (ENABLED | DISABLED)

EXAMPLE:

~# GsmRegistrationMode 0 DISABLED
OK

~# GsmRegistrationMode 0
DISABLED

~# GetGsmPortStatus 0
NOT_REGISTERED

~# SelectGsmOperator 0 MANUAL 22001
OK (8287)

~# GetGsmPortStatus 0
REGISTERED (4)