maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Missing USSD functionality: N900 can't dial numbers beginning with # or * (https://talk.maemo.org/showthread.php?t=32878)

Marshall Banana 2010-02-10 11:01

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Quote:

Originally Posted by Crogge (Post 518891)
Here are my results with the German provider "Klarmobile":

http://croggesserver.se/Images/N900USSD_Crogge.GIF

Maybe we are living in the Matrix and I got some decrypted codes :o ?!?
Well fact is that only the *135# code worked.

The widget isn't working at all equal what code I use, it seems to be broken since the last version!
It only displays "Error", that's it.

Hi Crogge,
i tried to decode the replies you gave in your picutre and they all worked. I suggest you try to change the ussd reply language in the ussd-widget configuration. Try English, German and Unspecified and please make sure you use the latest version from the extras testing repository.
Your replies:

Code:

q1="5369652073696E64207A75206469657365722046756E6B74696F6E206E69636874206 26572656368746967742E"
gsmdecode.decode(q1, 68)
'Sie sind zu dieser Funktion nicht berechtigt.'
q2="416B7475656C6C657320477574686162656E3A20382E3335204555522E"
gsmdecode.decode(q2, 68)
'Aktuelles Guthaben: 8.35 EUR.'
q3="5369652073696E64207A75206469657365722046756E6B74696F6E206E69636874206 26572656368746967742E"
gsmdecode.decode(q3, 68)
'Sie sind zu dieser Funktion nicht berechtigt.'
q4="53455256494345204E4F542050524F564953494F4E45442021"
gsmdecode.decode(q4, 68)
'SERVICE NOT PROVISIONED !'


Marshall Banana 2010-02-10 11:12

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Hi KiberGus,

there is a typo in the latest (ussd-common 0.0.6) gsmdecode.py. One newline is missing after the comment:

Code:

#!/usr/bin/python
# -*- coding: utf-8 -*-
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 2 and higer.
##
## Martin Grimme (martin.grimme # gmail.com) 2010LANG_DE = 0x0

LANG_EN = 0x1
LANG_IT = 0x2
LANG_FR = 0x3
LANG_ES = 0x4


maemusr 2010-02-10 14:53

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
What does this do and does it fail with ussd-widget?
For an example, how to put it in executable file look at /usb/bin/ussdquery.py

It works great! I get the whole thing readable :
+CUSD: 0,"your balance is ..... Recharge your card before .... to keep your unused balance ...",15

No carrier
and then it hangs there, I must close the xterm with X!
BTW, yeah it does fail with the widget command line or not. My line entry might be wrong, not sure but i tried:
/usr/bin/....py at+cusd=1, "*225#" ,15
and it gave me syntax error!!


It is necessary, unless you install ussd-common package, which make pnatd suid. May be we should make ussdquery.py suid instead of pnatd.[/QUOTE]

KiberGus 2010-02-10 15:21

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
2Marshall Banana, Thank you, I'll fix it.

2maemusr, just run
ussdquery.py *225#
No need for AT commands.
But you also can run widget from comman line
python /usr/lib/hildon-desktop/ussd-widget.py
and would seedebug information (do not forget to configure new widget).

Crogge 2010-02-10 22:13

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Quote:

Originally Posted by Marshall Banana (Post 519178)
Hi Crogge,
i tried to decode the replies you gave in your picutre and they all worked. I suggest you try to change the ussd reply language in the ussd-widget configuration. Try English, German and Unspecified and please make sure you use the latest version from the extras testing repository.
Your replies:

Code:

q1="5369652073696E64207A75206469657365722046756E6B74696F6E206E69636874206 26572656368746967742E"
gsmdecode.decode(q1, 68)
'Sie sind zu dieser Funktion nicht berechtigt.'
q2="416B7475656C6C657320477574686162656E3A20382E3335204555522E"
gsmdecode.decode(q2, 68)
'Aktuelles Guthaben: 8.35 EUR.'
q3="5369652073696E64207A75206469657365722046756E6B74696F6E206E69636874206 26572656368746967742E"
gsmdecode.decode(q3, 68)
'Sie sind zu dieser Funktion nicht berechtigt.'
q4="53455256494345204E4F542050524F564953494F4E45442021"
gsmdecode.decode(q4, 68)
'SERVICE NOT PROVISIONED !'


Thank you for your detailed reply.

I executed the widget manually and get the error "Translation file for your language not found", is this error related with Marshall's post? If so, where can I find this file?

Equal what language I use I also get the error "Timeout. Modem didn't reply.".

CarlitoR1 2010-02-15 22:27

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Good, grief, I didn't even realize that that those # codes from T-Mobile were what you were talking about. I had to pull out my N97 to setup my Google Voice Account. This is very very irritating for such an expensive phone.

maemo.it 2010-02-19 09:25

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Hi to all, I installed ussd widget but doesn't works :(
I've now on desktop "Click to upgrade".
I tap on it and:
processing --> Error

If I digit *123# (code to know credit) I've "Incorrect number".
:(
Some idea?

Edit: It's works in terminal. It's right? It's developed only for terminal?

KiberGus 2010-02-19 20:15

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Check, that you have really entered *123# without any spacebars and so on. Try deleting number and entering again.

maemo.it 2010-02-20 07:04

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
@KiberGus: confirm :(
If I digit in a term ussdquery.py *123# it's working, if I digit it on dialing pad I receive: "incorrect number"
It's a new bug?

awben 2010-02-20 12:21

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
problem dualsimcard adapter.

we asked the developer of the hypercard 3G:

answer: "at the moment, we have no hardware to test. it is possible to change the simcard with a "quick code". the quickcode is not a ussd-code."

what ever a quickcode (for example *#7720# )will be.

for me (dumb ^^) it looks like a ussd code. got anyone an idea?


All times are GMT. The time now is 02:17.

vBulletin® Version 3.8.8