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)

KiberGus 2010-02-09 12:46

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

Originally Posted by The_Legend (Post 517565)
The empty spaces between Saldo and Recarga is quite strange, but I don't care, only what's just after that. But I still get that error message from USSDPAD / WIDGET. Can anyone help me?

Are you shure, that you have latest 0.1.2 version of the widget? You can get it frim repository, not from garage.

awben 2010-02-09 17:25

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
*#06#=timeout modem didnt reply at 30, 15, 40, 50, 60 (code for imei)
*135#: it works (code for asking own phone number)
*221#=timeout modem didnt reply at 30, 60 (code for changing sim card)
*#43#=timeout modem didnt reply
*#33#=could not init modem
*#61#=timeout modem didnt reply
*#2820#=timeout modem didnt reply at 60 (code for asking bt address)

KiberGus 2010-02-09 18:04

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

Originally Posted by awben (Post 517991)
*#06#=timeout modem didnt reply at 30, 15, 40, 50, 60 (code for imei)
*135#: it works (code for asking own phone number)
*221#=timeout modem didnt reply at 30, 60 (code for changing sim card)
*#43#=timeout modem didnt reply
*#33#=could not init modem
*#61#=timeout modem didnt reply
*#2820#=timeout modem didnt reply at 60 (code for asking bt address)

IMEI can be obtained by another AT command: +CGSN. SO it is not intended to work.
Call forwarding won't work for the same reason. Use call forwarding applet.
What do you mean under "bt address". If bt means bluetooth, then it is not USSD query too, because operator doesn't know anything about bluetooth.
And what do you mean under "changing SIM card". Is it your mobile operator feature or you use some sort of double sim adaper. In last case, it again may be not ussd query.
If there is a way to distinguish these codes and find out which command should be used, I may be would include such functionality. In other case ussd widget is intended only for making ussd queries to mobile operator.

awben 2010-02-09 18:16

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
changing sim card is a feature of my provider. one simcard, 2 different numbers.

bt adress and something else was only to test wich codes work.

... in the future i will use a twincard adapter for using 2 simcards. for that i need sim toolkit or ussd codes.

i try to find someone who has a dualsim adapter and can try out the codes with the ussdquery. or maybe some people using other providers, to find out where the problem (if there is one) is.

thank you for your help

The_Legend 2010-02-09 23:10

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

Originally Posted by KiberGus (Post 517611)
Are you shure, that you have latest 0.1.2 version of the widget? You can get it frim repository, not from garage.

Sorry, I had the version 0.0.5, from garage... will pay more attention next time...

Is there anyway to add the repository to the App. Manager? This would make things easier, hehehe.

Now all I need is a tutorial / guide / documentation on how to edit the text... it's too long, I just wanted the value of the balance...

maemusr 2010-02-09 23:14

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
This code in terminal will work for Fido Canada and probably Rogers.
I have a prepaid card.

sudo gainroot
pnatd
AT+CUSD=1
ATD*225;


I would like to make it work with the widget but no success at this time.
BTW, anybody would know how to put this in a exucutable file and accessed through the desktop of the n900?

Thanks

maemusr 2010-02-09 23:20

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
My previous comment works but i'd like to add that sudo gainroot is not necessary!

KiberGus 2010-02-10 05:13

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

Originally Posted by The_Legend (Post 518520)
Sorry, I had the version 0.0.5, from garage... will pay more attention next time...

Is there anyway to add the repository to the App. Manager? This would make things easier, hehehe.

Now all I need is a tutorial / guide / documentation on how to edit the text... it's too long, I just wanted the value of the balance...

Enable extras-devel in app manager. There is documentation on my site: http://kibergus.su/en/node/3
Quote:

Originally Posted by maemusr (Post 518526)
This code in terminal will work for Fido Canada and probably Rogers.
I have a prepaid card.

sudo gainroot
pnatd
AT+CUSD=1
ATD*225;


I would like to make it work with the widget but no success at this time.
BTW, anybody would know how to put this in a exucutable file and accessed through the desktop of the n900?

Thanks

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
Quote:

Originally Posted by maemusr (Post 518532)
My previous comment works but i'd like to add that sudo gainroot is not necessary!

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

Crogge 2010-02-10 07:01

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
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.

