Ticket #2029 (in_testing defect)

Opened 9 years ago

Last modified 5 months ago

[qtopia] +CUSD wronlgy decoded

Reported by: vnevoa Owned by: tick
Priority: normal Milestone:
Component: unknown Version: Om2008.8
Severity: normal Keywords:
Cc: tick@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible: always

Description

Class 0 SMS messages (the kind that show up immediately on screen and don't get saved) are not decoded right in my GTA02.
When I finish a GSM call, my operator sends me a class 0 SMS with the remaining amount in my pre-paid account. This used to work ok until one of those UTF-8 patches some time ago (sorry, don't know when it happened). Now the message shows up like a string of numbers instead of text.
For example, my FR just showed me this:
00340035002E00370033002000
Which I presume means this:
45.73 €

My SW is a OM2008.8-update jffs2 image that has been upgraded everyday via opkg.

Attachments

sms.log (63.3 KB) - added by vnevoa 9 years ago.
ussd_codec.patch (3.3 KB) - added by tick 9 years ago.
Patch for decode the ussd

Change History

comment:1 Changed 9 years ago by vnevoa

Actually, it looks more like UTF-16.

comment:2 Changed 9 years ago by zecke

Please see http://wiki.openmoko.org/wiki/Bug_Filing_Policy on how to bugs and specially GSM issues.

comment:3 Changed 9 years ago by zecke

add a report somewhere :)

Changed 9 years ago by vnevoa

comment:4 follow-up: ↓ 5 Changed 9 years ago by vnevoa

Ok, I've added the logread.
My reproduction of the problem starts at line 566.
Steps taken:
1 - compose and send an SMS message to myself (body has "test");
2 - receive the class 0 SMS with the pre-paid account's current sale;
3 - receive the normal SMS I wrote to myself (say NO to qtopia's question).
Anything else?

comment:5 in reply to: ↑ 4 Changed 9 years ago by erin_yueh

Replying to vnevoa:

Ok, I've added the logread.
My reproduction of the problem starts at line 566.
Steps taken:
1 - compose and send an SMS message to myself (body has "test");
2 - receive the class 0 SMS with the pre-paid account's current sale;
3 - receive the normal SMS I wrote to myself (say NO to qtopia's question).
Anything else?

from this log:
you receive a SMS and stored it to SIM card index 16.
Sep 23 23:30:22 om-gta02 user.notice root: AtChat? : N : "+CMTI: "SM",16"
what is this SMS?
Sep 23 23:30:24 om-gta02 user.notice root: AtChat? : F : "+CMGL: 16,024"
621 Sep 23 23:30:24 om-gta02 user.notice root: AtChat? : F : "07915391131213F4040C9153914352823500008090323223154005F4F29C0E02"

07 91 5391131213F4 04 0C 91 539143528235 0000 80903232231540 05 F4F29C0E02
'0000' those numbers means TP-PID and TP-DCS. The special case of bits 7..0 being 0000 0000 indicates the Default Alphabet as in Phase 2.
the message text are encoded by GSM Alphabet, not UCS2.

you can read SMS format by this site:
http://www.dreamfabric.com/sms/

comment:6 Changed 9 years ago by vnevoa

Erin, I have no idea if you are making a statement or asking a question...
I also don't know how to interpret the log file. If I knew, I would have debugged the problem myself and provided better info.
If you need more info or clarifications, please ask in a clearer way. Thanks!

comment:7 Changed 9 years ago by erin_yueh

mmh....you could use this site and it can decode/encode SMS message. Coz I tried to read your log, i cannot find that SMS you said it's UCS2 and class 0 one.
http://twit88.com/home/utility/sms-pdu-encode-decode

but i found it's not SMS problem and it's a supplement service data from your operator. since we changed the character set of GSM modem, from IRA to UCS2. It seems like this problem. I will cc this bug to Tick. Thanks a lot for reporting this bug!

comment:8 Changed 9 years ago by erin_yueh

  • Cc tick@… added

comment:9 Changed 9 years ago by vnevoa

I'm glad you understood it, because I still don't! :)

Anyway, here's a new section of logread, this time with a simpler use case:
1 - make a voice call;
2 - end the call;
3 - wait for reception of "current pre-paid sale" message.
So this time there are no other SMS messages in the log to create confusion. :)

Sep 25 13:56:02 om-gta02 user.notice root: AtChat? : T : "Z"
Sep 25 13:56:02 om-gta02 user.notice root: AtChat? : T : "ATD21424XXXX;"
Sep 25 13:56:02 om-gta02 user.notice root: AtChat? : N : "%CPI: 1,9,0,0,0,0,"214242051",129"
Sep 25 13:56:04 om-gta02 user.notice root: AtChat? : N : "%CPI: 1,3,0,0,0,0,"214242051",129"
Sep 25 13:56:04 om-gta02 user.notice root: AtChat? : N : "+CSSI: 1"
Sep 25 13:56:05 om-gta02 user.notice root: AtChat? : N : "%CPI: 1,4,0,1,0,0,"214242051",129"
Sep 25 13:56:06 om-gta02 user.notice root: AtChat? : N : "%CPI: 1,5,0,1,0,0,"214242051",129"
Sep 25 13:56:06 om-gta02 user.notice root: AtChat? : N : "%CPI: 1,2,1,1,0,0,"214242051",129"
Sep 25 13:56:08 om-gta02 user.notice root: AtChat? : N : "%CPI: 1,6,0,1,0,0,"214242051",129"
Sep 25 13:56:08 om-gta02 user.notice root: AtChat? : F : "OK"
Sep 25 13:56:08 om-gta02 user.notice root: Modem : QModemCall::dialRequestDone()
Sep 25 13:56:42 om-gta02 user.notice root: Modem : QModemCall::hangup()
Sep 25 13:56:42 om-gta02 user.notice root: AtChat? : T : "
Z"
Sep 25 13:56:42 om-gta02 user.notice root: Modem : hangup groups
Sep 25 13:56:43 om-gta02 user.notice root: AtChat? : T : "AT+CHLD=1"
Sep 25 13:56:44 om-gta02 user.notice root: AtChat? : N : "%CPI: 1,1,0,0,0,0,"214242051",129"
Sep 25 13:56:44 om-gta02 user.notice root: AtChat? : F : "OK"
Sep 25 13:56:44 om-gta02 user.notice root: AtChat? : N : "%CPI: 1,7,0,0,0,0,"214242051",129"
Sep 25 13:56:48 om-gta02 user.notice root: AtChat? : N : "+CUSD: 0,"00340035002E003200350020004500550052",15"

So, the content of the received message (that is shown to me by qtopia) is the last line: "00340035002E003200350020004500550052" (and is shown "as-is", without any translation - or even line breaks, but that's another problem).
Using the page you linked does not seem to work... I don't think it can translate this.
Thanks!

comment:10 Changed 9 years ago by vnevoa

Using this page:
http://www-atm.physics.ox.ac.uk/user/iwi/charmap.html
I was able to correctly decode my received message "00340035002E003200350020004500550052" = "45.25 EUR"
which is the content I expected. :)
Conclusion: it uses Unicode, but it is not a complete PDU - it has no meta info.

comment:11 Changed 9 years ago by vnevoa

Ok, after reading #1832 and #1226, I know that the received message is a Unicode USSD.
So, when is Treviño's patch for "*xxx#" commands and USSD support going to be integrated? :)
Obviously, it would also need to be checked for Unicode compatibility.

comment:12 Changed 9 years ago by zecke

Which patch? I have not noticed anything mentioning a patch.

comment:13 Changed 9 years ago by vnevoa

From the conversations in #1832 and the Community ML (which you were a part) I can see that Treviño has apparently not submitted a source patch yet, although he did upload a patched binary which people tested and confirmed working. He removed the binary at the community's request but failed to upload the code yet (AFAIK).

So, time to ping Treviño again, I guess... I'll mail him, just in case.

In case you decide to leave this ticket open, maybe you could change my title to something less misleading? like "USSD Service Messages with Unicode not translated"... Thank you. :)

