GetUSSDResponse: Difference between revisions

From Opale Wiki
Jump to navigation Jump to search
m (added Category:R2D2 using HotCat)
m (added Category:USSD using HotCat)
 
Line 27: Line 27:


[[Category:R2D2]]
[[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