GsmRegistrationMode: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
m (added Category:R2D2 using HotCat)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
=DESCRIPTION==
This command sets/gets GSM auto registration mode.
This command sets/gets GSM auto registration mode, if it is enabled GSM port
 
If it is enabled GSM port
will automatically try to register to GSM network, otherwise will wait  
will automatically try to register to GSM network, otherwise will wait  
explicit command (SelectGsmOperator) in order to do this. If mode parameter
explicit command (SelectGsmOperator) in order to do this.  
is not specified command will return current auto registration mode.


==COMMAND==
If mode parameter is not specified command will return current auto registration mode.
 
'''COMMAND:'''
{| class="wikitable"
{| class="wikitable"
!Command
!Command
!Line Arguments
!Input Arguments
!Returns
!Returns
|-
|-
|StopPortLog
|GsmRegistrationMode
|PortIndex, UniqueID
|Port index, [Registration mode]
|[[R2D2 Error Codes|Error Code]] in case of error.
|Command status or the actual Registration mode
|}
|}


== OUTPUT ==
'''OUTPUT:'''
 
Command status for set command:<br>
Command status for set command:<br>
"%s\n", command_status (OK | ERROR)
"%s\n", command_status (OK | ERROR)
Line 23: Line 26:
"%s\n", mode (ENABLED | DISABLED)
"%s\n", mode (ENABLED | DISABLED)


== EXAMPLE ==
'''EXAMPLE:'''
 
~# GsmRegistrationMode 0 DISABLED<br>
~# GsmRegistrationMode 0 DISABLED<br>
OK
OK
Line 38: Line 42:
~# GetGsmPortStatus 0<br>
~# GetGsmPortStatus 0<br>
REGISTERED (4)
REGISTERED (4)
{{Network}}
 
[[Category:NETWORK]]
[[Category:R2D2]]

Latest revision as of 11:23, 27 March 2025

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:

Command Input Arguments Returns
GsmRegistrationMode Port index, [Registration mode] Command status or the actual Registration mode

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)