07 июля | 2024г. | 16:17:44


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

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

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
 linky, да сейчас сделаю.
Вот меня только всё время смущает, что при перезагрузке реса с модемом на борту появляется сообщение, что идёт подсоединение, потм соединение установлено, но естественно модем как мигал так и мигает, а только в сетевухе устанавливаются DNS.
Поэтому хочу уточнить, когда говорится перегрузить рес, модем уже должен в нём быть или перезагружать без модеме, а модем втыкать после перезагрузки? И если втыкать после перезагрузки modemdial надо включать и выключать или не трогать?

Вот, что получилось из поста выше (модем втыкал после перезагрузки, modemdial не использовал)

Спойлер   :
[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 002 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 002 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]#dmesg | tail -n40
<4>save exit: isCheckpointed 1
<4>smart_ioctl------------------------->set handle
<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: 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
<7>usb-storage: device scan complete
<5>scsi 1:0:0:0: Direct-Access              SD Storage       2.31 PQ: 0 ANSI: 2
<5>sd 1:0:0:0: [sda] Attached SCSI removable disk
<7>usb-storage: device scan complete
<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=option
<6>option 1-1:1.0: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
<4>[usb_probe_interface]drive name=option
<6>option 1-1:1.1: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
<4>[usb_probe_interface]drive name=option
<6>option 1-1:1.2: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[root@stlinux]#
[root@stlinux]#

Почемуто после отключения CD он вроде как есть. Как то ранеее работая с модемом он у меня перевёлся в режим модем и интерфейс. И вроде где то видел , что модем переводили только в 2G.
И всётаки наверное все проблемы в новой системе команд и новом драйвере из-за нового процессора.
В аттаче что то для Linux из CD модема.

ВСЁ ЗАРАБОТАЛО.
Перевёл модем в только модем и интерфейс командой
ATI^SETPORT="A1;1,2"
 По getportmode выдаёт  type: wcdma:      ,mdm:0,pcui1 а до этого было ещё устройство diag:2

Перевёл модем в сеть только 2G.
Воткнул в рес. Плагин modemdial не трогал (выкл).
В настройках сети вкл. 3G. После включения показал как 3G включена но без IP и DN там были 0 и модем продолжал мигать. И сеть по лан оказалась

выключена как бы только 3G включена.

Потом 3G выключил. Включил плагин modemdial и модем включился и включилась 3G, т.е. модем светился постоянно как в коннекте с оператором.
Зашёл в настройки сети 3G и там всё заполнено и IP и DNS.
В плагинах рестартанул MGCAM и Ш@ра заработала.


В аттаче лог.

[root@stlinux]#dmesg | tail -n40
<4>[usb_probe_interface]drive name=usbserial_generic
<4>[usb_probe_interface]drive name=option
<6>option 1-1:1.0: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
<4>[usb_probe_interface]drive name=usbserial_generic
<4>[usb_probe_interface]drive name=option
<6>option 1-1:1.1: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1



Оффлайн vardane

  • Падаван
  • *
  • Сообщений: 23
  • Поблагодарили: 1
  • Уважение: 0
Попался MF180 от Билайна, прошитый прошивкой от МТСа. Был переведен в режим только модем. Прошивка 1.2.58,  в стардантном меню ресивера, естественно, работать не стал.
А вот с помощью плагина завелся с полпинка. Работает уже больше 24 часов, все ОК.
Linky респект и уважуха !!!

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
linky
Повторить коннект модема после перезагрузки реса по ранее описаной схеме не получилось, видимо первый раз повлияли какието ранее выданые команды в терминале из предыдущего поста . :cray:



Спойлер   :
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 002 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 002 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]#echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
[root@stlinux]#cat /proc/tty/driver/usbserial
usbserinfo:1.0 driver:2.0
0: module:option name:"GSM modem (1-port)" vendor:12d1 product:1506 num_ports:1 port:1 path:usb-stm-ehci.0-1
1: module:option name:"GSM modem (1-port)" vendor:12d1 product:1506 num_ports:1 port:1 path:usb-stm-ehci.0-1
[root@stlinux]#dmesg | tail -n40
<4>IRQ 156/BLITTER: IRQF_DISABLED is not guaranteed on shared IRQs
<6>input: ywvinput as /devices/virtual/input/input0
<6>input: droidinput as /devices/virtual/input/input1
<4>IRQ 156/STGFB_Blitter: IRQF_DISABLED is not guaranteed on shared IRQs
<4>*********get viewport handle: 0xc17b4e4c, 0xc17b4e4c
<4>save exit: isCheckpointed 1
<4>save exit: isCheckpointed 1
<4>*********get viewport handle: 0x0, 0x0
<4>*********get viewport handle: 0xc17b4e4c, 0xc17b4e4c
<4>save exit: isCheckpointed 1
<4>save exit: isCheckpointed 1
<4>smart_ioctl------------------------->set handle
<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: 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
<5>scsi 0:0:0:0: CD-ROM                     Mass Storage     2.31 PQ: 0 ANSI: 2
<7>usb-storage: device scan complete
<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=option
<6>option 1-1:1.0: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
<4>[usb_probe_interface]drive name=option
<6>option 1-1:1.1: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[root@stlinux]#
[root@stlinux]#

