|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Tue Jul 01, 2025 13:50 |
Page: 1
Keywords: Mode: All keywords (AND) |
Wed Mar 02, 2011 01:06
|
mistahcute: Finally got this it to send and receive Keke. Thanks.
You were correct, the SMSC was wrongly initialized.
I removed it anyway from the conf file and it worked just the same.
Is there a way to initialize the smsd.conf to optimize for speed. I noticed the response to be a little slow to update, it must be the network issue as well.
I have another modem candidate - Huawei E160E 'plug-it' USB. Do you think this is better than the Moto V3?
Again, sincere thanks for your assistance.
|
Tue Mar 01, 2011 19:12
|
mistahcute: Thanks Keke for the reply. Set log level to 7. SMSC is verified to be correct.
Have you ensured that the number of SMSC is correct?
mistahcute wrote
One small note:
logfile = /var/log/sms/smstools.log
does not generate anything.
What do you mean with this?
I mean that since
logfile = /var/log/sms/smstools.log
I just expected errors in this logfile, but found this empty.
chmod 777 /var/spool/sms/outgoing
And Destination(s): 09xxx will not work. Use international format for the number.
Thanks. No longer have the error message but it still would not send. I tried another phone fearing it was a phone problem.Turned out it seem there is a network problem tonight so I informed provider. The other phone I tried was not sending SMS also, but receives. Shall update you once network is repaired.
Here is my recent smsd.log after the changes:
2011-03-02 02:04:04,2, smsd: Smsd v3.1.14 started.
2011-03-02 02:04:04,2, smsd: Running as root:root.
2011-03-02 02:04:04,7, smsd: Running startup_check (shell): /var/spool/sms/inco$
2011-03-02 02:04:04,7, smsd: Done: startup_check (shell), execution time 0 sec.$
2011-03-02 02:04:04,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2011-03-02 02:04:04,5, smsd: Outgoing file checker has started. PID: 720.
2011-03-02 02:04:04,7, smsd: All PID's: 720,722
2011-03-02 02:04:04,5, modem1: Modem handler 0 has started. PID: 722.
2011-03-02 02:04:04,5, modem1: Using check_memory_method 31: CMGL is used and m$
2011-03-02 02:04:04,6, modem1: Checking device for incoming SMS
2011-03-02 02:04:04,6, modem1: Checking if modem is ready
2011-03-02 02:04:05,7, modem1: -> AT
2011-03-02 02:04:05,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:05,7, modem1: <- AT OK
2011-03-02 02:04:05,6, modem1: Pre-initializing modem
2011-03-02 02:04:05,7, modem1: -> ATE0+CMEE=1
2011-03-02 02:04:05,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:05,7, modem1: <- ATE0+CMEE=1 OK
2011-03-02 02:04:05,6, modem1: Checking if modem needs PIN
2011-03-02 02:04:06,7, modem1: -> AT+CPIN?
2011-03-02 02:04:06,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:06,7, modem1: <- +CPIN: READY OK
2011-03-02 02:04:06,7, modem1: -> AT+CSQ
2011-03-02 02:04:06,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:06,7, modem1: <- +CSQ: 21,99 OK
2011-03-02 02:04:06,6, modem1: Signal Strength Indicator: (21,99) -71 dBm (Exce$
2011-03-02 02:04:06,6, modem1: Checking if Modem is registered to the network
2011-03-02 02:04:07,7, modem1: -> AT+CREG?
2011-03-02 02:04:07,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:07,7, modem1: <- +CREG: 0,1 OK
2011-03-02 02:04:07,6, modem1: Modem is registered to the network
2011-03-02 02:04:07,6, modem1: Selecting PDU mode
2011-03-02 02:04:07,7, modem1: -> AT+CMGF=0
2011-03-02 02:04:07,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:07,7, modem1: <- OK
2011-03-02 02:04:07,6, modem1: Changing SMSC
2011-03-02 02:04:08,7, modem1: -> AT+CSCA="+6392200001501"
2011-03-02 02:04:08,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:08,7, modem1: <- OK
2011-03-02 02:04:08,7, modem1: -> AT+CIMI
2011-03-02 02:04:08,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:08,7, modem1: <- +CIMI: 515050870190537 OK
2011-03-02 02:04:09,7, modem1: -> AT+CGSN
2011-03-02 02:04:09,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:09,7, modem1: <- +CGSN: IMEI358621008993157 OK
2011-03-02 02:04:09,5, modem1: CGSN: 358621008993157
2011-03-02 02:04:09,5, modem1: IMSI: 515050870190537
2011-03-02 02:04:09,6, modem1: Checking if reading of messages is supported
2011-03-02 02:04:09,7, modem1: -> AT+CPMS?
2011-03-02 02:04:09,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:09,7, modem1: <- +CPMS: "MT",7,254,"OM",0,254,"IM",7,254 OK
2011-03-02 02:04:09,7, modem1: ## Start of device details
2011-03-02 02:04:09,7, modem1: # Manufacturer identification:
2011-03-02 02:04:10,7, modem1: -> AT+CGMI
2011-03-02 02:04:10,7, modem1: <- +CGMI: "Motorola CE, Copyright 2004"
OK
2011-03-02 02:04:10,7, modem1: # Model identification:
2011-03-02 02:04:10,7, modem1: -> AT+CGMM
2011-03-02 02:04:10,7, modem1: <- +CGMM: "GSM900","GSM1800","GSM1900","GSM850",$
OK
2011-03-02 02:04:10,7, modem1: # Revision identification:
2011-03-02 02:04:11,7, modem1: -> AT+CGMR
2011-03-02 02:04:11,7, modem1: <- +CGMR: "R374_G_0E.40.3CR"
OK
2011-03-02 02:04:11,7, modem1: # New message indications, list of supported mod$
2011-03-02 02:04:11,7, modem1: -> AT+CNMI=?
2011-03-02 02:04:11,7, modem1: <- +CNMI: (0,3),(0-2),(0),(0),(0)
OK
2011-03-02 02:04:11,7, modem1: # New message indications, current settings:
2011-03-02 02:04:12,7, modem1: -> AT+CNMI?
2011-03-02 02:04:12,7, modem1: <- +CNMI: 0,0,0,0,0
OK
2011-03-02 02:04:12,7, modem1: # Preferred message storage, list of supported m$
2011-03-02 02:04:12,7, modem1: -> AT+CPMS=?
2011-03-02 02:04:12,7, modem1: <- +CPMS: ("MT","IM","OM","BM","DM"),("OM","DM")$
OK
2011-03-02 02:04:12,7, modem1: # Phonebook storage, available mem's:
2011-03-02 02:04:13,7, modem1: -> AT+CPBS=?
2011-03-02 02:04:13,7, modem1: <- +CPBS: ("ME","SM","MT","ON","DC","MC","RC","A$
OK
2011-03-02 02:04:13,7, modem1: # List messages, list of supported stat's:
2011-03-02 02:04:13,7, modem1: -> AT+CMGL=?
2011-03-02 02:04:13,7, modem1: <- +CMGL: (0,1,2,3,4)
OK
2011-03-02 02:04:13,7, modem1: # Delete message, list of supported values:
2011-03-02 02:04:14,7, modem1: -> AT+CMGD=?
2011-03-02 02:04:14,7, modem1: <- +CME ERROR: 4
(operation not supported)
2011-03-02 02:04:14,7, modem1: # Phone activity status, list of supported stat'$
2011-03-02 02:04:14,7, modem1: -> AT+CPAS=?
2011-03-02 02:04:14,7, modem1: <- +CPAS: (0,2-4)
OK
2011-03-02 02:04:14,7, modem1: # TE character set, list of supported charset's:
2011-03-02 02:04:15,7, modem1: -> AT+CSCS=?
2011-03-02 02:04:15,7, modem1: <- +CSCS: ("8859-1","ASCII","GSM","UCS2","UTF8")
OK
2011-03-02 02:04:15,7, modem1: # TE character set, current setting:
2011-03-02 02:04:15,7, modem1: -> AT+CSCS?
2011-03-02 02:04:15,7, modem1: <- +CSCS: "ASCII"
OK
2011-03-02 02:04:15,7, modem1: ## End of device details
2011-03-02 02:04:15,6, modem1: Checking memory size
2011-03-02 02:04:16,7, modem1: -> AT+CMGL=4
2011-03-02 02:04:16,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:16,7, modem1: <- OK
2011-03-02 02:04:16,6, modem1: Used memory is 0
2011-03-02 02:04:16,6, modem1: No SMS received
2011-03-02 02:04:22,6, modem1: Checking device for incoming SMS
2011-03-02 02:04:22,6, modem1: Checking if modem is ready
2011-03-02 02:04:22,7, modem1: -> AT
2011-03-02 02:04:22,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:23,7, modem1: <- OK
2011-03-02 02:04:23,6, modem1: Pre-initializing modem
2011-03-02 02:04:23,7, modem1: -> ATE0+CMEE=1
2011-03-02 02:04:23,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:23,7, modem1: <- OK
2011-03-02 02:04:23,7, modem1: -> AT+CSQ
2011-03-02 02:04:23,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:24,7, modem1: <- +CSQ: 21,99 OK
2011-03-02 02:04:24,6, modem1: Signal Strength Indicator: (21,99) -71 dBm (Exce$
2011-03-02 02:04:24,6, modem1: Checking if Modem is registered to the network
2011-03-02 02:04:24,7, modem1: -> AT+CREG?
2011-03-02 02:04:24,7, modem1: Command is sent, waiting for the answer
2011-03-02 02:04:24,7, modem1: <- +CREG: 0,1 OK
2011-03-02 02:04:24,6, modem1: Modem is registered to the network
2011-03-02 02:04:24,6, modem1: Selecting PDU mode
2011-03-02 02:04:25,7, modem1: -> AT+CMGF=0
2011-03-02 02:04:25,7, modem1: Command is sent, waiting for the answer
Here is the revised smsd.conf
loglevel = 7
logfile = /var/log/sms/smstools.log
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
delaytime = 6
errorsleeptime = 12
blocktime = 180
autosplit = 3
receive_before_send = yes
# Modem configuration
# Motorola V3
[modem1]
#init =
device = /dev/ttyACM0
incoming = yes
smsc = +6392200001501
#pin =
baudrate = 19200
memory_start = 0
report_device_details = yes
check_memory_method = 31
loglevel_lac_ci = 8
Reduced baud to 19200 - will this make a difference?
Shall I revert back to loglevel 4 after this?
Again, thank you much for your help.
|
Tue Mar 01, 2011 06:41
|
mistahcute: Still Same error. here is what I generated via command line sending:
mistah@webserver:~$ sendsms
Destination(s): 09xxxxxxxxx
Text: this is a test message via line
--
Text: this is a test message
To: 09xxxxxxxxx
mktemp: failed to create file via template `/var/spool/sms/outgoing/send_XXXXXX': Permission denied
mv: missing destination file operand after `/tmp/smsd_CwV8pf'
Try `mv --help' for more information.
|
Tue Mar 01, 2011 03:08
|
mistahcute: Operating system name and version: Ubuntu Server 10.04.2 LTS
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: MotorolaV3 Razr
Interface: USB
Hi everyone / Keke
With indulgence, I am a newbie.
From above specs, I installed SMSTools (with Playsms) in my server to act as gateway for a GPS tracking webapp. We wanted to run the app using SMS as primiray mode instead of GPRS for some reason.
After moving around some posts I made some headway
here is smsd.conf
devices = modem1
loglevel = 4
logfile = /var/log/sms/smstools.log
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
delaytime = 6
errorsleeptime = 12
blocktime = 180
autosplit = 3
receive_before_send = yes
# Modem configuration
# Motorola V3
[modem1]
#init =
device = /dev/ttyACM0
incoming = yes
smsc = +xxxxxxxxxxxxx
#pin =
baudrate = 115200
report_device_details = yes
check_memory_method = 31
loglevel_lac_ci = 8
While the system apparently receives SMS, it can not seem to send, here is my smsd.log
2011-02-28 22:24:29,2, smsd: Smsd v3.1.14 started.
2011-02-28 22:24:29,2, smsd: Running as root:root.
2011-02-28 22:24:29,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2011-02-28 22:24:34,7, modem1: ## Start of device details
2011-02-28 22:24:34,7, modem1: # Manufacturer identification:
2011-02-28 22:24:34,7, modem1: -> AT+CGMI
2011-02-28 22:24:35,7, modem1: <- +CGMI: "Motorola CE, Copyright 2004"
OK
2011-02-28 22:24:35,7, modem1: # Model identification:
2011-02-28 22:24:35,7, modem1: -> AT+CGMM
2011-02-28 22:24:35,7, modem1: <- +CGMM: "GSM900","GSM1800","GSM1900","GSM850","MODEL=V3"
OK
2011-02-28 22:24:35,7, modem1: # Revision identification:
2011-02-28 22:24:35,7, modem1: -> AT+CGMR
2011-02-28 22:24:36,7, modem1: <- +CGMR: "R374_G_0E.42.07R_A"
OK
2011-02-28 22:24:36,7, modem1: # New message indications, list of supported modes:
2011-02-28 22:24:36,7, modem1: -> AT+CNMI=?
2011-02-28 22:24:36,7, modem1: <- +CNMI: (0,3),(0-2),(0),(0),(0)
OK
2011-02-28 22:24:36,7, modem1: # New message indications, current settings:
2011-02-28 22:24:36,7, modem1: -> AT+CNMI?
2011-02-28 22:24:37,7, modem1: <- +CNMI: 0,0,0,0,0
OK
2011-02-28 22:24:37,7, modem1: # Preferred message storage, list of supported mem's:
2011-02-28 22:24:37,7, modem1: -> AT+CPMS=?
2011-02-28 22:24:37,7, modem1: <- +CPMS: ("MT","IM","OM","BM","DM"),("OM","DM"),("IM")
OK
2011-02-28 22:24:37,7, modem1: # Phonebook storage, available mem's:
2011-02-28 22:24:37,7, modem1: -> AT+CPBS=?
2011-02-28 22:24:38,7, modem1: <- +CPBS: ("ME","SM","MT","ON","DC","MC","RC","AD","QD","F$
OK
2011-02-28 22:24:38,7, modem1: <- +CPBS: ("ME","SM","MT","ON","DC","MC","RC","AD","QD","F$
OK
2011-02-28 22:24:38,7, modem1: # List messages, list of supported stat's:
2011-02-28 22:24:38,7, modem1: -> AT+CMGL=?
2011-02-28 22:24:38,7, modem1: <- +CMGL: (0,1,2,3,4)
OK
2011-02-28 22:24:38,7, modem1: # Delete message, list of supported values:
2011-02-28 22:24:38,7, modem1: -> AT+CMGD=?
2011-02-28 22:24:39,7, modem1: <- +CME ERROR: 4
(operation not supported)
2011-02-28 22:24:39,7, modem1: # Phone activity status, list of supported stat's:
2011-02-28 22:24:39,7, modem1: -> AT+CPAS=?
2011-02-28 22:24:39,7, modem1: <- +CPAS: (0,2-4)
OK
2011-02-28 22:24:39,7, modem1: # TE character set, list of supported charset's:
2011-02-28 22:24:39,7, modem1: -> AT+CSCS=?
2011-02-28 22:24:40,7, modem1: <- +CSCS: ("8859-1","ASCII","GSM","UCS2","UTF8")
OK
2011-02-28 22:24:40,7, modem1: # TE character set, current setting:
2011-02-28 22:24:40,7, modem1: -> AT+CSCS?
2011-02-28 22:24:40,7, modem1: <- +CSCS: "ASCII"
OK
2011-02-28 22:24:40,7, modem1: ## End of device details
2011-02-28 23:25:30,3, modem1: CMGL PDU read failed with message 0, using CMGR.
2011-02-28 23:26:13,3, modem1: The modem answer was not OK: +CMS ERROR: 500 (Unknown erro$
2011-02-28 23:26:32,3, modem1: The modem answer was not OK: +CMS ERROR: 500 (Unknown erro$
2011-02-28 23:26:53,3, modem1: The modem answer was not OK: +CMS ERROR: 500 (Unknown erro$
2011-02-28 23:26:53,4, modem1: Sending SMS to 639238181777 failed, trying time 48 sec. Re$
2011-03-01 04:01:39,3, modem1: CMGL PDU read failed with message 0, using CMGR.
While making this receive is a major breakthru for the tracking webapp,we still need to get this to send. What have we done wrong?
One small note:
logfile = /var/log/sms/smstools.log
does not generate anything.
Any inputs are well appreciated. Please bear with the newbie. Thanks.
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|