04 октября | 2024г. | 03:56:21


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

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

Оффлайн artems

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

Оффлайн darktime

  • Падаван
  • *
  • Сообщений: 44
  • Поблагодарили: 3
  • Уважение: 0
artems Так оставь и сделай, что попросили... а то уже два дня от тебя то что нужно добиваемся... :biggrin:

Оффлайн grizli

  • Лорд Джедай
  • *****
  • Сообщений: 4217
  • Поблагодарили: 2328
  • Уважение: +40
в качестве телнета PuTTY и туда не копируются строки, а оттуда копируются.
туда тоже копируются правой кнопкой мыши
  • Gi S8895 |  Gi S9995 | DM500HD Sim A8P
Опыт приходит, пропорционально количеству выведенного из строя оборудования.

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
Вот что получилось по пунктам:
1.
/root/spark/Ad/Patch/sbin/busybox lsusb

Спойлер   :
[root@stlinux]#/root/spark/Ad/Patch/sbin/busybox lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 005: ID 12d1:155b
[root@stlinux]#


2.
[root@stlinux]#dmesg | tail -n 40

Спойлер   :
<4>save exit: isCheckpointed 1
<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=usb-storage
<6>scsi5 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: device found at 5
<7>usb-storage: waiting for device to settle before scanning
<4>[usb_probe_interface]drive name=usb-storage
<6>scsi6 : SCSI emulation for USB Mass Storage devices
<7>usb-storage: device found at 5
<7>usb-storage: waiting for device to settle before scanning
<5>scsi 5:0:0:0: CD-ROM                     Mass Storage     2.31 PQ: 0 ANSI: 2
<5>scsi 6: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 6: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
[root@stlinux]#

3.
Спойлер   :
[root@stlinux]#
[root@stlinux]#/etc/ppp/usb_modeswitch -v 0x12d1 -p 0x155b -c /etc/ppp/switch/12d1:155b

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 005 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
-------------------------
Sending Huawei control message ...
 OK, Huawei control message sent
Warning: ignoring MessageContent. Can't combine with special mode
-> Run lsusb to note any changes. Bye.

[root@stlinux]#


[root@stlinux]#/root/spark/Ad/Patch/sbin/busybox lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 005: ID 12d1:155b
[root@stlinux]#


4.
После редактирования 12d1:155b на 55534243000000000000000000000011060000000100000000000000000000

Спойлер   :
[root@stlinux]#/etc/ppp/usb_modeswitch -v 0x12d1 -p 0x155b -c /etc/ppp/switch/12d1:155b

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 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
-------------------------
Sending Huawei control message ...
 OK, Huawei control message sent
Warning: ignoring MessageContent. Can't combine with special mode
-> Run lsusb to note any changes. Bye.

[root@stlinux]#


[root@stlinux]#
[root@stlinux]#/root/spark/Ad/Patch/sbin/busybox lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 12d1:155b
[root@stlinux]#


P.S.
[root@stlinux]#ifconfig
eth0      Link encap:Ethernet  HWaddr 24:00:0B:00:4F:F7
          inet addr:192.168.1.60  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1419 errors:0 dropped:0 overruns:0 frame:0
          TX packets:896 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:107054 (104.5 KiB)  TX bytes:135298 (132.1 KiB)
          Interrupt:133

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:460 (460.0 B)  TX bytes:460 (460.0 B)

[root@stlinux]#

[root@stlinux]#cat /tmp/switch
12d1:155b

Лог
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]

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

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
Судя по ответам он его как сетевую не видит (это хорошо) но и не переключает.
12d1:155b нет в драйверах, вечером обновлю
1. Перегрузи рес, выполни
Вам не разрешен просмотр кода. Войдите или Зарегистрируйтесь для просмотра.2. В файле  12d1:155b  убери строчку Huawei mode 1 или что то такое там есть
Вам не разрешен просмотр кода. Войдите или Зарегистрируйтесь для просмотра.3.
Вам не разрешен просмотр кода. Войдите или Зарегистрируйтесь для просмотра.

Оффлайн PavelSH

  • Подающий Надежды
  • *
  • Сообщений: 1
  • Поблагодарили: 0
  • Уважение: 0
Добрый день!
Подскажите работает ли данный плагин На Fulan SI+?
Устанавливается, запускается, но не вызываются св-ва плагина(рес виснет, тв выключается)

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
1.
[root@stlinux]#echo "12d1 155b" > /sys/bus/usb-serial/drivers/option1/new_id
[root@stlinux]#

2.
Изменил в файле  12d1:155b

# Huawei E173new
DefaultVendor= 0x12d1
DefaultProduct=0x155b
TargetVendor=  0x12d1
TargetProduct= 0x1001
Huawei mode 1
MessageContent="55534243000000000000000000000011060000000100000000000000000000"


[root@stlinux]#/etc/ppp/usb_modeswitch -v 0x12d1 -p 0x155b -c /etc/ppp/switch/12
d1:155b

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 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 ...
 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]#


