我正在尝试在 Ubuntu 16.04 LTS 上使用华为 4G 加密狗。
我的 USB 4G 加密狗被正确检测为调制解调器:
romain@dPanda:~$ lsusb
...
Bus 002 Device 003: ID 12d1:1c05 Huawei Technologies Co., Ltd. Broadband stick (modem on)
我的问题不是 usb_modswitch 问题,因为 NetworkManager 正确地将调制解调器检测为调制解调器
我可以使用网络管理器建立连接,但是当我尝试连接时连接失败。
以下是系统日志摘录:
Mar 24 12:58:21 dPanda NetworkManager[873]: <info> [1521892701.1289] device (ttyUSB2): Activation: starting connection 'Free Mobile' (d91a2b28-b566-4244-b243-61642de63acb)
Mar 24 12:58:21 dPanda NetworkManager[873]: <info> [1521892701.1291] audit: op="connection-activate" uuid="d91a2b28-b566-4244-b243-61642de63acb" name="Free Mobile" pid=1490 uid=1000 result="success"
Mar 24 12:58:21 dPanda NetworkManager[873]: <info> [1521892701.1292] device (ttyUSB2): state change: disconnected -> prepare (reason 'none') [30 40 0]
Mar 24 12:58:21 dPanda NetworkManager[873]: <info> [1521892701.1296] device (ttyUSB2): state change: prepare -> need-auth (reason 'none') [40 60 0]
Mar 24 12:58:21 dPanda NetworkManager[873]: <info> [1521892701.1832] device (ttyUSB2): state change: need-auth -> prepare (reason 'none') [60 40 0]
Mar 24 12:58:21 dPanda ModemManager[792]: <info> Simple connect started...
Mar 24 12:58:21 dPanda ModemManager[792]: <info> Simple connect state (4/8): Wait to get fully enabled
Mar 24 12:58:21 dPanda ModemManager[792]: <info> Simple connect state (5/8): Register
Mar 24 12:58:21 dPanda ModemManager[792]: <info> Simple connect state (6/8): Bearer
Mar 24 12:58:21 dPanda ModemManager[792]: <info> Simple connect state (7/8): Connect
Mar 24 12:58:21 dPanda ModemManager[792]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (registered -> connecting)
Mar 24 12:58:30 dPanda ModemManager[792]: <warn> Couldn't initialize PDP context with our APN: 'Sending command failed: 'Resource temporarily unavailable''
Mar 24 12:58:30 dPanda ModemManager[792]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connecting -> registered)
Mar 24 12:58:30 dPanda NetworkManager[873]: <warn> [1521892710.7878] (ttyUSB2): failed to connect modem: Sending command failed: 'Resource temporarily unavailable'
Mar 24 12:58:30 dPanda NetworkManager[873]: <info> [1521892710.7879] device (ttyUSB2): state change: prepare -> failed (reason 'unknown') [40 120 1]
Mar 24 12:58:30 dPanda NetworkManager[873]: <warn> [1521892710.7902] device (ttyUSB2): Activation: failed for connection 'Free Mobile'
Mar 24 12:58:30 dPanda NetworkManager[873]: <info> [1521892710.7912] device (ttyUSB2): state change: failed -> disconnected (reason 'none') [120 30 0]
问候,
罗曼