SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sun May 19, 2024 20:29
SMSTools3 Community » Help and support Bottom

Status report after send Silent sms

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Sep 2023
Location: Maikop, Russian Federation
Operating system name and version: Windows10/Cygwin64
Version of smsd: 3.1.21
Smsd installed from: sources / package repository / from elsewhere...http://smstools3.kekekasvi.com/post.php?forum=3
Name and model of a modem / phone: Huawei E352
Interface: serial / USB / some adapter... -

I need your help, I'm not good at this. I want to send sms and get the status of the phone status (active or not). Help me set up sms.conf

My sms.conf
# Example smsd.conf. Read the manual for a description

devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
os_cygwin=yes
eventhandler_use_copy = yes
report_copy = /var/spool/sms/report/
sent_copy = /var/spool/sms/sent

[GSM1]
device = /dev/com4
incoming = yes
#pin = 1111
report = yes
 
'smsdconf' Syntax Highlight powered by GeSHi


Thank you very much
Adep


« Last edit by Adep on Fri Sep 29, 2023 07:31, 7 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
The Huawei modem needs this setting for the report to work:
init = AT+CPMS="SM","SM","SM";+CNMI=2,0,0,2,1

If some unexpected input is shown in the log, use this setting too:
init2 = AT^CURC=0

Member
Registered:
Sep 2023
Location: Maikop, Russian Federation
Topic owner
Thank you for your help. I did as you said, but no reports are created in the "report" folder.

# Example smsd.conf. Read the manual for a description

devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
os_cygwin=yes
eventhandler_use_copy = yes
report_copy = /var/spool/sms/report/
sent = /var/spool/sms/sent
sent_copy = /var/spool/sms/sent

[GSM1]
device = /dev/com10
incoming = yes
#pin = 1111
report = yes
memory_start = 0
init = AT+CPMS="SM","SM","SM";+CNMI=2,0,0,2,1
init2 = AT^CURC=0
primary_memory = ME
secondary_memory = SR
'smsdconf' Syntax Highlight powered by GeSHi




Addition. The incoming SMS stopped coming. I think that the memory of the sim is full, is there a command that cleans the memory.


« Last edit by Adep on Fri Sep 29, 2023 18:58, 7 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
To be clear, disable the dual memory handler (primary, secondary) at least at this point, as there seems to be no need for it.

The SIM card is full, but it is unclear why the modem gives an error when reading memory locations 0 and 1. You could try how the modem handles other ways of reading messages, see check_memory_method in the user manual and try, for example, the value 4.

It would also be useful to use the setting report_device_details = yes and show what the modem tells after rebooting smsd.

Member
Registered:
Sep 2023
Location: Maikop, Russian Federation
Topic owner
Did as you said
# Example smsd.conf. Read the manual for a description

devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
os_cygwin=yes
eventhandler_use_copy = yes
report_copy = /var/spool/sms/report/
sent = /var/spool/sms/sent
sent_copy = /var/spool/sms/sent

[GSM1]
device = /dev/com10
incoming = yes
#pin = 1111
report = yes
check_memory_method = 4
memory_start = 0
init = AT+CPMS="SM","SM","SM";+CNMI=2,0,0,2,1
init2 = AT^CURC=0
#primary_memory = ME
#secondary_memory = SR
report_device_details = yes
 
'smsdconf' Syntax Highlight powered by GeSHi


Log after starting SMSD



Log after sending


Member
Registered:
Sep 2023
Location: Maikop, Russian Federation
Topic owner
I did that, I was able to get a report. I attach the configuration file below.

devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
eventhandler_use_copy = yes
sent = /var/spool/sms/sent

[GSM1]
device = /dev/ttyUSB0
baudrate = 115200
incoming = high
#pin = 1111
report = yes
memory_start = 0
init = AT+CPMS="SM","SM","SM"
init2 = AT+CNMI=2,1,0,2,0
 
'smsdconf' Syntax Highlight powered by GeSHi


But there is one problem left, of all the operators in my country, one telecom operator does not provide a report.
I have not found a solution. I'm trying to solve the problem using two modems. But I couldn't figure out how to send a message via the right modem

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Adep wrote
... how to send a message via the right modem

You need to use queues. In the smsd.conf, define (for example):

devices = modem_1, modem_2

[queues]
ALL = /var/spool/sms/checked
modem_1 = /var/spool/sms/modem_1
modem_2 = /var/spool/sms/modem_2

[modem_1]
device = /dev/modems/modem_1
queues = modem_1, ALL

[modem_2]
device = /dev/modems/modem_2
queues = modem_2, ALL
 
'smsdconf' Syntax Highlight powered by GeSHi


With these kind of definitions you can select the queue in the message file, using Queue: modem_1 header, for example. If no Queue is defined, the modem which first picks up the message will send it.

The queue names do not have to be the same as the modem names, in the example they are just chosen for clarity.

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.