rmgomez44: Ubuntu 16.04 64Bits / Laptop Toshiba Satellite L455 :
Version: 3.1.15-1.2:
Smsd installed from: package repository via apt-get
Modem Huawei e353 [12d1:1506]:
Interface: USB
Hi guys, I need some help with the initialization command for my USB stick modem.
# lsusb
Bus 002 Device 023: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
My smsconf is almost unmodified , only changed the device.
# cat /etc/smsd.conf
[GSM1]
init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0
device = /dev/ttyUSB2
# incoming = yes
# queues = OTHER
# You don't need a PIN for mobile phones
# pin = 1111
# mode = new
# smsc = 491722270000
# baudrate = 115200
# 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
# dmesg
[283084.245300] usb 2-4: USB disconnect, device number 22
[283091.120031] usb 2-4: new high-speed USB device number 23 using ehci-pci
[283091.253290] usb 2-4: New USB device found, idVendor=12d1, idProduct=1506
[283091.253295] usb 2-4: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[283091.253298] usb 2-4: Product: HUAWEI Mobile
[283091.253300] usb 2-4: Manufacturer: HUAWEI
[283091.255161] option 2-4:1.0: GSM modem (1-port) converter detected
[283091.255272] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB0
[283091.279920] huawei_cdc_ncm 2-4:1.1: MAC-Address: {my dev MAC Addr}
[283091.279925] huawei_cdc_ncm 2-4:1.1: setting rx_max = 16384
[283091.280158] huawei_cdc_ncm 2-4:1.1: setting tx_max = 16384
[283091.280634] huawei_cdc_ncm 2-4:1.1: NDP will be placed at end of frame for this device.
[283091.282024] huawei_cdc_ncm 2-4:1.1: cdc-wdm0: USB WDM device
[283091.282290] huawei_cdc_ncm 2-4:1.1 wwan0: register 'huawei_cdc_ncm' at usb-0000:00:1d.7-4, Huawei CDC NCM device, {my de MAC Addr}
[283091.282365] option 2-4:1.2: GSM modem (1-port) converter detected
[283091.282946] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB1
[283091.283059] option 2-4:1.3: GSM modem (1-port) converter detected
[283091.283157] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB2
[283091.283242] usb-storage 2-4:1.4: USB Mass Storage device detected
[283091.288271] scsi host33: usb-storage 2-4:1.4
[283091.288462] usb-storage 2-4:1.5: USB Mass Storage device detected
[283091.288747] scsi host34: usb-storage 2-4:1.5
[283091.640273] huawei_cdc_ncm 2-4:1.1 wwx582c80139263: renamed from wwan0
[283092.288929] scsi 33:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[283092.288973] scsi 34:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
this is basically what I get from :
# cat /dev/ttyUSB2
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^SYSINFO:2,3,0,3,1,,3
OK
+CSQ: 18,99
OK
^RSSI: 15
^RSSI: 14
This is the logfile:
2016-09-04 07:35:06,2, smsd: Smsd v3.1.15 started.
2016-09-04 07:35:06,2, smsd: Running as smsd:dialout.
2016-09-04 07:35:07,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-04 07:35:07,3, GSM1: Couldn't open serial port /dev/ttyUSB0, error: No such file or directory, waiting 30 sec.
2016-09-04 07:35:37,3, GSM1: Cannot open serial port /dev/ttyUSB0, error: No such file or directory
2016-09-04 07:35:37,2, GSM1: Modem handler 0 terminated. PID: 16820, was started 16-09-04 07:35:07.
2016-09-04 19:18:02,2, smsd: Smsd v3.1.15 started.
2016-09-04 19:18:02,2, smsd: Running as root:root.
2016-09-04 19:18:02,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-04 19:18:08,3, smsd: FATAL ERROR: Looks like another smsd (20726) is running. I (16819) quit now.
2016-09-04 19:18:08,2, smsd: Smsd mainprocess terminated abnormally. PID: 16819.
2016-09-04 19:18:10,2, smsd: Smsd v3.1.15 started.
2016-09-04 19:18:10,2, smsd: Running as root:root.
2016-09-04 19:18:10,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-04 19:18:12,3, smsd: FATAL ERROR: Looks like another smsd (20732) is running. I (20726) quit now.
2016-09-04 19:18:12,2, smsd: Smsd mainprocess terminated abnormally. PID: 20726.
2016-09-04 19:18:12,2, GSM1: Failed to initialize modem GSM1. Stopping.
2016-09-04 19:18:12,2, GSM1: Modem handler 0 terminated. PID: 20727, was started 16-09-04 19:18:02.
2016-09-04 19:18:23,3, GSM1: Modem did not accept the init string
2016-09-04 19:18:23,2, GSM1: Failed to initialize modem GSM1. Stopping.
2016-09-04 19:18:23,2, GSM1: Modem handler 0 terminated. PID: 20733, was started 16-09-04 19:18:10.
2016-09-05 12:18:04,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 20732.
2016-09-05 12:18:04,2, smsd: Smsd mainprocess terminated. PID 20732, was started 16-09-04 19:18:10.
2016-09-05 12:18:05,2, smsd: Smsd v3.1.15 started.
2016-09-05 12:18:05,2, smsd: Running as smsd:dialout.
2016-09-05 12:18:05,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-05 12:18:18,3, GSM1: Modem did not accept the init string
2016-09-05 12:18:18,2, GSM1: Failed to initialize modem GSM1. Stopping.
2016-09-05 12:18:18,2, GSM1: Modem handler 0 terminated. PID: 24128, was started 16-09-05 12:18:05.
2016-09-05 15:49:03,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 24127.
2016-09-05 15:49:04,2, smsd: Smsd mainprocess terminated. PID 24127, was started 16-09-05 12:18:05.
2016-09-05 15:49:05,2, smsd: Smsd v3.1.15 started.
2016-09-05 15:49:05,2, smsd: Running as smsd:dialout.
2016-09-05 15:49:05,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-05 15:49:39,3, GSM1: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2016-09-05 15:50:24,3, GSM1: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2016-09-05 15:51:04,3, GSM1: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2016-09-05 15:51:04,4, GSM1: Sending SMS to 584144637143 failed, trying time 115 sec. Retries: 2.
2016-09-05 15:52:56,3, GSM1: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2016-09-05 15:53:40,3, GSM1: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2016-09-05 15:54:22,3, GSM1: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2016-09-05 15:54:22,4, GSM1: Sending SMS to 584144637143 failed, trying time 116 sec. Retries: 2.
2016-09-05 16:00:58,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 25948.
2016-09-05 16:00:58,2, GSM1: Modem handler 0 terminated. PID: 25949, was started 16-09-05 15:49:05.
2016-09-05 16:00:58,2, smsd: Smsd mainprocess terminated. PID 25948, was started 16-09-05 15:49:05.
2016-09-05 16:00:59,2, smsd: Smsd v3.1.15 started.
2016-09-05 16:00:59,2, smsd: Running as smsd:dialout.
2016-09-05 16:00:59,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-05 16:00:59,3, GSM1: Couldn't open serial port /dev/ttyUSB3, error: No such file or directory, waiting 30 sec.
2016-09-05 16:01:29,3, GSM1: Cannot open serial port /dev/ttyUSB3, error: No such file or directory
2016-09-05 16:01:29,2, GSM1: Modem handler 0 terminated. PID: 26061, was started 16-09-05 16:00:59.
2016-09-05 16:03:54,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 26060.
2016-09-05 16:03:54,2, smsd: Smsd mainprocess terminated. PID 26060, was started 16-09-05 16:00:59.
2016-09-05 16:03:55,2, smsd: Smsd v3.1.15 started.
2016-09-05 16:03:55,2, smsd: Running as smsd:dialout.
2016-09-05 16:03:55,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-05 16:03:55,3, GSM1: Couldn't open serial port /dev/ttyUSB2, error: Device or resource busy, waiting 30 sec.
2016-09-05 16:04:25,3, GSM1: Cannot open serial port /dev/ttyUSB2, error: Device or resource busy
2016-09-05 16:04:25,2, GSM1: Modem handler 0 terminated. PID: 26156, was started 16-09-05 16:03:55.
2016-09-05 16:05:46,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 26155.
2016-09-05 16:05:46,2, smsd: Smsd mainprocess terminated. PID 26155, was started 16-09-05 16:03:55.
2016-09-05 16:05:47,2, smsd: Smsd v3.1.15 started.
2016-09-05 16:05:47,2, smsd: Running as smsd:dialout.
2016-09-05 16:05:47,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-05 16:07:49,3, GSM1: Modem is not ready to answer commands (Timeouts: 0)
2016-09-05 16:07:49,2, GSM1: Failed to initialize modem GSM1. Stopping.
2016-09-05 16:07:49,2, GSM1: Modem handler 0 terminated. PID: 26220, was started 16-09-05 16:05:47.
2016-09-05 16:07:58,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 26219.
2016-09-05 16:07:58,2, smsd: Smsd mainprocess terminated. PID 26219, was started 16-09-05 16:05:47.
2016-09-05 16:07:59,2, smsd: Smsd v3.1.15 started.
2016-09-05 16:07:59,2, smsd: Running as smsd:dialout.
2016-09-05 16:07:59,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-05 16:10:00,3, GSM1: Modem is not ready to answer commands (Timeouts: 0)
2016-09-05 16:10:00,2, GSM1: Failed to initialize modem GSM1. Stopping.
2016-09-05 16:10:00,2, GSM1: Modem handler 0 terminated. PID: 26307, was started 16-09-05 16:07:59.
2016-09-05 16:35:07,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 26306.
2016-09-05 16:35:07,2, smsd: Smsd mainprocess terminated. PID 26306, was started 16-09-05 16:07:59.
2016-09-05 16:35:08,2, smsd: Smsd v3.1.15 started.
2016-09-05 16:35:08,2, smsd: Running as smsd:dialout.
2016-09-05 16:35:08,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-05 16:35:20,3, GSM1: Modem did not accept the init string
2016-09-05 16:35:20,2, GSM1: Failed to initialize modem GSM1. Stopping.
2016-09-05 16:35:20,2, GSM1: Modem handler 0 terminated. PID: 26713, was started 16-09-05 16:35:08.
2016-09-05 16:36:28,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 26712.
2016-09-05 16:36:28,2, smsd: Smsd mainprocess terminated. PID 26712, was started 16-09-05 16:35:08.
2016-09-05 17:24:42,2, smsd: Smsd v3.1.15 started.
2016-09-05 17:24:42,2, smsd: Running as smsd:dialout.
2016-09-05 17:24:42,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-05 17:24:42,3, GSM1: Couldn't open serial port /dev/ttyUSB2, error: Device or resource busy, waiting 30 sec.
2016-09-05 17:25:12,3, GSM1: Cannot open serial port /dev/ttyUSB2, error: Device or resource busy
2016-09-05 17:25:12,2, GSM1: Modem handler 0 terminated. PID: 27224, was started 16-09-05 17:24:42.
2016-09-05 18:35:01,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 27223.
2016-09-05 18:35:01,2, smsd: Smsd mainprocess terminated. PID 27223, was started 16-09-05 17:24:42.
2016-09-06 11:43:04,2, smsd: Smsd v3.1.15 started.
2016-09-06 11:43:04,2, smsd: Running as smsd:dialout.
2016-09-06 11:43:04,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-06 11:43:16,3, GSM1: Modem did not accept the init string
2016-09-06 11:43:16,2, GSM1: Failed to initialize modem GSM1. Stopping.
2016-09-06 11:43:16,2, GSM1: Modem handler 0 terminated. PID: 8023, was started 16-09-06 11:43:04.
2016-09-06 12:25:57,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 8022.
2016-09-06 12:25:57,2, smsd: Smsd mainprocess terminated. PID 8022, was started 16-09-06 11:43:04.
2016-09-06 12:25:58,2, smsd: Smsd v3.1.15 started.
2016-09-06 12:25:58,2, smsd: Running as smsd:dialout.
2016-09-06 12:25:58,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-06 12:25:58,3, GSM1: Couldn't open serial port /dev/ttyUSB2, error: Device or resource busy, waiting 30 sec.
2016-09-06 12:26:28,3, GSM1: Cannot open serial port /dev/ttyUSB2, error: Device or resource busy
2016-09-06 12:26:28,2, GSM1: Modem handler 0 terminated. PID: 8332, was started 16-09-06 12:25:58.
2016-09-06 12:29:18,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 8331.
2016-09-06 12:29:18,2, smsd: Smsd mainprocess terminated. PID 8331, was started 16-09-06 12:25:58.
2016-09-06 12:29:58,2, smsd: Smsd v3.1.15 started.
2016-09-06 12:29:58,2, smsd: Running as smsd:dialout.
2016-09-06 12:29:58,4, smsd: File mode creation mask: 022 (0644, rw-r--r--).
2016-09-06 12:29:58,3, GSM1: Couldn't open serial port /dev/ttyUSB2, error: Device or resource busy, waiting 30 sec.
2016-09-06 12:30:28,3, GSM1: Cannot open serial port /dev/ttyUSB2, error: Device or resource busy
2016-09-06 12:30:28,2, GSM1: Modem handler 0 terminated. PID: 8441, was started 16-09-06 12:29:58.
I thought it was a permissions thing but...
# ls /etc/init.d/smstools -la
-rwxr-xr-x 1 root root 4282 may 6 2015 /etc/init.d/smstools
Any advice??
|