Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot decode USSD with national alphabet #109

Closed
basinilya opened this issue Jun 21, 2015 · 0 comments
Closed

cannot decode USSD with national alphabet #109

basinilya opened this issue Jun 21, 2015 · 0 comments
Assignees
Labels

Comments

@basinilya
Copy link
Contributor

Modem Huawei E3276
Cannot send USSD: +CME ERROR: 100
Cannot even decode a dump:

# +CUSD: 0,"0414043B044F00200441043F044004300432043A04380020043E002004310430043B0430043D044104350020043D04300431043504400438044204350020002A0031003000350023002E002004230441043B0443043304300020043104350441043F043B04300442043D0430002E",72
# 
./at-ussd-reply at-ussd/10-E3276.dump E160
 04 |14 |04 |3B;|04 |4FO                                         ...;.O

00 |E8 |03 |9B |00 |E8 |00 |3B;|00 |E8 |00 |4FO                 .......;...O

expected:

Для справки о балансе наберите *105#. Услуга бесплатна

Looks like all dcs values except '15' are ignored.

dump, gammu log, dump of USSD sent with Huawei MobilePartner:
http://basinilya.googlecode.com/svn/wiki/gammu/

decode with perl:

use Encode qw(from_to encode);
my $st
$st = "0414043B044F00200441043F044004300432043A04380020043E002004310430043B0430043D044104350020043D04300431043504400438044204350020002A0031003000350023002E002004230441043B0443043304300020043104350441043F043B04300442043D0430002E";
$st = pack("H*", $st);
encode("ucs-2",$st); # mark that bytestring is in ucs2
from_to($st,"ucs-2","utf-8"); # actually recode
print $st;
@nijel nijel added the bug label Jun 22, 2015
nijel added a commit that referenced this issue Nov 24, 2015
Issue #109

Signed-off-by: Michal Čihař <michal@cihar.com>
nijel added a commit that referenced this issue Nov 24, 2015
Issue #109

Signed-off-by: Michal Čihař <michal@cihar.com>
@nijel nijel closed this as completed in c687bd6 Nov 24, 2015
nijel added a commit that referenced this issue Nov 24, 2015
Signed-off-by: Michal Čihař <michal@cihar.com>
nijel added a commit that referenced this issue Nov 24, 2015
Issue #109

Signed-off-by: Michal Čihař <michal@cihar.com>
@nijel nijel self-assigned this Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants