sognenovski: Some progress…
Resolved the lost of connectivity issue by using Alarm handler to catch the termination signal and cron restarting the service.
Next, incoming SMS problem; I know this has been asked before, Keke any chance of a beta release of 3.1.23?
|
sognenovski: Sending SMS works with SMS Server Tools version 3.1.21. Incoming does NOT work. I believe it requires line feed <lf> according to the modem emulator log.
Further testing required once version 3.1.23 is released as parameter “crlf = yes†should be supported in smsd.conf.
The other point, should network connectivity be lost to the modem emulator, smsd service terminates with “Modem handler 0 (WLAN1) terminated while mainprocess is still running. Exited, status 127â€.
This is to be expected as smsd is unable communicate to the device. To overcome this cron script is necessary to monitor the service and restart if termination signal is received. – for now outside my scripting knowledge.
Here is the modem emulator log with SMS sent and received:
2018/04/22 08:53:40.833 - GSM modem gateway "GSM Modem Gateway WLAN" started.
2018/04/22 08:53:41.632 - IP connection to TCP/IP:192.168.0.100:10001 open.
2018/04/22 08:53:41.898 > AT<cr>
2018/04/22 08:53:41.915 < OK<cr><lf>
2018/04/22 08:53:41.937 > AT&F<cr>
2018/04/22 08:53:41.949 < OK<cr><lf>
2018/04/22 08:53:41.949 > ATE0<cr>
2018/04/22 08:53:41.961 < OK<cr><lf>
2018/04/22 08:53:41.961 > AT+CMEE=1<cr>
2018/04/22 08:53:41.972 < OK<cr><lf>
2018/04/22 08:53:41.972 > AT+CPIN?<cr>
2018/04/22 08:53:42.005 < +CPIN: READY<cr><lf>
2018/04/22 08:53:42.018 > AT+CGATT=0<cr>
2018/04/22 08:53:42.030 < ERROR<cr><lf>
2018/04/22 08:53:42.030 > AT+CGSMS=1<cr>
2018/04/22 08:53:42.042 < ERROR<cr><lf>
2018/04/22 08:53:42.042 > AT+CPMS=?<cr>
2018/04/22 08:53:42.054 < ERROR<cr><lf>
2018/04/22 08:53:42.054 > AT+CPMS?<cr>
2018/04/22 08:53:42.077 < +CPMS: "SM",0,20,"SM",0,20,"SM",0,20<cr><lf>
2018/04/22 08:53:42.088 < OK<cr><lf>
2018/04/22 08:53:42.088 > AT+CGMI<cr>
2018/04/22 08:53:42.100 < Diafaan communication software<cr><lf>
2018/04/22 08:53:42.111 < OK<cr><lf>
2018/04/22 08:53:42.111 > AT+CGMM<cr>
2018/04/22 08:53:42.123 < Samsung SM-G920I<cr><lf>
2018/04/22 08:53:42.134 < OK<cr><lf>
2018/04/22 08:53:42.134 > AT+CGMR<cr>
2018/04/22 08:53:42.190 < gsm_lte_1.0.0.0<cr><lf>
2018/04/22 08:53:42.201 < OK<cr><lf>
2018/04/22 08:53:42.201 > AT+CGSN<cr>
2018/04/22 08:53:42.213 < 358869765556788<cr><lf>
2018/04/22 08:53:42.224 < OK<cr><lf>
2018/04/22 08:53:42.224 > AT+CNUM<cr>
2018/04/22 08:53:42.258 < +CNUM: "Voice","+61491031085",145<cr><lf>
2018/04/22 08:53:42.272 < OK<cr><lf>
2018/04/22 08:53:42.272 > AT+CMGF=0<cr>
2018/04/22 08:53:42.284 < OK<cr><lf>
2018/04/22 08:53:42.284 > AT+CNMI=1,0,0,1<cr>
2018/04/22 08:53:42.296 < ERROR<cr><lf>
2018/04/22 08:53:42.296 > AT+CSCA?<cr>
2018/04/22 08:53:42.308 < +CSCA: "",145<cr><lf>
2018/04/22 08:53:42.319 < OK<cr><lf>
2018/04/22 08:53:42.319 > AT+COPS=3,2<cr>
2018/04/22 08:53:42.331 < OK<cr><lf>
2018/04/22 08:53:42.331 > AT+COPS?<cr>
2018/04/22 08:53:42.365 < +COPS: 0,2,"50501",2<cr><lf>
2018/04/22 08:53:42.378 < OK<cr><lf>
2018/04/22 08:53:42.378 > AT+COPS=3,0<cr>
2018/04/22 08:53:42.394 < OK<cr><lf>
2018/04/22 08:53:42.396 > AT+COPS?<cr>
2018/04/22 08:53:42.421 < +COPS: 0,0,"Telstra Mobile",2<cr><lf>
2018/04/22 08:53:42.432 < OK<cr><lf>
2018/04/22 08:53:42.432 > AT+CMMS=2<cr>
2018/04/22 08:53:42.443 < ERROR<cr><lf>
2018/04/22 08:53:42.443 > AT+CSQ<cr>
2018/04/22 08:53:42.454 < +CSQ: 31,99<cr><lf>
2018/04/22 08:53:42.465 < OK<cr><lf>
2018/04/22 08:53:42.465 > AT+CREG?<cr>
2018/04/22 08:53:42.476 < +CREG: 0,1<cr><lf>
2018/04/22 08:53:42.487 < OK<cr><lf>
2018/04/22 08:53:46.017 > AT+CMGL=4<cr>
2018/04/22 08:53:46.567 < OK<cr><lf>
2018/04/22 08:53:51.086 > AT+CMGL=4<cr>
2018/04/22 08:53:51.747 < OK<cr><lf>
2018/04/22 08:53:52.500 > AT+CSQ<cr>
2018/04/22 08:53:52.522 < +CSQ: 31,99<cr><lf>
2018/04/22 08:53:52.533 < OK<cr><lf>
2018/04/22 08:53:52.533 > AT+CREG?<cr>
2018/04/22 08:53:52.546 < +CREG: 0,1<cr><lf>
2018/04/22 08:53:52.558 < OK<cr><lf>
2018/04/22 08:53:56.323 > AT+CMGL=4<cr>
2018/04/22 08:53:56.940 < OK<cr><lf>
2018/04/22 08:53:57.473 > AT+CMGS=17<cr>
2018/04/22 08:53:57.925 < ><cr>
2018/04/22 08:53:57.925 > 07911614051105F1310403B095F00000AA07E2303BEC1E9701<sub>
2018/04/22 08:54:10.164 < +CMGS: 30<cr><lf>
2018/04/22 08:54:10.175 < OK<cr><lf>
2018/04/22 08:54:10.199 > AT+CMGL=4<cr>
2018/04/22 08:54:10.221 < OK<cr><lf>
2018/04/22 08:54:15.244 > AT+CMGL=4<cr>
2018/04/22 08:54:15.509 < OK<cr><lf>
2018/04/22 08:54:20.278 > AT+CMGL=4<cr>
2018/04/22 08:54:20.356 < OK<cr><lf>
2018/04/22 08:54:25.375 > AT+CMGL=4<cr>
2018/04/22 08:54:25.442 < +CMGL: 1,0,,164<cr><lf>
2018/04/22 08:54:25.455 < 07911614786007F0040B911664062121F30000814022803593043ED9775D0E1287D961F7B80C4ACF15D3641334A587E5F4B21C349697C969BA0E2480B9623010AA8C87A7E5E53908867BC1622F192C964B01<cr><lf>
2018/04/22 08:54:25.466 < OK<cr><lf>
2018/04/22 08:54:25.558 > AT+CMGD=1<cr>
2018/04/22 08:54:25.580 < OK<cr><lf>
2018/04/22 08:54:25.580 > AT+CMGL=4<cr>
2018/04/22 08:54:25.591 < OK<cr><lf>
2018/04/22 08:54:30.108 - IP connection closed.
2018/04/22 08:54:30.113 - GSM modem gateway "GSM Modem Gateway WLAN" stopped.
Here is my smsd.conf – remember, sending SMS is only supported.
Update the WLAN1 IP address and restart smsd service for changes to take effect.
# Example smsd.conf. Read the manual for a description
devices = WLAN1
logfile = /var/log/smsd/smsd.log
sent = /var/spool/sms/sent
failed = /var/spool/sms/failed
loglevel = 7
user = root
infofile = /var/run/smsd/smsd.working
pidfile = /var/run/smsd/smsd.pid
# 3.1.5 introduced smart logging
# once your configuration is OK, set log level lower (5 is good in most cases)
smart_logging = yes
[WLAN1]
device = @192.168.0.100:10001
init = ATE0
init2 = AT+CMEE=1
signal_quality_ber_ignore = yes
loglevel_lac_ci = 8
pre_init = no
status_signal_quality = no
#pin = 1111
# WLAN1 Incoming Setting
#incoming = yes
#memory_start = 0
#cmgl_value = 4
#check_memory_method = 4
#crlf = yes
I'm using SME Server 9.2 64 Bit VM (based on Centos 6) and have repackaged the RPM's to the lastest SMS Server Tools version 3.1.21.
Can share the RPM's if anyone is interested.
|