为什么我在 22.04 中看不到我的 EG25-G 蜂窝调制解调器,但在 20.04 上却可以看到?

为什么我在 22.04 中看不到我的 EG25-G 蜂窝调制解调器,但在 20.04 上却可以看到?

我在尝试使用Quectel EG-25G 蜂窝调制解调器在运行 Ubuntu 22.04 的笔记本电脑中。当我通过 USB 插入模块时什么也没有发生,但我可以看到sudo dmesg

[  +3.522010] usb 1-7.1.2.2: new high-speed USB device number 43 using xhci_hcd
[  +0.110093] usb 1-7.1.2.2: New USB device found, idVendor=2c7c, idProduct=0125, bcdDevice= 3.18
[  +0.000005] usb 1-7.1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000002] usb 1-7.1.2.2: Product: EG25-G
[  +0.000001] usb 1-7.1.2.2: Manufacturer: Quectel
[  +0.011904] option 1-7.1.2.2:1.0: GSM modem (1-port) converter detected
[  +0.000136] usb 1-7.1.2.2: GSM modem (1-port) converter now attached to ttyUSB1
[  +0.000108] option 1-7.1.2.2:1.1: GSM modem (1-port) converter detected
[  +0.000118] usb 1-7.1.2.2: GSM modem (1-port) converter now attached to ttyUSB2
[  +0.000148] option 1-7.1.2.2:1.2: GSM modem (1-port) converter detected
[  +0.000122] usb 1-7.1.2.2: GSM modem (1-port) converter now attached to ttyUSB3
[  +0.000122] option 1-7.1.2.2:1.3: GSM modem (1-port) converter detected
[  +0.000098] usb 1-7.1.2.2: GSM modem (1-port) converter now attached to ttyUSB4
[  +0.000966] qmi_wwan 1-7.1.2.2:1.4: cdc-wdm6: USB WDM device
[  +0.001144] qmi_wwan 1-7.1.2.2:1.4 wwan0: register 'qmi_wwan' at usb-0000:00:14.0-7.1.2.2, WWAN/QMI device, ae:57:74:db:30:46

另外,执行时我看不到设备nmcli dev。我只能看到这个:

DEVICE           TYPE      STATE                   CONNECTION 
enp0s31f6        ethernet  connected               enp0s31f6  
wlp2s0           wifi      connected               m4lv4r-5.0 
virbr0           bridge    connected (externally)  virbr0     
p2p-dev-wlp2s0   wifi-p2p  disconnected            --         
enx00e04c6803ec  ethernet  unavailable             --         
lo               loopback  unmanaged               --       

然后,我尝试将调制解调器插入 Ubuntu 20.04 VM(使用 gnome-boxes),并且它可以正常工作,除了看到设备正在注册之外dmesg,我还在执行时看到了以下内容nmcli dev

enp1s0    ethernet  connected     Wired connection 1 
cdc-wdm0  gsm       disconnected  --                 
lo        loopback  unmanaged     --                 

因此您可以看到 cdc-wdm0 是可见的,并且我还可以在这里看到该设备: 在此处输入图片描述

我只需点击连接,我已准备好

在此处输入图片描述

另外,在 20.04 上我可以看到这个网络管理器

