多くのLinux/Ubuntuユーザーはこの問題に直面しています->(modem zte/etc .....を使用してインターネットに接続します)現代のドングルにはUSBストレージ+モデム+ CD ROM、usb_modesスイッチがあります......... ..............
私の問題は何ですか?-> ZTE(Reliance cdma)AC2739を使用してインターネットに接続できない**(時々できる)**.
UbuntuはUSBドングルをどのように検出しますか?回答:3つの方法:
1)USBデバイスを検出しませんが、lsusb
はデバイスを表示します。
2)デバイスを検出します(USBを挿入した後10件に1件)が、ネットワークマネージャーはブロードバンド接続として検出しません。
3)デバイスを検出します(USBを挿入した後15の場合に1)、ネットワークマネージャーもブロードバンド接続として検出します------>これは、インターネットに接続できる場合です。
3つのケースすべてのシステムログ:
共通ログ(これはUSBドングルを挿入するたびにシステムログに表示されるものです)
'May 20 20:51:19 pcp kernel: [ 2724.187204] usb 3-3: new full-speed USB device number 10 using xhci_hcd<br/>
May 20 20:51:19 pcp kernel: [ 2724.205404] usb 3-3: New USB device found, idVendor=19d2, idProduct=fff1<br/>
May 20 20:51:19 pcp kernel: [ 2724.205415] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3<br/>
May 20 20:51:19 pcp kernel: [ 2724.205420] usb 3-3: Product: ZTE CDMA Tech<br/>
May 20 20:51:19 pcp kernel: [ 2724.205425] usb 3-3: Manufacturer: ZTE, Incorporated
May 20 20:51:19 pcp kernel: [ 2724.205430] usb 3-3: SerialNumber: 000000000002
May 20 20:51:19 pcp kernel: [ 2724.208710] usb-storage 3-3:1.5: USB Mass Storage device detected
May 20 20:51:19 pcp kernel: [ 2724.208930] scsi14 : usb-storage 3-3:1.5
May 20 20:51:19 pcp mtp-probe: checking bus 3, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3"
May 20 20:51:19 pcp mtp-probe: bus: 3, device: 10 was not an MTP device'
ケース1:(一般的なログを播種しない-> 1つ以上)
May 20 18:52:15 pcp usb_modeswitch: switch device 19d2:fff5 on 003/003
May 20 18:52:42 pcp kernel: [ 3082.599319] scsi 7:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
May 20 18:52:42 pcp kernel: [ 3082.601400] scsi 7:0:0:1: Direct-Access ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
May 20 18:52:43 pcp kernel: [ 3083.337421] sr1: scsi3-mmc drive: 0x/0x caddy
May 20 18:52:43 pcp kernel: [ 3083.337618] sr 7:0:0:0: Attached scsi CD-ROM sr1
May 20 18:52:43 pcp kernel: [ 3083.337689] sr 7:0:0:0: Attached scsi generic sg2 type 5
May 20 18:52:43 pcp kernel: [ 3083.338257] sd 7:0:0:1: Attached scsi generic sg3 type 0
May 20 18:52:43 pcp kernel: [ 3083.346309] sd 7:0:0:1: [sdb] Attached SCSI removable disk
May 20 18:52:43 pcp kernel: [ 3083.386955] systemd-udevd[5293]: Failed to apply ACL on /dev/sr1: No such file or directory
May 20 18:52:43 pcp kernel: [ 3083.386971] systemd-udevd[5293]: Failed to apply ACL on /dev/sr1: No such file or directory
May 20 18:52:43 pcp kernel: [ 3083.391821] systemd-udevd[5293]: Failed to apply ACL on /dev/sr1: No such file or directory
May 20 18:52:43 pcp kernel: [ 3083.391832] systemd-udevd[5293]: Failed to apply ACL on /dev/sr1: No such file or directory
ケース2(共通ログを播種しない->上部に提供)
May 20 19:35:52 pcp kernel: [ 910.651091] usb 3-3: reset full-speed USB device number 8 using xhci_hcd
May 20 19:35:52 pcp kernel: [ 910.667601] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800777e6180
May 20 19:35:52 pcp kernel: [ 910.667613] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800777e61c0
May 20 19:35:52 pcp kernel: [ 910.672647] scsi 12:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
May 20 19:35:52 pcp kernel: [ 910.674693] scsi 12:0:0:1: Direct-Access ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
May 20 19:35:52 pcp kernel: [ 910.679319] sr1: scsi3-mmc drive: 372x/372x writer dvd-ram cd/rw xa/form2 cdda
May 20 19:35:52 pcp kernel: [ 910.679996] sr 12:0:0:0: Attached scsi CD-ROM sr1
May 20 19:35:52 pcp kernel: [ 910.681364] sr 12:0:0:0: Attached scsi generic sg2 type 5
May 20 19:35:52 pcp kernel: [ 910.682692] sd 12:0:0:1: Attached scsi generic sg3 type 0
May 20 19:35:52 pcp kernel: [ 910.689527] sd 12:0:0:1: [sdb] Attached SCSI removable disk
May 20 19:35:52 pcp kernel: [ 910.789754] sr1: CDROM (ioctl) error, command: Xdread, Read track info 52 01 00 00 00 01 00 00 08 00
May 20 19:35:52 pcp kernel: [ 910.789777] sr: Sense Key : Hardware Error [current]
May 20 19:35:52 pcp kernel: [ 910.789783] sr: Add. Sense: No additional sense information
May 20 19:35:52 pcp kernel: [ 911.234442] ISO 9660 Extensions: Microsoft Joliet Level 1
May 20 19:35:52 pcp kernel: [ 911.247345] ISOFS: changing to secondary root
May 20 19:35:52 pcp udisksd[2223]: Mounted /dev/sr1 at /media/prakash/Reliance on behalf of uid 1000
ケース3:(共通ログを播種しない->上部に提供)
May 20 20:51:19 pcp kernel: [ 2724.248971] usbcore: registered new interface driver usbserial
May 20 20:51:19 pcp kernel: [ 2724.248989] usbcore: registered new interface driver usbserial_generic
May 20 20:51:19 pcp kernel: [ 2724.249002] usbserial: USB Serial support registered for generic
May 20 20:51:19 pcp kernel: [ 2724.264994] usbcore: registered new interface driver option
May 20 20:51:19 pcp kernel: [ 2724.265650] usbserial: USB Serial support registered for GSM modem (1-port)
May 20 20:51:19 pcp kernel: [ 2724.265826] option 3-3:1.0: GSM modem (1-port) converter detected
May 20 20:51:19 pcp kernel: [ 2724.265979] usb 3-3: GSM modem (1-port) converter now attached to ttyUSB0
May 20 20:51:19 pcp kernel: [ 2724.266042] option 3-3:1.1: GSM modem (1-port) converter detected
May 20 20:51:19 pcp kernel: [ 2724.266161] usb 3-3: GSM modem (1-port) converter now attached to ttyUSB1
May 20 20:51:19 pcp kernel: [ 2724.266218] option 3-3:1.2: GSM modem (1-port) converter detected
May 20 20:51:19 pcp kernel: [ 2724.266334] usb 3-3: GSM modem (1-port) converter now attached to ttyUSB2
May 20 20:51:19 pcp kernel: [ 2724.266390] option 3-3:1.3: GSM modem (1-port) converter detected
May 20 20:51:19 pcp kernel: [ 2724.266505] usb 3-3: GSM modem (1-port) converter now attached to ttyUSB3
May 20 20:51:19 pcp kernel: [ 2724.266562] option 3-3:1.4: GSM modem (1-port) converter detected
May 20 20:51:19 pcp kernel: [ 2724.266687] usb 3-3: GSM modem (1-port) converter now attached to ttyUSB4
May 20 20:51:19 pcp kernel: [ 2724.266757] option 3-3:1.6: GSM modem (1-port) converter detected
May 20 20:51:19 pcp kernel: [ 2724.266885] usb 3-3: GSM modem (1-port) converter now attached to ttyUSB5
May 20 20:51:20 pcp ModemManager[720]: <warn> (ttyUSB5): port attributes not fully set
May 20 20:51:20 pcp ModemManager[720]: <warn> (ttyUSB2): port attributes not fully set
May 20 20:51:20 pcp ModemManager[720]: <warn> (ttyUSB3): port attributes not fully set
May 20 20:51:20 pcp ModemManager[720]: <warn> (ttyUSB1): port attributes not fully set
May 20 20:51:20 pcp ModemManager[720]: <warn> (ttyUSB0): port attributes not fully set
May 20 20:51:20 pcp ModemManager[720]: <warn> (ttyUSB4): port attributes not fully set
May 20 20:51:20 pcp usb_modeswitch: switched to 19d2:ffffffff on 003/009
May 20 20:51:20 pcp kernel: [ 2725.207972] scsi 14:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
May 20 20:51:20 pcp kernel: [ 2725.210011] scsi 14:0:0:1: Direct-Access ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
May 20 20:51:21 pcp usb_modeswitch[4855]: usb_modeswitch: switched to 19d2:fff1 on 3/10
May 20 20:51:21 pcp kernel: [ 2725.888378] sr1: scsi3-mmc drive: 372x/372x writer dvd-ram cd/rw xa/form2 cdda
May 20 20:51:21 pcp kernel: [ 2725.888912] sr 14:0:0:0: Attached scsi CD-ROM sr1
May 20 20:51:21 pcp kernel: [ 2725.889419] sr 14:0:0:0: Attached scsi generic sg2 type 5
May 20 20:51:21 pcp kernel: [ 2725.893403] sd 14:0:0:1: Attached scsi generic sg3 type 0
<br/>May 20 20:51:21 pcp kernel: [ 2725.910131] sd 14:0:0:1: [sdb] Attached SCSI removable disk
May 20 20:51:21 pcp kernel: [ 2726.006326] sr1: CDROM (ioctl) error, command: Xdread, Read track info 52 01 00 00 00 01 00 00 08 00
May 20 20:51:21 pcp kernel: [ 2726.006351] sr: Sense Key : Hardware Error [current]
May 20 20:51:21 pcp kernel: [ 2726.006357] sr: Add. Sense: No additional sense information
May 20 20:51:22 pcp usb_modeswitch[4855]: usb_modeswitch: add device ID 19d2:fff1 to driver option
May 20 20:51:22 pcp usb_modeswitch[4855]: usb_modeswitch: please report the device ID to the Linux USB developers!
May 20 20:51:22 pcp kernel: [ 2726.597676] ISO 9660 Extensions: Microsoft Joliet Level 1
May 20 20:51:22 pcp kernel: [ 2726.608596] ISOFS: changing to secondary root
May 20 20:51:22 pcp udisksd[2228]: Mounted /dev/sr1 at /media/prakash/Reliance on behalf of uid 1000
May 20 20:51:38 pcp ModemManager[720]: <info> Creating modem with plugin 'ZTE' and '6' ports
May 20 20:51:38 pcp ModemManager[720]: <warn> Could not grab port (tty/ttyUSB4): 'Cannot add port 'tty/ttyUSB4', unhandled serial type'
May 20 20:51:38 pcp ModemManager[720]: <warn> Could not grab port (tty/ttyUSB2): 'Cannot add port 'tty/ttyUSB2', unhandled serial type'
May 20 20:51:38 pcp ModemManager[720]: <warn> Could not grab port (tty/ttyUSB5): 'Cannot add port 'tty/ttyUSB5', unhandled serial type'
<br/>May 20 20:51:38 pcp ModemManager[720]: <warn> (ttyUSB0): port attributes not fully set
May 20 20:51:38 pcp ModemManager[720]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3' successfully created
May 20 20:51:39 pcp ModemManager[720]: <warn> Couldn't load unlock retries: 'Unknown error'
May 20 20:51:39 pcp ModemManager[720]: <warn> couldn't load list of Own Numbers: 'Failed to parse NV MDN command result: -17'
May 20 20:51:39 pcp ModemManager[720]: <warn> couldn't load current allowed/preferred modes: 'Unknown error'
<br/>May 20 20:51:39 pcp ModemManager[720]: <info> Modem: state changed (unknown -> disabled)
May 20 20:51:39 pcp NetworkManager[784]: <warn> (ttyUSB0): failed to look up interface index
May 20 20:51:39 pcp NetworkManager[784]: <info> (ttyUSB0): new Broadband device (driver: 'option1' ifindex: 0)
May 20 20:51:39 pcp NetworkManager[784]: <info> (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/2
May 20 20:51:39 pcp NetworkManager[784]: <info> (ttyUSB0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
May 20 20:51:39 pcp NetworkManager[784]: <info> (ttyUSB0): deactivating device (reason 'managed') [2]
May 20 20:51:39 pcp NetworkManager[784]: <info> (ttyUSB0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
ログ全体のテキストファイルが必要な場合は、お知らせください。この問題は多くのUSBドングルにあります。誰かがこの問題の解決策を提供できる場合は、それを実行してください。私は今から解決策を得ることを願って3日から試みています。
システムログを分析した後、このソリューションは慎重に機能しました
問題の原因:現代のドングルの複数のモード。
解決策:
1。
gedit /etc/usb_modeswitch.conf
2.このコードを上部の無効なUSBスイッチングに追加します。
DisableSwitching = 1
3.保存します。
4。再度USBを挿入
5.usb cdromを右クリックしてイジェクトします
または使用しています。
Sudo取り出し/ dev/sr1
6. 5〜10秒間待機します(モデムとして検出するまでの時間)7.ネットワークマネージャーに移動します。
8.Relianceネットワークは、新しい接続を作成することにより、それに接続するネットワークマネージャーにリストされます。
7。ネットワークマネージャーに移動します
8.Relianceネットワークは、新しい接続を作成することにより、それに接続するネットワークマネージャーにリストされます。
それで全部です
信頼性はUIソフトウェアも提供します
を使用して簡単にインストールします
Sudo ./ファイル名
を使用して実行する
須藤ztemtapp
これは私のために働いています。
ZTE USBモデムでも同様の問題が発生し、CDユニットとしてマウントされていたことがわかりました。
これは私がそれを解決する方法です:
ステップ1:lsusbを使用して、USBモデムが検出されたことを確認します
sergiotca@sergiotca-Dell-System-XPS-L502X:~$ lsusb
Bus 002 Device 003: ID 8086:0189 Intel Corp.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c07e Logitech, Inc.
Bus 003 Device 009: ID 19d2:2000 ZTE WCDMA Technologies MSM
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0408:2fb1 Quanta Computer, Inc.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ステップ2:dmesg | tailを使用して、どのように検出されたかを知る
sergiotca@sergiotca-Dell-System-XPS-L502X:~$ dmesg | tail
[ 6136.744009] usb 3-1: Manufacturer: ZTE,Incorporated
[ 6136.744012] usb 3-1: SerialNumber: MF1800ZTED010000
[ 6136.747257] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 6136.747504] scsi19 : usb-storage 3-1:1.0
[ 6137.748200] scsi 19:0:0:0: CD-ROM ZTE USB SCSI CD-ROM 2.31 PQ: 0 ANSI: 2
[ 6137.751676] sr1: scsi-1 drive
[ 6137.752168] sr 19:0:0:0: Attached scsi CD-ROM sr1
[ 6137.752731] sr 19:0:0:0: Attached scsi generic sg2 type 5
ステップ3:sb_modeswitchを使用して、-Kパラメーターを使用して「イジェクト」してusbモデムのモードを変更します。独自のモデムのベンダーと製品IDを使用します(lsusb)
sergiotca@sergiotca-Dell-System-XPS-L502X:~$ Sudo usb_modeswitch -v 0x19d2 -p 0x2000 -K
[Sudo] password for sergiotca:
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 010 on bus 003
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: ZTE,Incorporated
Product: ZTE WCDMA Technologies MSM
Serial No.: MF1800ZTED010000
-------------------------
Sending standard EJECT sequence
Looking for active driver ...
No active driver found. Detached before or never attached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x01 ...
OK, message successfully sent
Read the response to message 2 (CSW) ...
Response successfully read (13 bytes).
Reset response endpoint 0x81
Reset message endpoint 0x01
-> Run lsusb to note any changes. Bye!
ステップ4:最後にdmesg | tailを使用して、USBモデムが直接アクセスモードに変更されたことを確認します
sergiotca@sergiotca-Dell-System-XPS-L502X:~$ dmesg | tail
[ 6874.527436] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 6874.527700] option 3-1:1.1: GSM modem (1-port) converter detected
[ 6874.527894] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 6874.528148] option 3-1:1.2: GSM modem (1-port) converter detected
[ 6874.528305] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 6874.528510] usb-storage 3-1:1.3: USB Mass Storage device detected
[ 6874.528704] scsi20 : usb-storage 3-1:1.3
[ 6875.529082] scsi 20:0:0:0: Direct-Access ZTE MMC Storage 2.31 PQ: 0 ANSI: 2
[ 6875.532997] sd 20:0:0:0: Attached scsi generic sg2 type 0
[ 6875.535452] sd 20:0:0:0: [sdb] Attached SCSI removable disk
ステップ5:モデムがネットワークマネージャーによって検出されます。