相关让华为移动宽带 E173 在 Ubuntu 13.10 上运行。我的华为 ec156 调制解调器也遇到了同样的情况。使用 wvdial 时,它可以与 /dev/ttyUSB0 完美配合,但使用网络管理器时,由于某种原因,它使用 /dev/ttyUSB2 并无法连接(即使 NW 管理器检测到它)。可能是代码/配置实现方式的问题。我真的很想使用网络管理器,以便更轻松地实现连接,并使用网络共享将数据卡用作 Wifi 热点。
訂閱
Bus 002 Device 006: ID 12d1:140b
Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card
纳米粒子
DEVICE TYPE STATE
**ttyUSB2 cdma disconnected**
eth0 802-3-ethernet unavailable
wlan0 802-11-wireless disconnected
插入设备时记录
Apr 24 12:23:04 quaddy kernel: [ 3951.246348] usb 2-1.1: new full-speed USB device number 8 using ehci-pci
Apr 24 12:23:05 quaddy kernel: [ 3951.340038] usb 2-1.1: New USB device found, idVendor=12d1, idProduct=1505
Apr 24 12:23:05 quaddy kernel: [ 3951.340047] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=4
Apr 24 12:23:05 quaddy kernel: [ 3951.340052] usb 2-1.1: Product: HUAWEI Mobile
Apr 24 12:23:05 quaddy kernel: [ 3951.340057] usb 2-1.1: Manufacturer: HUAÿWEI TECHNOLOGIES
Apr 24 12:23:05 quaddy kernel: [ 3951.340062] usb 2-1.1: SerialNumber: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Apr 24 12:23:05 quaddy kernel: [ 3951.340747] usb-storage 2-1.1:1.0: USB Mass Storage device detected
Apr 24 12:23:05 quaddy kernel: [ 3951.340976] scsi16 : usb-storage 2-1.1:1.0
Apr 24 12:23:05 quaddy mtp-probe: checking bus 2, device 8: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Apr 24 12:23:05 quaddy mtp-probe: bus: 2, device: 8 was not an MTP device
Apr 24 12:23:06 quaddy kernel: [ 3952.341150] scsi 16:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Apr 24 12:23:06 quaddy kernel: [ 3952.350107] sr1: scsi-1 drive
Apr 24 12:23:06 quaddy kernel: [ 3952.350410] sr 16:0:0:0: Attached scsi CD-ROM sr1
Apr 24 12:23:06 quaddy kernel: [ 3952.350564] sr 16:0:0:0: Attached scsi generic sg2 type 5
Apr 24 12:23:06 quaddy usb_modeswitch: switch device 12d1:1505 on 002/008
Apr 24 12:23:06 quaddy kernel: [ 3952.665155] usb 2-1.1: USB disconnect, device number 8
Apr 24 12:23:09 quaddy kernel: [ 3955.689071] usb 2-1.1: new full-speed USB device number 9 using ehci-pci
Apr 24 12:23:09 quaddy kernel: [ 3955.783434] usb 2-1.1: New USB device found, idVendor=12d1, idProduct=140b
Apr 24 12:23:09 quaddy kernel: [ 3955.783443] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=4
Apr 24 12:23:09 quaddy kernel: [ 3955.783448] usb 2-1.1: Product: HUAWEI Mobile
Apr 24 12:23:09 quaddy kernel: [ 3955.783453] usb 2-1.1: Manufacturer: HUAÿWEI TECHNOLOGIES
Apr 24 12:23:09 quaddy kernel: [ 3955.783458] usb 2-1.1: SerialNumber: ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Apr 24 12:23:09 quaddy kernel: [ 3955.784391] usb-storage 2-1.1:1.0: USB Mass Storage device detected
Apr 24 12:23:09 quaddy kernel: [ 3955.784608] option 2-1.1:1.0: GSM modem (1-port) converter detected
Apr 24 12:23:09 quaddy kernel: [ 3955.784925] usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB0
Apr 24 12:23:09 quaddy kernel: [ 3955.785385] usb-storage 2-1.1:1.1: USB Mass Storage device detected
Apr 24 12:23:09 quaddy kernel: [ 3955.785691] option 2-1.1:1.1: GSM modem (1-port) converter detected
Apr 24 12:23:09 quaddy kernel: [ 3955.785943] usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB1
Apr 24 12:23:09 quaddy kernel: [ 3955.786271] usb-storage 2-1.1:1.2: USB Mass Storage device detected
Apr 24 12:23:09 quaddy kernel: [ 3955.786561] option 2-1.1:1.2: GSM modem (1-port) converter detected
Apr 24 12:23:09 quaddy kernel: [ 3955.786822] usb 2-1.1: GSM modem (1-port) converter now attached to ttyUSB2
Apr 24 12:23:09 quaddy kernel: [ 3955.786933] usb-storage 2-1.1:1.3: USB Mass Storage device detected
Apr 24 12:23:09 quaddy kernel: [ 3955.787542] scsi20 : usb-storage 2-1.1:1.3
Apr 24 12:23:09 quaddy mtp-probe: checking bus 2, device 9: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Apr 24 12:23:09 quaddy mtp-probe: bus: 2, device: 9 was not an MTP device
Apr 24 12:23:09 quaddy ModemManager[701]: <warn> (ttyUSB1): port attributes not fully set
Apr 24 12:23:09 quaddy ModemManager[701]: <warn> (ttyUSB2): port attributes not fully set
Apr 24 12:23:09 quaddy ModemManager[701]: <warn> (ttyUSB0): port attributes not fully set
Apr 24 12:23:10 quaddy usb_modeswitch: switched to 12d1:ffffffff on 002/008
Apr 24 12:23:10 quaddy kernel: [ 3956.787823] scsi 20:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 0
Apr 24 12:23:10 quaddy kernel: [ 3956.789660] scsi 20:0:0:1: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
Apr 24 12:23:10 quaddy kernel: [ 3956.798813] sr1: scsi-1 drive
Apr 24 12:23:10 quaddy kernel: [ 3956.799032] sr 20:0:0:0: Attached scsi CD-ROM sr1
Apr 24 12:23:10 quaddy kernel: [ 3956.799130] sr 20:0:0:0: Attached scsi generic sg2 type 5
Apr 24 12:23:10 quaddy kernel: [ 3956.799427] sd 20:0:0:1: Attached scsi generic sg3 type 0
Apr 24 12:23:10 quaddy kernel: [ 3956.835675] sd 20:0:0:1: [sdb] Attached SCSI removable disk
Apr 24 12:23:11 quaddy usb_modeswitch[3860]: usb_modeswitch: switched to 12d1:140b on 2/9
Apr 24 12:23:12 quaddy usb_modeswitch[3860]: usb_modeswitch: add device ID 12d1:140b to driver option
Apr 24 12:23:12 quaddy usb_modeswitch[3860]: usb_modeswitch: please report the device ID to the Linux USB developers!
Apr 24 12:23:13 quaddy ModemManager[701]: <warn> (ttyUSB1): port attributes not fully set
Apr 24 12:23:13 quaddy ModemManager[701]: <warn> (ttyUSB2): port attributes not fully set
Apr 24 12:23:23 quaddy ModemManager[701]: <info> Creating modem with plugin 'Huawei' and '3' ports
Apr 24 12:23:23 quaddy ModemManager[701]: <warn> (ttyUSB2): port attributes not fully set
Apr 24 12:23:23 quaddy ModemManager[701]: <info> Modem for device at '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1' successfully created
Apr 24 12:23:23 quaddy ModemManager[701]: <warn> Couldn't load unlock retries: 'SIM not inserted'
Apr 24 12:23:23 quaddy ModemManager[701]: <warn> couldn't load list of Own Numbers: 'MDN from NV memory appears invalid'
Apr 24 12:23:23 quaddy ModemManager[701]: <warn> couldn't load current Bands: 'Couldn't build bands array from '3''
Apr 24 12:23:23 quaddy ModemManager[701]: <info> Modem: state changed (unknown -> disabled)
Apr 24 12:23:23 quaddy NetworkManager[897]: <warn> (ttyUSB2): failed to look up interface index
Apr 24 12:23:23 quaddy NetworkManager[897]: <info> (ttyUSB2): new Broadband device (driver: 'option1' ifindex: 0)
Apr 24 12:23:23 quaddy NetworkManager[897]: <info> (ttyUSB2): exported as /org/freedesktop/NetworkManager/Devices/4
Apr 24 12:23:23 quaddy NetworkManager[897]: <info> (ttyUSB2): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Apr 24 12:23:23 quaddy NetworkManager[897]: <info> (ttyUSB2): deactivating device (reason 'managed') [2]
Apr 24 12:23:23 quaddy NetworkManager[897]: <info> NetworkManager state is now DISCONNECTED
Apr 24 12:23:23 quaddy NetworkManager[897]: <info> (ttyUSB2): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
该设备支持附加 SIM,因此 ttyUSB2 和 ttyUSB0 为 CDMA
我已经尝试过这里的解决方案在 ubuntu 13.10 中配置 USB 调制解调器(华为 EC156)还 。
问题是“我可以手动配置网络管理器以使用 ttyUSB0 而不是 ttyUSB2 吗?”
也许一种解决方法是提供一些选项来指定正确的调制解调器和 AT 命令,就像普通拨号器一样。
答案1
计算机已将其识别为无线数据调制解调器模式。因此需要将该模式切换到移动宽带模式。该模式切换由包完成usb-modeswith
。确认 usb-modeswitch 是否已安装:
dpkg --get-selections | grep -v deinstall
这将列出已安装的软件包。查看是否usb-modeswitch
有其他软件包。(按字母顺序排列)
如果存在,则尝试安装华为宽带调制解调器正常运行所需的所有软件包。
sudo apt-get install python-pysqlite2 python-pysqlite2-doc python-pysqlite2-dbg hal python-messaging wader-core
network-manager
然后还安装所有需要正常工作的软件包。(其依赖项)
sudo apt-get install multiarch-support dbus dnsmasq-base iproute2 iputils-arping isc-dhcp-client libc6 libdbus-1-3 libdbus-glib-1-2 libglib2.0-0 libgudev-1.0-0 libmm-glib0 libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libnm-glib4 libnm-util2 libpolkit-gobject-1-0 libsoup2.4-1 libsystemd-login0 lsb-base policykit-1sysv-rc udev wpasupplicant