Temat: Raspberry Pi + smstools3 działa i nie działa

Panowie jak Wasze doświadczenia z działaniem smstools3? Czy jest szansa aby ten pakiet działał mi stabilnie po każdym restarcie i odbierał wiadomości bez chrzanienia się każdorazowo z konfiguracją? W moim przypadku pakiet zainstalowany wczoraj pomimo jakiś problemów widocznych w logach jeszcze rano pracował i odbierał wiadomości. Zostawiłem włączony na cały dzień - wieczoram ponowny test także bez problemu aż do czasu restartu.. Wiadomość wysłana o 23:00 po restarcie już nie dotarła. Sprawdzałem przed chwilą i to samo. Dodatkowo z jakiegoś dziwnego powodu folder "incoming" jest czyszczony po każdym restarcie (ten problem występował już wczoraj). Poniżej mój smsd.conf + logi. Zasilacz 2 amperowy więc wykluczam brak energii. Modem podpięty na przedłużaczu usb - sprawdzałem też wpinając bezpośrednio ale efekt w logu ten sam. Modem wg. 3ginfo zalogowany do sieci.

Dodam jeszcze tylko, że wcześniej instalowałem już ten pakiet, później usunąłem poprzez opkg remove + zainstalowałem ponownie. Czy jest szansa aby pozostały jakieś śmieci stąd te 2 procesy w logu? Jak to naprawić?

#
# Description: Main configuration file for the smsd
#

devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
incoming_utf8 = yes
logfile = /var/log/smsd.log
loglevel = 5
delaytime = 10
errorsleeptime = 10


[GSM1]
pre_init = yes
device = /dev/ttyUSB0
pin = ignore
baudrate = 115200
check_network = 2
check_memory_method = 2
primary_memory = SM
secondary_memory = SM
secondary_memory_max = 25
memory_start = 1
detect_unexpected_input = no
status_include_counters = no
status_signal_quality = no
#report_device_details = no
device_open_retries = -1
keep_open = no
mode = new
rtscts = no
incoming = yes
2021-08-20 06:43:47,2, smsd: Smsd v3.1.21 started.
2021-08-20 06:43:47,2, smsd: Running as root:root (0:0).
2021-08-20 06:43:47,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-20 06:43:47,5, smsd: Outgoing file checker has started. PID: 1132.
2021-08-20 06:43:47,5, GSM1: Modem handler 0 has started. PID: 1134.
2021-08-20 06:43:47,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-20 06:43:47,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-20 06:43:48,5, GSM1: IMEI: ***************
2021-08-20 06:43:48,5, GSM1: IMSI: ***************

2021-08-20 06:44:24,2, smsd: Smsd v3.1.21 started.
2021-08-20 06:44:24,2, smsd: Running as root:root (0:0).
2021-08-20 06:44:24,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-20 06:44:24,5, smsd: Outgoing file checker has started. PID: 1440.
2021-08-20 06:44:24,5, GSM1: Modem handler 0 has started. PID: 1441.
2021-08-20 06:44:24,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-20 06:44:24,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-20 06:44:25,5, GSM1: IMEI: ***************
2021-08-20 06:44:25,5, GSM1: IMSI: ***************

2021-08-20 06:44:29,2, smsd: Smsd v3.1.21 started.
2021-08-20 06:44:29,2, smsd: Running as root:root (0:0).
2021-08-20 06:44:29,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-20 06:44:29,5, smsd: Outgoing file checker has started. PID: 1728.
2021-08-20 06:44:29,5, GSM1: Modem handler 0 has started. PID: 1730.
2021-08-20 06:44:29,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-20 06:44:29,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-20 06:44:30,5, GSM1: IMEI: ***************
2021-08-20 06:44:30,5, GSM1: IMSI: ***************
2021-08-20 06:44:33,3, smsd: FATAL ERROR: Looks like another smsd (1728) is running. I (1132) quit now.
2021-08-20 06:44:33,2, GSM1: Modem handler 0 terminated. PID: 1134, was started 21-08-20 06:43:47, up 0 min.
2021-08-20 06:44:33,2, smsd: Smsd mainprocess terminated abnormally. PID: 1132, was started 21-08-20 06:43:47, up 0 min.
2021-08-20 06:44:34,3, smsd: FATAL ERROR: Looks like another smsd (1728) is running. I (1440) quit now.
2021-08-20 06:44:34,2, GSM1: Modem handler 0 terminated. PID: 1441, was started 21-08-20 06:44:24, up 0 min.
2021-08-20 06:44:34,2, smsd: Smsd mainprocess terminated abnormally. PID: 1440, was started 21-08-20 06:44:24, up 0 min.