После очередных попыток опять подрубился модем и работает.Но как то зависит его подключение от манипуляции с лановской сеткой и включением и выключением в настройках сети 3G. И видимо от команды в телнете /etc/ppp/usb_modeswitch -I -W -c /etc/ppp/switch/12d1:155b без неё подключения полюбому не происходит, а после неё потанцевав с бубном получается стартануть модемНа сегодня пока всё.

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

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
Отлично!!! Значит нужно было его перевести самим !!!
Сейчас подправлю скрипт и будет все автоматом  :biggrin:
1 пост обновил.
Установи как все описано по новой перегрузи рес. После полной загрузки подключи модем.
Ничего не запускай из меню плагин. Выполни
/etc/ppp/usb_modeswitch -W -c /etc/ppp/switch/12d1:155b
потом
dmesg | tail -n40
cat /proc/tty/driver/usbserial
Если ответы будут как ранее с ttyUSB то выруби модем, подключи
Из меню плагина нажми Modemdial покажи лог из /tmp/log или cat /tmp/log

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

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
Попался MF180 от Билайна, прошитый прошивкой от МТСа. Был переведен в режим только модем. Прошивка 1.2.58,  в стардантном меню ресивера, естественно, работать не стал.
А вот с помощью плагина завелся с полпинка. Работает уже больше 24 часов, все ОК.
Linky респект и уважуха !!!
А попробуй не переведенный в режим модем, и покажи файл лога. Где и что написано в 1 посте.

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
artems,
Отлично!!! Значит нужно было его перевести самим !!!
Сейчас подправлю скрипт и будет все автоматом  :biggrin:
1 пост обновил.
Установи как все описано по новой перегрузи рес. После полной загрузки подключи модем.
Ничего не запускай из меню плагин. Выполни
/etc/ppp/usb_modeswitch -W -c /etc/ppp/switch/12d1:155b
потом
dmesg | tail -n40
cat /proc/tty/driver/usbserial
Если ответы будут как ранее с ttyUSB то выруби модем, подключи
Из меню плагина нажми Modemdial покажи лог из /tmp/log или cat /tmp/log

Сегодня никак не получается повторить вчерашний успех.


Спойлер   :
[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 002 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 002 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 ...
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]#dmesg | tail -n40
<6>usbcore: registered new interface driver sierra
<6>sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
<4>IRQ 156/BLITTER: IRQF_DISABLED is not guaranteed on shared IRQs
<6>input: ywvinput as /devices/virtual/input/input0
<6>input: droidinput as /devices/virtual/input/input1
<4>IRQ 156/STGFB_Blitter: IRQF_DISABLED is not guaranteed on shared IRQs
<4>*********get viewport handle: 0xc17b4e4c, 0xc17b4e4c
<4>save exit: isCheckpointed 1
<4>save exit: isCheckpointed 1
<4>*********get viewport handle: 0x0, 0x0
<4>*********get viewport handle: 0xc17b4e4c, 0xc17b4e4c
<4>save exit: isCheckpointed 1
<4>save exit: isCheckpointed 1
<4>smart_ioctl------------------------->set handle
<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
<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
<5>scsi 0:0:0:0: CD-ROM                     Mass Storage     2.31 PQ: 0 ANSI: 2
<7>usb-storage: device scan complete
<4>usb 1-1: usbfs: process 1344 (usb_modeswitch) did not claim interface 0 before 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
[root@stlinux]#

[root@stlinux]#cat /proc/tty/driver/usbserial
usbserinfo:1.0 driver:2.0
[root@stlinux]#



 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
Failed to open /dev/ttyUSB0: No such device
[FAILED]

[root@stlinux]#


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

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
ключ не сработал
InquireDevice enabled (default)
на перегруженном ресе введи только
/etc/ppp/usb_modeswitch -W -I -c /etc/ppp/switch/12d1:155b
потом
cat /proc/tty/driver/usbserial
странно у себя проверил все работает, ты скрипт обновлял полностью через Untargz? все как в 1 посте написано?

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Вот ответ

Спойлер   :
[root@stlinux]#/etc/ppp/usb_modeswitch -W -I -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 002 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 002 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]#cat /proc/tty/driver/usbserial
usbserinfo:1.0 driver:2.0
[root@stlinux]#

