Автор Тема: Как подключиться к Интеренету через 3G модем, если его система не определяет  (Прочитано 38127 раз)

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Этот модем должен поддерживаться usb-modeswitch из бренча p6

Оффлайн PorshNEV

  • Участник
  • *
  • Сообщений: 51
Что-то скорость подключения меня расстраивает. Kppp пишет максимум 16 кБ как то можно это изменить. Прием у меня здесь хороший, сеть 3G определяется.

Скорость не зависит от уровня сигнала, а от количества абонентов, разделяющих между собой канал в данный момент времени.
Мне иногда помогает, когда 3G перегружена, переключение на GPRS Only - модем начинает работать в режиме EDGE.
В первой строке инициализации (в KPPP) поиграйтесь:

"This command is used to set and read the network selection mode. The set command
 format is as follows:
 AT+ZSNT=0,0,0 - AUTOMATIC network selection,GSM+WCDMA
 AT+ZSNT=0,0,1 - AUTOMATIC network selection,GSM+WCDMA,GSM preferred
 AT+ZSNT=0,0,2 - AUTOMATIC network selection,GSM+WCDMA,WCDMA preferred
 AT+ZSNT=1,0,0 - AUTOMATIC network selection,GSM only
 AT+ZSNT=2,0,0 - AUTOMATIC network selection,WCDMA only
 AT+ZSNT=0,1,0 - MANUAL network selection,GSM+WCDMA
 AT+ZSNT=1,1,0 - MANUAL network selection,GSM only
 AT+ZSNT=2,1,0 - MANUAL network selection,WCDMA only"
- 2, 4, 7 строки.

Оффлайн Gray77

  • Участник
  • *
  • Сообщений: 85
  • 0000


Скорость не зависит от уровня сигнала, а от количества абонентов, разделяющих между собой канал в данный момент времени.
Мне иногда помогает, когда 3G перегружена, переключение на GPRS Only - модем начинает работать в режиме EDGE.
В первой строке инициализации (в KPPP) поиграйтесь:

"This command is used to set and read the network selection mode. The set command
 format is as follows:
 AT+ZSNT=0,0,0 - AUTOMATIC network selection,GSM+WCDMA
 AT+ZSNT=0,0,1 - AUTOMATIC network selection,GSM+WCDMA,GSM preferred
 AT+ZSNT=0,0,2 - AUTOMATIC network selection,GSM+WCDMA,WCDMA preferred
 AT+ZSNT=1,0,0 - AUTOMATIC network selection,GSM only
 AT+ZSNT=2,0,0 - AUTOMATIC network selection,WCDMA only
 AT+ZSNT=0,1,0 - MANUAL network selection,GSM+WCDMA
 AT+ZSNT=1,1,0 - MANUAL network selection,GSM only
 AT+ZSNT=2,1,0 - MANUAL network selection,WCDMA only"
- 2, 4, 7 строки.
Спасибо, жизнь стала налаживаться, жить стало веселее.

Оффлайн Gray77

  • Участник
  • *
  • Сообщений: 85
  • 0000
Этот модем должен поддерживаться usb-modeswitch из бренча p6

Спасибо, я проблему решил по другому. Ошибка не фиксируется если не отмонтировать сидиром во второй раз. При этом модем работает нормально.

Оффлайн Rezedent12

  • Участник
  • *
  • Сообщений: 640
  • Цель оправдывает средства.
Одна волшебная команда позволяет избавить модем от самомнения и он перестаёт себя считать сидиромом.

Оффлайн varalt

  • Участник
  • *
  • Сообщений: 996
Одна волшебная команда позволяет избавить модем от самомнения и он перестаёт себя считать сидиромом.
Приведите эту волшебную команду сюда.

Оффлайн Gray77

  • Участник
  • *
  • Сообщений: 85
  • 0000
Одна волшебная команда позволяет избавить модем от самомнения и он перестаёт себя считать сидиромом.
Это как раз понятно. Только на все команды которые я смог нагуглить модем выдает ошибку.

Оффлайн Rezedent12

  • Участник
  • *
  • Сообщений: 640
  • Цель оправдывает средства.
Это как раз понятно. Только на все команды которые я смог нагуглить модем выдает ошибку.
Модель и фирма какие?

Оффлайн Dmitry543

  • Участник
  • *
  • Сообщений: 1
