makky: Operating system name and version:
gentoo, kernel 3.11.4
Version of smsd:
3.1.15
Smsd installed from: sources / package repository / from elsewhere...
from repo app-mobilephone/smstools
Name and model of a modem / phone:
Bus 001 Device 005: ID 12d1:1c05 Huawei Technologies Co., Ltd. E173s 3G broadband stick (modem on)
Interface: serial / USB / some adapter...
usb-serial
[1028580.324680] usb 1-1: adding 1-1:1.2 (config #1, interface 2)
[1028580.324700] rndis_host 1-1:1.2: usb_probe_interface
[1028580.324702] rndis_host 1-1:1.2: usb_probe_interface - got id
[1028580.324715] option 1-1:1.2: usb_probe_interface
[1028580.324717] option 1-1:1.2: usb_probe_interface - got id
[1028580.324720] option 1-1:1.2: GSM modem (1-port) converter detected
[1028580.324753] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Hello. Sorry my english.
I have troubles with received sms messages. I want receive sms and forward it to jabber.
smsd.conf:
devices = E173
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smsd.log
infofile = /var/run/smsd.working
pidfile = /var/run/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/smsd_stats
loglevel = 7
receive_before_send = yes
autosplit = 3
[E173]
device = /dev/ttyUSB2
baudrate = 115200
rtscts = no
init = AT+CPMS="ME","ME","ME"
init2 = AT+CNMI=1,1,0,2
incoming = yes
send_delay = 20
report_device_details = yes
signal_quality_ber_ignore = yes
I trying same options, for example check_memory_method and memory_start. But i dont see sms. Log:
2013-11-05 21:11:32,2, smsd: Smsd v3.1.15 started.
2013-11-05 21:11:32,2, smsd: Running as smsd:sms.
2013-11-05 21:11:32,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.WGGoxV /tmp/smsd_data.X2VQ5n
2013-11-05 21:11:32,7, smsd: Done: startup_check (shell), execution time 0 sec., status: 0 (0)
2013-11-05 21:11:32,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2013-11-05 21:11:32,5, smsd: Outgoing file checker has started. PID: 485.
2013-11-05 21:11:32,7, smsd: All PID's: 485,486
2013-11-05 21:11:32,5, E173: Modem handler 0 has started. PID: 486.
2013-11-05 21:11:32,5, E173: Using check_memory_method 1: CPMS is used.
2013-11-05 21:11:32,6, E173: Checking device for incoming SMS
2013-11-05 21:11:32,6, E173: Checking if modem is ready
2013-11-05 21:11:32,7, E173: -> AT
2013-11-05 21:11:32,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:32,7, E173: <- OK
2013-11-05 21:11:32,6, E173: Pre-initializing modem
2013-11-05 21:11:33,7, E173: -> ATE0+CMEE=1;+CREG=2
2013-11-05 21:11:33,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:33,7, E173: <- OK
2013-11-05 21:11:33,6, E173: Checking if modem needs PIN
2013-11-05 21:11:33,7, E173: -> AT+CPIN?
2013-11-05 21:11:34,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:34,7, E173: <- +CPIN: READY OK
2013-11-05 21:11:34,6, E173: Initializing modem
2013-11-05 21:11:34,7, E173: -> AT+CPMS="ME","ME","ME"
2013-11-05 21:11:34,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:35,7, E173: <- +CPMS: 0,20,0,20,0,20 OK
2013-11-05 21:11:35,7, E173: -> AT+CNMI=1,1,0,2
2013-11-05 21:11:35,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:35,7, E173: <- OK
2013-11-05 21:11:36,7, E173: -> AT+CSQ
2013-11-05 21:11:36,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:36,7, E173: <- +CSQ: 31,99 OK
2013-11-05 21:11:36,6, E173: Signal Strength Indicator: (31,99) -51 dBm (Excellent)
2013-11-05 21:11:36,6, E173: Checking if Modem is registered to the network
2013-11-05 21:11:36,7, E173: -> AT+CREG?
2013-11-05 21:11:36,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:36,7, E173: <- +CREG: 2,1,"18C0","9999" OK
2013-11-05 21:11:36,6, E173: Modem is registered to the network
2013-11-05 21:11:36,6, E173: Location area code: 18C0, Cell ID: 9999
2013-11-05 21:11:37,7, E173: -> AT+CSQ
2013-11-05 21:11:37,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:37,7, E173: <- +CSQ: 31,99 OK
2013-11-05 21:11:37,6, E173: Signal Strength Indicator: (31,99) -51 dBm (Excellent)
2013-11-05 21:11:37,6, E173: Selecting PDU mode
2013-11-05 21:11:37,7, E173: -> AT+CMGF=0
2013-11-05 21:11:37,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:38,7, E173: <- OK
2013-11-05 21:11:38,7, E173: -> AT+CIMI
2013-11-05 21:11:38,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:38,7, E173: <- 250016385775980 OK
2013-11-05 21:11:38,7, E173: -> AT+CGSN
2013-11-05 21:11:39,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:39,7, E173: <- 865994012536304 OK
2013-11-05 21:11:39,5, E173: CGSN: 865994012536304
2013-11-05 21:11:39,5, E173: IMSI: 250016385775980
2013-11-05 21:11:39,6, E173: Checking if reading of messages is supported
2013-11-05 21:11:39,7, E173: -> AT+CPMS?
2013-11-05 21:11:39,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:39,7, E173: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2013-11-05 21:11:39,7, E173: ## Start of device details
2013-11-05 21:11:39,7, E173: # Manufacturer identification:
2013-11-05 21:11:39,7, E173: -> AT+CGMI
2013-11-05 21:11:40,7, E173: <- huawei
OK
2013-11-05 21:11:40,7, E173: # Model identification:
2013-11-05 21:11:40,7, E173: -> AT+CGMM
2013-11-05 21:11:40,7, E173: <- E303
OK
2013-11-05 21:11:40,7, E173: # Revision identification:
2013-11-05 21:11:41,7, E173: -> AT+CGMR
2013-11-05 21:11:41,7, E173: <- 22.157.59.00.00
OK
2013-11-05 21:11:41,7, E173: # New message indications, list of supported modes:
2013-11-05 21:11:41,7, E173: -> AT+CNMI=?
2013-11-05 21:11:42,7, E173: <- +CNMI: (0-2),(0-3),(0,2),(0-2),(0,1)
OK
2013-11-05 21:11:42,7, E173: # New message indications, current settings:
2013-11-05 21:11:42,7, E173: -> AT+CNMI?
2013-11-05 21:11:42,7, E173: <- +CNMI: 1,1,0,2,0
OK
2013-11-05 21:11:42,7, E173: # Preferred message storage, list of supported mem's:
2013-11-05 21:11:42,7, E173: -> AT+CPMS=?
2013-11-05 21:11:43,7, E173: <- +CPMS: ("SM","ME"),("SM","ME"),("SM","ME")
OK
2013-11-05 21:11:43,7, E173: # Phonebook storage, available mem's:
2013-11-05 21:11:43,7, E173: -> AT+CPBS=?
2013-11-05 21:11:43,7, E173: <- +CPBS: ("SM","EN","ON")
OK
2013-11-05 21:11:43,7, E173: # List messages, list of supported stat's:
2013-11-05 21:11:44,7, E173: -> AT+CMGL=?
2013-11-05 21:11:44,7, E173: <- +CMGL: (0-4)
OK
2013-11-05 21:11:44,7, E173: # Delete message, list of supported values:
2013-11-05 21:11:44,7, E173: -> AT+CMGD=?
2013-11-05 21:11:45,7, E173: <- +CMGD: (),(0-4)
OK
2013-11-05 21:11:45,7, E173: # Phone activity status, list of supported stat's:
2013-11-05 21:11:45,7, E173: -> AT+CPAS=?
2013-11-05 21:11:45,7, E173: <- +CPAS: (0-5)
OK
2013-11-05 21:11:45,7, E173: # TE character set, list of supported charset's:
2013-11-05 21:11:45,7, E173: -> AT+CSCS=?
2013-11-05 21:11:46,7, E173: <- +CSCS: ("IRA","UCS2","GSM")
OK
2013-11-05 21:11:46,7, E173: # TE character set, current setting:
2013-11-05 21:11:46,7, E173: -> AT+CSCS?
2013-11-05 21:11:46,7, E173: <- +CSCS: "GSM"
OK
2013-11-05 21:11:46,7, E173: ## End of device details
2013-11-05 21:11:46,6, E173: Checking memory size
2013-11-05 21:11:47,7, E173: -> AT+CPMS?
2013-11-05 21:11:47,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:47,7, E173: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2013-11-05 21:11:47,6, E173: Used memory is 0 of 20
2013-11-05 21:11:47,6, E173: No SMS received
2013-11-05 21:11:57,6, E173: Checking device for incoming SMS
2013-11-05 21:11:57,6, E173: Checking if modem is ready
2013-11-05 21:11:57,7, E173: -> AT
2013-11-05 21:11:57,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:57,7, E173: <- OK
2013-11-05 21:11:57,6, E173: Pre-initializing modem
2013-11-05 21:11:58,7, E173: -> ATE0+CMEE=1;+CREG=2
2013-11-05 21:11:58,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:58,7, E173: <- OK
2013-11-05 21:11:58,6, E173: Initializing modem
2013-11-05 21:11:58,7, E173: -> AT+CPMS="ME","ME","ME"
2013-11-05 21:11:59,7, E173: Command is sent, waiting for the answer
2013-11-05 21:11:59,7, E173: <- +CPMS: 0,20,0,20,0,20 OK
2013-11-05 21:11:59,7, E173: -> AT+CNMI=1,1,0,2
2013-11-05 21:12:00,7, E173: Command is sent, waiting for the answer
2013-11-05 21:12:00,7, E173: <- OK
2013-11-05 21:12:00,7, E173: -> AT+CSQ
2013-11-05 21:12:00,7, E173: Command is sent, waiting for the answer
2013-11-05 21:12:00,7, E173: <- +CSQ: 28,99 OK
2013-11-05 21:12:00,6, E173: Signal Strength Indicator: (28,99) -57 dBm (Excellent)
2013-11-05 21:12:00,6, E173: Checking if Modem is registered to the network
2013-11-05 21:12:01,7, E173: -> AT+CREG?
2013-11-05 21:12:01,7, E173: Command is sent, waiting for the answer
2013-11-05 21:12:01,7, E173: <- +CREG: 2,1,"18C0","9999" OK
2013-11-05 21:12:01,6, E173: Modem is registered to the network
2013-11-05 21:12:01,6, E173: Selecting PDU mode
2013-11-05 21:12:01,7, E173: -> AT+CMGF=0
2013-11-05 21:12:01,7, E173: Command is sent, waiting for the answer
2013-11-05 21:12:01,7, E173: <- OK
2013-11-05 21:12:01,6, E173: Checking memory size
I send sms to stick but no sms:
2013-11-05 21:13:48,7, E173: Command is sent, waiting for the answer
2013-11-05 21:13:48,7, E173: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2013-11-05 21:13:48,6, E173: Used memory is 0 of 20
2013-11-05 21:13:48,6, E173: No SMS received
I think that smsd read sms from wrong memory bank. This is assumption.
I tried use smsd without init-strings. I tried work with modem by minicom and modem answer on AT commands, but i havent take list of sms. However i saw that sms received in modem.
Send sms:
2013-11-05 21:17:00,6, E173: Checking device for incoming SMS
2013-11-05 21:17:00,6, E173: Checking if modem is ready
2013-11-05 21:17:00,7, E173: -> AT
2013-11-05 21:17:00,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:01,7, E173: <- OK
2013-11-05 21:17:01,6, E173: Pre-initializing modem
2013-11-05 21:17:01,7, E173: -> ATE0+CMEE=1;+CREG=2
2013-11-05 21:17:01,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:01,7, E173: <- OK
2013-11-05 21:17:01,6, E173: Initializing modem
2013-11-05 21:17:02,7, E173: -> AT+CPMS="ME","ME","ME"
2013-11-05 21:17:02,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:02,7, E173: <- +CPMS: 0,20,0,20,0,20 OK
2013-11-05 21:17:02,5, smsd: Moved file /var/spool/sms/outgoing/send_uJZ044 to /var/spool/sms/checked
2013-11-05 21:17:03,7, E173: -> AT+CNMI=1,1,0,2
2013-11-05 21:17:03,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:03,7, E173: <- OK
2013-11-05 21:17:03,7, E173: -> AT+CSQ
2013-11-05 21:17:03,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:04,7, E173: <- +CSQ: 30,99 OK
2013-11-05 21:17:04,6, E173: Signal Strength Indicator: (30,99) -53 dBm (Excellent)
2013-11-05 21:17:04,6, E173: Checking if Modem is registered to the network
2013-11-05 21:17:04,7, E173: -> AT+CREG?
2013-11-05 21:17:04,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:04,7, E173: <- +CREG: 2,1,"18C0","9999" OK
2013-11-05 21:17:04,6, E173: Modem is registered to the network
2013-11-05 21:17:04,6, E173: Selecting PDU mode
2013-11-05 21:17:04,7, E173: -> AT+CMGF=0
2013-11-05 21:17:05,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:05,7, E173: <- OK
2013-11-05 21:17:05,6, E173: Checking memory size
2013-11-05 21:17:05,7, E173: -> AT+CPMS?
2013-11-05 21:17:05,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:05,7, E173: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2013-11-05 21:17:05,6, E173: Used memory is 0 of 20
2013-11-05 21:17:05,6, E173: No SMS received
2013-11-05 21:17:06,6, E173: I have to send 1 short message for /var/spool/sms/checked/send_uJZ044
2013-11-05 21:17:06,6, E173: Checking device for incoming SMS
2013-11-05 21:17:06,6, E173: Checking if modem is ready
2013-11-05 21:17:06,7, E173: -> AT
2013-11-05 21:17:06,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:06,7, E173: <- OK
2013-11-05 21:17:06,6, E173: Pre-initializing modem
2013-11-05 21:17:06,7, E173: -> ATE0+CMEE=1;+CREG=2
2013-11-05 21:17:07,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:07,7, E173: <- OK
2013-11-05 21:17:07,6, E173: Initializing modem
2013-11-05 21:17:07,7, E173: -> AT+CPMS="ME","ME","ME"
2013-11-05 21:17:07,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:08,7, E173: <- +CPMS: 0,20,0,20,0,20 OK
2013-11-05 21:17:08,7, E173: -> AT+CNMI=1,1,0,2
2013-11-05 21:17:08,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:08,7, E173: <- OK
2013-11-05 21:17:09,7, E173: -> AT+CSQ
2013-11-05 21:17:09,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:09,7, E173: <- +CSQ: 31,99 OK
2013-11-05 21:17:09,6, E173: Signal Strength Indicator: (31,99) -51 dBm (Excellent)
2013-11-05 21:17:09,6, E173: Checking if Modem is registered to the network
2013-11-05 21:17:09,7, E173: -> AT+CREG?
2013-11-05 21:17:09,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:09,7, E173: <- +CREG: 2,1,"18C0","9999" OK
2013-11-05 21:17:09,6, E173: Modem is registered to the network
2013-11-05 21:17:09,6, E173: Selecting PDU mode
2013-11-05 21:17:10,7, E173: -> AT+CMGF=0
2013-11-05 21:17:10,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:10,7, E173: <- OK
2013-11-05 21:17:10,6, E173: Checking memory size
2013-11-05 21:17:10,7, E173: -> AT+CPMS?
2013-11-05 21:17:10,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:11,7, E173: <- +CPMS: "ME",0,20,"ME",0,20,"ME",0,20 OK
2013-11-05 21:17:11,6, E173: Used memory is 0 of 20
2013-11-05 21:17:11,6, E173: No SMS received
2013-11-05 21:17:11,6, E173: Sending SMS from to 7MYNUMBER
2013-11-05 21:17:11,6, E173: Checking if modem is ready
2013-11-05 21:17:11,7, E173: -> AT
2013-11-05 21:17:11,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:11,7, E173: <- OK
2013-11-05 21:17:11,6, E173: Pre-initializing modem
2013-11-05 21:17:11,7, E173: -> ATE0+CMEE=1;+CREG=2
2013-11-05 21:17:12,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:12,7, E173: <- OK
2013-11-05 21:17:12,6, E173: Initializing modem
2013-11-05 21:17:12,7, E173: -> AT+CPMS="ME","ME","ME"
2013-11-05 21:17:13,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:13,7, E173: <- +CPMS: 0,20,0,20,0,20 OK
2013-11-05 21:17:13,7, E173: -> AT+CNMI=1,1,0,2
2013-11-05 21:17:13,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:14,7, E173: <- OK
2013-11-05 21:17:14,7, E173: -> AT+CSQ
2013-11-05 21:17:14,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:14,7, E173: <- +CSQ: 31,99 OK
2013-11-05 21:17:14,6, E173: Signal Strength Indicator: (31,99) -51 dBm (Excellent)
2013-11-05 21:17:14,6, E173: Checking if Modem is registered to the network
2013-11-05 21:17:14,7, E173: -> AT+CREG?
2013-11-05 21:17:14,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:15,7, E173: <- +CREG: 2,1,"18C0","9999" OK
2013-11-05 21:17:15,6, E173: Modem is registered to the network
2013-11-05 21:17:15,6, E173: Selecting PDU mode
2013-11-05 21:17:15,7, E173: -> AT+CMGF=0
2013-11-05 21:17:15,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:15,7, E173: <- OK
2013-11-05 21:17:15,7, E173: -> AT+CMGS=25
2013-11-05 21:17:16,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:16,7, E173: <- >
2013-11-05 21:17:16,7, E173: -> "I change this"
2013-11-05 21:17:17,7, E173: Command is sent, waiting for the answer
2013-11-05 21:17:45,7, E173: <- +CMS ERROR: 500 (Unknown error)
2013-11-05 21:17:45,3, E173: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2013-11-05 21:17:45,5, E173: Waiting 10 sec. before retrying
Please, help me. I dont want buy another modem. )
thx!
|