Сегодня файл 12d1:155b почему то по сравнению со вчерашним дополнился строчкой InquireDevice= 0 .
Вот после обновления плагина modemdial сегодня никак не подключается. Я уже попробовал установить прошлый плагин и всё попробовать, но безрезультатно. В новой версии плагина может какие файлы ещё обновились и прошлым плагином не восстанавливаются?

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

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

Сейчас подключен ХАБ или ранее был?
Только InquireDevice= 0 добавил

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Перегрузил рес, воткнул модем и вот результат:


Спойлер   :
[root@stlinux]#lsmod
Module                  Size  Used by    Tainted: P
stgfb_core             35432  1
encrypt                83027  0
sierra                  7089  0
pl2303                 12120  0
option                 13302  0
usb_wwan                6070  1 option
8192cu                290838  0
8712u                 289112  0
zd1211                403661  0
zd1211b               404968  0
rt3070sta             433834  0
rt5370sta             623193  0
rt73                  207647  0
flash_rwmode_set        1808  0
uinput                  4676  2
stapi_all            3105214  1 stgfb_core
mme_user               10679  0
mme                    38326  2 stapi_all,mme_user
embxmailbox             2508  0
embx                    6176  0
ics_user                2650  0
ics                    81373  6 stapi_all,mme_user,mme,embxmailbox,embx,ics_user
[root@stlinux]#



[root@stlinux]#cat /root/spark/modules/option.ko | grep 1506
alias=usb:v12D1p1506d*dc*dsc*dp*icFFiscFFipFF*
[root@stlinux]#






[root@stlinux]#cat /proc/tty/driver/usbserial
usbserinfo:1.0 driver:2.0
[root@stlinux]#

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

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

Сейчас подключен ХАБ или ранее был?
А дальше? и что с хабом? он ранее был? или сейчас есть?

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Когда вчера прошло подключение и сегодня хаба не было.Вчера ещё раз подключал, но как то криво я уже писал.
В настройках сети при подключении 3G происходит подключение, затем пишет соединение установлено и в сети 3G заполнеяется нулями DNS.Потм заходил в плагины , запускал modemdial и модем подрубался, в настройках 3G заполнялось провайдером МТС и работала Ш@ра.
Сегодня никаким способом ничего не получается.
Так в спойлере результат последнего поста т.е. не подключается.
Сегодня тоже пишет идёт подключение, но в сети3G ничего не меняется, как было вчера.

Сейчас и вчера хаба нет. Сетка по верёвке , модем в USB.
Такое впечатление, что подрубается как бы к сетевой карте с соответствующими выводами.

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

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
То что подрубает что то в 3Г меню это гуи спарк пробует модем поднять, там жесткая привязка к хайвей.
Попробуй драйвер заменить и рес перегрузить и повыполнять что выше написано

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Вот результат, вроде на порту модем.
А права на файл драйвера 744?

Спойлер   :
[root@stlinux]#echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
[root@stlinux]#/etc/ppp/usb_modeswitch -W -I -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 002 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 002 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]#cat /proc/tty/driver/usbserial
usbserinfo:1.0 driver:2.0
0: module:option name:"GSM modem (1-port)" vendor:12d1 product:1506 num_ports:1 port:1 path:usb-stm-ehci.0-1
1: module:option name:"GSM modem (1-port)" vendor:12d1 product:1506 num_ports:1 port:1 path:usb-stm-ehci.0-1
[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
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: 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 007 on 001
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]#cat /proc/tty/driver/usbserial
usbserinfo:1.0 driver:2.0
[root@stlinux]#dmesg | tail -n40
<4>save exit: isCheckpointed 1
<6>usb 1-1: USB disconnect, address 3
<6>usb 1-1: new high speed USB device using stm-ehci and address 4
<6>usb 1-1: configuration #1 chosen from 1 choice
<4>[usb_probe_interface]drive name=usb-storage
<6>scsi1 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: device found at 4
<7>usb-storage: waiting for device to settle before scanning
<5>scsi 1:0:0:0: CD-ROM                     Mass Storage     2.31 PQ: 0 ANSI: 2
<7>usb-storage: device scan complete
<6>usb 1-1: USB disconnect, address 4
<6>usb 1-1: new high speed USB device using stm-ehci and address 5
<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>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 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>scsi2 : 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 2:0:0:0: CD-ROM                     Mass Storage     2.31 PQ: 0 ANSI: 2
<7>usb-storage: device scan complete
<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>warning: `vsftpd' uses 32-bit capabilities (legacy support in use)
<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
[root@stlinux]#

Вот засада. Не коннектится сегодня никак.....

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

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

Теги:
 

Похожие темы

  Тема / Автор Ответов Последний ответ
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 или ему подобное. Пожалуйста добавьте наш Клуб в белый список, внесите этим посильную лепту в его развитие. Спасибо!