GetGsmPortStatus: Difference between revisions

From Opale Wiki
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 command writes to the standard output the port status of the specified GSM port. If status is REGISTERED (HOME) or REGISTERED (ROAMING) it returns Registration (IMSI Attach) time in milliseconds (the time between the first CHANNEL_REQUEST message sent by MS to BTS and the TMSI_REALLOCATION_COMPLETE message sent by MS to MSC/VLR.)
 
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:'''
Line 13: Line 7:
!Returns
!Returns
|-
|-
|GsmRegistrationMode
|'''GetGsmPortStatus'''
|Port index, [Registration mode]
|Port index
|Command status or the actual Registration mode
|Port Status
|}
|}


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


Command status for set command:<br>
none
"%s\n", command_status (OK | ERROR)
 
Or actual auto registration mode for get command:<br>
"%s\n", mode (ENABLED | DISABLED)


'''EXAMPLE:'''
'''EXAMPLE:'''


~# GsmRegistrationMode 0 DISABLED<br>
~# GetGsmPortStatus 1
OK


~# GsmRegistrationMode 0<br>
INITIALIZED
DISABLED


~# GetGsmPortStatus 0<br>
~# GetGsmPortStatus 1
NOT_REGISTERED


~# SelectGsmOperator 0 MANUAL 22001<br>
REGISTERED (HOME) (3462)
OK (8287)


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


NOT_REGISTERED (DENIED)
[[Category:NETWORK]]
[[Category:NETWORK]]
[[Category:R2D2]]
[[Category:R2D2]]

Latest revision as of 20:51, 1 April 2025

This command writes to the standard output the port status of the specified GSM port. If status is REGISTERED (HOME) or REGISTERED (ROAMING) it returns Registration (IMSI Attach) time in milliseconds (the time between the first CHANNEL_REQUEST message sent by MS to BTS and the TMSI_REALLOCATION_COMPLETE message sent by MS to MSC/VLR.)

COMMAND:

Command Input Arguments Returns
GetGsmPortStatus Port index Port Status

OUTPUT:

none

EXAMPLE:

~# GetGsmPortStatus 1

INITIALIZED

~# GetGsmPortStatus 1

REGISTERED (HOME) (3462)

~# GetGsmPortStatus 0

NOT_REGISTERED (DENIED)