16 апреля | 2025г. | 22:46:06


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

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

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



Теги:
 

Похожие темы

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



X

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

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