LinuxForum.Fans
Тема

И опять 3g модем (поиском ответа не нашел)

Автор: Weber-w 7 сообщений 3688 просмотров
#294410

Здравствуйте! Требуется помощь профессионалов!
Дано:
Ноутбук Acer Aspire 5733, на жесткий диск которого установлено две системы: Debian 6.0(kernel=2.6.32, kernel=3.2), Ubuntu 12.04 (kernel=3.2);
USB-3G модем HUAWEI E156g, который почему-то в системе определяется как Е220;
Действие:
При запуске Debian с ядром 2.6.32 модем прекрасно работает, сам определяется, виден в менеджере сети и запускается через pon provider,
А вот при запуске Debian с ядром 3.2 или Ubuntu с таким же ядром менеджер сети не видит модем, а команда pon provider возвращает

text
~$ pon provider
Failed to open /dev/ttyUSB0: Input/output error

Здесь на форуме чет не нашел такого номера, если плохо искал, то прошу тыкнуть носом :)
Вот некоторые параметры собранные при работе Ubuntu 12.04:

Показать
~$ id
uid=1000(weber) gid=1000(weber) группы=1000(weber),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare)
Показать
~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 04f2:b209 Chicony Electronics Co., Ltd
Bus 002 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
Bus 002 Device 004: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Показать
~$ lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
01:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)
02:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
Показать
~$ dmesg | grep HUAWEI
[ 5.620831] scsi 8:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
[ 5.623047] scsi 7:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2

Насколько я могу судить, то похоже, что ядро не так как-то определяет модем, подскажите куда копать и что пилить!

Если что еще нужно, готов предоставить.
Огромная просьба помочь.
Заранее благодарю за помощь и внимание.

#294435

usb_modeswitch установлен? Ещё покажи
[console]dmesg | grep usb
ls /dev/ttyUSB*[/console]

#294462
"Gnom" написал:
usb_modeswitch установлен?

Ага, а ещё — какая версия. Не знаю, как обстоит дело с указанными версиями ОС, а у меня обсуждении проблемы с модемом вскрылось то, что в стандартных репозиториях версия была устаревшая, после обновления пакета из дополнительного репозитория всё заработало.

Вся эпопея здесь, если что: http://linuxforum.ru/viewtopic.php?id=25703

#294480

usb_modeswitch установлен:

text
usb_modeswitch
 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.2.3 (C) Josua Dietze 2012
 * Based on libusb0 (0.1.12 and above)
text
~$ dmesg | grep usb
[    1.388283] usbcore: registered new interface driver usbfs
[    1.388294] usbcore: registered new interface driver hub
[    1.388321] usbcore: registered new device driver usb
[    3.301631] usbcore: registered new interface driver libusual
[    3.592875] usb 1-1: new high-speed USB device number 2 using ehci_hcd
[    3.836489] usb 2-1: new high-speed USB device number 2 using ehci_hcd
[    4.040252] usb 1-1.1: new high-speed USB device number 3 using ehci_hcd
[    4.323815] usb 1-1.2: new high-speed USB device number 4 using ehci_hcd
[    4.435532] usbcore: registered new interface driver uas
[    4.435577] usbcore: registered new interface driver usb-storage
[    4.454800] scsi4 : usb-storage 1-1.2:1.0
[    4.454948] usbcore: registered new interface driver ums-realtek
[    4.507471] usb 2-1.2: new full-speed USB device number 3 using ehci_hcd
[    4.619391] scsi7 : usb-storage 2-1.2:1.2
[    4.620355] scsi8 : usb-storage 2-1.2:1.3
[    4.691226] usb 2-1.3: new low-speed USB device number 4 using ehci_hcd
[    4.789620] usb 1-1.2: USB disconnect, device number 4
[    4.985763] input: Genius Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input5
[    4.986171] generic-usb 0003:0458:003A.0001: input,hidraw0: USB HID v1.11 Mouse [Genius Optical Mouse] on usb-0000:00:1d.0-1.3/input0
[    4.986218] usbcore: registered new interface driver usbhid
[    4.986223] usbhid: USB HID core driver
[   16.885616] input: WebCam as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input7
[   16.885712] usbcore: registered new interface driver uvcvideo
[   16.887586] usbcore: registered new interface driver usbserial
[   16.887640] usbcore: registered new interface driver usbserial_generic
[   16.887643] usbserial: USB Serial Driver core
[   16.948734] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   16.949115] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   16.949222] usbcore: registered new interface driver option
[   31.129667] usb 2-1.2: reset full-speed USB device number 3 using ehci_hcd
[   31.227316] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   31.228227] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   44.287030] usb 2-1.2: reset full-speed USB device number 3 using ehci_hcd
[   44.384767] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   44.385322] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   57.448288] usb 2-1.2: reset full-speed USB device number 3 using ehci_hcd
[   57.545846] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   57.546836] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   70.609549] usb 2-1.2: reset full-speed USB device number 3 using ehci_hcd
[   70.707154] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   70.707742] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   83.770910] usb 2-1.2: reset full-speed USB device number 3 using ehci_hcd
[   83.868575] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   83.868868] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   96.944049] usb 2-1.2: reset full-speed USB device number 3 using ehci_hcd
[   97.041728] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   97.042123] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
text
~$ ls /dev/ttyUSB*
/dev/ttyUSB0  /dev/ttyUSB1

