плагин полностью обнови и попробуй выполнить еще раз выполнить команду /etc/ppp/modemdial start
Вот после обновления плагина
Спойлер:
[root@stlinux]#/etc/ppp/modemdial start PPPD is offline. Trying to start ... Trying to switch: Huawei switch to Modem mode Trying find port after switching to modem mode:...[ OK ] Can't find usb modem [root@stlinux]#
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243123456780000000000000011060000000000000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice enabled (default) Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 004 on 001 skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors usb_os_find_devices: Found 001 on 001 error obtaining child information: No route to host Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1c05 found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in target mode or class found Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1c05 found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in default mode found. Nothing to do. Bye.
[root@stlinux]#
Ну я на сегодня всё завтра буду опять на связи. Пока.
artems, Покажи так /etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b
Настройки файла должны быть такие DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 MessageContent="55534243000000000000000000000011060000000100000000000000000000"
linky пересобрал плагин можно просто выполнить /etc/ppp/Start а лог выполнения команды будет в /tmp/log
Нет это не для этого!!! Плагин можно запускать из МЕНЮ ПЛАГИН Modemdial так же можно и остановить из МЕНЮ При старте Modemdial будет в папке /tmp/log (это все для тех кому лень телнет запускать) Как и ранее из телнет команда на старт /etc/ppp/modemdial start Команда на стоп /etc/ppp/modemdial stop У меня подозрение что нужно usb_modeswitch обновлять надеюсь Josh что нибудь подскажет.
У меня в папке usb_modeswitch.d файлы имеют имя вот такое 12d1_155b, а в папке switch вот такое 12d1:155b ?
Ну вот что имеем на последний пост:
Спойлер:
[root@stlinux]#/etc/ppp/modemdial start PPPD is offline. Trying to start ... Trying to switch: Huawei switch to Modem mode Trying find port after switching to modem mode:...[ OK ] Trying find port:...[ OK ] Starting pppd: Failed to open /dev/ttyUSB0: No such device
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice disabled Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 006 on 001 skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1506 found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found devices in target mode or class (1) Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1506 found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in default mode found. Nothing to do. Bye.
[root@stlinux]#/etc/ppp/modemdial start PPPD is offline. Trying to start ... Trying to switch: Huawei switch to Modem mode Trying find port after switching to modem mode:...[ OK ] Trying find port:...[ OK ] Starting pppd: Failed to open /dev/ttyUSB0: No such device
usb_modeswitch.d файлы имеют имя вот такое 12d1_155b
Что в нем покажи? И еще dmesg | tail -n40 после выполнения команды выше
Сейчас задача научиться переключать твой модем, что бы появилось ttyUSB0 и т.п. в dmesg Пока есть подозрение что то с драйверами, вечером пересобиру option.ko
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice disabled Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 003 on 001 skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1506 found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found devices in target mode or class (1) Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1506 found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in default mode found. Nothing to do. Bye.
[root@stlinux]#
[root@stlinux]#dmesg | tail -n40 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <6>usb 1-1: new high speed USB device using stm-ehci and address 2 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usb-storage <6>scsi0 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 2 <7>usb-storage: waiting for device to settle before scanning <4>[usb_probe_interface]drive name=usb-storage <6>scsi1 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 2 <7>usb-storage: waiting for device to settle before scanning <5>scsi 0:0:0:0: CD-ROM Mass Storage 2.31 PQ: 0 ANSI: 2 <5>scsi 1:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 1:0:0:0: [sda] Attached SCSI removable disk <6>warning: `vsftpd' uses 32-bit capabilities (legacy support in use) <6>usb 1-1: USB disconnect, address 2 <6>usb 1-1: new high speed USB device using stm-ehci and address 3 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usb-storage <6>scsi2 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 3 <7>usb-storage: waiting for device to settle before scanning <4>[usb_probe_interface]drive name=usb-storage <6>scsi3 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 3 <7>usb-storage: waiting for device to settle before scanning <5>scsi 2:0:0:0: CD-ROM Mass Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <5>scsi 3:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <5>sd 3:0:0:0: [sda] Attached SCSI removable disk [root@stlinux]#
В usb_modeswitch.d файлы имеют имя вот такое 12d1_155b и содержит вот
artems, Что то не могу понять, по логу переключалки, он говорит все уже переключено нечего переключать. Точно в меню плагин все отключено? Выдерни модем потом вруби покажи так /etc/ppp/usb_modeswitch -W -c /etc/ppp/switch/12d1:155b и потом опять выдерни и вруби /etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice enabled (default) Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 004 on 001 usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in target mode or class found Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found device in default mode, class or configuration (1) Accessing device 004 on bus 001 ... Getting the current device configuration ... OK, got current device configuration (1) Using interface number 0 Using endpoints 0x01 (out) and 0x81 (in) Inquiring device details; driver will be detached ... Looking for active driver ... OK, driver found ("usb-storage") OK, driver "usb-storage" detached
SCSI inquiry data (for identification) ------------------------- Vendor String: Model String: Mass Storage Revision String: 2.31 -------------------------
USB description data (for identification) ------------------------- Manufacturer: Product: Mobile Connect Serial No.: not provided ------------------------- Setting up communication with interface 0 Using endpoint 0x01 for message sending ... Trying to send message 1 to endpoint 0x01 ... OK, message successfully sent Resetting response endpoint 0x81 USB error: could not clear/halt ep 129: No such device Could not reset endpoint (probably harmless): -19 Resetting message endpoint 0x01 USB error: could not clear/halt ep 1: No such device Could not reset endpoint (probably harmless): -19 USB error: could not release intf 0: No such device Device is gone, skipping any further commands -> Run lsusb to note any changes. Bye.
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice disabled Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 006 on 001 usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in target mode or class found Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found device in default mode, class or configuration (1) Accessing device 006 on bus 001 ... Getting the current device configuration ... OK, got current device configuration (1) Using interface number 0 Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification) ------------------------- Manufacturer: Product: Mobile Connect Serial No.: not provided ------------------------- Looking for active driver ... OK, driver found ("usb-storage") OK, driver "usb-storage" detached Setting up communication with interface 0 Using endpoint 0x01 for message sending ... Trying to send message 1 to endpoint 0x01 ... USB error: error reaping URB: No such device Device seems to have vanished right after sending. Good. Device is gone, skipping any further commands -> Run lsusb to note any changes. Bye.
[root@stlinux]#
[root@stlinux]#
Может перевести в только модем? А вот тут может ,что полезного в тему?
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice disabled Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 006 on 001 usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in target mode or class found Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found device in default mode, class or configuration (1) Accessing device 006 on bus 001 ... Getting the current device configuration ... OK, got current device configuration (1) Using interface number 0 Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification) ------------------------- Manufacturer: Product: Mobile Connect Serial No.: not provided ------------------------- Looking for active driver ... OK, driver found ("usb-storage") OK, driver "usb-storage" detached Setting up communication with interface 0 Using endpoint 0x01 for message sending ... Trying to send message 1 to endpoint 0x01 ... OK, message successfully sent Resetting response endpoint 0x81 USB error: could not clear/halt ep 129: Protocol error Could not reset endpoint (probably harmless): -71 Resetting message endpoint 0x01 USB error: could not clear/halt ep 1: No such device Could not reset endpoint (probably harmless): -19 USB error: could not release intf 0: No such device Device is gone, skipping any further commands -> Run lsusb to note any changes. Bye.
[root@stlinux]#
[root@stlinux]#dmesg | tail -n40 <5>scsi 7:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 7:0:0:0: [sda] Attached SCSI removable disk <6>usb 1-1: USB disconnect, address 5 <6>usb 1-1: new high speed USB device using stm-ehci and address 6 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usb-storage <6>scsi8 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 6 <7>usb-storage: waiting for device to settle before scanning <4>[usb_probe_interface]drive name=usb-storage <6>scsi9 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 6 <7>usb-storage: waiting for device to settle before scanning <5>scsi 8:0:0:0: CD-ROM Mass Storage 2.31 PQ: 0 ANSI: 2 <5>scsi 9:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 9:0:0:0: [sda] Attached SCSI removable disk <6>usb 1-1: USB disconnect, address 6 <6>usb 1-1: new high speed USB device using stm-ehci and address 7 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usb-storage <6>scsi10 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 7 <7>usb-storage: waiting for device to settle before scanning <4>[usb_probe_interface]drive name=usb-storage <6>scsi11 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 7 <7>usb-storage: waiting for device to settle before scanning <5>scsi 10:0:0:0: CD-ROM Mass Storage 2.31 PQ: 0 ANSI: 2 <5>scsi 11:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 11:0:0:0: [sda] Attached SCSI removable disk [root@stlinux]#
Это когда переключил модем в только модем вставил в рес и выполнил команды [root@stlinux]#/etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b
Спойлер:
Reading config file: /etc/ppp/switch/12d1:155b
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice disabled Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 008 on 001 usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in target mode or class found Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:155b found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found device in default mode, class or configuration (1) Accessing device 008 on bus 001 ... Getting the current device configuration ... OK, got current device configuration (1) Using interface number 0 Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification) ------------------------- Manufacturer: Product: Mobile Connect Serial No.: not provided ------------------------- Looking for active driver ... OK, driver found ("usb-storage") OK, driver "usb-storage" detached Setting up communication with interface 0 Using endpoint 0x01 for message sending ... Trying to send message 1 to endpoint 0x01 ... OK, message successfully sent Resetting response endpoint 0x81 USB error: could not clear/halt ep 129: No such device Could not reset endpoint (probably harmless): -19 Resetting message endpoint 0x01 USB error: could not clear/halt ep 1: No such device Could not reset endpoint (probably harmless): -19 USB error: could not release intf 0: No such device Device is gone, skipping any further commands -> Run lsusb to note any changes. Bye.
[root@stlinux]# [root@stlinux]#dmesg | tail -n40 <5>scsi 11:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 11:0:0:0: [sda] Attached SCSI removable disk <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <6>usb 1-1: USB disconnect, address 7 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <6>usb 1-1: new high speed USB device using stm-ehci and address 8 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usb-storage <6>scsi12 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 8 <7>usb-storage: waiting for device to settle before scanning <4>[usb_probe_interface]drive name=usb-storage <6>scsi13 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 8 <7>usb-storage: waiting for device to settle before scanning <5>scsi 12:0:0:0: CD-ROM Mass Storage 2.31 PQ: 0 ANSI: 2 <5>scsi 13:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 13:0:0:0: [sda] Attached SCSI removable disk <6>usb 1-1: USB disconnect, address 8 <6>usb 1-1: new high speed USB device using stm-ehci and address 9 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 [root@stlinux]# [root@stlinux]#
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice disabled Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 009 on 001 skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1506 found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found devices in target mode or class (1) Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1506 found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in default mode found. Nothing to do. Bye.
[root@stlinux]#dmesg | tail -n40 <5>scsi 11:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 11:0:0:0: [sda] Attached SCSI removable disk <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <6>usb 1-1: USB disconnect, address 7 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <6>usb 1-1: new high speed USB device using stm-ehci and address 8 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usb-storage <6>scsi12 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 8 <7>usb-storage: waiting for device to settle before scanning <4>[usb_probe_interface]drive name=usb-storage <6>scsi13 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 8 <7>usb-storage: waiting for device to settle before scanning <5>scsi 12:0:0:0: CD-ROM Mass Storage 2.31 PQ: 0 ANSI: 2 <5>scsi 13:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 13:0:0:0: [sda] Attached SCSI removable disk <6>usb 1-1: USB disconnect, address 8 <6>usb 1-1: new high speed USB device using stm-ehci and address 9 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 [root@stlinux]#
* usb_modeswitch: handle USB devices with multiple modes * Version 1.2.4 (C) Josua Dietze 2012 * Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1 DefaultProduct= 0x155b TargetVendor= 0x12d1 TargetProduct= 0x1506 TargetClass= not set TargetProductList=""
DetachStorageOnly=0 HuaweiMode=0 SierraMode=0 SonyMode=0 QisdaMode=0 GCTMode=0 KobilMode=0 SequansMode=0 MobileActionMode=0 CiscoMode=0 MessageEndpoint= not set MessageContent="55534243000000000000000000000011060000000100000000000000000000" NeedResponse=0 ResponseEndpoint= not set
InquireDevice disabled Success check disabled System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on) usb_os_find_busses: Found 002 usb_os_find_busses: Found 001 usb_os_find_busses: Skipping non bus directory devices usb_os_find_devices: Found 001 on 002 usb_os_find_devices: Found 009 on 001 skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors skipped 4 class/vendor specific interface descriptors usb_os_find_devices: Found 001 on 001 error obtaining child information: Inappropriate ioctl for device Looking for target devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1506 found matching vendor ID found matching product ID adding device searching devices, found USB ID 1d6b:0002 Found devices in target mode or class (1) Looking for default devices ... searching devices, found USB ID 1d6b:0001 searching devices, found USB ID 12d1:1506 found matching vendor ID searching devices, found USB ID 1d6b:0002 No devices in default mode found. Nothing to do. Bye.
[root@stlinux]#dmesg | tail -n40 <5>scsi 11:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 11:0:0:0: [sda] Attached SCSI removable disk <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <6>usb 1-1: USB disconnect, address 7 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <6>usb 1-1: new high speed USB device using stm-ehci and address 8 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usb-storage <6>scsi12 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 8 <7>usb-storage: waiting for device to settle before scanning <4>[usb_probe_interface]drive name=usb-storage <6>scsi13 : SCSI emulation for USB Mass Storage devices <7>usb-storage: device found at 8 <7>usb-storage: waiting for device to settle before scanning <5>scsi 12:0:0:0: CD-ROM Mass Storage 2.31 PQ: 0 ANSI: 2 <5>scsi 13:0:0:0: Direct-Access SD Storage 2.31 PQ: 0 ANSI: 2 <7>usb-storage: device scan complete <7>usb-storage: device scan complete <5>sd 13:0:0:0: [sda] Attached SCSI removable disk <6>usb 1-1: USB disconnect, address 8 <6>usb 1-1: new high speed USB device using stm-ehci and address 9 <6>usb 1-1: configuration #1 chosen from 1 choice <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>[usb_probe_interface]drive name=usbserial_generic <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 <4>save exit: isCheckpointed 1 [root@stlinux]#
[root@stlinux]#
И вот ещё
[root@stlinux]#/etc/ppp/modemdial start PPPD is offline. Trying to start ... Trying to switch: Huawei switch to Modem mode Trying find port after switching to modem mode:................................. ....................................................................[ OK ] Trying find port:............................................................... ......................................[ OK ] Starting pppd: Failed to open /dev/ttyUSB0: No such device
Тут вот ещё про это ......Так же модем может определяться вовсе не как ttyUSB а как ttyU0, как было в моем случае. У меня ни в какую не определось устройство как ttyUSB чтобы я ни делал. Отрубал устройства в модеме посредством AT команд, устанавливал и по разному конфигурировал usb_modeswitch перечитал все форумы данной тематики, но результата не было. Тогда я попробывал в datacard.conf вместо ttyUSB прописать устройство ttyU0 В итоге все в таком виде заработало. Может это кому то поможет разобраться быстрее, у меня например ушло на все эксперименты около двух недель, так как во всех статьях написано что модем должен быть как ttyUSB и не находя такого девайса я считал что у меня что то криво встало или что я что то сделал не так, а оказалось вот как=) Удачи! FreeBSD 8.1 Asterisk 1.6.23 Huawei e1550(megafon)(с разлоченным голосом и отвязанный от оператора) chan_datacard(Не могу сейчас посмотреть версию,сорри)