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

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

我的问题是什么? – >我无法**(有时能够)**使用中兴(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
May 20 20:51:19 pcp kernel: [ 2724.205404] usb 3-3: New USB device found, idVendor=19d2, idProduct=fff1
May 20 20:51:19 pcp kernel: [ 2724.205415] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 20 20:51:19 pcp kernel: [ 2724.205420] usb 3-3: Product: ZTE CDMA Tech
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]:  (ttyUSB5): port attributes not fully set May 20 20:51:20 pcp ModemManager[720]:  (ttyUSB2): port attributes not fully set May 20 20:51:20 pcp ModemManager[720]:  (ttyUSB3): port attributes not fully set May 20 20:51:20 pcp ModemManager[720]:  (ttyUSB1): port attributes not fully set May 20 20:51:20 pcp ModemManager[720]:  (ttyUSB0): port attributes not fully set May 20 20:51:20 pcp ModemManager[720]:  (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 
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]: Creating modem with plugin 'ZTE' and '6' ports May 20 20:51:38 pcp ModemManager[720]: Could not grab port (tty/ttyUSB4): 'Cannot add port 'tty/ttyUSB4', unhandled serial type' May 20 20:51:38 pcp ModemManager[720]: Could not grab port (tty/ttyUSB2): 'Cannot add port 'tty/ttyUSB2', unhandled serial type' May 20 20:51:38 pcp ModemManager[720]: Could not grab port (tty/ttyUSB5): 'Cannot add port 'tty/ttyUSB5', unhandled serial type'
May 20 20:51:38 pcp ModemManager[720]: (ttyUSB0): port attributes not fully set May 20 20:51:38 pcp ModemManager[720]: 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]: Couldn't load unlock retries: 'Unknown error' May 20 20:51:39 pcp ModemManager[720]: couldn't load list of Own Numbers: 'Failed to parse NV MDN command result: -17' May 20 20:51:39 pcp ModemManager[720]: couldn't load current allowed/preferred modes: 'Unknown error'
May 20 20:51:39 pcp ModemManager[720]: Modem: state changed (unknown -> disabled) May 20 20:51:39 pcp NetworkManager[784]: (ttyUSB0): failed to look up interface index May 20 20:51:39 pcp NetworkManager[784]: (ttyUSB0): new Broadband device (driver: 'option1' ifindex: 0) May 20 20:51:39 pcp NetworkManager[784]: (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/2 May 20 20:51:39 pcp NetworkManager[784]: (ttyUSB0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2] May 20 20:51:39 pcp NetworkManager[784]: (ttyUSB0): deactivating device (reason 'managed') [2] May 20 20:51:39 pcp NetworkManager[784]: (ttyUSB0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]

如果有人想要整个日志的文本文件,请告诉我。 许多USB加密狗存在此问题。 如果任何人可以提供任何解决方案,请执行此操作。 我想从3天开始希望我现在能得到解决方案。

我的中兴USB调制解调器有一个非常类似的问题,事实certificate它是作为CD单元安装的。

这就是我解决它的方法:

步骤1:使用lsusbvalidation是否检测到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 | 尾巴知道它是如何被发现的

 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通过使用-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以validation您的USB调制解调器已更改为Direct-Access模式

 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:网络管理员现在应该检测到您的调制解调器。

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

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

解:
1。

gedit /etc/usb_modeswitch.conf

2.将此代码添加到顶部的usb切换。

DisableSwitching = 1

3.save it。
4.再次插入usb
5.通过右键单击弹出usb cdrom
或使用。

sudo eject / dev / sr1

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

就这样

Reliance也提供UI软件
只需使用安装它

sudo ./file name

用它来运行它

sudo ztemtapp

这对我有用。