如何激活 SIM 连接

如何激活 SIM 连接

我正在尝试让我的 sim 在 Ubuntu 20.04 中工作,并且我已按照此处指示的步骤进行操作https://ubuntu.com/core/docs/networkmanager/configure-cellular-connections但无济于事。似乎无法激活连接。

Ubuntu 版本:20.04 内核版本:5.13.0-37-generic

一些有用的输出

1.

$ mmcli -L
/org/freedesktop/ModemManager1/Modem/0 [Fibocom Wireless Inc.] DW5820e L850-GL
  --------------------------------
  General  |                 path: /org/freedesktop/ModemManager1/Modem/0
           |            device id: 9168cc1181808202f4eea76a3ac738129a172ce3
  --------------------------------
  Hardware |         manufacturer: Fibocom Wireless Inc.
           |                model: DW5820e L850-GL
           |    firmware revision: 18500.5001.00.03.25.18
           |         h/w revision: V1.0.4
           |            supported: gsm-umts, lte
           |              current: gsm-umts, lte
           |         equipment id: 863212038363484
  --------------------------------
  System   |               device: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7
           |              drivers: cdc_mbim, cdc_acm
           |               plugin: dell
           |         primary port: cdc-wdm0
           |                ports: cdc-wdm0 (mbim), ttyACM0 (at), ttyACM1 (ignored), 
           |                       ttyACM2 (ignored), wwan0 (net)
  --------------------------------
  Status   |       unlock retries: sim-pin2 (3)
           |                state: enabled
           |          power state: on
           |       signal quality: 0% (cached)
  --------------------------------
  Modes    |            supported: allowed: 3g; preferred: none
           |                       allowed: 4g; preferred: none
           |                       allowed: 3g, 4g; preferred: none
           |                       allowed: 3g, 4g; preferred: 3g
           |                       allowed: 3g, 4g; preferred: 4g
           |              current: allowed: 4g; preferred: none
  --------------------------------
  Bands    |            supported: utran-1, utran-4, utran-5, utran-8, utran-2, eutran-1, 
           |                       eutran-2, eutran-3, eutran-4, eutran-5, eutran-7, eutran-8, 
           |                       eutran-11, eutran-12, eutran-13, eutran-17, eutran-18, eutran-19, 
           |                       eutran-20, eutran-21, eutran-26, eutran-28, eutran-29, eutran-30, 
           |                       eutran-38, eutran-39, eutran-40, eutran-41, eutran-66
           |              current: eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, eutran-7, 
           |                       eutran-8, eutran-11, eutran-12, eutran-13, eutran-17, eutran-18, 
           |                       eutran-19, eutran-20, eutran-21, eutran-26, eutran-28, eutran-29, 
           |                       eutran-30, eutran-38, eutran-39, eutran-40, eutran-41, eutran-66
  --------------------------------
  IP       |            supported: ipv4, ipv6, ipv4v6
  --------------------------------
  3GPP     |                 imei: 863212038363484
           |        enabled locks: fixed-dialing
           |         registration: idle
  --------------------------------
  3GPP EPS | ue mode of operation: csps-2
  --------------------------------
  SIM      |     primary sim path: /org/freedesktop/ModemManager1/SIM/0

我尝试通过以下方式添加连接:

$nmcli c add type gsm ifname '*' con-name Econet apn econet.net 

我使用此命令确认了添加(包括输出):

$ nmcli con
*snip*
NAME                UUID                                  TYPE       DEVICE
Econet              4bb5baea-8c99-461d-93d8-3f4a8c59d4d1  gsm        --  
*snip*

然后我尝试提起这件事:

$nmcli c up Econet
Error: Connection activation failed: Network registration timed out
Hint: use 'journalctl -xe NM_CONNECTION=4bb5baea-8c99-461d-93d8-3f4a8c59d4d1 + NM_DEVICE=cdc-wdm0' to get more details.

日志输出:

$journalctl -xe NM_CONNECTION=4bb5baea-8c99-461d-93d8-3f4a8c59d4d1 + NM_DEVICE=cdc-wdm0 -f 
Apr 05 17:12:20 my-pc NetworkManager[1407]: <warn>  [1649171540.5580] device (cdc-wdm0): Activation: failed for connection 'Econet'
Apr 05 17:12:20 my-pc NetworkManager[1407]: <info>  [1649171540.5584] device (cdc-wdm0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')


日志会永远在这两条消息之间交替显示。

我在这里发现了类似的东西:https://superuser.com/questions/1298853/networkmanager-fails-to-start-gsm-connection。然而,尽管我尝试了多次,建议的解决方案对我来说仍然不起作用。

我尝试过 1 张仅支持数据的 SIM 卡和 2 张其他 SIM 卡(并非仅支持数据),但似乎都没有用。

注意:所有 3 张卡均可在 Windows 中使用。

我将非常感激您的任何意见。

相关内容