如何在不重新启动 Linux 的情况下更改 WWAN 适配器内的 SIM 卡?

如何在不重新启动 Linux 的情况下更改 WWAN 适配器内的 SIM 卡?

我正在使用支持 SIM 卡的 WWAN 网络适配器 (Fibocom L850GL)。

我的操作系统是 Debian 10,到目前为止我需要重新启动计算机才能使用它。

事情是这样的:

sudo service ModemManager status
● ModemManager.service - Modem Manager
   Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-12-12 21:28:52 CET; 25min ago
 Main PID: 911 (ModemManager)
    Tasks: 5 (limit: 4915)
   Memory: 12.6M
   CGroup: /system.slice/ModemManager.service
           ├─ 911 /usr/sbin/ModemManager --filter-policy=strict
           └─1186 /usr/lib/libmbim/mbim-proxy

Dec 12 21:49:11 dka ModemManager[911]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (home -> unknown)
Dec 12 21:49:11 dka ModemManager[911]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disabling -> disabled)
Dec 12 21:52:20 dka ModemManager[911]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disabled -> enabling)
Dec 12 21:52:21 dka ModemManager[911]: <warn>  could not load SIM identifier: SimNotInserted (3 retries left)
Dec 12 21:52:22 dka ModemManager[911]: <warn>  could not load SIM identifier: SimNotInserted (2 retries left)
Dec 12 21:52:23 dka ModemManager[911]: <warn>  could not load SIM identifier: SimNotInserted (1 retries left)
Dec 12 21:52:24 dka ModemManager[911]: <warn>  could not load SIM identifier: SimNotInserted
Dec 12 21:52:24 dka ModemManager[911]: <warn>  Error checking if SIM was swapped: 'SimNotInserted'
Dec 12 21:52:25 dka ModemManager[911]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (unknown -> idle)
Dec 12 21:52:25 dka ModemManager[911]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (enabling -> enabled)

我曾尝试过,sudo service ModemManager restart 但没有帮助:

● ModemManager.service - Modem Manager
   Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-12-12 21:55:07 CET; 39s ago
 Main PID: 9905 (ModemManager)
    Tasks: 5 (limit: 4915)
   Memory: 4.2M
   CGroup: /system.slice/ModemManager.service
           ├─9905 /usr/sbin/ModemManager --filter-policy=strict
           └─9922 /usr/lib/libmbim/mbim-proxy

Dec 12 21:55:10 dka ModemManager[9905]: opening device...
Dec 12 21:55:10 dka ModemManager[9905]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 512
Dec 12 21:55:10 dka ModemManager[9905]: [/dev/cdc-wdm0] MBIM device open
Dec 12 21:55:10 dka ModemManager[9905]: [/dev/cdc-wdm0] Checking version info (15 retries)...
Dec 12 21:55:10 dka ModemManager[9905]: [/dev/cdc-wdm0] sending message as MBIM...
Dec 12 21:55:10 dka ModemManager[9905]: <info>  [cdc-wdm0] MBIM device is not QMI capable
Dec 12 21:55:10 dka ModemManager[9905]: [/dev/cdc-wdm0] MBIM device wasn't explicitly closed
Dec 12 21:55:10 dka ModemManager[9905]: [/dev/cdc-wdm0] channel destroyed
Dec 12 21:55:22 dka ModemManager[9905]: <warn>  Modem couldn't be initialized: Couldn't check unlock status: Couldn't get SIM lock status after 6 retries
Dec 12 21:55:22 dka ModemManager[9905]: <info>  Modem: state changed (unknown -> failed)

如何在不重新启动 Linux 的情况下更改 WWAN 适配器内的 SIM 卡?

相关内容