smssebti: Hi All,
C902 works fine with smsd version 3.1.5, OS is linux kernel 2.6.27 (Mandriva One 2009) x86.
Configuration:
The phone is connected with the USB cable.
Setting in smsd.conf :
device = /dev/ttyACM0
init1 = AT+CPMS="ME", "ME", "ME"
Enjoy!
|
smssebti: Since there was no logical cause how my application stopped working. I have had suspicion on the whole installation (may be some viruses). I reinstalled everything from scratch (even windows). Miracle it started working!!.
|
smssebti: Thanks Keke for your prompt reply.
I've already tested the SIM before inserting into the modem, and it works.
I am thinking about some special configuration on operator side. Is it a possible way for troublshooting or no need to go to GSM operator?
|
smssebti: Hi All,
My GSM Modem e-GO E169 HUAWEI was working fine in both sending & receiving.
But when I moved to Algeria ( from Bahrain) it stopped working, and I've got this message:
MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 1. TIME
Just to mention that I've changed Bahraini SIM card with Algerian one.
Thanks in advance
2009-06-18 23:53:23,2, smsd: Smsd v3.1.5 started.
2009-06-18 23:53:23,2, smsd: Running as sms:None.
2009-06-18 23:53:23,7, smsd: Running startup_check (shell): /tmp/smsd_script.xqX1vS /tmp/smsd_data.WGXrR2
2009-06-18 23:53:23,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0
2009-06-18 23:53:23,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2009-06-18 23:53:23,5, smsd: Outgoing file checker has started. PID: 1568.
2009-06-18 23:53:23,5, GSM1: Modem handler 0 has started. PID: 2320.
2009-06-18 23:53:23,5, GSM1: Using check_memory_method 1: CPMS is used.
2009-06-18 23:53:23,6, GSM1: Checking device for incoming SMS
2009-06-18 23:53:23,6, GSM1: Checking if modem is ready
2009-06-18 23:53:23,7, GSM1: -> AT
2009-06-18 23:53:23,7, GSM1: Command is sent, waiting for the answer
2009-06-18 23:53:23,7, GSM1: <- OK
2009-06-18 23:53:23,6, GSM1: Pre-initializing modem
2009-06-18 23:53:24,7, GSM1: -> ATE0+CMEE=1
2009-06-18 23:53:24,7, GSM1: Command is sent, waiting for the answer
2009-06-18 23:53:24,7, GSM1: <- OK
2009-06-18 23:53:24,6, GSM1: Checking if modem needs PIN
2009-06-18 23:53:24,7, GSM1: -> AT+CPIN?
2009-06-18 23:53:24,7, GSM1: Command is sent, waiting for the answer
2009-06-18 23:53:25,7, GSM1: <- +CPIN: READY OK
2009-06-18 23:53:25,7, GSM1: -> AT+CSQ
2009-06-18 23:53:25,7, GSM1: Command is sent, waiting for the answer
2009-06-18 23:53:25,7, GSM1: <- +CSQ: 21,99 OK
2009-06-18 23:53:25,6, GSM1: Checking if Modem is registered to the network
2009-06-18 23:53:25,7, GSM1: -> AT+CREG?
2009-06-18 23:53:25,7, GSM1: Command is sent, waiting for the answer
2009-06-18 23:53:26,7, GSM1: <- +CREG: 0,2 OK
2009-06-18 23:53:26,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 1. TIME
2009-06-18 23:53:27,7, GSM1: -> AT+CSQ
2009-06-18 23:53:27,7, GSM1: Command is sent, waiting for the answer
2009-06-18 23:53:27,7, GSM1: <- +CSQ: 21,99 OK
2009-06-18 23:53:27,5, GSM1: Signal Strength Indicator: (21,99) -71 dBm, Bit Error Rate: not known or not detectable
2009-06-18 23:53:28,7, GSM1: -> AT+CREG?
2009-06-18 23:53:28,7, GSM1: Command is sent, waiting for the answer
2009-06-18 23:53:28,7, GSM1: <- +CREG: 0,2 OK
2009-06-18 23:53:28,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 2. TIME
|
smssebti: The e-GO HSDPA/UMTS/EDGE/GPRS/GSM E169 HUAWEI (USB connection) works fine using windows platform.
Just run the embeded software ( Internet connection tools), then get the COM number from Windows device manager, configure only your COM in smsd.conf and it will work in both sending and receiving sms.
|
smssebti: Below is a simple tested script that retrieves credit from your account.
create your database banque and create table using sql commands:
create database banque;
use banque;
create table client (id_clt int(12) primary key,
pwd_clt varchar(15),
credit_clt double);
Then populate your database.
Use below script for eventhanlder ( don't forget to configure smsd.conf )
#!/bin/sh
if [ "$1" = "RECEIVED" ]; then
FROM=`formail -zx From: < $2`
TEXT=`formail -I "" < $2`
ID=`echo $TEXT | awk ' { print $1}'`
PWD=`echo $TEXT | awk ' { print $2}'`
SQL_ARGS="-h localhost -u root -D banque -N -B -e"
credit=`mysql $SQL_ARGS "select credit_clt from client where id_clt=$ID and pwd_clt='$PWD';"`
sendsms $FROM "Your credit is: $credit DA"
fi
Send sms containing account id plus password separated by space, you will get credit on your mobile.
Good Luck!
|