micro: Operating system name and version: GNU/Linux Ubuntu 10.04.2 LTS
Version of smsd: 3.1.6
Smsd installed from: package repository
Name and model of a modem / phone: Sierra Wireless Airlink GL6110 (USB) programmable modem
Interface: USB
Have problem with the modem. I have been using gsmsmssend to send sms and now trying to set up smsd to recive sms to my nagios system. The log file give me timeout but when i send sms it init the modem and send the sms. The first time after starting smsd it use to recive the sms but it is the only time it does it.
Here is my config:
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
logfile = /var/log/smstools/smsd.log
loglevel = 7
delaytime = 10
errorsleeptime = 10
autosplit = 3
[GSM1]
device = /dev/ttyACM0
incoming = yes
mode = new
smsc = 46705008999
baudrate = 115200
pin = ignore
rtscts = yes
cs_convert = yes
report = yes
sending_disabled = no
memory_start = 1
the log file:
16:38:56,2, smsd: Smsd v3.1.6 started.
16:38:56,2, smsd: Running as smsd:dialout.
16:38:56,7, smsd: Running startup_check (shell): /tmp/smsd_script.v2ZpWW /tmp/smsd_data.p18TTG
16:38:56,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
16:38:56,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
16:38:56,5, smsd: Outgoing file checker has started. PID: 12606.
16:38:56,5, GSM1: Modem handler 0 has started. PID: 12607.
16:38:56,5, GSM1: Using check_memory_method 1: CPMS is used.
16:38:56,6, GSM1: Checking device for incoming SMS
16:38:56,6, GSM1: Checking if modem is ready
16:38:57,7, GSM1: -> AT
16:38:57,7, GSM1: Command is sent, waiting for the answer
16:38:57,7, GSM1: <- O
16:38:57,7, GSM1: ->
16:38:57,7, GSM1: Command is sent, waiting for the answer
16:39:02,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 1.
16:39:02,7, GSM1: <-
16:39:02,7, GSM1: -> AT
16:39:02,7, GSM1: Command is sent, waiting for the answer
16:39:03,7, GSM1: <- O
16:39:03,7, GSM1: ->
16:39:03,7, GSM1: Command is sent, waiting for the answer
16:39:08,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 1.
.
.
.
Here I send a sms:
16:41:53,7, GSM1: <- MULTIBAND 900E 1800 OK
16:41:53,6, GSM1: Pre-initializing modem
16:41:53,7, GSM1: -> ATE0+CMEE=1
16:41:53,7, GSM1: Command is sent, waiting for the answer
16:42:03,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 1.
2011-03-08 16:42:03,7, GSM1: <-
16:42:03,3, GSM1: Modem did not accept the pre-init string
16:42:03,7, GSM1: -> AT+CSQ
16:42:03,7, GSM1: Command is sent, waiting for the answer
16:42:04,7, GSM1: <- +CSQ: 31,0 OK
16:42:04,6, GSM1: Checking if Modem is registered to the network
16:42:04,7, GSM1: -> AT+CREG?
16:42:04,7, GSM1: Command is sent, waiting for the answer
16:42:04,7, GSM1: <- +CREG: 0,1 OK
16:42:04,6, GSM1: Modem is registered to the network
16:42:04,6, GSM1: Selecting PDU mode
16:42:04,7, GSM1: -> AT+CMGF=0
16:42:04,7, GSM1: Command is sent, waiting for the answer
16:42:05,7, GSM1: <- O
16:42:05,7, GSM1: -> AT+CMGF=0
16:42:05,7, GSM1: Command is sent, waiting for the answer
16:42:05,7, GSM1: <- O
16:42:05,6, GSM1: Changing SMSC
16:42:05,7, GSM1: -> AT+CSCA="+46705008999"
16:42:06,7, GSM1: Command is sent, waiting for the answer
16:42:06,7, GSM1: <- O
16:42:06,7, GSM1: -> AT+CSCA="+46705008999"
16:42:06,7, GSM1: Command is sent, waiting for the answer
16:42:06,7, GSM1: <- O
16:42:07,7, GSM1: -> AT+CIMI
16:42:07,7, GSM1: Command is sent, waiting for the answer
16:42:07,7, GSM1: <- 240016012195442 OK
16:42:07,7, GSM1: -> AT+CGSN
16:42:07,7, GSM1: Command is sent, waiting for the answer
16:42:07,7, GSM1: <- 359126030019319 OK
16:42:07,5, GSM1: CGSN: 359126030019319
16:42:07,5, GSM1: IMSI: 240016012195442
16:42:07,6, GSM1: Checking if reading of messages is supported
16:42:08,7, GSM1: -> AT+CPMS?
16:42:08,7, GSM1: Command is sent, waiting for the answer
16:42:08,7, GSM1: <- +CPMS: "SM",1,20,"SM",1,20,"SM",1,20 OK
16:42:08,6, GSM1: Checking memory size
16:42:08,7, GSM1: -> AT+CPMS?
16:42:08,7, GSM1: Command is sent, waiting for the answer
16:42:08,7, GSM1: <- +CPMS: "SM",1,20,"SM",1,20,"SM",1,20 OK
16:42:08,6, GSM1: Used memory is 1 of 20
16:42:08,6, GSM1: Trying to get stored message 1
16:42:09,7, GSM1: -> AT+CMGR=1
16:42:09,7, GSM1: Command is sent, waiting for the answer
2011-03-08 16:42:09,7, GSM1: <- +CMGR: 0,,113 07916407058099F9040B916407209101F00000113080512510406BCEF039FD9E835AA07BDA3D2FCBED6579CCC57E8FC36C90B4387C5A8BD22CA80A054193CE23E8B904B540D0F0785DA683D8EFF91CD403C14A2C90941A04F54030972D066ACF41D47A19D40CCB4138508CA6A3CD74301B6858A48264B0580C OK
16:42:09,5, GSM1: SMS received, From: 46700118100
16:42:09,6, GSM1: Wrote an incoming message file: /var/spool/sms/incoming/GSM1.VSamgG
16:42:09,6, GSM1: Deleting message 1
16:42:09,7, GSM1: -> AT+CMGD=1
16:42:09,7, GSM1: Command is sent, waiting for the answer
16:42:09,7, GSM1: <- O
16:42:09,6, GSM1: Checking device for incoming SMS
16:42:09,6, GSM1: Checking memory size
16:42:10,7, GSM1: -> AT+CPMS?
16:42:10,7, GSM1: Command is sent, waiting for the answer
16:42:10,7, GSM1: <- +CPMS: "SM",0,20,"SM",0,20,"SM",0,20 OK
16:42:10,6, GSM1: Used memory is 0 of 20
16:42:10,6, GSM1: No SMS received
16:42:20,6, GSM1: Checking device for incoming SMS
16:42:20,6, GSM1: Checking if modem is ready
16:42:20,7, GSM1: -> AT
16:42:20,7, GSM1: Command is sent, waiting for the answer
16:42:21,7, GSM1: <- O
16:42:21,7, GSM1: ->
16:42:21,7, GSM1: Command is sent, waiting for the answer
|