GetUSSDResponse: Difference between revisions

From Opale Wiki
Jump to navigation Jump to search
(Created page with "This command gets response from the existing USSD session on the specified GSM port. Command waits until USSD response is received or optional timeout (entered in seconds) expired or general timeout expired. Response text is displayed as GSM7 or UCS2 coded string. In the case of UCS2 coding each character is displayed as 2 hexadecimal digits. '''COMMAND''' {| class="wikitable" !Command !Line Arguments !Returns |- |'''GetUSSDResponse''' |PortIndex, [Timeout] |USSD respon...")
 
m (added Category:USSD using HotCat)
 
(One intermediate revision by the same user not shown)
Line 25: Line 25:
2. Info
2. Info
</syntaxhighlight>
</syntaxhighlight>
[[Category:R2D2]]
[[Category:USSD]]

Latest revision as of 22:26, 1 April 2025

This command gets response from the existing USSD session on the specified GSM port. Command waits until USSD response is received or optional timeout (entered in seconds) expired or general timeout expired. Response text is displayed as GSM7 or UCS2 coded string. In the case of UCS2 coding each character is displayed as 2 hexadecimal digits.

COMMAND

Command Line Arguments Returns
GetUSSDResponse PortIndex, [Timeout] USSD response string

OUTPUT

USSD response string in the following format:

"Action: %d\nData coding: %d\n(GSM7|HEX|UCS2):%s\n", action, data_coding, ussd_response

EXAMPLE

~# GetUSSDResponse 0 30
Action: 1
Data coding: 15
GSM7:Choose option:
1. Tariffs
2. Info