Модем ZTE MF627 от МТС
# uname -a
Linux localhost.localdomain 2.6.30-std-def-alt15 #1 SMP Mon Dec 14 08:45:48 UTC 2009 i686 GNU/Linux
Ядро обновлено. Какое до обновления было...? ALT Linux Master 4.0 изначально ставили...
[root@localhost etc]# cat /var/log/messages
...
Oct 18 16:27:42 localhost kernel: [ 1121.068024] usb 5-8: new high speed USB device using ehci_hcd and address 2
Oct 18 16:27:42 localhost kernel: [ 1121.213269] usb 5-8: New USB device found, idVendor=19d2, idProduct=2000
Oct 18 16:27:42 localhost kernel: [ 1121.213274] usb 5-8: New USB device strings: Mfr=2, Product=1, SerialNumber=3
Oct 18 16:27:42 localhost kernel: [ 1121.213278] usb 5-8: Product: ZTE WCDMA Technologies MSM
Oct 18 16:27:42 localhost kernel: [ 1121.213281] usb 5-8: Manufacturer: ZTE,Incorporated
Oct 18 16:27:42 localhost kernel: [ 1121.213284] usb 5-8: SerialNumber: P673A4MTSD010000
Oct 18 16:27:42 localhost kernel: [ 1121.213495] usb 5-8: configuration #1 chosen from 1 choice
Oct 18 16:27:43 localhost kernel: [ 1121.403605] usbcore: registered new interface driver usbserial
Oct 18 16:27:43 localhost kernel: [ 1121.403635] USB Serial support registered for generic
Oct 18 16:27:43 localhost kernel: [ 1121.403689] usbcore: registered new interface driver usbserial_generic
Oct 18 16:27:43 localhost kernel: [ 1121.403694] usbserial: USB Serial Driver core
Oct 18 16:27:43 localhost kernel: [ 1121.409612] USB Serial support registered for GSM modem (1-port)
Oct 18 16:27:43 localhost kernel: [ 1121.409692] option 5-8:1.0: GSM modem (1-port) converter detected
Oct 18 16:27:43 localhost kernel: [ 1121.410120] usb 5-8: GSM modem (1-port) converter now attached to ttyUSB0
Oct 18 16:27:43 localhost kernel: [ 1121.410512] usbcore: registered new interface driver option
Oct 18 16:27:43 localhost kernel: [ 1121.410519] option: v0.7.2:USB Driver for GSM modems
Oct 18 16:27:43 localhost kernel: [ 1121.429436] usbcore: registered new interface driver libusual
Oct 18 16:27:43 localhost usb_modeswitch: switching 19d2:2000 (ZTE,Incorporated: ZTE WCDMA Technologies MSM)
Oct 18 16:27:43 localhost kernel: [ 1122.064169] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Oct 18 16:27:43 localhost kernel: [ 1122.064206] option 5-8:1.0: device disconnected
Oct 18 16:27:46 localhost kernel: [ 1124.281503] usb 5-8: USB disconnect, address 2
Oct 18 16:27:51 localhost kernel: [ 1129.352017] usb 5-8: new high speed USB device using ehci_hcd and address 3
Oct 18 16:27:51 localhost kernel: [ 1129.497284] usb 5-8: New USB device found, idVendor=19d2, idProduct=2003
Oct 18 16:27:51 localhost kernel: [ 1129.497289] usb 5-8: New USB device strings: Mfr=2, Product=1, SerialNumber=3
Oct 18 16:27:51 localhost kernel: [ 1129.497293] usb 5-8: Product: ZTE WCDMA Technologies MSM
Oct 18 16:27:51 localhost kernel: [ 1129.497296] usb 5-8: Manufacturer: ZTE,Incorporated
Oct 18 16:27:51 localhost kernel: [ 1129.497299] usb 5-8: SerialNumber: P673A4MTSD010000
Oct 18 16:27:51 localhost kernel: [ 1129.497493] usb 5-8: configuration #1 chosen from 1 choice
Oct 18 16:27:51 localhost kernel: [ 1129.557269] Initializing USB Mass Storage driver...
Oct 18 16:27:51 localhost kernel: [ 1129.597104] scsi4 : SCSI emulation for USB Mass Storage devices
Oct 18 16:27:51 localhost kernel: [ 1129.639054] usbcore: registered new interface driver usb-storage
Oct 18 16:27:51 localhost kernel: [ 1129.639062] USB Mass Storage support registered.
Oct 18 16:27:56 localhost kernel: [ 1134.658074] scsi 4:0:0:0: Direct-Access     ZTE      MMC Storage      2.31 PQ: 0 ANSI: 2
Oct 18 16:27:56 localhost kernel: [ 1134.658363] sd 4:0:0:0: Attached scsi generic sg2 type 0
Oct 18 16:27:56 localhost kernel: [ 1134.664873] sd 4:0:0:0: [sdb] Attached SCSI removable disk
# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 003: ID 19d2:2003 ONDA Communication S.p.A.
# ls /dev/ttyUSB*
ls: cannot access /dev/ttyUSB*: No such file or directory
# ls /dev/ttyACM*
ls: cannot access /dev/ttyACM*: No such file or directory
# lsusb -vv
...
Bus 005 Device 003: ID 19d2:2003 ONDA Communication S.p.A.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x19d2 ONDA Communication S.p.A.
  idProduct          0x2003
  bcdDevice            0.00
  iManufacturer           2 ZTE,Incorporated
  iProduct                1 ZTE WCDMA Technologies MSM
  iSerial                 3 P673A4MTSD010000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          131
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x85  EP 5 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x05  EP 5 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Что можете посоветовать?

Оффлайн PorshNEV

  • Участник
  • *
  • Сообщений: 51
Что можете посоветовать?

У меня, например, ONDA driver, установленый c ПО Alice_Mobile для линукс, конфликтовал с "usb_modeswitch".