[1682479699.3809] modem["cdc-wdm0"]: modem state changed, 'disabled' --> 'enabling' (reason: user preference)
[1682479699.3814] manager: (cdc-wdm0): new Broadband device (/org/freedesktop/NetworkManager/Devices/6)
[1682479699.3819] device (cdc-wdm0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
[1682479699.3823] device (cdc-wdm0): modem state 'enabling'
[1682479699.3829] device (cdc-wdm0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
[1682479700.0764] modem["cdc-wdm0"]: modem state changed, 'enabling' --> 'enabled' (reason: user-requested)
[1682479700.1083] modem["cdc-wdm0"]: modem state changed, 'enabled' --> 'registered' (reason: unknown)
[1682479747.7496] device (cdc-wdm0): Activation: starting connection 'AT&T connection' (15a3044e-8878-430e-b2cd-cd4515594b92)
[1682479747.7498] audit: op="connection-activate" uuid="15a3044e-8878-430e-b2cd-cd4515594b92" name="AT&T connection" pid=1647 uid=1000 result="success"
[1682479747.7499] device (cdc-wdm0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
[1682479747.7585] modem["cdc-wdm0"]: modem state changed, 'registered' --> 'connecting' (reason: user-requested)
[1682479748.1439] modem["cdc-wdm0"]: modem state changed, 'connecting' --> 'connected' (reason: user-requested)
[1682479748.1490] device (cdc-wdm0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
[1682479748.1496] device (cdc-wdm0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
[1682479748.1500] modem-broadband[cdc-wdm0]: IPv4 static configuration:
[1682479748.1501] modem-broadband[cdc-wdm0]:   address 10.29.200.200/28
[1682479748.1501] modem-broadband[cdc-wdm0]:   gateway 10.29.200.201
[1682479748.1501] modem-broadband[cdc-wdm0]:   DNS 8.8.8.8
[1682479748.1501] modem-broadband[cdc-wdm0]:   DNS 1.1.1.1
[1682479748.1502] modem-broadband[cdc-wdm0]:   MTU 1500
[1682479748.1520] device (cdc-wdm0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
[1682479748.1714] device (cdc-wdm0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
[1682479748.1717] device (cdc-wdm0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
[1682479748.1746] device (cdc-wdm0): Activation: successful, device activated.

还有这个调制解调器管理器

[692]: <info>  [modem3] state changed (unknown -> disabled)
[692]: <info>  [modem3] state changed (disabled -> enabling)
[692]: <info>  [modem3] power state updated: on
[692]: <info>  [modem3] state changed (enabling -> enabled)
[692]: <info>  [modem3] 3GPP registration state changed (unknown -> registering)
[692]: <info>  [modem3] 3GPP registration state changed (registering -> roaming)
[692]: <info>  [modem3] state changed (enabled -> registered)
[692]: <info>  [modem3] simple connect started...
[692]: <info>  [modem3] simple connect state (4/8): wait to get fully enabled
[692]: <info>  [modem3] simple connect state (5/8): register
[692]: <info>  [modem3] simple connect state (6/8): bearer
[692]: <info>  [modem3] simple connect state (7/8): connect
[692]: <info>  [modem3] state changed (registered -> connecting)
[692]: [/dev/cdc-wdm0] Allocating new client ID...
[692]: [/dev/cdc-wdm0] Registered 'wds' (version 1.67) client with ID '18'
[692]: <info>  [modem3/bearer6] QMI IPv4 Settings:
[692]: <info>  [modem3/bearer6]     address: 10.29.200.200/28
[692]: <info>  [modem3/bearer6]     gateway: 10.29.200.201
[692]: <info>  [modem3/bearer6]     DNS #1: 8.8.8.8
[692]: <info>  [modem3/bearer6]     DNS #2: 1.1.1.1
[692]: <info>  [modem3/bearer6]        MTU: 1500
[692]: <info>  [modem3] state changed (connecting -> connected)
[692]: <info>  [modem3] simple connect state (8/8): all done

而在 22.04 中什么都没有发生,我看不到 NetworkManager 中的任何活动,ModemManager 一直处于死机状态,根本不起作用。我给出这个:

sudo systemctl status ModemManager.service                                                                                                    ─╯
× ModemManager.service - Modem Manager
     Loaded: loaded (/lib/systemd/system/ModemManager.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-04-25 23:20:28 EDT; 3s ago
    Process: 774963 ExecStart=/usr/sbin/ModemManager (code=exited, status=127)
   Main PID: 774963 (code=exited, status=127)
        CPU: 57ms

Apr 25 23:20:28 Precision7710 systemd[1]: Starting Modem Manager...
Apr 25 23:20:28 Precision7710 systemd[1]: ModemManager.service: Main process exited, code=exited, status=127/n/a
Apr 25 23:20:28 Precision7710 systemd[1]: ModemManager.service: Failed with result 'exit-code'.
Apr 25 23:20:28 Precision7710 systemd[1]: Failed to start Modem Manager.

在我必须运行之后sudo systemctl unmask ModemManager.service;sudo systemctl restart ModemManager.service因为运行这两个命令后我才得到

为什么这个在 22.04 上不起作用?我希望它在 22.04 上能更好地工作,因为它是较新的。我遗漏了什么?

相关内容