Author |
Post |
|
#1 Fri Feb 18, 2011 20:25, 166 months ago.
|
Member
Registered: Feb 2011
Location: St.Petersburg, Russian Federation
|
Hi! I use smsd with Huawei 1550 (but there are many other devices like this). smsd work well. But I'd like to send USSD-request '*100#' , and there is a problem: When I sens a command to ttyUSB0, modem responds "OK" and that's all... When I send a command to ttyUSB2, I receive response. But smsd is confused by the messages like "^RSSI:11", so it can't work with ttyUSB2 ... Can this problem be solved without "external" scripts ?
|
|
#2 Fri Feb 18, 2011 21:10, 166 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Disable those messages with ^CURC:
device = /dev/ttyUSB2 init = AT^CURC=0
|
|
#3 Sat Feb 19, 2011 12:01, 166 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
If you are going to use the script " Sample config and script for regular_run and balance of prepaid SIM using USSD" for checking the balance, you need to use the modem setting ussd_convert = 2 and the following settings in the script: ussd_command="AT+CUSD=1,AA180C3602,15"
balance_prefix="Баланс: "
balance_suffix="."
balance_expiration=""The sample answer was: " Баланс: 399.01р. 16.02.11 18:50 МегаФон-Логин". What is the date in the answer, not a date of expiration?
|
|
#4 Sat Feb 19, 2011 21:29, 166 months ago.
|
Member
Registered: Feb 2011
Location: St.Petersburg, Russian Federation
Topic owner
|
keke wrote init = AT^CURC=0
Thank you very much! I couldn't find this command! Quote What is the date in the answer, not a date of expiration?
No... I don't understand what's this I suppose that it's a date of the last balance change... But I use smsd with nagios, it send 3-5 SMS every day, so balance had to be changed many times... Maybe I have several "bonus" SMS ? This monday I'll call "Megafon" and ask these questions Thank you, I'll try all your recommendations.
|