|
|
| SMS Server Tools 3 Community |
| Welcome, Guest. The forum is currently read-only, but will open soon. |
Sat Dec 13, 2025 03:41 |
Page: 1
| Keywords: Mode: All keywords (AND) |
|
Mon Feb 21, 2011 18:52
|
gugudl: It did work!!!
With this dual-memory setting now everythings is perfect!
I still have one last question:
How can I know which report is from which SMS? I mean, in the report's folder, there are many files with weird names and each file's report has been generated from a SMS. How can I know which report refers to which SMS?
it has something to do with the message_id?
sorry if I dont made myself clear.
thanks
|
|
Thu Feb 17, 2011 19:45
|
gugudl: I add check_memory_method = 31 and the error message disappear but the report folder remains empty. I tried the initialization init = AT+CPMS="SM","SM","SM" and got nothing.
here is the log when I send a SMS:
( PRIVATE BLOCK )
When I remove the check_memory_method = 31 from the config file, the error mention before start again.
any idea?
|
|
Thu Feb 17, 2011 14:29
|
gugudl: You can try a modem setting detect_unexpected_input = no, but it probably is not enough because those messages will be still included in the answers, and it's not a good situation.
I add detect_unexpected_input in modem setting and now the log is clean.
You said those kind of messages "+Zsomething" is not good. What should I do?
I changed the loglevel to 7 and now the log is like this:
( PRIVATE BLOCK )
I'll send a SMS and post here the log later because now I'm busy.
One last question: This modem should have initialization?
thanks
|
|
Tue Feb 15, 2011 19:30
|
gugudl: Operating system name and version: Debian lenny
Version of smsd: v3.1.11
Smsd installed from: sources
Name and model of a modem / phone: Onda MSA110up
Interface: USB
I bought a new modem. It sends and receive SMS.After some time, start appearing in the log: "Unexpected input: +ZUnsupport: 6; +ZEND +ZEND"
here is the log:
2011-02-15 16:46:24,2, smsd: Smsd v3.1.11 started.
2011-02-15 16:46:24,2, smsd: Running as smsd:dialout.
2011-02-15 16:46:24,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2011-02-15 16:46:55,3, GSM2: Unexpected input: +ZUnsupport: 6; +ZEND +ZEND
2011-02-15 16:47:53,3, GSM2: Unexpected input: +ZUnsupport: 6; +ZEND +ZEND
2011-02-15 16:49:01,3, GSM2: Unexpected input: +ZUnsupport: 6; +ZEND +ZEND
2011-02-15 16:49:58,3, GSM2: Unexpected input: +ZMTime: 5; +ZMTime: 5; +ZUnsupport: 6; +ZEND +ZEND
here is my config file:
devices = GSM2
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
report = /var/spool/sms/reports
date_filename = 2
receive_before_send = no
autosplit = 3
[GSM1]
device = /dev/modem
init = AT+CPMS="ME","ME","ME"
init2 = AT+CNMI=2,0,0,1,0
incoming = yes
baudrate = 115200
mode = new
cs_convert = yes
memory_start = 0
[GSM2]
device = /dev/gsmmodem
incoming = yes
baudrate = 115200
mode = new
cs_convert = yes
report = yes
I need some help to add the init line and to receive the reports.
AT+CPMS=?
+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")
AT+CNMI=?
+CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1)
AT+CNMI?
+CNMI: 3,1,0,2,0
detailed log:
2011-02-15 16:00:33,6, GSM2: Checking device for incoming SMS
2011-02-15 16:00:33,6, GSM2: Checking if modem is ready
2011-02-15 16:00:33,3, GSM2: Unexpected input: +ZUnsupport: 6; +ZEND +ZEND
2011-02-15 16:00:33,7, GSM2: -> AT
2011-02-15 16:00:33,7, GSM2: Command is sent, waiting for the answer
2011-02-15 16:00:33,7, GSM2: <- OK
2011-02-15 16:00:33,6, GSM2: Pre-initializing modem
2011-02-15 16:00:33,7, GSM2: -> ATE0+CMEE=1
2011-02-15 16:00:33,7, GSM2: Command is sent, waiting for the answer
2011-02-15 16:00:33,7, GSM2: <- OK
2011-02-15 16:00:34,7, GSM2: -> AT+CSQ
2011-02-15 16:00:34,7, GSM2: Command is sent, waiting for the answer
2011-02-15 16:00:34,7, GSM2: <- +CSQ: 24,99 OK
2011-02-15 16:00:34,6, GSM2: Signal Strength Indicator: (24,99) -65 dBm, Bit Error Rate: not known or not detectable
2011-02-15 16:00:34,6, GSM2: Checking if Modem is registered to the network
2011-02-15 16:00:34,7, GSM2: -> AT+CREG?
2011-02-15 16:00:34,7, GSM2: Command is sent, waiting for the answer
2011-02-15 16:00:34,7, GSM2: <- +CREG: 0,1 OK
2011-02-15 16:00:34,6, GSM2: Modem is registered to the network
2011-02-15 16:00:34,6, GSM2: Selecting PDU mode
2011-02-15 16:00:35,7, GSM2: -> AT+CMGF=0
2011-02-15 16:00:35,7, GSM2: Command is sent, waiting for the answer
2011-02-15 16:00:35,7, GSM2: <- OK
2011-02-15 16:00:35,6, GSM2: Checking memory size
2011-02-15 16:00:35,7, GSM2: -> AT+CPMS?
2011-02-15 16:00:35,7, GSM2: Command is sent, waiting for the answer
2011-02-15 16:00:35,7, GSM2: <- +CPMS: "ME",0,100,"ME",0,100,"ME",0,100 OK
2011-02-15 16:00:35,6, GSM2: Used memory is 0 of 100
2011-02-15 16:00:35,6, GSM2: No SMS received
sorry for my bad english
|
|
Thu Jul 15, 2010 19:01
|
gugudl: Thank you for helping!
God bless you!
|
|
Thu Jul 15, 2010 17:51
|
gugudl: Ok, there is no "SR" (status report) memory existing in your device.
That's mean I can't receive reports?
could this be happening because of some setting in the phone??
I sent again the SMS and after some minutes, the folder is still empty.
Any more idea?
thanks for your help!
|
|
Thu Jul 15, 2010 17:17
|
gugudl: - Stop the smsd if it's running.
- Start it in the communication mode: smsd -C GSM1
- Follow the instructions on screen.
- Type ATE1 (and Enter) to set "echo on".
- Type AT+CPMS=?
- Also type AT+CNMI=?
- and AT+CNMI?
Here are the results:
ATE1
OK
AT+CPMS = ?
+CPMS: (“ME”,”SM”),(“ME”,”SM”),(“ME”,”SM”)
OK
AT+CNMI=?
+CNMI: (2),(0,1,3),(0,2),(0,1),(0)
OK
AT+CNMI?
+CNMI: 2,0,0,0,0
OK
Next, use loglevel = 7 and modem setting init2=AT+CNMI=2,0,0,1,0 .
Restart the smsd and send a message (to the phone which is switched on). After sending, there should be line(s) containing "+CMT" in the log. Show the part of a log here. If necessary, you can protect it by using Private tags.
i did not find lines containing "+CMT".here is the log:
( PRIVATE BLOCK )
|
|
Thu Jul 15, 2010 14:26
|
gugudl: Operating system name and version: Debian lenny
Version of smsd: 3.1-2 + lenny1
Smsd installed from: package repository
Name and model of a modem / phone: sony ericsson c902
Interface: USB
Hi,
First of all, my english is not very good.So i'll try to explain my problem.
I have already a sms server running and its sending and receiving SMS.I have set report = yes in smsd.conf file and also in SMS header.But the report folder remains empty even after sending SMS.When I send a SMS to a turned off phone its message go to sent folder.Is that correct?
I have a nokia n95 8gb and when i send a SMS to a phone that is turned off, on the n95 screen appears "pending".If I turn on the phone, the status change from "pending" to "sent".I want to do the same thing in smsd but I don't know how.I need to know when I send a SMS to a client and his phone is turned off and he couldnt read it.
I have already set the permissions of the report folder the same of the others folder(incoming, outgoing, failed...)
here is my config file
#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
# Last changed: Wed Jul 7 16:21:32 BRT 2010
#
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/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
report = /var/spool/sms/reports
#delaytime = 10
#errorsleeptime = 10
#blocktime = 3600
#stats = /var/log/smsd_stats
#stats_interval = 3600
#stats_no_zeroes = no
#checkhandler = /usr/local/bin/smscheck
receive_before_send = no
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
autosplit = 3
# store_received_pdu 0=no, 1=unsupported, 2=unsupported and 8bit, 3=all
#store_received_pdu = 1
#validity = 255
#decode_unicode_text = no
#internal_combine = no
# You can specify here an external program that is started whenever an alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value between 2 and 5.
# alarmlevel = 4
# eventhandler = @EVENTHANDLER@
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
#[queues]
# Commented lines are examples for germany
# D1 = /var/spool/sms/D1
# D2 = /var/spool/sms/D2
# O2 = /var/spool/sms/O2
# EPLUS = /var/spool/sms/EPLUS
# QUAM = /var/sppol/sms/QUAM
# MOBILCOM = /var/spool/sms/MOBILCOM
#OTHER = /var/spool/sms/OTHER
#[provider]
# Commented lines are examples for germany
# D1 = 49160, 49170, 49171, 49175, 49151
# D2 = 491520, 49162, 49172, 49173, 49174
# O2 = 49176, 49179, 49159
# EPLUS = 49163, 49177, 49178, 49157
# QUAM = 49150
# MOBILCOM = 49156
#OTHER = 0,1,2,3,4,5,6,7,8,9
#[GSM1]
# init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
# # Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0
# device = /dev/ttyS0
# incoming = yes
# queues = OTHER
# You don't need a PIN for mobile phones
# pin = 1111
# mode = new
# smsc = 491722270000
# baudrate = 19200
# rtscts = yes
# cs_convert = yes
# report = no
# memory_start = 1
# primary_memory = memory name
# secondary_memory = memory name
# secondary_memory_max = number
# pdu_from_file = /var/spool/sms/GSM1-PDU
# sending_disabled = no
# decode_unicode_text = no
# internal_combine = no
#
#[GSM2]
#init = ATE0
# Windows: /dev/com2, Solaris: /dev/cua/b, Linux /dev/ttyS1
#device = /dev/ttyS1
#incoming = yes
#queues = OTHER
#You don't need a PIN for mobile phones
#pin = 2222
#mode = new
#smsc = 491710760000
#baudrate = 19200
#rtscts = yes
#cs_convert = yes
#report = no
#memory_start = 1
#primary_memory = memory name
#secondary_memory = memory name
#secondary_memory_max = number
#pdu_from_file = /var/spool/sms/GSM2-PDU
#sending_disabled = no
#decode_unicode_text = no
#internal_combine = no
[GSM1]
device = /dev/ttyACM1
init = AT+CPMS="ME","ME","ME"
report = yes
incoming = yes
#pin =
baudrate = 115200
mode = new
cs_convert = yes
thanks
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
|
 |
|