2021-08-20 06:44:34,2, smsd: Smsd v3.1.21 started.
2021-08-20 06:44:34,2, smsd: Running as root:root (0:0).
2021-08-20 06:44:34,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-20 06:44:34,5, smsd: Outgoing file checker has started. PID: 2091.
2021-08-20 06:44:34,5, GSM1: Modem handler 0 has started. PID: 2093.
2021-08-20 06:44:34,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-20 06:44:34,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-20 06:44:35,5, GSM1: IMEI: ***************
2021-08-20 06:44:35,5, GSM1: IMSI: ***************
2021-08-20 06:44:39,3, smsd: FATAL ERROR: Looks like another smsd (2091) is running. I (1728) quit now.
2021-08-20 06:44:39,2, GSM1: Modem handler 0 terminated. PID: 1730, was started 21-08-20 06:44:29, up 0 min.
2021-08-20 06:44:39,2, smsd: Smsd mainprocess terminated abnormally. PID: 1728, was started 21-08-20 06:44:29, up 0 min.

2021-08-20 06:44:39,2, smsd: Smsd v3.1.21 started.
2021-08-20 06:44:39,2, smsd: Running as root:root (0:0).
2021-08-20 06:44:39,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-20 06:44:39,5, smsd: Outgoing file checker has started. PID: 2109.
2021-08-20 06:44:39,5, GSM1: Modem handler 0 has started. PID: 2110.
2021-08-20 06:44:39,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-20 06:44:39,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-20 06:44:40,5, GSM1: IMEI: ***************
2021-08-20 06:44:40,5, GSM1: IMSI: ***************
2021-08-20 06:44:44,3, smsd: FATAL ERROR: Looks like another smsd (2109) is running. I (2091) quit now.
2021-08-20 06:44:44,2, GSM1: Modem handler 0 terminated. PID: 2093, was started 21-08-20 06:44:34, up 0 min.
2021-08-20 06:44:44,2, smsd: Smsd mainprocess terminated abnormally. PID: 2091, was started 21-08-20 06:44:34, up 0 min.

2021-08-20 06:44:44,2, smsd: Smsd v3.1.21 started.
2021-08-20 06:44:44,2, smsd: Running as root:root (0:0).
2021-08-20 06:44:45,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-20 06:44:45,5, smsd: Outgoing file checker has started. PID: 2113.
2021-08-20 06:44:45,5, GSM1: Modem handler 0 has started. PID: 2114.
2021-08-20 06:44:45,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-20 06:44:45,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-20 06:44:45,5, GSM1: IMEI: ***************
2021-08-20 06:44:45,5, GSM1: IMSI: ***************
2021-08-20 06:44:49,3, smsd: FATAL ERROR: Looks like another smsd (2113) is running. I (2109) quit now.
2021-08-20 06:44:49,2, GSM1: Modem handler 0 terminated. PID: 2110, was started 21-08-20 06:44:39, up 0 min.
2021-08-20 06:44:49,2, smsd: Smsd mainprocess terminated abnormally. PID: 2109, was started 21-08-20 06:44:39, up 0 min.

Log z wczoraj - jak widać na końcu odbierał wiadomości.

