Всем привет. Есть хост VMWare ESXi 5.1 на HP dl180g6 в нем стоит виртуальная Centos 6.4 x86_64. В гостевую ОС проброшен модем e171 от Мегафона. Модем не перепрошивался, используется как есть.
[root@centos-test-gw ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
[root@centos-test-gw ~]# dmesg | grep ttyUSB
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[root@centos-test-gw ~]# cat /etc/smsd.conf
devices = GSM1
smart_logging = yes
logfile = /var/log/smsd/smsd.log
loglevel = 5
infofile = /var/run/smsd/smsd.working
pidfile = /var/run/smsd/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
incoming_utf8 = yes
receive_before_send = no
autosplit = 3
decode_unicode_text = yes
[GSM1]
device = /dev/ttyUSB0
baudrate = 115200
check_memory_method = 31
memory_start = 0
init = at+cpms="sm","sm",""
incoming = yes
incoming = high
report = yes
send_delay = 5
eventhandler = /root/scripts/smshandler.sh
Модем используется только для отправки и приема СМС. Все отлично работает но время от времени модем самопроизвольно переподключается и встает на другой порт ttyUSB, может кто знает причину?
Aug 7 08:23:57 centos-test-gw kernel: usb 1-1: USB disconnect, device number 2
Aug 7 08:23:57 centos-test-gw kernel: option: option_instat_callback: error -108
Aug 7 08:23:57 centos-test-gw kernel: option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Aug 7 08:23:57 centos-test-gw kernel: option 1-1:1.0: device disconnected
Aug 7 08:23:57 centos-test-gw kernel: option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Aug 7 08:23:57 centos-test-gw kernel: option 1-1:1.1: device disconnected
Aug 7 08:23:57 centos-test-gw kernel: option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Aug 7 08:23:57 centos-test-gw kernel: option 1-1:1.2: device disconnected
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: new high speed USB device number 3 using ehci_hcd
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: New USB device found, idVendor=12d1, idProduct=1001
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: Product: HUAWEI Mobile
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: Manufacturer: HUAWEI Technology
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: configuration #1 chosen from 1 choice
Aug 7 08:24:04 centos-test-gw kernel: option 1-1:1.0: GSM modem (1-port) converter detected
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Aug 7 08:24:04 centos-test-gw kernel: option 1-1:1.1: GSM modem (1-port) converter detected
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Aug 7 08:24:04 centos-test-gw kernel: option 1-1:1.2: GSM modem (1-port) converter detected
Aug 7 08:24:04 centos-test-gw kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3