KiberGus 2010-02-10 07:51

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Run widget from command line to find out, why it doesn't work.

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?

KiberGus 2010-02-20 21:34

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

Originally Posted by maemo.it (Post 537956)
@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?

The can you describe, where this message is displayed. Are you shure, thet it looks literally like you described (My programm only prints "Incorrect USSD number" and newer "incorrect number" unless this string is an answer from your operator).
And please show your
/home/user/.ussdWidget.conf
I'll look for a difference between usual mode and launching from command line. Widget should work identical in both cases if configured identically.
Quote:

Originally Posted by awben (Post 538330)
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?

I didn't manage to find anything about quickcode in modem commands documentation. But this looks like call forwarding number.

jim_0068 2010-02-21 02:29

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Great widget, i had to read through this thread to get it working but thanks for the help. For those reading through the thread and are using T-Mobile US i had to change the language to unspecified to get it to work. Before that i would get an error.

thanks again KiberGus

KiberGus 2010-02-21 08:09

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
It seems, that language selection brings a lot of problems. I'll remove it. It still would be possible to set language through ussdquery.py options.

maemo.it 2010-02-21 13:33

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
@KiberGus:
I haven't this file: /home/user/.ussdWidget.conf
Maybe it's related to "click to update" -> "error"?

KiberGus 2010-02-21 20:30

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

Originally Posted by maemo.it (Post 539656)
@KiberGus:
I haven't this file: /home/user/.ussdWidget.conf
Maybe it's related to "click to update" -> "error"?

Looks like it is not configured. Have you configured it when launched as usual, not from console? And I guess, when you launch it from console, you launch it from root. Do not type "sudo gainroot", launch it from normal user.

awben 2010-02-21 21:17

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

maemo.it 2010-02-21 21:47

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

Originally Posted by KiberGus (Post 540047)
Looks like it is not configured. Have you configured it when launched as usual, not from console?...

As I wrote before I can't launch it as usual because if I tap on update I obtain error.
:(
It's working only from console (as user not root)

KiberGus 2010-02-22 19:17

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

Originally Posted by maemo.it (Post 540142)
As I wrote before I can't launch it as usual because if I tap on update I obtain error.
:(
It's working only from console (as user not root)

Tap on free space on your desktop, tap on wheel in right top corner, tap on wrench icon on widget, configure it.
The same way you can configure any confurable widget.

maemo.it 2010-02-23 09:48

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

Originally Posted by KiberGus (Post 541537)
Tap on free space on your desktop, tap on wheel in right top corner, tap on wrench icon on widget, configure it.
The same way you can configure any confurable widget.

yessss! I thanked you
;)

I thought this widget corrects the telephone module gap.
Instead is a per se software external from telephone module right?
Just 3 last doubts:
1) if I'd like to digit these codes in telephone pad I've to wait eventually corrections by Nokia?
2) everytime I've to digit a code I've to write this code by configure right?
3) when I tap on it my credit appears and remains for all the time. It's possible to autoclose this window after x seconds?
thank you again
;)

KiberGus 2010-02-23 16:20

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
2maemo.it, you are using it wrong. It is not for making random queries and it is not to replace telephone module gap.
It is for making the same query many times. You have it on your desktop, it updates every 2 hours (configurable) and shows your balance. You don't need to launch phone and enter code if you want to know balance. Just look at desktop.
1) Yes. Or use ussdquery.py or ussdPad
2) No. Only if you want to change it.
3) No. It is a widget. All widgets behave like this.

Patroclo 2010-02-26 22:03

Re: Howto install ussd-pad and ussd-widget
 
Quote:

Originally Posted by Marshall Banana (Post 493831)
First a warning:

