mjbizi: My config file
#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
#
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
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
stats = /var/log/smstools/smsd_stats
loglevel = 7
receive_before_send = no
autosplit = 3
[GSM1]
device = /dev/modem0
incoming = yes
smsc = 48601000310
keep_open = yes
cs_convert = yes
report = no
rtscts = no
report_device_details = yes
baudrate = 19200
other information in the log file
2017-08-26 20:45:51,2, smsd: Smsd v3.1.15 started.
2017-08-26 20:45:51,2, smsd: Running as smsd:dialout.
2017-08-26 20:45:51,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.A7jwey /tmp/smsd_data.l99INK
2017-08-26 20:45:51,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2017-08-26 20:45:51,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2017-08-26 20:45:51,5, smsd: Outgoing file checker has started. PID: 1904.
2017-08-26 20:45:51,7, smsd: All PID's: 1904,1905
2017-08-26 20:45:51,5, GSM1: Modem handler 0 has started. PID: 1905.
2017-08-26 20:45:51,5, GSM1: Using check_memory_method 1: CPMS is used.
2017-08-26 20:45:51,6, GSM1: Checking device for incoming SMS
2017-08-26 20:45:51,6, GSM1: Checking if modem is ready
2017-08-26 20:45:51,7, GSM1: -> AT
2017-08-26 20:45:51,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:52,7, GSM1: <- OK
2017-08-26 20:45:52,6, GSM1: Pre-initializing modem
2017-08-26 20:45:52,7, GSM1: -> ATE0+CMEE=1;+CREG=2
2017-08-26 20:45:52,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:52,7, GSM1: <- OK
2017-08-26 20:45:53,6, GSM1: Checking if modem needs PIN
2017-08-26 20:45:53,7, GSM1: -> AT+CPIN?
2017-08-26 20:45:53,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:53,5, smsd: Moved file /var/spool/sms/outgoing/sms0011 to /var/spool/sms/checked
2017-08-26 20:45:53,7, GSM1: <- +CPIN:READY OK
2017-08-26 20:45:53,7, GSM1: -> AT+CSQ
2017-08-26 20:45:53,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:54,7, GSM1: <- +CSQ: 0,0 OK
2017-08-26 20:45:54,6, GSM1: Signal Strength Indicator: (0,0) -113 dBm (Marginal) or less, Bit Error Rate: less than 0.2 %
2017-08-26 20:45:54,6, GSM1: Checking if Modem is registered to the network
2017-08-26 20:45:54,7, GSM1: -> AT+CREG?
2017-08-26 20:45:54,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:54,7, GSM1: <- +CREG: 2,10,"0000","0000",0 OK
2017-08-26 20:45:54,6, GSM1: Modem is registered to the network
2017-08-26 20:45:54,6, GSM1: Location area code: 0000, Cell ID: 0000
2017-08-26 20:45:54,7, GSM1: -> AT+CSQ
2017-08-26 20:45:54,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:55,7, GSM1: <- +CSQ: 0,0 OK
2017-08-26 20:45:55,6, GSM1: Signal Strength Indicator: (0,0) -113 dBm (Marginal) or less, Bit Error Rate: less than 0.2 %
2017-08-26 20:45:55,6, GSM1: Selecting PDU mode
2017-08-26 20:45:55,7, GSM1: -> AT+CMGF=0
2017-08-26 20:45:55,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:55,7, GSM1: <- OK
2017-08-26 20:45:55,6, GSM1: Changing SMSC
2017-08-26 20:45:55,7, GSM1: -> AT+CSCA="+48601000310"
2017-08-26 20:45:55,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:56,7, GSM1: <- OK
2017-08-26 20:45:56,7, GSM1: -> AT+CIMI
2017-08-26 20:45:56,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:56,7, GSM1: <- 2600198610***** OK
2017-08-26 20:45:56,7, GSM1: -> AT+CGSN
2017-08-26 20:45:56,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:57,7, GSM1: <- 000000000000000 OK
2017-08-26 20:45:57,5, GSM1: CGSN: 000000000000000
2017-08-26 20:45:57,5, GSM1: IMSI: 2600198610*****
2017-08-26 20:45:57,6, GSM1: Checking if reading of messages is supported
2017-08-26 20:45:57,7, GSM1: -> AT+CPMS?
2017-08-26 20:45:57,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:45:57,7, GSM1: <- +CPMS: "SM",0,20,"SM",0,20,"",0,50 OK
2017-08-26 20:45:57,7, GSM1: ## Start of device details
2017-08-26 20:45:57,7, GSM1: # Manufacturer identification:
2017-08-26 20:45:57,7, GSM1: -> AT+CGMI
2017-08-26 20:45:58,7, GSM1: <- RDA
OK
2017-08-26 20:45:58,7, GSM1: # Model identification:
2017-08-26 20:45:58,7, GSM1: -> AT+CGMM
2017-08-26 20:45:58,7, GSM1: <- RDA MODULE ID
OK
2017-08-26 20:45:58,7, GSM1: # Revision identification:
2017-08-26 20:45:58,7, GSM1: -> AT+CGMR
2017-08-26 20:45:59,7, GSM1: <- 20120707
OK
2017-08-26 20:45:59,7, GSM1: # New message indications, list of supported modes:
2017-08-26 20:45:59,7, GSM1: -> AT+CNMI=?
2017-08-26 20:45:59,7, GSM1: <- +CNMI: (0-3),(0-3),(0,2),(0-1),(0,1)
OK
2017-08-26 20:45:59,7, GSM1: # New message indications, current settings:
2017-08-26 20:45:59,7, GSM1: -> AT+CNMI?
2017-08-26 20:46:00,7, GSM1: <- +CNMI: 0,2,0,0,0
OK
2017-08-26 20:46:00,7, GSM1: # Preferred message storage, list of supported mem's:
2017-08-26 20:46:00,7, GSM1: -> AT+CPMS=?
2017-08-26 20:46:00,7, GSM1: <- +CPMS: ("ME","SM"),("ME","SM"),("ME","SM")
OK
2017-08-26 20:46:00,7, GSM1: # Phonebook storage, available mem's:
2017-08-26 20:46:00,7, GSM1: -> AT+CPBS=?
2017-08-26 20:46:01,7, GSM1: <- +CPBS: ("SM","ON","FD","LD")
OK
2017-08-26 20:46:01,7, GSM1: # List messages, list of supported stat's:
2017-08-26 20:46:01,7, GSM1: -> AT+CMGL=?
2017-08-26 20:46:01,7, GSM1: <- +CMGL: (0-4)
OK
2017-08-26 20:46:01,7, GSM1: # Delete message, list of supported values:
2017-08-26 20:46:01,7, GSM1: -> AT+CMGD=?
2017-08-26 20:46:02,7, GSM1: <- +CMGD: (1-20),(0,1,2,3,4)
OK
2017-08-26 20:46:02,7, GSM1: # Phone activity status, list of supported stat's:
2017-08-26 20:46:02,7, GSM1: -> AT+CPAS=?
2017-08-26 20:46:02,7, GSM1: <- +CPAS:0,1,3,4
OK
2017-08-26 20:46:02,7, GSM1: # TE character set, list of supported charset's:
2017-08-26 20:46:02,7, GSM1: -> AT+CSCS=?
2017-08-26 20:46:03,7, GSM1: <- +CSCS: ("GSM","HEX","PCCP936","UCS2")
OK
2017-08-26 20:46:03,7, GSM1: # TE character set, current setting:
2017-08-26 20:46:03,7, GSM1: -> AT+CSCS?
2017-08-26 20:46:03,7, GSM1: <- +CSCS: "PCCP936"
OK
2017-08-26 20:46:03,7, GSM1: ## End of device details
2017-08-26 20:46:03,6, GSM1: Checking memory size
2017-08-26 20:46:03,7, GSM1: -> AT+CPMS?
2017-08-26 20:46:03,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:04,7, GSM1: <- +CPMS: "SM",0,20,"SM",0,20,"",0,50 OK
2017-08-26 20:46:04,6, GSM1: Used memory is 0 of 20
2017-08-26 20:46:04,6, GSM1: No SMS received
2017-08-26 20:46:04,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/sms0011
2017-08-26 20:46:04,6, GSM1: Sending SMS from to 485013*****
2017-08-26 20:46:04,6, GSM1: Checking if modem is ready
2017-08-26 20:46:04,7, GSM1: -> AT
2017-08-26 20:46:04,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:04,7, GSM1: <- OK
2017-08-26 20:46:04,6, GSM1: Pre-initializing modem
2017-08-26 20:46:04,7, GSM1: -> ATE0+CMEE=1;+CREG=2
2017-08-26 20:46:04,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:05,7, GSM1: <- OK
2017-08-26 20:46:05,7, GSM1: -> AT+CSQ
2017-08-26 20:46:05,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:05,7, GSM1: <- +CSQ: 0,0 OK
2017-08-26 20:46:05,6, GSM1: Signal Strength Indicator: (0,0) -113 dBm (Marginal) or less, Bit Error Rate: less than 0.2 %
2017-08-26 20:46:05,6, GSM1: Checking if Modem is registered to the network
2017-08-26 20:46:05,7, GSM1: -> AT+CREG?
2017-08-26 20:46:05,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:06,7, GSM1: <- +CREG: 2,10,"0000","0000",0 OK
2017-08-26 20:46:06,6, GSM1: Modem is registered to the network
2017-08-26 20:46:06,6, GSM1: Selecting PDU mode
2017-08-26 20:46:06,7, GSM1: -> AT+CMGF=0
2017-08-26 20:46:06,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:06,7, GSM1: <- OK
2017-08-26 20:46:06,6, GSM1: Changing SMSC
2017-08-26 20:46:06,7, GSM1: -> AT+CSCA="+48601000310"
2017-08-26 20:46:06,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:07,7, GSM1: <- OK
2017-08-26 20:46:07,7, GSM1: -> AT+CMGS=29
2017-08-26 20:46:07,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:07,7, GSM1: <- >
2017-08-26 20:46:07,7, GSM1: -> 0011000B918405310446F90000FF11D77498FC6EBFE76310BD3CA7BFEF61
2017-08-26 20:46:07,7, GSM1: Command is sent, waiting for the answer
2017-08-26 20:46:08,7, GSM1: <- +CMS ERROR:500
2017-08-26 20:46:08,3, GSM1: The modem answer was not OK: +CMS ERROR:500
2017-08-26 20:46:08,5, GSM1: Waiting 10 sec. before retrying
The sim card after inserting the phone works fine.
I've tried on various sim cards unfortunately experiencing the same error + CMS ERROR: 500.
Thank you for your help
|