3.
[root@stlinux]#dmesg | grep ttyUSB
[root@stlinux]#


P.S. Почему то перестал запускаться mc  :(

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

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 Device seems to have vanished right after sending. Good.
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

После этого что /root/spark/Ad/Patch/sbin/busybox lsusb
выдает?

Попробуй так еще изменить
DefaultVendor= 0x12d1
DefaultProduct=0x155b
TargetVendor=  0x12d1
TargetProduct= 0x1506
Можно и так запустить
/etc/ppp/usb_modeswitch -c /etc/ppp/switch/12d1:155b


Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
[root@stlinux]#/root/spark/Ad/Patch/sbin/busybox lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 003: ID 12d1:1506
[root@stlinux]#

Сейчас изменю
Добавлено  30 октября | 2012г. | 18:56:49   
Изменил

[root@stlinux]#/root/spark/Ad/Patch/sbin/busybox lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 003: ID 12d1:1506
[root@stlinux]#


[root@stlinux]#/etc/ppp/usb_modeswitch -c /etc/ppp/switch/12d1:155b

Looking for target devices ...
   found matching product ID
   adding device
 Found devices in target mode or class (1)
Looking for default devices ...
 No devices in default mode found. Nothing to do. Bye.

[root@stlinux]#


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

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
Bus 001 Device 003: ID 12d1:1506
Ура !!! модем перевелся 12d1:1506
Еще раз покажи
Вам не разрешен просмотр кода. Войдите или Зарегистрируйтесь для просмотра.

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
[root@stlinux]#dmesg  |  grep ttyUSB
[root@stlinux]#
 :cray:

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

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

Подожди... и выполни
/root/spark/Ad/Patch/sbin/busybox lsusb
должно быть 1506
И потом покажи

dmesg  |  tail -n 40

Оффлайн artems

  • Младший Джедай
  • **
  • Сообщений: 67
  • Поблагодарили: 0
  • Уважение: 0
А у меня Modemdia и не был включен.
Пробую
В телнет выполни
/etc/ppp/usb_modeswitch -c /etc/ppp/switch/12d1:155b

Подожди... и выполни
/root/spark/Ad/Patch/sbin/busybox lsusb
должно быть 1506
И потом покажи

dmesg  |  tail -n 40



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
При перезагрузе реса с модемом на порту всегда такое сообщение:
      Соединяю подождите.....
и в сетевуху свои DNS и щлюз в нули, перебиваю вручную под свою сетку

Спойлер   :
[root@stlinux]#/etc/ppp/usb_modeswitch -c /etc/ppp/switch/12d1:155b

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
   found matching product ID
   adding device
 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 ...
 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]#/root/spark/Ad/Patch/sbin/busybox lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 003: ID 12d1:1506
[root@stlinux]#


[root@stlinux]#/root/spark/Ad/Patch/sbin/busybox lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 003: ID 12d1:1506
[root@stlinux]#

[root@stlinux]#dmesg  |  tail -n 40
<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>usb 1-1: usbfs: process 1335 (usb_modeswitch) did not claim interface 0 befor                                                                                                                                                              e 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]#



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

  • Мастер Джедай
  • **
  • Сообщений: 1151
  • Поблагодарили: 1555
  • Уважение: +30
artems,
выдерни модем включи и выполни
/etc/ppp/usb_modeswitch -W -c /etc/ppp/switch/12d1:155b
И попробуй еще так
MessageContent="55534243123456780000000000000011060000000000000000000000000000"

Оффлайн 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 ...
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]#

Добавлено  30 октября | 2012г. | 20:20:56   
пробую
MessageContent="55534243123456780000000000000011060000000000000000000000000000"

Добавлено  30 октября | 2012г. | 21:52:37   
Блин система на компе глюканула вот только починил вот результаты
Я сначала тоже модем переторнул после изменения файла


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 -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="5553424312345678000000000000001106000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set

InquireDevice enabled (default)
Success check disabled
System integration mode disabled

Error: MessageContent hex string has uneven length. Aborting.

[root@stlinux]#

Добавлено  30 октября | 2012г. | 21:57:55   
с этим MessageContent вроде не то. Может модем перевести в режим только модем?

Теги:
 

Похожие темы

  Тема / Автор Ответов Последний ответ
1 Ответов
2262 Просмотров
Последний ответ 17 мая | 2011г. | 14:53:50
от Softy
15 Ответов
19265 Просмотров
Последний ответ 27 декабря | 2017г. | 14:40:50
от Schwarz
9 Ответов
8725 Просмотров
Последний ответ 01 сентября | 2015г. | 19:02:38
от Manul
1 Ответов
3726 Просмотров
Последний ответ 07 января | 2014г. | 00:23:11
от Const
11 Ответов
9402 Просмотров
Последний ответ 19 июня | 2016г. | 12:08:06
от Ser6



X

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

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