Certain Huawei modems not supporting plain text USSD

ginggs

༼ つ ◕_◕ ༽つ
Super Moderator
Joined
Jun 26, 2006
Messages
11,949
But with other firmwares, when sending ussd commands, plain text is supported bug response text is an hexadecimal text?? Is that normal? hexadecimal which is not PDU but the unicode values of the text!!!
I haven't seen this behaviour with Huawei modems but I have seen it with some ZTE models.

Have a look at the AT+CSCS command. Before you start sending USSD, check what character sets your modem supports with AT+CSCS=? , check the current character set with AT+CSCS? and, for example, set it to GSM with AT+CSCS="GSM" .
 

Raknaldag

New Member
Joined
Jun 26, 2011
Messages
7
What does the AT+CSCS command?

I try AT+CSCS="GSM" and AT+CSCS="UCS2" with response just "OK" before sending USSD command but the response still:
+CUSD: 0,"0056006F0074007200650020006300720065..............
 

GreGorGy

BULLSFAN
Joined
Jan 18, 2005
Messages
14,789
It is to set the character alphabet (see Huawei documentation below) but you could first try at+cscs=? to get a list of supported sets

Select TE Character Set: AT+CSCS
Set command informs TA which character set <chset> is used by the TE. TA is then able to convert character strings correctly between TE and ME character sets.
Set command
AT+CSCS=<ch set>
OK
--
Read command
AT+CSCS?
+CSCS: <chset> OK
--
Test command
AT+CSCS=?
+CSCS:
(list of supported <chset>s)
OK
--
<chset>=
"GSM"GSM default alphabet (GSM 03.38 subclause 6.2.1);
[“IRA”] International reference alphabet (ITU-T T.50[13])
"PCCP437" PC character set Code Page 437
"PCDN" PC Danish/Norwegian character set
"8859-1" ISO 8859 Latin 1 character set
"HEX" Character strings consist only of hexadecimal numbers from 00 to FF; e.g. "052FE6" equals three 8-bit characters with decimal values 5, 47 and 230; no conversions to the original ME character set shall be done.
"UCS2" 16-bit universal multiple-octet coded character set (ISO/IEC10646 [32]); UCS2 character strings are converted to hexadecimal numbers from 0000 to FFFF; e.g. "004200620063" equals three 16-bit characters with decimal values 66, 98 and 99, $(AT R97)$
 

Raknaldag

New Member
Joined
Jun 26, 2011
Messages
7
Thanks GregorGy for this answer. In fact, it is not a real problem for me if the return is UCS2 text for ZTE modems
But I'm looking for tutorial how to send USSD commands for Huawei E160 and E1550 which are in PDU mode. My real question is: how to retrieve the return?
Most of Huawei modems (all that I have: E160 & E1550) use PDU mode with 7-bit encoding for USSD.
So my command looks like AT+CUSD=1,"A359ED3602",15
That is no problem for that but my trouble is how to get the received text because when I try to send empty text as command, the response is 30350 (No response from modem)
 
Last edited:

wadnobawi

New Member
Joined
Feb 9, 2012
Messages
8
Dear Experts
sorry to awaken this dead monster, but I need to know this is not working for me
Iam using huawei e1750
trying to read my balance
AT+CUSD=1,"*222#",15
ERROR
AT+CUSD=1,"2A994C3602",15
OK
and nothing comes out what is wrong with me
while in zte the first command works fine
 

ginggs

༼ つ ◕_◕ ༽つ
Super Moderator
Joined
Jun 26, 2006
Messages
11,949
AT+CUSD=1,"*222#",15
ERROR
AT+CUSD=1,"2A994C3602",15
OK
and nothing comes out what is wrong with me
while in zte the first command works fine
Your encoding appears correct.

Sometimes Huawei modems get confused and stop sending out USSD requests. On the AT interface it appears as if the USSD request is sent, but nothing is transmitted on the radio side until the modem is disconnected and reconnected.
 

wadnobawi

New Member
Joined
Feb 9, 2012
Messages
8
I will stick to ZTE stick

Thank you ginggs
It is better for me to stick with ZTE for the time
thanks again and if you are african like me I wish for you a second wife who accepts partenership with the first one
 

ginggs

༼ つ ◕_◕ ༽つ
Super Moderator
Joined
Jun 26, 2006
Messages
11,949
thanks again and if you are african like me I wish for you a second wife who accepts partenership with the first one
:D

Just one other think I can think of, as GreGorGy suggested in a previous post, trying checking the current character set that the modem expects with:
Code:
AT+CSCS?
If it is set to "UCS2", try changing it to "GSM":
Code:
AT+CSCS="GSM"
or "IRA":
Code:
AT+CSCS="IRA"
Edit: Rather use the "IRA" (International Reference Alphabet) character set, I've noticed the response to Vodacom's *100# USSD query is broken on my K4605 when using the "GSM" character set.
 
