|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Thu Mar 13, 2025 03:14 |
Login and Post Reply
Page: 1
Author |
Post |
|
#1 Fri Sep 29, 2023 07:29, 17 months ago.
|
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, 17 months ago. »
|
|
#2 Fri Sep 29, 2023 16:46, 17 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
|
|
#3 Fri Sep 29, 2023 18:54, 17 months ago.
|
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, 17 months ago. »
|
|
#4 Fri Sep 29, 2023 22:12, 17 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.
|
|
#5 Sat Sep 30, 2023 07:25, 17 months ago.
|
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
|
|
#6 Sun Oct 22, 2023 17:01, 16 months ago.
|
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
|
|
#7 Mon Oct 23, 2023 01:23, 16 months ago.
|
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
Time in this board is UTC.
|
|
|
 |
|
 |
|