连接 USB 加密狗后无法在 /dev 中找到 ttyUSB

连接 USB 加密狗后无法在 /dev 中找到 ttyUSB

我迫切地想将 3G 加密狗连接到 Ubuntu 12.04。不幸的是,每次我尝试连接(使用 wvdial)时,我都会遇到Cannot open /dev/ttyUSB0: No such file or directory我查看过的消息/dev,并且该文件夹中实际上没有 ttyUSB 文件。

我已经尝试过lsusb命令,它确实列出了我的加密狗

的输出lsusb是:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 2232:1029  
Bus 002 Device 004: ID 0cf3:3004 Atheros Communications, Inc. 
Bus 002 Device 077: ID 1004:607f LG Electronics, Inc. 

输出tail -f /var/log/syslog

14:42:43 ubuntu kernel: [ 5320.716507] usb 2-1.2: USB disconnect, device number 52
14:42:45 ubuntu kernel: [ 5322.449570] usb 2-1.2: new full-speed USB device number 53 using ehci_hcd
14:42:45 ubuntu kernel: [ 5322.544073] scsi155 : usb-storage 2-1.2:1.0
14:42:45 ubuntu mtp-probe: checking bus 2, device 53: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2"
14:42:45 ubuntu mtp-probe: bus: 2, device: 53 was not an MTP device
14:42:46 ubuntu kernel: [ 5323.542840] scsi 155:0:0:0: CD-ROM            LG       Autorun          1.00 PQ: 0 ANSI: 0
14:42:46 ubuntu kernel: [ 5323.554690] sr1: scsi3-mmc drive: 48x/48x tray
14:42:46 ubuntu kernel: [ 5323.554939] sr 155:0:0:0: Attached scsi CD-ROM sr1
14:42:46 ubuntu kernel: [ 5323.555458] sr 155:0:0:0: Attached scsi generic sg2 type 5
14:42:46 ubuntu usb_modeswitch: switching device 1004:607f on 002/053
14:43:16 ubuntu kernel: [ 5353.691487] usb 2-1.2: USB disconnect, device number 53
14:43:17 ubuntu kernel: [ 5354.913282] usb 2-1.2: new full-speed USB device number 54 using ehci_hcd
14:43:17 ubuntu kernel: [ 5355.008311] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
14:43:17 ubuntu mtp-probe: checking bus 2, device 54: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2"
14:43:17 ubuntu kernel: [ 5355.009593] cdc_acm 2-1.2:1.2: ttyACM1: USB ACM device
14:43:17 ubuntu kernel: [ 5355.010501] cdc_acm 2-1.2:1.4: ttyACM2: USB ACM device
14:43:18 ubuntu mtp-probe: bus: 2, device: 54 was not an MTP device
14:43:18 ubuntu kernel: [ 5355.736283] usb 2-1.2: USB disconnect, device number 54
14:43:20 ubuntu kernel: [ 5357.469454] usb 2-1.2: new full-speed USB device number 55 using ehci_hcd
14:43:20 ubuntu kernel: [ 5357.564070] scsi156 : usb-storage 2-1.2:1.0
14:43:20 ubuntu mtp-probe: checking bus 2, device 55: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2"
14:43:20 ubuntu mtp-probe: bus: 2, device: 55 was not an MTP device
14:43:21 ubuntu kernel: [ 5358.562387] scsi 156:0:0:0: CD-ROM            LG       Autorun          1.00 PQ: 0 ANSI: 0
14:43:21 ubuntu kernel: [ 5358.575263] sr1: scsi3-mmc drive: 48x/48x tray
14:43:21 ubuntu kernel: [ 5358.575469] sr 156:0:0:0: Attached scsi CD-ROM sr1
14:43:21 ubuntu kernel: [ 5358.575609] sr 156:0:0:0: Attached scsi generic sg2 type 5
14:43:21 ubuntu usb_modeswitch: switching device 1004:607f on 002/055

我的 USB 3G 加密狗是此列表中的最后一个(LG 电子)

我怎样才能使我的加密狗显示在 ttyusb 中?

答案1

从你的系统日志中读取:

  • 该设备似乎模拟了提供 Windows 驱动程序的 CD 驱动器。
  • 有 ttyACM 设备。您是否尝试过 /dev/ttyACM1 和 2 而不是 ttyUSB0?

相关内容