alex_pogodin: Operating system name and version: Gentoo Linux
Version of smsd: 3.1.14
Smsd installed from: /usr/portage/app-mobilephone/smstools/smstools-3.1.14.ebuild
Name and model of a modem / phone: Huawei E1750
Interface: USB
I am unable to start daemon using standard Gentoo start script. Effective line is start-stop-daemon -b -m \
-p /var/run/smsd/smsd.pid \
-c smsd:sms \
--start \
--exec /usr/bin/smsd -- \
-c /etc/smsd.conf
User & group set in config:
$ egrep "(user|group)" /etc/smsd.conf
user = smsd
group = sms
After running startup script as root I get the following log:
$ cat /var/log/smsd.log
2011-07-25 17:49:43,2, smsd: Smsd v3.1.14 started.
2011-07-25 17:49:43,2, smsd: Running as smsd:sms.
2011-07-25 17:49:43,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.DiJFOc /tmp/smsd_data.E1FAZB
2011-07-25 17:49:43,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2011-07-25 17:49:43,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2011-07-25 17:49:43,2, smsd: Smsd mainprocess terminated because the pid file /var/run/smsd/smsd.pid cannot be written.
and .pid file $ ls -la /var/run/smsd/
total 12
drwxrwxrwx 2 smsd sms 4096 Jul 25 17:49 .
drwxr-xr-x 7 root root 4096 Jul 25 01:22 ..
-rw-r--r-- 1 root root 5 Jul 25 17:49 smsd.pid
Anybody has a thought what is wrong in my setup?
|
alex_pogodin: Hi!
Addition of 2 lines (check_memory_method = 1 and memory_start = 0) to config seems solved my problem. At least it works last 24 hours.
I'll post success story later, expecting many SMSes in a few days.
Thank you, keke, for excellent support provided!
|
alex_pogodin: Here's my config:
devices = Huawei
loglevel = 7
user = smsd
group = sms
logfile = /var/log/smsd/smsd.log
infofile = /var/run/smsd/smsd.running
pidfile = /var/run/smsd/smsd.pid
alarmlevel = 7
alarmhandler = /home/alexp/bin/smshandler
[Huawei]
device = /dev/gsmmodem
baudrate = 115200
pin = 1111
incoming = high
cmgl_value = 0
check_memory_method = 31
|
alex_pogodin: Operating system name and version: Gentoo linux, kernel gentoo-sources-2.6.36-r5
Version of smsd: 3.1.14
Smsd installed from: unofficial ebuild
Name and model of a modem / phone: Huawei E1750 HSPA USB Stick
Interface: USB
I am a first time user of smstools and I experience sporadic problems with my modem. Ocasionally it stops responding on AT+CMGL=0 commands. Below is the log excerpt:
2010-12-21 20:59:44,6, Huawei: Checking device for incoming SMS
2010-12-21 20:59:44,6, Huawei: Checking if modem is ready
2010-12-21 20:59:44,7, Huawei: -> AT
2010-12-21 20:59:44,7, Huawei: Command is sent, waiting for the answer
2010-12-21 20:59:44,7, Huawei: <- OK
2010-12-21 20:59:44,6, Huawei: Pre-initializing modem
2010-12-21 20:59:44,7, Huawei: -> ATE0+CMEE=1;+CREG=2
2010-12-21 20:59:44,7, Huawei: Command is sent, waiting for the answer
2010-12-21 20:59:45,7, Huawei: <- OK
2010-12-21 20:59:45,6, Huawei: Checking if modem needs PIN
2010-12-21 20:59:45,7, Huawei: -> AT+CPIN?
2010-12-21 20:59:45,7, Huawei: Command is sent, waiting for the answer
2010-12-21 20:59:45,7, Huawei: <- +CPIN: READY OK
2010-12-21 20:59:45,7, Huawei: -> AT+CSQ
2010-12-21 20:59:45,7, Huawei: Command is sent, waiting for the answer
2010-12-21 20:59:46,7, Huawei: <- +CSQ: 10,99 OK
2010-12-21 20:59:46,6, Huawei: Signal Strength Indicator: (10,99) -93 dBm (Workable), Bit Error Rate: not known or not detectable
2010-12-21 20:59:46,6, Huawei: Checking if Modem is registered to the network
2010-12-21 20:59:46,7, Huawei: -> AT+CREG?
2010-12-21 20:59:46,7, Huawei: Command is sent, waiting for the answer
2010-12-21 20:59:46,7, Huawei: <- +CREG: 2,1, 65, 79A8 OK
2010-12-21 20:59:46,6, Huawei: Modem is registered to the network
2010-12-21 20:59:46,6, Huawei: Cell ID changed: 923B -> 79A8
2010-12-21 20:59:46,7, Huawei: -> AT+CSQ
2010-12-21 20:59:46,7, Huawei: Command is sent, waiting for the answer
2010-12-21 20:59:47,7, Huawei: <- +CSQ: 10,99 OK
2010-12-21 20:59:47,6, Huawei: Signal Strength Indicator: (10,99) -93 dBm (Workable), Bit Error Rate: not known or not detectable
2010-12-21 20:59:47,6, Huawei: Selecting PDU mode
2010-12-21 20:59:47,7, Huawei: -> AT+CMGF=0
2010-12-21 20:59:47,7, Huawei: Command is sent, waiting for the answer
2010-12-21 20:59:47,7, Huawei: <- OK
2010-12-21 20:59:47,6, Huawei: Checking memory size
2010-12-21 20:59:47,7, Huawei: -> AT+CMGL=0
2010-12-21 20:59:47,7, Huawei: Command is sent, waiting for the answer
2010-12-21 21:00:37,7, Huawei: put_command expected (OK)|(ERROR), timeout occurred. 1.
2010-12-21 21:00:37,7, Huawei: <-
2010-12-21 21:00:37,6, Huawei: Used memory is 0
2010-12-21 21:00:37,6, Huawei: No SMS received
Is it hardware problem or is it related to my config?
Thanks in advance.
|