alvaro: Operating system name and version: Ubuntu 11.04
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Modem Huawei E160
Interface: USB
Sorry for my english, if it is not so good.
I write an application that receive a SMS, process it (update a MySQL DB, etc.) and send a response. The reception, process and response message creation is ok (the eventhandler put a file in outgoing folder) but the modem not send it an report +CMS ERROR: 500 (Unknown error)
Configuration file (smsd.conf) is:
devices = GSM0
outgoing = /var/spool/sms/outgoing
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
logfile = /var/log/smsd.log
loglevel = 7
delaytime = 10
errorsleeptime = 10
blocktime = 3600
executable_check = no
eventhandler = /usr/bin/php -f /var/smstools3/scripts/eventhandler
receive_before_send = no
autosplit = 3
date_filename = 1
regular_run = /var/smstools3/scripts/regular_run
regular_run_interval = 300
hangup_incoming_call = yes
[queues]
OTHER = /var/spool/sms/other
[provider]
OTHER = 0,1,2,3,4,5,6,7,8,9
[GSM0]
init = AT^BOOT=0,0
init = AT+CMGF=1
init2= AT+CPMS="ME","ME","ME"
device = /dev/ttyUSB0
incoming = yes
queues = OTHER
mode = new
smsc = 17866009938
baudrate = 115200
rtscts = yes
cs_convert = yes
report = no
memory_start = 0
check_memory_method=2
SMS generated as response:
To: 13054553323
Flash: yes
Modem: GSM0
IMSI: 310410407232629
Fail_reason: +CMS ERROR: 500 (Unknown error)
Failed: 11-05-11 15:14:08
PDU: 0011000B917168069039F70010FF13D2F2393DA7CBDFA0323E4D7FCFDF2E970B
Registro exitoso...
Log portion at modem start:
2011-05-11 14:56:12,2, smsd: Smsd v3.1.14 started.
2011-05-11 14:56:12,2, smsd: Running as root:root.
2011-05-11 14:56:12,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2011-05-11 14:56:12,5, smsd: Outgoing file checker has started. PID: 8553.
2011-05-11 14:56:12,7, smsd: All PID's: 8553,8555
2011-05-11 14:56:12,5, GSM0: Modem handler 0 has started. PID: 8555.
2011-05-11 14:56:12,6, smsd: Running a regular_run.
2011-05-11 14:56:12,7, smsd: Running regular_run (mainprocess): /var/smstools3/scripts/regular_run
2011-05-11 14:56:12,5, GSM0: Using check_memory_method 2: CMGD is used.
2011-05-11 14:56:12,6, GSM0: Checking device for incoming SMS
2011-05-11 14:56:12,6, GSM0: Checking if modem is ready
2011-05-11 14:56:12,7, smsd: Done: regular_run (mainprocess), execution time 0 sec., status: 0 (0)
2011-05-11 14:56:12,7, GSM0: -> AT
2011-05-11 14:56:12,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:12,7, GSM0: <- OK
2011-05-11 14:56:12,6, GSM0: Pre-initializing modem
2011-05-11 14:56:12,7, GSM0: -> ATE0+CMEE=1;+CREG=2
2011-05-11 14:56:12,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:13,7, GSM0: <- OK
2011-05-11 14:56:13,6, GSM0: Checking if modem needs PIN
2011-05-11 14:56:13,7, GSM0: -> AT+CPIN?
2011-05-11 14:56:13,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:13,7, GSM0: <- +CPIN: READY OK
2011-05-11 14:56:13,6, GSM0: Initializing modem
2011-05-11 14:56:13,7, GSM0: -> AT+CMGF=1
2011-05-11 14:56:13,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:14,7, GSM0: <- OK
2011-05-11 14:56:14,7, GSM0: -> AT+CPMS="ME","ME","ME"
2011-05-11 14:56:14,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:14,7, GSM0: <- +CPMS: 0,23,0,23,0,23 OK
2011-05-11 14:56:14,7, GSM0: -> AT+CSQ
2011-05-11 14:56:14,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:15,7, GSM0: <- +CSQ: 21,99 OK
2011-05-11 14:56:15,6, GSM0: Signal Strength Indicator: (21,99) -71 dBm (Excellent), Bit Error Rate: not known or not detectable
2011-05-11 14:56:15,6, GSM0: Checking if Modem is registered to the network
2011-05-11 14:56:15,7, GSM0: -> AT+CREG?
2011-05-11 14:56:15,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:15,7, GSM0: <- +CREG: 2,1,6A3B,E1D5723 OK
2011-05-11 14:56:15,6, GSM0: Modem is registered to the network
2011-05-11 14:56:15,6, GSM0: Location area code: 6A3B, Cell ID: 5723
2011-05-11 14:56:15,7, GSM0: -> AT+CSQ
2011-05-11 14:56:15,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:16,7, GSM0: <- +CSQ: 21,99 OK
2011-05-11 14:56:16,6, GSM0: Signal Strength Indicator: (21,99) -71 dBm (Excellent), Bit Error Rate: not known or not detectable
2011-05-11 14:56:16,6, GSM0: Selecting PDU mode
2011-05-11 14:56:16,7, GSM0: -> AT+CMGF=0
2011-05-11 14:56:16,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:16,7, GSM0: <- OK
2011-05-11 14:56:16,6, GSM0: Changing SMSC
2011-05-11 14:56:16,7, GSM0: -> AT+CSCA="+17866009938"
2011-05-11 14:56:16,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:17,7, GSM0: <- OK
2011-05-11 14:56:17,7, GSM0: -> AT+CIMI
2011-05-11 14:56:17,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:17,7, GSM0: <- 310410407232629 OK
2011-05-11 14:56:17,7, GSM0: -> AT+CGSN
2011-05-11 14:56:17,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:18,7, GSM0: <- 353871021834210 OK
2011-05-11 14:56:18,5, GSM0: CGSN: 353871021834210
2011-05-11 14:56:18,5, GSM0: IMSI: 310410407232629
2011-05-11 14:56:18,6, GSM0: Checking if reading of messages is supported
2011-05-11 14:56:18,7, GSM0: -> AT+CPMS?
2011-05-11 14:56:18,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:18,7, GSM0: <- +CPMS: "ME",0,23,"ME",0,23,"ME",0,23 OK
2011-05-11 14:56:18,6, GSM0: Checking memory size
2011-05-11 14:56:18,7, GSM0: -> AT+CMGD=?
2011-05-11 14:56:18,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:19,7, GSM0: <- +CMGD: (),(0-4) OK
2011-05-11 14:56:19,6, GSM0: No SMS received
2011-05-11 14:56:29,6, GSM0: Checking device for incoming SMS
2011-05-11 14:56:29,6, GSM0: Checking if modem is ready
2011-05-11 14:56:29,7, GSM0: -> AT
2011-05-11 14:56:29,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:29,7, GSM0: <- OK
2011-05-11 14:56:29,6, GSM0: Pre-initializing modem
2011-05-11 14:56:29,7, GSM0: -> ATE0+CMEE=1;+CREG=2
2011-05-11 14:56:29,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:30,7, GSM0: <- OK
2011-05-11 14:56:30,6, GSM0: Initializing modem
2011-05-11 14:56:30,7, GSM0: -> AT+CMGF=1
2011-05-11 14:56:30,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:30,7, GSM0: <- OK
2011-05-11 14:56:30,7, GSM0: -> AT+CPMS="ME","ME","ME"
2011-05-11 14:56:30,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:31,7, GSM0: <- +CPMS: 0,23,0,23,0,23 OK
2011-05-11 14:56:31,7, GSM0: -> AT+CSQ
2011-05-11 14:56:31,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:31,7, GSM0: <- +CSQ: 21,99 OK
2011-05-11 14:56:31,6, GSM0: Signal Strength Indicator: (21,99) -71 dBm (Excellent), Bit Error Rate: not known or not detectable
2011-05-11 14:56:31,6, GSM0: Checking if Modem is registered to the network
2011-05-11 14:56:31,7, GSM0: -> AT+CREG?
2011-05-11 14:56:31,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:32,7, GSM0: <- +CREG: 2,1,6A3B,E1D5723 OK
2011-05-11 14:56:32,6, GSM0: Modem is registered to the network
2011-05-11 14:56:32,6, GSM0: Selecting PDU mode
2011-05-11 14:56:32,7, GSM0: -> AT+CMGF=0
2011-05-11 14:56:32,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:32,7, GSM0: <- OK
2011-05-11 14:56:32,6, GSM0: Changing SMSC
2011-05-11 14:56:32,7, GSM0: -> AT+CSCA="+17866009938"
2011-05-11 14:56:32,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:33,7, GSM0: <- OK
2011-05-11 14:56:33,6, GSM0: Checking memory size
2011-05-11 14:56:33,7, GSM0: -> AT+CMGD=?
2011-05-11 14:56:33,7, GSM0: Command is sent, waiting for the answer
2011-05-11 14:56:33,7, GSM0: <- +CMGD: (),(0-4) OK
2011-05-11 14:56:33,6, GSM0: No SMS received
Log portion at send error:
2011-05-11 15:22:56,6, GSM0: Checking if Modem is registered to the network
2011-05-11 15:22:56,7, GSM0: -> AT+CREG?
2011-05-11 15:22:56,7, GSM0: Command is sent, waiting for the answer
2011-05-11 15:22:56,7, GSM0: <- +CREG: 2,1,6A3B,E1D5723 OK
2011-05-11 15:22:56,6, GSM0: Modem is registered to the network
2011-05-11 15:22:56,6, GSM0: Selecting PDU mode
2011-05-11 15:22:56,7, GSM0: -> AT+CMGF=0
2011-05-11 15:22:56,7, GSM0: Command is sent, waiting for the answer
2011-05-11 15:22:57,7, GSM0: <- OK
2011-05-11 15:22:57,6, GSM0: Changing SMSC
2011-05-11 15:22:57,7, GSM0: -> AT+CSCA="+17866009938"
2011-05-11 15:22:57,7, GSM0: Command is sent, waiting for the answer
2011-05-11 15:22:57,7, GSM0: <- OK
2011-05-11 15:22:57,7, GSM0: -> AT+CMGS=24
2011-05-11 15:22:57,7, GSM0: Command is sent, waiting for the answer
2011-05-11 15:22:58,7, GSM0: <- >
2011-05-11 15:22:58,7, GSM0: -> 0011000A9118766889973000FF0C7079BD2C0E83E669372806.
2011-05-11 15:22:58,7, GSM0: Command is sent, waiting for the answer
2011-05-11 15:23:24,7, GSM0: <- +CMS ERROR: 500 (Unknown error)
2011-05-11 15:23:24,3, GSM0: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2011-05-11 15:23:24,4, GSM0: Waiting 10 sec. before retrying.
Any idea please?
Thank you!!!
|