How to write AT + CUSD ussd command to support maximum phones

I ran into a problem related to the team AT+CUSD. On some Gsm models, this command expects three parameters, and on the rest, only two parameters. Moreover, different values โ€‹โ€‹of these parameters.

I want to know that how can I configure a Gsm modem so that this command can be executed in a single way on most Gsm modems.

Example: In Nokia c6-01, the cusd command only succeeds as follows:

AT+CUSD=1,"*123#",15

While on the Sony Ericsson K750:

AT+CUSD=1,"*123#"

It gives an error if I give the third parameter.

+4
source share
1 answer

27.007,

+CUSD=[<n>[,<str>[,<dcs>]]]

, 0, 1, 2 3.

<dsc>, 0 GSM- 7 , 15 GSM 7 - 23.038.

GSM 7 . .

, Nokia AT+CUSD=1,"*123#", , , , . Sony Ericsson, , , <dcs> (, , , 15). , - (, ?).

GSM 7 , . 32 (, , Any reserved codings shall be assumed to be the GSM 7 bit default alphabet (the same as codepoint 00001111) by a receiving entity., ).

AT, (, ?), :

  • dcs = 15
  • , dcs = 32
  • , , dcs.

AT+CUSD .


, , 0 <n> 27.007. , , , (, <dsc>). , AT+CUSD= AT+CUSD=0 ( AT+CUSD=,"*123#" , AT+CUSD=0,"*123#", , . /, Sony Ericson, , ST-Ericsson ).


, , atinout, :

echo ATE1 | atinout - /dev/ttyACM0 -
for i in $(seq 0 15) 32; \
do \
        echo AT+CUSD=1,"xxxx",$i; \
done | atinout - /dev/ttyACM0 -

-/dev/ttyASM0.


. , , . AT+CSCS="GSM" , .

+4

All Articles