Last edited:

wadnobawi

New Member
Joined
Feb 9, 2012
Messages
8
Dear Ginggs
I tried again and here is the hyper terminal
at
OK
at+cscs?
+CSCS: "IRA"

OK
at+cusd=1,"2A994C3602",15
OK
AT+CSCS="GSM"
OK
AT+CUSD=1,"2A994C3602",15
OK
AT+CSCS?
+CSCS: "GSM"

OK
AT+CSCS="UCS2"
OK
AT+CSCS?
+CSCS: "UCS2"

OK
AT+CUSD=1,"2A994C3602",15
OK
AT+CSCS=?
+CSCS: ("IRA","GSM","UCS2")

OK

MDMA gave me this response for *222#
Your account is 4.91 SDG

how can this MDMA solve these issues I wounder
 

ginggs

༼ つ ◕_◕ ༽つ
Super Moderator
Joined
Jun 26, 2006
Messages
11,949
MDMA gave me this response for *222#
Your account is 4.91 SDG

how can this MDMA solve these issues I wounder
Artificial intelligence. ;)

Try this:
Code:
AT+CSCS="IRA"
AT+CUSD=1,"*222#",15
AT+CUSD=1,"2A994C3602",15
Also check that you are using the same COM port that MDMA uses (click on Device Info).
 

wadnobawi

New Member
Joined
Feb 9, 2012
Messages
8
Man Horse Power Artifical Intelligance Theory

I had a theory that
Man horse power MHP is iversly proportional to Man Artificial Intelegence MAI
You proved Iam right

STEP 1 .
The test for MHP begins here :love:
Thank you ginggs
thanks again and if you are african like me I wish for you a second wife who accepts partenership with the first one
The crushing result of the experiment is here :wtf:
:D
Just one other think I can think of, as GreGorGy suggested in a previous post, trying checking the current character set that the modem expects with:
Conclusion MHP=0.001%

STEP 2.
The test for MAI
Dear Ginggs
how can this MDMA solve these issues I wounder
The result is
Artificial intelligence. ;)

Try this:
Code:
AT+CSCS="IRA"
Also check that you are using the same COM port that MDMA uses (click on Device Info).[/QUOTE]

Conclusion MAI=99.999%

THEN 
MHP=a  / MAI
#
where a is a constant
what do you think
 

wadnobawi

New Member
Joined
Feb 9, 2012
Messages
8
Dear All
I had to say thank you again for Mr. ginggs, you helped me alot. it worked for me.
 

wadnobawi

New Member
Joined
Feb 9, 2012
Messages
8
Dear Sir
I felt that my jokes are a bit rude so I removed it.
An other problem sir and if you solved it to may I have to share my salary of this month with you
when I try to read ARABIC sms it is ok. I can read it, but trying to read the arabic names on the sim card is not readable at all
pleas help again this is tougher than huawei ussd
 

gsmappli

New Member
Joined
Jan 8, 2013
Messages
2
Dear All,
I am a new member, please tell me how to change the settings for Huawei E3131, so the system ( win seven) sees is as a COM port not a nic card.
Thanks
 

jackiee

New Member
Joined
Jan 11, 2013
Messages
8
The problem is how to send such AT command, when Internet session is on
and serial port is busy.
I can't get connected to the same serial port to send any AT , so USSD doesn't work for me, when Internet session/ pppd is on.
 

ginggs

༼ つ ◕_◕ ༽つ
Super Moderator
Joined
Jun 26, 2006
Messages
11,949
The problem is how to send such AT command, when Internet session is on
and serial port is busy.
I can't get connected to the same serial port to send any AT , so USSD doesn't work for me, when Internet session/ pppd is on.
Which modem do you have and which operating system are you using?

Most GPRS/3G modems have more than one serial port.
 

JimM

Expert Member
Joined
May 23, 2006
Messages
1,452
Some modems especially Vodafone 'K' Series modems may have problems with USSD commands in Mobile Partner!

The cure is to edit DeviceInfo.XML which can be found in C:\Program Files\Mobile Partner

You need to add just one line with the model number of your modem...

Look for the section:

<UssdUnEncode>
<item devicename="E660"></item>
<item devicename="E800"></item>
<item devicename="E800A"></item>
<item devicename="E800B"></item>
<item devicename="E630"></item>
<item devicename="E220"></item>
<item devicename="E180"></item>
<item devicename="E230"></item>
<item devicename="E170"></item>
<item devicename="E172"></item>
<item devicename="E17X"></item>
<item devicename="E270"></item>
<item devicename="E272"></item>
<item devicename="E870"></item>
<item devicename="E169"></item>
<item devicename="K3520"></item> <<<--- Example Added device...
</UssdUnEncode>
 
Top