Operating system name and version: OpenSuse 11.4
Version of smsd: 3.1.3
Smsd installed from: rpm package: smstools-3.1.3-4.1.i586.rpm
Name and model of a modem / phone: Cinterion CT63
Interface: USB
Dear All,
Please let me describe my problem:
I'm running a SMS Gateway server using SMSTools3 on SuseStudio 11.4 as a Virtualbox VM.
When i boot the Virtual Maschine the init script /etc/init.d/smstools doesn't initialize the modem on /dev/ttyACM0 which is automatically connected by the VM configuration.
I found that if i manually start the /etc/init.d/smstools all works well.
On system startup/reboot the automatic /etc/init.d/smstools doesn't work ???
cd /etc/init.d
ls -la smstool*
-rwxr-xr-x 1 root root 3785 Aug 9 13:13 smstools
chkconfig smstools --list
smstools 0 off 1 off 2 off 3 on 4 off 5 on 6 off
smstools init script
#! /bin/bash
# chkconfig: 3 5
# description: SMS Tools Daemon
# This script can be used to start/stop smsd
# as a daemon in Linux and Solaris.
case "$1" in
start)
find /var/spool/sms -name '*.LOCK' -exec rm {} \;
/usr/sbin/smsd &
;;
stop)
pkill smsd
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
/var/log/smsd <<--- automatically start at system startup
2012-08-10 06:39:10,2, smsd: Smsd v3.1.3 started.
2012-08-10 06:39:10,2, smsd: Running as root:root.
2012-08-10 06:39:10,6, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2012-08-10 06:39:10,6, smsd: Outgoing file checker has started. PID: 905.
2012-08-10 06:39:10,6, GSM1: Modem handler 0 has started. PID: 906. Will only send messages.
2012-08-10 06:39:10,6, GSM1: Checking if modem is ready
2012-08-10 06:39:10,7, GSM1: -> AT
2012-08-10 06:39:10,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:39:15,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred.
2012-08-10 08:39:15,7, GSM1: <-
2012-08-10 08:39:15,7, GSM1: -> ^Z
2012-08-10 08:39:15,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:39:20,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred.
2012-08-10 08:39:20,7, GSM1: <-
2012-08-10 08:39:20,7, GSM1: -> AT
2012-08-10 08:39:20,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:39:25,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred.
2012-08-10 08:39:55,2, GSM1: Failed to initialize modem GSM1. Stopping.
/var/log/smsd <<--- manually start of /etc/init.d/smstools by root user
2012-08-10 08:40:26,2, smsd: Smsd v3.1.3 started.
2012-08-10 08:40:26,2, smsd: Running as root:root.
2012-08-10 08:40:26,6, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2012-08-10 08:40:26,6, smsd: Outgoing file checker has started. PID: 2333.
2012-08-10 08:40:26,6, GSM1: Modem handler 0 has started. PID: 2334. Will only send messages.
2012-08-10 08:40:26,6, GSM1: Checking if modem is ready
2012-08-10 08:40:26,7, GSM1: -> AT
2012-08-10 08:40:26,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:40:26,7, GSM1: <- OK OK OK OK OK OK
2012-08-10 08:40:26,6, GSM1: Pre-initializing modem
2012-08-10 08:40:26,7, GSM1: -> ATE0+CMEE=1
2012-08-10 08:40:26,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:40:27,7, GSM1: <- OK
2012-08-10 08:40:27,6, GSM1: Checking if modem needs PIN
2012-08-10 08:40:27,7, GSM1: -> AT+CPIN?
2012-08-10 08:40:27,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:40:27,7, GSM1: <- +CPIN: READY OK
2012-08-10 08:40:27,6, GSM1: Initializing modem
2012-08-10 08:40:27,7, GSM1: -> AT+CMEE=2
2012-08-10 08:40:27,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:40:27,7, GSM1: <- OK
2012-08-10 08:40:27,6, GSM1: Selecting PDU mode
2012-08-10 08:40:27,7, GSM1: -> AT+CMGF=0
2012-08-10 08:40:27,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:40:28,7, GSM1: <- OK
2012-08-10 08:40:28,7, GSM1: -> AT+CIMI
2012-08-10 08:40:28,7, GSM1: Command is sent, waiting for the answer
2012-08-10 08:40:28,7, GSM1: <- 232011120143251 OK
2012-08-10 08:40:28,6, GSM1: IMSI: 232011120143251
2012-08-10 08:40:28,6, GSM1: Waiting for messages to send...
Please help!
Jens