comment:14 Changed 9 years ago by Treviño

Well, the problem is in USSD parsing and this is due to the last change to UCS2 format... I'm quite near to fix the issue, however another soulution would be putting back the IRA or GSM charset after that the modem has read the SIM contacts.
This would be easier but I don't know if it will be the best solution.

comment:15 Changed 9 years ago by Treviño

Ok, it should be fixed in #2038

comment:16 Changed 9 years ago by tick

  • Status changed from new to in_testing

comment:17 Changed 9 years ago by tick

  • Status changed from in_testing to assigned
  • Owner changed from openmoko-devel to tick

Sorry, It's my fault, It's not there yet.

comment:18 Changed 9 years ago by tick

  • Summary changed from Class 0 SMS wrongly decoded (no UTF-8?) to [qtopia] +CUSD wronlgy decoded

comment:20 Changed 9 years ago by zecke

Okay I landed the patch but it might not fix the bug. As we still need to properly decode the string according to the charset as Trevino pointed out.

Changed 9 years ago by tick

Patch for decode the ussd

comment:21 Changed 9 years ago by tick

  • Status changed from assigned to in_testing
  • HasPatchForReview unset

comment:22 Changed 9 months ago by Chassmetly

Pyrantal Pamoate Interactions With Amoxicillin <a href=http://zol1.xyz/zoloft-generic.php>Zoloft Generic</a> Amoxicillin Ointment Viagra Pour Femme Avis <a href=http://nolvadex.ccrpdc.com/ordering-nolvadex.php>Ordering Nolvadex</a> Effetti Cialis E Viagra discount worldwide fedex shipping isotretinoin pills <a href=http://cial1.xyz/low-cost-cialis-online.php>Low Cost Cialis Online</a> Professionalsildena50mg. Viagra Generique 50mg <a href=http://zithromax.ccrpdc.com/zithromax-antibiotics.php>Zithromax Antibiotics</a> Cialis Tratamiento Prolongado Will Lasix Help You Pass A Drug Test <a href=http://cial5mg.xyz/ordina-cialis-online.php>Ordina Cialis Online</a> Cialis Para Mujeres Viagra Schweiz Zurich <a href=http://zol1.xyz/zoloft-implicane.php>Zoloft Implicane</a> Kamagra Effetti Collaterali Generic Viagra Pages Edinburgh <a href=http://viag1.xyz/online-viagra.php>Online Viagra</a> Viagra Generika Scilla Propecia Generique Pharmacie Acheter <a href=http://lasix.ccrpdc.com/map.php>Generic Lasix Buy</a> Propecia Eyebrow Hair Comprar Cialis En Una Farmacia <a href=http://viag1.xyz/viagra-cheap.php>Viagra Cheap</a> Disfunzione Erettile Cialis Buy Doxycycline Online Fast Delivery <a href=http://lasix.ccrpdc.com/purchase-lasix-usa.php>Purchase Lasix Usa</a> Efectos De Kamagra Zithromax And Amoxicillin Taken Together <a href=http://cial1.xyz/cialis-tadalafil.php>Cialis Tadalafil</a> Propecia Antes Y Despues Buy Cialis 5mg From Canada <a href=http://kama1.xyz/sildenafil.php>Sildenafil</a> Fedex Shipping Zentel Direct Amex Uses Of Amoxicillin Trihydrate Bp <a href=http://zol1.xyz/buy-cheap-zoloft-on-line.php>Buy Cheap Zoloft On Line</a> Priligy Official Site Cialis Without Prescription Usa <a href=http://kama1.xyz/low-cost-kamagra-online.php>Low Cost Kamagra Online</a> Cialis Plux Dapoxetine Online Ordering Cialis Le Meilleur Prix <a href=http://kama1.xyz/sildenafil.php>Sildenafil</a> Achat Viagra Discount Where To Buy Generic Cialis <a href=http://cial5mg.xyz/cialis-viagra.php>Cialis Viagra</a> Macrobid Antibiotic Cod Accepted Visa Pharmacy Buying Tretinoin In Singapore <a href=http://cial1.xyz/cialis-generic.php>Cialis Generic</a> Mexico Pharmices To Order Meticorton Alternativa A Viagra <a href=http://cial5mg.xyz/cialis-online-no.php>Cialis Online No</a> Priligy Efectos Secundarios Dutasteride 0.5mg <a href=http://kama1.xyz/buy-cheap-generic-kamagra.php>Buy Cheap Generic Kamagra</a> Acheter Viagra En Espagne Levitra Quand Le Prendre <a href=http://cial5mg.xyz/purchase-cheap-cialis.php>Purchase Cheap Cialis</a> Orlistat Used Propecia Similar <a href=http://cial1.xyz/cialis-40mg.php>Cialis 40mg</a> Kamagra Mg Zithromax And Alcohol Interaction <a href=http://cial5mg.xyz/cialis-online.php>Cialis Online</a> Ordering Isotretinoin Levitra Italia <a href=http://cial1.xyz/cialis-online.php>Cialis Online</a> Amoxicillin Shingles Order Prednisone From Canada <a href=http://zol1.xyz/order-zoloft-online.php>Order Zoloft Online</a> Will Amoxicillin Heal Tooth Absess Comment Utiliser Cytotec Pour Avorter <a href=http://zol1.xyz/zoloft-order.php>Zoloft Order</a> Non Prescritio Prednisone Acheter Levitra En Italie <a href=http://viag1.xyz/brand-viagra-online.php>Brand Viagra Online</a> Beyer Levitra 20mg Efectos Del Viagra En El Hombre <a href=http://zithromax.ccrpdc.com/cheap-zithromax-pill.php>Cheap Zithromax Pill</a> Avodart Propecia Ricrescita Propecia Finasteride <a href=http://cial5mg.xyz/mail-order-cialis.php>Mail Order Cialis</a> Buy Zithromax At Walgreens I am still learning the theory on how to master it but it seems not easy at all Great Job Oni. <a href=http://quickloan-24.com>loans for people with bad credit</a> GOT CUT OUT OFF IN THEIR CALL CENTRE.Jackpot No Grand Prize Winner Overall Odds.Kamagra Sans Ordonnance En Ligne <a href=http://cial5mg.xyz/buy-generic-cialis.php>Buy Generic Cialis</a> Cialis Marke Amoxicillin 250mg Capsules For Cats <a href=http://zol1.xyz/mail-order-zoloft.php>Mail Order Zoloft</a> Amoxicillin In Pregnancy Cialis Im Flugzeug <a href=http://viag1.xyz/cheap-generic-viagra.php>Cheap Generic Viagra</a> Noble Drugs Online Drugstore Amoxicillin Dose For Cat Bite <a href=http://viag1.xyz/cheap-viagra-pill.php>Cheap Viagra Pill</a> Venta Propecia Kamagra Jelly Review <a href=http://cial5mg.xyz/low-cost-cialis-online.php>Low Cost Cialis Online</a> Viagra 50 Mg Sildenafil

comment:23 Changed 6 months ago by Abrahammaime

combien coute cialis en pharmacie

<a href="http://cialisgsaa.com/">webseite
</a>

dose of cialis for ed

<a href=http://cialisgsaa.com/>buy generic cialis</a>

comment:24 Changed 5 months ago by RalphCleks

tamsulosin hydrochloride and cialis

<a href="http://buycialisgenericbsl.com/">view web page
</a>

tempo di effetto del cialis

<a href=http://buycialisgenericbsl.com/>cialis coupon</a>

comment:25 Changed 5 months ago by MiguAnydaY

Propecia Antifouling http://cialtobuy.com - online pharmacy Overnight For Usa Order Viagra Online
Viagra 10mg
Amoxicillin Online <a href=http://cialtobuy.com >buy cialis</a> Side Effects Long Term Amoxicillin

Note: See TracTickets for help on using tickets.