Question

Hello I use Leon G100 gprs modem. I communicate over USART Terminal, everything works ok.

(I will mark CR and LF characters with hex values)

When I ask for the service, if response is not menu I got everything ok, like this:

 request  : AT+CUSD=1,"*121#",15 0x0D
 response : +CUSD: 0, "Message sentence", 15
            (followed by 0x0D 0x0A 0x0D 0x0A "OK" 0x0D 0x0A)

But when response is menu I don't know how to select menu item

 request  : AT+CUSD=1,"*111#",15 0x0D
 response : +CUSD: 1, "Welcome.0x0A 1.Do1 0x0A 2.Do2", 15 0x0D 0x0A

What should I send to select 1.Do1, like I send answer "1" from my phone ?

Was it helpful?

Solution

If the last received character is ">" try to send him answer like: [selected option number][ctrl+z] (or [esc]).

If not, try to replace "*111#" with "*111*[option1]*[option2]...#"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top