Hanekawa: Operating system name and version: Xubuntu 16.04 LTS
Version of smsd: 3.1.15
Smsd installed from: distro repository
Name and model of a modem: Huawei E3531
Interface: USB: ttyUSB0, ttyUSB1, ttyUSB2
Firmware: E3531s-2EA 21.318.15.00.382,CH1E3531SM Ver.A
Hello everybody :-)
I am new here :-)
My Modem is a USB Surfstick and it works out of the box for internet connection.
But i want also be able to read and write SMS.
Here is my Config file:
#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
#
devices = E3531
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
loglevel = 7
#delaytime = 10
#errorsleeptime = 10
#blocktime = 3600
#stats = /var/log/smsd_stats
#stats_interval = 3600
#stats_no_zeroes = no
#checkhandler = /usr/local/bin/smscheck
receive_before_send = no
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
autosplit = 3
# store_received_pdu 0=no, 1=unsupported, 2=unsupported and 8bit, 3=all
#store_received_pdu = 1
#validity = 255
#decode_unicode_text = no
#internal_combine = no
# You can specify here an external program that is started whenever an alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value between 2 and 5.
# alarmlevel = 4
# eventhandler = @EVENTHANDLER@
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
#[queues]
# Commented lines are examples for germany
# D1 = /var/spool/sms/D1
# D2 = /var/spool/sms/D2
# O2 = /var/spool/sms/O2
# EPLUS = /var/spool/sms/EPLUS
# QUAM = /var/sppol/sms/QUAM
# MOBILCOM = /var/spool/sms/MOBILCOM
#OTHER = /var/spool/sms/OTHER
#[provider]
# Commented lines are examples for germany
# D1 = 49160, 49170, 49171, 49175, 49151
# D2 = 491520, 49162, 49172, 49173, 49174
# O2 = 49176, 49179, 49159
# EPLUS = 49163, 49177, 49178, 49157
# QUAM = 49150
# MOBILCOM = 49156
#OTHER = 0,1,2,3,4,5,6,7,8,9
#[GSM1]
# init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
# # Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0
# device = /dev/ttyS0
# incoming = yes
# queues = OTHER
# You don't need a PIN for mobile phones
# pin = 1111
# mode = new
# smsc = 491722270000
# baudrate = 19200
# rtscts = yes
# cs_convert = yes
# report = no
# memory_start = 1
# primary_memory = memory name
# secondary_memory = memory name
# secondary_memory_max = number
# pdu_from_file = /var/spool/sms/GSM1-PDU
# sending_disabled = no
# decode_unicode_text = no
# internal_combine = no
#
#[GSM2]
#init = ATE0
# Windows: /dev/com2, Solaris: /dev/cua/b, Linux /dev/ttyS1
#device = /dev/ttyS1
#incoming = yes
#queues = OTHER
#You don't need a PIN for mobile phones
#pin = 2222
#mode = new
#smsc = 491710760000
#baudrate = 19200
#rtscts = yes
#cs_convert = yes
#report = no
#memory_start = 1
#primary_memory = memory name
#secondary_memory = memory name
#secondary_memory_max = number
#pdu_from_file = /var/spool/sms/GSM2-PDU
#sending_disabled = no
#decode_unicode_text = no
#internal_combine = no
[E3531]
#init = AT+CPMS="SM";+CNMI=2,0,0,2,1
#init2 = AT^SYSCFG=2,2,3FFFFFFF,2,4
init = AT+CPMS="SM","ME","SM";+CNMI=2,0,0,2,1
init2 = AT^CURC=0
signal_quality_ber_ignore = yes
device = /dev/ttyUSB0
incoming = yes
baudrate = 19200
memory_start = 0
report_device_details = yes
report = yes
hangup_incoming_call = yes
rtscts = yes
cs_convert = yes
As you can see i have already tried some different init commands.
Here the fresh log file:
2018-11-18 15:30:37,2, smsd: Smsd v3.1.15 started.
2018-11-18 15:30:37,2, smsd: Running as smsd:dialout.
2018-11-18 15:30:38,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.zLOPkt /tmp/smsd_data.SWov2r
2018-11-18 15:30:38,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2018-11-18 15:30:38,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2018-11-18 15:30:38,5, smsd: Outgoing file checker has started. PID: 3093.
2018-11-18 15:30:38,7, smsd: All PID's: 3093,3094
2018-11-18 15:30:38,5, E3531: Modem handler 0 has started. PID: 3094.
2018-11-18 15:30:38,5, E3531: Using check_memory_method 1: CPMS is used.
2018-11-18 15:30:38,6, E3531: Checking device for incoming SMS
2018-11-18 15:30:38,6, E3531: Checking if modem is ready
2018-11-18 15:30:38,7, E3531: -> AT
2018-11-18 15:30:38,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:38,7, E3531: <- OK
2018-11-18 15:30:38,6, E3531: Pre-initializing modem
2018-11-18 15:30:38,7, E3531: -> ATE0+CMEE=1;+CREG=2
2018-11-18 15:30:38,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:39,7, E3531: <- OK
2018-11-18 15:30:39,6, E3531: Checking if modem needs PIN
2018-11-18 15:30:39,7, E3531: -> AT+CPIN?
2018-11-18 15:30:39,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:39,7, E3531: <- +CPIN: READY OK
2018-11-18 15:30:39,6, E3531: Initializing modem
2018-11-18 15:30:39,7, E3531: -> AT+CPMS="SM","ME","SM";+CNMI=2,0,0,2,1
2018-11-18 15:30:39,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:40,7, E3531: <- +CPMS: 1,10,0,20,1,10 OK
2018-11-18 15:30:40,7, E3531: -> AT^CURC=0
2018-11-18 15:30:40,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:40,7, E3531: <- OK
2018-11-18 15:30:41,7, E3531: -> AT+CSQ
2018-11-18 15:30:41,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:41,7, E3531: <- +CSQ: 8,99 OK
2018-11-18 15:30:41,6, E3531: Signal Strength Indicator: (8,99) -97 dBm (Marginal)
2018-11-18 15:30:41,6, E3531: Checking if Modem is registered to the network
2018-11-18 15:30:41,7, E3531: -> AT+CREG?
2018-11-18 15:30:41,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:41,7, E3531: <- +CREG: 2,0 OK
2018-11-18 15:30:41,5, E3531: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 1. TIME
2018-11-18 15:30:43,7, E3531: -> AT+CSQ
2018-11-18 15:30:43,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:43,7, E3531: <- +CSQ: 11,99 OK
2018-11-18 15:30:43,5, E3531: Signal Strength Indicator: (11,99) -91 dBm (Workable)
2018-11-18 15:30:43,7, E3531: -> AT+CREG?
2018-11-18 15:30:43,7, E3531: Command is sent, waiting for the answer
2018-11-18 15:30:43,7, E3531: <- +CREG: 2,0 OK
2018-11-18 15:30:43,5, E3531: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 2. TIME
Please give me some advice :-)
Thanks very much,
Hanekawa
|