07 июля | 2024г. | 16:18:12


АвторТема: Настройка интернет через CDMA модемы  (Прочитано 339261 раз)

0 Пользователей и 6 Гостей смотрят эту тему.

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
плагин полностью обнови и попробуй выполнить еще раз выполнить команду
/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]#

Может перевести в режим только модем ?

[root@stlinux]#/etc/ppp/usb_modeswitch -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="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]#

Ну я на сегодня всё  :-\  завтра буду опять на связи. Пока.




Оффлайн linkyАвтор темы

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
Покажи так
/etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b

Настройки файла должны быть такие
DefaultVendor=  0x12d1
DefaultProduct= 0x155b
TargetVendor=   0x12d1
TargetProduct=  0x1506
MessageContent="55534243000000000000000000000011060000000100000000000000000000"


/etc/ppp/modemdial start

linky пересобрал плагин
можно просто выполнить /etc/ppp/Start
а лог выполнения команды будет в /tmp/log
Нет это не для этого!!!
Плагин можно запускать из МЕНЮ ПЛАГИН Modemdial так же можно и остановить из МЕНЮ
При старте Modemdial будет в папке /tmp/log (это все для тех кому лень телнет запускать)
Как и ранее из телнет команда на старт
/etc/ppp/modemdial start
Команда на стоп
/etc/ppp/modemdial stop
У меня подозрение что нужно usb_modeswitch обновлять надеюсь
Josh что нибудь подскажет.


Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
У меня в папке 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


[root@stlinux]#/etc/ppp/modemdial stop
 PPPD already stop.
[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 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]#

Оффлайн linkyАвтор темы

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
[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


[root@stlinux]#/etc/ppp/modemdial stop
 PPPD already stop.
[root@stlinux]#
Перегрузи рес выруби Modemdial из меню плагина modemdial start не выполняй
На перегруженном ресе выполни только
/etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b



Оффлайн linkyАвтор темы

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
usb_modeswitch.d файлы имеют имя вот такое 12d1_155b
Что в нем покажи?
И еще dmesg | tail -n40 после выполнения команды выше

Сейчас задача научиться переключать твой модем, что бы появилось ttyUSB0 и т.п. в dmesg
Пока есть подозрение что то с драйверами, вечером пересобиру option.ko

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Спойлер   :
[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 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 и содержит вот

# Huawei E173new
DefaultVendor= 0x12d1
DefaultProduct=0x155b
TargetVendor=  0x12d1
TargetProduct= 0x1506
MessageContent="55534243000000000000000000000011060000000100000000000000000000"

Оффлайн linkyАвтор темы

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
Что то не могу понять, по логу переключалки, он говорит все уже переключено нечего переключать.
Точно в меню плагин все отключено?
Выдерни модем потом вруби покажи так
/etc/ppp/usb_modeswitch -W -c /etc/ppp/switch/12d1:155b
и потом опять выдерни и вруби
/etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b




Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
[
Спойлер   :
root@stlinux]#/etc/ppp/usb_modeswitch -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 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.


[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 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]#

Может перевести в только модем?
А вот тут может ,что полезного в тему?

Оффлайн linkyАвтор темы

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
скопируй в /root/spark/modules
Перегрузи рес выполни
/etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b
потом
dmesg | tail -n40

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Спойлер   :
STMicroelectronics Base Distribution version 2.2
Linux/sh4 2.6.32.42_stm24_V4.1-SAT7111_7111-STSDK

stlinux login: root
Password:


Welcome to STMicroelectronics Base Distribution.



BusyBox v1.18.2 (2011-07-13 20:52:52 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

[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 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]#

Оффлайн linkyАвтор темы

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
переведи его в режим модема руками и сделай тоже что выше

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Это когда переключил модем в только модем вставил в рес и выполнил команды
[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]#

Это когда выполнил modemdial start плугин


2222222222222222
[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 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]#

Это выполнил когда stop

3333333333333333333

[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 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(Не могу сейчас посмотреть версию,сорри)

Оффлайн linkyАвтор темы

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
ls /dev | grep ttyU
Красным не пиши...
Большие логи в спойлер скрывай

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Ок.
Перегрузил рес.Он на Lan запустился, подхватил шару.
Вставил модем и выполнил команду ls /dev | grep ttyU

[root@stlinux]#ls /dev | grep ttyU
ttyUSB0
ttyUSB1
ttyUSB2
[root@stlinux]#

linky я уже на сегодня всё  :lazy3: завтра буду на месте.


Оффлайн linkyАвтор темы

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
Попробуй так перегрузил, переключил в 1506
/etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b
потом выполни
echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
и покажи
cat /proc/tty/driver/usbserial               
dmesg | tail -n40

Здесь пишут что порты не появляются но на E353
Хотя в драйверах есть 12d1:1506 Наверное какой то патч нужен для option
HSDPA Interface - Configuration Instructions - UMA Wiki

Теги:
 

Похожие темы

  Тема / Автор Ответов Последний ответ
15 Ответов
18970 Просмотров
Последний ответ 27 декабря | 2017г. | 14:40:50
от Schwarz
1 Ответов
3616 Просмотров
Последний ответ 07 января | 2014г. | 00:23:11
от Const
11 Ответов
9160 Просмотров
Последний ответ 19 июня | 2016г. | 12:08:06
от Ser6
3 Ответов
4990 Просмотров
Последний ответ 06 апреля | 2016г. | 13:32:01
от rovshik
0 Ответов
6702 Просмотров
Последний ответ 26 сентября | 2016г. | 02:25:48
от vodker



X

Добро пожаловать!

Мы заметили, что у Вас установлено расширение AdBlock или ему подобное. Пожалуйста добавьте наш Клуб в белый список, внесите этим посильную лепту в его развитие. Спасибо!