benoit_dupont: Hello,
I read the documentation but I'm not sure if the following configuration is possible with smsd.
I'd like to send some SMS with GSM1,GSM2, some others with GSM3, GSM4 and so on.
And I'd like to balance the number of SMS between the GSM.
So if I send 100 SMS through GSM1,GSM2 I'd like something like 50 SMS on GSM1 and 50 SMS on GSM2.
How can I edit the smsd.conf to reflect this configuration ?
Thanks
|
benoit_dupont: I found out it seems to work (sometimes) with this line.
init = AT+CNMI=1,2,2,1,0
But I have logs with the message "2021-05-04 13:37:27.283,3, GSM1: Saved routed status report for later handling. However, you MUST DISABLE status report routing with modem settings."
What do I have to change ?
|
benoit_dupont: Same error : "GSM2: Modem did not accept the init string"
[GSM2]
device = /dev/ttyACM1
report = yes
#uncomment these 3 lines if report yes
#using_routed_status_report = yes
#detect_message_routing = yes
routed_status_report_cnma = no
signal_quality_ber_ignore = yes
sending_disabled = no
memory_start = 0
send_delay = 0
check_network = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 60
#regular_run_cmd = AT+CSQ
regular_run_logfile = /var/ramlog/smsd_run_GSM2.log
regular_run_loglevel = 7
#init=AT
#init = at+cmms=2
pin = ignore
status_signal_quality = no
detect_unexpected_input = yes
pre_init = no
incoming = 2
mode = new
queues = ALL,GSM2
baudrate = 115200
rtscts = yes
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandlerGSM2
report_device_details = yes
init = AT+CNMI=2,1,0,1,0
|
benoit_dupont: I'm focusing on GSM2 so here is the conf and the log.
[GSM2]
device = /dev/ttyACM1
report = yes
#uncomment these 3 lines if report yes
#using_routed_status_report = yes
#detect_message_routing = yes
#routed_status_report_cnma = no
signal_quality_ber_ignore = yes
sending_disabled = no
memory_start = 0
send_delay = 0
check_network = 0
voicecall_hangup_ath = yes
hangup_incoming_call = yes
voicecall_ignore_modem_response = yes
regular_run_interval = 60
#regular_run_cmd = AT+CSQ
regular_run_logfile = /var/ramlog/smsd_run_GSM2.log
regular_run_loglevel = 7
#init=AT
#init = at+cmms=2
pin = ignore
status_signal_quality = no
detect_unexpected_input = yes
pre_init = no
incoming = 2
mode = new
queues = ALL,GSM2
baudrate = 115200
rtscts = yes
cs_convert = yes
decode_unicode_text = yes
internal_combine = yes
eventhandler = /etc/sms/scripts/eventhandlerGSM2
report_device_details = yes
2021-04-28 16:54:56.781,7, GSM2: ## Start of device details
2021-04-28 16:54:56.781,7, GSM2: # Manufacturer identification:
2021-04-28 16:54:56.882,7, GSM2: -> AT+CGMI
2021-04-28 16:54:56.942,7, GSM2: <- AT+CGMI
SIMCOM INCORPORATED
OK
2021-04-28 16:54:56.942,7, GSM2: # Model identification:
2021-04-28 16:54:57.042,7, GSM2: -> AT+CGMM
2021-04-28 16:54:57.083,7, GSM2: <- AT+CGMM
SIMCOM_SIM5360E
OK
2021-04-28 16:54:57.083,7, GSM2: # Revision identification:
2021-04-28 16:54:57.183,7, GSM2: -> AT+CGMR
2021-04-28 16:54:57.204,7, GSM2: <- AT+CGMR
+CGMR: 35316B12SIM5360E
OK
2021-04-28 16:54:57.204,7, GSM2: # New message indications, list of supported modes:
2021-04-28 16:54:57.304,7, GSM2: -> AT+CNMI=?
2021-04-28 16:54:57.324,7, GSM2: <- AT+CNMI=?
+CNMI: (0,1,2),(0,1,2,3),(0,2),(0,1,2),(0,1)
OK
2021-04-28 16:54:57.324,7, GSM2: # New message indications, current settings:
2021-04-28 16:54:57.425,7, GSM2: -> AT+CNMI?
2021-04-28 16:54:57.465,7, GSM2: <- AT+CNMI?
+CNMI: 2,1,0,0,0
OK
2021-04-28 16:54:57.465,7, GSM2: # Preferred message storage, list of supported mem's:
2021-04-28 16:54:57.565,7, GSM2: -> AT+CPMS=?
2021-04-28 16:54:57.606,7, GSM2: <- AT+CPMS=?
+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","SM")
OK
2021-04-28 16:54:57.606,7, GSM2: # Phonebook storage, available mem's:
2021-04-28 16:54:57.706,7, GSM2: -> AT+CPBS=?
2021-04-28 16:54:57.747,7, GSM2: <- AT+CPBS=?
+CPBS: ("SM","DC","FD","MC","ME","RC","EN","ON","SN")
OK
2021-04-28 16:54:57.747,7, GSM2: # List messages, list of supported stat's:
2021-04-28 16:54:57.847,7, GSM2: -> AT+CMGL=?
2021-04-28 16:54:57.868,7, GSM2: <- AT+CMGL=?
+CMGL: (0-4)
OK
2021-04-28 16:54:57.868,7, GSM2: # Delete message, list of supported values:
2021-04-28 16:54:57.968,7, GSM2: -> AT+CMGD=?
2021-04-28 16:54:57.988,7, GSM2: <- AT+CMGD=?
+CMGD: (),(0-4)
OK
2021-04-28 16:54:57.988,7, GSM2: # Phone activity status, list of supported stat's:
2021-04-28 16:54:58.088,7, GSM2: -> AT+CPAS=?
2021-04-28 16:54:58.129,7, GSM2: <- AT+CPAS=?
+CPAS: (0,3,4)
OK
2021-04-28 16:54:58.129,7, GSM2: # TE character set, list of supported charset's:
2021-04-28 16:54:58.229,7, GSM2: -> AT+CSCS=?
2021-04-28 16:54:58.270,7, GSM2: <- AT+CSCS=?
+CSCS: ("IRA","GSM","UCS2")
OK
2021-04-28 16:54:58.270,7, GSM2: # TE character set, current setting:
2021-04-28 16:54:58.370,7, GSM2: -> AT+CSCS?
2021-04-28 16:54:58.410,7, GSM2: <- AT+CSCS?
+CSCS: "IRA"
OK
2021-04-28 16:54:58.410,7, GSM2: ## End of device details
|