И еще заметил вот такой плевок: (привожу только несколько последник строк)

text

~$ dmesg
...
[  189.081462] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  189.081482] option 2-1.2:1.1: device disconnected
[  189.165331] usb 2-1.2: reset full-speed USB device number 3 using ehci_hcd
[  189.262622] option 2-1.2:1.1: GSM modem (1-port) converter detected
[  189.262807] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[  189.262949] option 2-1.2:1.0: GSM modem (1-port) converter detected
[  189.263552] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[  196.488437] option: option_instat_callback: error -108
[  196.488613] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  196.488638] option 2-1.2:1.0: device disconnected
[  202.266631] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  202.266646] option 2-1.2:1.1: device disconnected
[  202.342426] usb 2-1.2: reset full-speed USB device number 3 using ehci_hcd
[  202.444340] option 2-1.2:1.1: GSM modem (1-port) converter detected
[  202.444551] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[  202.444747] option 2-1.2:1.0: GSM modem (1-port) converter detected
[  202.445643] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[  209.777591] option: option_instat_callback: error -108
[  209.777797] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  209.777844] option 2-1.2:1.0: device disconnected
[  218.446523] tty_ldisc_hangup: waiting (usb-storage) for ttyUSB0 took too long, but we keep waiting...

и такой плевок происходит циклически пока подключен модем.
ПИН-код с модема снят.

#294481
"gabix" написал:
Ага, а ещё — какая версия.

Возможно, но я не думаю, что в Ubuntu 12.04 версия ниже чем у Debian 6.0

#294563

Судя по выводам в tty1, говорящих об ошибке -108 при подключении модема и об ошибке -71 при отключении (Кстати, кто знает где взять расшифровки этих ошибок?), я понимаю что беда именно с ядром. Проблему удалось решить установкой ядра версии 3.5, поскольку я посчитал жестью запиливать ядро 2.6 (все же лучше двигаться по возрастающей).
Теперь при подключении модема вылазит ошибка прямо в иксах (типа: ошибка системной программы), после чего секунд через 20 появляется окно ввода ПИН-кода. После введения пина через 10 минут модем готов к работе.
Это конечно работает, но я думаю меня скоро задолбают такие танцы с бубном и я продолжу ковырять систему с целью улучшить подключение.
Огромное спасибо за сочувствие , помощь и подсказки!

#294593

И снова все вернулось на свои места: те же ошибки и отказ признаваться менеджером сети. Кстати, usb_modeswitch походу не учавствует в этом безпределе, так как его удаление никак не меняет обстановку.

Войдите или зарегистрируйтесь, чтобы ответить.