2021-08-19 08:20:08,2, smsd: Smsd v3.1.21 started.
2021-08-19 08:20:08,2, smsd: Running as root:root (0:0).
2021-08-19 08:20:08,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-19 08:20:08,5, smsd: Outgoing file checker has started. PID: 1146.
2021-08-19 08:20:08,5, GSM1: Modem handler 0 has started. PID: 1147.
2021-08-19 08:20:08,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-19 08:20:08,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-19 08:20:09,5, GSM1: IMEI: ***************
2021-08-19 08:20:09,5, GSM1: IMSI: ***************
2021-08-19 08:22:06,2, smsd: Smsd v3.1.21 started.
2021-08-19 08:22:06,2, smsd: Running as root:root (0:0).
2021-08-19 08:22:06,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-19 08:22:06,5, smsd: Outgoing file checker has started. PID: 1453.
2021-08-19 08:22:06,5, GSM1: Modem handler 0 has started. PID: 1456.
2021-08-19 08:22:06,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-19 08:22:06,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-19 08:22:07,5, GSM1: IMEI: ***************
2021-08-19 08:22:07,5, GSM1: IMSI: ***************
2021-08-19 08:22:11,2, smsd: Smsd v3.1.21 started.
2021-08-19 08:22:11,2, smsd: Running as root:root (0:0).
2021-08-19 08:22:11,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-19 08:22:11,5, smsd: Outgoing file checker has started. PID: 1808.
2021-08-19 08:22:11,5, GSM1: Modem handler 0 has started. PID: 1809.
2021-08-19 08:22:11,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-19 08:22:11,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-19 08:22:12,5, GSM1: IMEI: ***************
2021-08-19 08:22:12,5, GSM1: IMSI: ***************
2021-08-19 08:22:15,3, smsd: FATAL ERROR: Looks like another smsd (1808) is running. I (1146) quit now.
2021-08-19 08:22:15,2, GSM1: Modem handler 0 terminated. PID: 1147, was started 21-08-19 08:20:08, up 2 min.
2021-08-19 08:22:15,2, smsd: Smsd mainprocess terminated abnormally. PID: 1146, was started 21-08-19 08:20:08, up 2 min.
2021-08-19 08:22:16,3, smsd: FATAL ERROR: Looks like another smsd (1808) is running. I (1453) quit now.
2021-08-19 08:22:16,2, GSM1: Modem handler 0 terminated. PID: 1456, was started 21-08-19 08:22:06, up 0 min.
2021-08-19 08:22:16,2, smsd: Smsd mainprocess terminated abnormally. PID: 1453, was started 21-08-19 08:22:06, up 0 min.
2021-08-19 08:22:16,2, smsd: Smsd v3.1.21 started.
2021-08-19 08:22:16,2, smsd: Running as root:root (0:0).
2021-08-19 08:22:16,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-19 08:22:16,5, smsd: Outgoing file checker has started. PID: 2070.
2021-08-19 08:22:16,5, GSM1: Modem handler 0 has started. PID: 2071.
2021-08-19 08:22:16,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-19 08:22:16,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-19 08:22:17,5, GSM1: IMEI: ***************
2021-08-19 08:22:17,5, GSM1: IMSI: ***************
2021-08-19 08:22:21,3, smsd: FATAL ERROR: Looks like another smsd (2070) is running. I (1808) quit now.
2021-08-19 08:22:21,2, GSM1: Modem handler 0 terminated. PID: 1809, was started 21-08-19 08:22:11, up 0 min.
2021-08-19 08:22:21,2, smsd: Smsd mainprocess terminated abnormally. PID: 1808, was started 21-08-19 08:22:11, up 0 min.
2021-08-19 08:22:21,2, smsd: Smsd v3.1.21 started.
2021-08-19 08:22:21,2, smsd: Running as root:root (0:0).
2021-08-19 08:22:21,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-19 08:22:21,5, smsd: Outgoing file checker has started. PID: 2074.
2021-08-19 08:22:21,5, GSM1: Modem handler 0 has started. PID: 2075.
2021-08-19 08:22:21,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-19 08:22:21,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-19 08:22:22,5, GSM1: IMEI: ***************
2021-08-19 08:22:22,5, GSM1: IMSI: ***************
2021-08-19 08:22:26,3, smsd: FATAL ERROR: Looks like another smsd (2074) is running. I (2070) quit now.
2021-08-19 08:22:26,2, GSM1: Modem handler 0 terminated. PID: 2071, was started 21-08-19 08:22:16, up 0 min.
2021-08-19 08:22:26,2, smsd: Smsd mainprocess terminated abnormally. PID: 2070, was started 21-08-19 08:22:16, up 0 min.
2021-08-19 08:22:26,2, smsd: Smsd v3.1.21 started.
2021-08-19 08:22:26,2, smsd: Running as root:root (0:0).
2021-08-19 08:22:26,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2021-08-19 08:22:26,5, smsd: Outgoing file checker has started. PID: 2078.
2021-08-19 08:22:26,5, GSM1: Modem handler 0 has started. PID: 2079.
2021-08-19 08:22:26,4, GSM1: Disabling dual memory handler because primary_memory and secondary_memory are both set to same "SM".
2021-08-19 08:22:26,5, GSM1: Using check_memory_method 2: CMGD is used.
2021-08-19 08:22:27,5, GSM1: IMEI: ***************
2021-08-19 08:22:27,5, GSM1: IMSI: ***************
2021-08-19 08:22:31,3, smsd: FATAL ERROR: Looks like another smsd (2078) is running. I (2074) quit now.
2021-08-19 08:22:31,2, GSM1: Modem handler 0 terminated. PID: 2075, was started 21-08-19 08:22:21, up 0 min.
2021-08-19 08:22:31,2, smsd: Smsd mainprocess terminated abnormally. PID: 2074, was started 21-08-19 08:22:21, up 0 min.
2021-08-19 08:34:15,5, GSM1: SMS received, From: ***********
2021-08-19 09:08:54,5, GSM1: SMS received, From: ***********
2021-08-19 20:52:14,5, GSM1: SMS received, From: ***********

2

Odp: Raspberry Pi + smstools3 działa i nie działa

Katalogi masz w pamięci ram, które giną po restarcie routera przecież. Przestaw konfig żeby były na usb czy na karcie sd.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Raspberry Pi + smstools3 działa i nie działa

Dzięki. Nie miałem świadomości, że katalog /var/ jest czyszczony po każdym restarcie.

Mam już drugi modem i chciałem przetestować działanie na dwóch. Przygotowałem odpowiedni config ale wychodzi na to, że standardowa kompilacja smstools3 nie obsługuje więcej niż jednego modemu bo mam taki błąd w logu:

smsd: There was 2 errors while reading the config file:
smsd: - Too many queues defined. Increase NUMBER_OF_MODEMS value in src/Makefile.
smsd: - Too many devices specified. Increase NUMBER_OF_MODEMS value in src/Makefile.

Wiesz może w jaki sposób podczas kompilacji trzeba zdefiniować to "NUMBER_OF_MODEMS" ?

4

Odp: Raspberry Pi + smstools3 działa i nie działa

W makefile pakietu jest TARGET_CFLAGS += -D NUMBER_OF_MODEMS=1. To musisz zmienić.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.