SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Thu Mar 28, 2024 14:30
SMSTools3 Community » Help and support Bottom

[answered] Unable to get saldo

  This topic is locked

Page:  1

Author Post
Member
Registered:
Apr 2010
Location: Portugal
Operating system name and version: Fedora14
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Huawei E220
Interface: USB

Hello support.

I don't know why, but I'm unable to get the saldo.

Here is the conf:
regular_run_loglevel = debug
regular_run_interval = 5
regular_run_cmdfile = /var/spool/sms/command/MODEM1c
regular_run_post_run = /var/spool/sms/command/MODEM1pr
regular_run_statfile = /var/spool/sms/MODEM1s

Here is the MODEM1c:
[(OK)|(OK +CUSD)|(ERROR)|(.*)]AT+CUSD=1,"*102#"

Here is the MODEMs:
2011-04-15 12:14:58,5, MODEM1: CMD: [(OK)|(OK +CUSD)|(ERROR)|(.*)]AT+CUSD=1,"*102#": OK

Here is the log:
2011-04-15 12:14:58,7, MODEM1: -> AT+CUSD=1,"*102#"
2011-04-15 12:14:58,7, MODEM1: Command is sent, waiting for the answer
2011-04-15 12:14:58,7, MODEM1: <- OK
2011-04-15 12:14:58,7, MODEM1: CMD: [(OK)|(OK +CUSD)|(ERROR)|(.*)]AT+CUSD=1,"*102#": OK

From my phone, I'm able to get the answer I was expecting.

Can you tell me why the OK and not the whole answer?

Best regards,
Carlos

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
You could try with a command AT+CUSD=1,"*102#",0; or AT+CUSD=1,"*102#",15; if it makes a difference.

In your previous posting ([answered] Saldo) you used the same command as now. Was the command working then?

After that posting a new script is published, probably this is interesting for you: Sample config and script for regular_run and balance of prepaid SIM using USSD.

Member
Registered:
Apr 2010
Location: Portugal
Topic owner
Hello.

Yes, it remember it worked back then. But I never tried any more.
I already saw the script, but in order to "parse" it I need to know the result from the operator.

I'm not sure, but can it be because now the regular_run_cmdfile expects a particular returned value (http://smstools3.kekekasvi.com/index.php?p=configure#m_regular_run_cmdfile)?

Best regards,
Carlos

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
You could try the USSD command manually, using Minicom or smsd -C modemname.

Member
Registered:
Apr 2010
Location: Portugal
Topic owner
Hello.

Well... not a big development...

Communicating with MODEM1. ( Press Ctrl-C to abort. )
( If you need to send Ctrl-Z, change the suspend character first, like stty susp \^N )
Default device is /dev/serial/by-id/usb-HUAWEI_Technologies_HUAWEI_Mobile-if00-port0
Press Enter to start or type an another device name.

Opening device /dev/serial/by-id/usb-HUAWEI_Technologies_HUAWEI_Mobile-if00-port0
Ready.

+CPIN: READY

OK

OK


Any other suggestion?

Carlos

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
I forgot to say that first set "echo on" with ATE1 :(.

Anyways, to some USSD command the answer was just OK. Did you try ",0;" or ",15;" variations?

I do not have other suggestions. As the command worked 12 months ago, you just need to remember what was the format which was working.

Member
Registered:
Apr 2010
Location: Portugal
Topic owner
Hello.

Still no answer from "saldo request".
I don't know if it is related or not, but I'm also unable do receive sms reports (receive confirmations). Is that a clue for what is happening?

Carlos

Member
Registered:
Apr 2010
Location: Portugal
Topic owner
Hello.

I tried with another modem (different vender/model) and works fine. Can It be a miss configuration of the modem? The modem that is not working is a Huawei H220, and the smsd.conf is:

[MODEM1]
outgoing = yes
incoming = yes
pin = 1111
memory_start = 0
check_memory_method = 2
signal_quality_ber_ignore = yes
pre_init = yes
init = AT^CURC=0
init2 = AT^BOOT=0,0
detect_unexpected_input = yes
device = /dev/serial/by-id/usb-HUAWEI_Technologies_HUAWEI_Mobile-if00-port0


Any clue?

Carlos

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Your E220 is bad or broken. As the status report also does not work properly, just throw E220 away and continue with another modem.

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.