ussd-widget needs two dependencies to work: python-hildondesktop and hildon-desktop-python-loader. They are in the maemo extras repository.
Open x-term and type (you can use tab to autocomplete the filenames:
Code:

sudo gainroot
cd MyDocs/.documents
apt-get install python-hildondesktop
apt-get install hildon-desktop-python-loader
dpkg -i pexpect_2.3.0-1_all.deb
dpkg -i ussd-common_0.0.1-0_all.deb
dpkg -i ussd-widget_0.0.4-0_all.deb


Please, could someone explain to a Linux newbie (=me) the line commands that I should make from the xterm in order to check if the 2 packages python-hildondesktop and hildon-desktop-python-loader are already installed in my n900 or not?

wmarone 2010-02-26 22:08

Re: Howto install ussd-pad and ussd-widget
 
Quote:

Originally Posted by Patroclo (Post 548268)
Please, could someone explain to a Linux newbie (=me) the line commands that I should make from the xterm in order to check if the 2 packages python-hildondesktop and hildon-desktop-python-loader are already installed in my n900 or not?

Just try the commands you quoted. If they're already installed then it won't do anything, if they aren't it'll download and install them.

Also, if anyone else knows, what's the difference between the .deb version everyone is passing around and the one in the extras-devel repository?

Patroclo 2010-02-27 03:28

Re: Howto install ussd-pad and ussd-widget
 
Quote:

Originally Posted by wmarone (Post 548274)
Just try the commands you quoted. If they're already installed then it won't do anything, if they aren't it'll download and install them.

Also, if anyone else knows, what's the difference between the .deb version everyone is passing around and the one in the extras-devel repository?

Thank you. I was able to install and now it works. However for some numbers the USSD doesn't work. I mean: I can type *, #, but I need also the symbol + in order to activate/deactivate the answerphone. If I put + by hand in the widget it says "UNKNOWN APPLICATION".
Does anyone have an idea on how to solve it?

Marshall Banana 2010-02-27 06:55

Re: Howto install ussd-pad and ussd-widget
 
Quote:

Originally Posted by wmarone (Post 548274)
Just try the commands you quoted. If they're already installed then it won't do anything, if they aren't it'll download and install them.

Also, if anyone else knows, what's the difference between the .deb version everyone is passing around and the one in the extras-devel repository?

The .debs from garage.maemo.org aren't always the newest versions available, so you should use ussd-widget from the extras-devel repository.

I'll update my howto, so it is clear that the prefered way to install it is via repository now.

KiberGus 2010-02-27 08:49

Re: Howto install ussd-pad and ussd-widget
 
First of all, packages in garage are outdated. Use repositories. Today I've uploaded new version. Fixed some issues with regexps, moved language selection to the bottom and added warning.
Quote:

Originally Posted by Patroclo (Post 548477)
Thank you. I was able to install and now it works. However for some numbers the USSD doesn't work. I mean: I can type *, #, but I need also the symbol + in order to activate/deactivate the answerphone. If I put + by hand in the widget it says "UNKNOWN APPLICATION".
Does anyone have an idea on how to solve it?

UNKNOWN APPLICATION is a reply from your operator. May be those codes you try to use are not really ussd codes.

Patroclo 2010-02-27 15:29

Re: Howto install ussd-pad and ussd-widget
 
Quote:

Originally Posted by KiberGus (Post 548582)

UNKNOWN APPLICATION is a reply from your operator. May be those codes you try to use are not really ussd codes.

I am a little bit confused...
I confirm that if I do *123# it works (it says the amount of money), but if I try with ALL the following codes in order to manage services

http://www.wind.it/it/servizi/scheda...ml?sez=Privati

it says UNKNOWN APPLICATION.
I tried many times.
I phoned to the support service of the telephonic company and they confirm that I have to use those codes and that they are correct.
:(

KiberGus 2010-02-27 16:01

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Try call forwarding widget (I think it was called like this). If I'm not mistaken, codes with ** or ## are call forwarding codes and should be executed by other AT commands.

aman18narang 2010-02-27 19:14

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
hi
i am having problems when i use the latest version of ussd widget..when i try to access d widget from desktop and save the ussd no *156# i get an error that app is not responding press yes to close.
then i tried to use the following command on xterminal
python /usr/lib/hildon-desktop/ussd-widget.py *156#
and i get a syntax error msg. this command was working fine b4 i installed the latest version.can u help me in correcting the issue. if u need any more info from me pls let me know

adancau 2010-02-27 21:50

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
try to uninstall it (apt-get remove ussd-widget), then go in your /home/user/ folder and delete the two ussd config files (the config and the lock), then reinstall (apt-get install ussd-widget). works ok afterwards, i had the same problems on update.

KiberGus 2010-02-28 07:24

Re: Missing USSD functionality: N900 can't dial numbers beginning with # or *
 
Just update widget again. I've already fixed saving.


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

vBulletin® Version 3.8.8