无法使用 zte(reliance cdma)AC2739 USB 调制解调器在 Ubuntu 14.0.4 笔记本电脑上连接到互联网

无法使用 zte(reliance cdma)AC2739 USB 调制解调器在 Ubuntu 14.0.4 笔记本电脑上连接到互联网

许多 Linux/Ubuntu 用户面临这个问题 -->(使用调制解调器 zte/etc 连接到互联网.....) 因为现代加密狗有 USB 存储 + 调制解调器 + CD ROM,usb_modes 开关 blablabla.................................

我的问题是什么? --> 我无法**(有时可以)**使用 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: (不播种普通原木 --> 上面那棵)

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

我的 ZTE USB 调制解调器也遇到了类似的问题,结果发现它被安装为 CD 单元。

这是我解决问题的方法:

步骤 1:使用系统盘验证你的 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 步:使用消息 |尾巴知道它是如何被检测到的

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:使用usb_modeswitch通过使用“弹出”来更改 USB 调制解调器的模式-K参数。使用您自己的调制解调器的供应商和产品 ID(系统盘

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:最后使用消息 |尾巴验证您的 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:网络管理器现在应该可以检测到您的调制解调器。

答案2

分析后 系统日志仔细地这个解决方案对我有用

问题原因:现代加密狗的多种模式。

解决方案:
1.

gedit /etc/usb_modeswitch.conf

2.添加此代码以禁用顶部的 USB 切换。

禁用切换=1

3. 保存。4
. 再次插入 USB
5. 右键单击​​弹出
或使用 USB CD-ROM。

sudo弹出/dev/sr1

6.等待 5-10 秒(检测调制解调器的时间)7.现在转到网络管理器
8.Reliance 网络将在网络管理器中列出,通过创建新连接与其连接。7
.现在转到网络管理器
8.Reliance 网络将在网络管理器中列出,通过创建新连接与其连接。

就这样


Reliance 还提供 UI 软件
只需使用即可安装

sudo ./文件名

使用运行

sudo ztemtapp

这对我有用。

相关内容