在 Debian Bullseye 中使用 SIM7600-H 4G 模块的 QMI 接口

在 Debian Bullseye 中使用 SIM7600-H 4G 模块的 QMI 接口

我对此还很陌生,所以请耐心等待。

我想通过 SIM7600-H 4G 模块通过 LTE 建立连接。该模块内置在 IPC 中,因此我别无选择,只能使用此模块。

在 IPC 上,我安装了新安装的 Debian Bullseye,没有图形用户界面。应通过 ModemManager 和 NetworkManager 建立连接。SIM 卡已连接到 IPC。此外,在 IPC 上,我运行了 docker 来托管一些所需的容器。这在以后会变得很重要。

事实上无法建立连接。通话时nmcli c我有以下输出:

NAME                         UUID                                  TYPE      DEVICE
Kabelgebundene Verbindung 3  2f8476a6-71fc-3e3b-9906-eac78a8a3715  ethernet  enx00e04f82b8c1
br-46836c0ad94d              e7ddf6ba-ca01-4fc8-86c3-c40f2c35e431  bridge    br-46836c0ad94d
eth1                         af45033b-1d1c-4f29-831f-d01620119260  ethernet  enp1s0
docker0                      1284ebb4-010e-4658-bbe0-7e2188298dd4  bridge    docker0
eth0                         0b607d47-d313-449b-8911-7a307c2552a4  ethernet  enp0s31f6
hotspot                      c819c76e-c604-4fe4-8484-49a87d8af472  wifi      --
Kabelgebundene Verbindung 1  b84a613f-6ea8-3cb6-8f21-280dd2028a01  ethernet  --
Kabelgebundene Verbindung 2  f3e8dd43-0887-3020-947b-a14413a2c9fa  ethernet  --
lte0                         eaf626d7-c115-4061-97e9-7b26b612c047  gsm       --

因此,您可以看到调制解调器未连接。调用mmcli -m 0有以下输出:

 -----------------------------------
  General  |               dbus path: /org/freedesktop/ModemManager1/Modem/0
           |               device id: 6e46feda3e60a1419f0bb5413eb212813cf841d0
  -----------------------------------
  Hardware |            manufacturer: QUALCOMM INCORPORATED
           |                   model: 0
           |       firmware revision: LE11B12SIM7600M22
           |          carrier config: Commercial-DT
           | carrier config revision: 05011F11
           |            h/w revision: 10000
           |               supported: gsm-umts, lte
           |                 current: gsm-umts, lte
           |            equipment id: 867584033521118
  -----------------------------------
  System   |                  device: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5
           |                 drivers: option1, qmi_wwan
           |                  plugin: simtech
           |            primary port: cdc-wdm1
           |                   ports: cdc-wdm1 (qmi), ttyUSB0 (qcdm), ttyUSB1 (gps),
           |                          ttyUSB2 (at), ttyUSB3 (at), ttyUSB4 (audio), wwan0 (net)
  -----------------------------------
  Status   |                    lock: sim-pin2
           |          unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
           |                   state: registered
           |             power state: on
           |             access tech: gsm
           |          signal quality: 39% (recent)
  -----------------------------------

连接处于“已注册”状态,但未处于“已连接”状态。

我尝试过什么:

我将 QMI 驱动程序列入了黑名单。这使得 LTE 可以正常工作。但是:docker 容器随后无法启动。我发现这是由于 dockerd 中存在以下错误:https://github.com/moby/moby/issues/43034

所以,我现在的目标是通过 QMI 接口建立连接,因为这似乎也适用于 docker。

更多信息:输出more syslog | grep tty为:

Nov 30 09:51:50 tt-factory systemd[1]: Condition check resulted in getty on tty2-tty6 if dbus and logind are not available being skipped.
Nov 30 09:51:50 tt-factory kernel: [    0.075765] printk: console [tty0] enabled
Nov 30 09:51:50 tt-factory kernel: [    0.944470] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
Nov 30 09:51:50 tt-factory kernel: [    0.946315] 00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
Nov 30 09:51:50 tt-factory kernel: [    0.948215] 00:05: ttyS2 at I/O 0x3e8 (irq = 11, base_baud = 115200) is a 16550A
Nov 30 09:51:50 tt-factory kernel: [    0.950137] 00:06: ttyS3 at I/O 0x2e8 (irq = 10, base_baud = 115200) is a 16550A
Nov 30 09:51:50 tt-factory kernel: [    3.538417] usb 1-5: GSM modem (1-port) converter now attached to ttyUSB0
Nov 30 09:51:50 tt-factory kernel: [    3.538587] usb 1-5: GSM modem (1-port) converter now attached to ttyUSB1
Nov 30 09:51:50 tt-factory kernel: [    3.538834] usb 1-5: GSM modem (1-port) converter now attached to ttyUSB2
Nov 30 09:51:50 tt-factory kernel: [    3.539442] usb 1-5: GSM modem (1-port) converter now attached to ttyUSB3
Nov 30 09:51:50 tt-factory kernel: [    3.539599] usb 1-5: GSM modem (1-port) converter now attached to ttyUSB4
Nov 30 09:52:02 tt-factory systemd[1]: Started Getty on tty1.
Nov 30 09:53:49 tt-factory lte-device-watchdog[453]: Device on /dev/ttyUSB3 found, sending reset command
Nov 30 09:54:52 tt-factory lte-device-watchdog[453]: Device on /dev/ttyUSB3 found, sending reset command
Nov 30 09:55:55 tt-factory lte-device-watchdog[453]: Device on /dev/ttyUSB3 found, sending reset command
Nov 30 09:56:58 tt-factory lte-device-watchdog[453]: Device on /dev/ttyUSB3 found, sending reset command
Nov 30 09:58:01 tt-factory lte-device-watchdog[453]: Device on /dev/ttyUSB3 found, sending reset command

的输出more syslog | grep qmi是:

Nov 30 09:51:50 tt-factory kernel: [    3.621485] qmi_wwan 1-5:1.5: cdc-wdm1: USB WDM device
Nov 30 09:51:50 tt-factory kernel: [    3.624587] qmi_wwan 1-5:1.5 wwan0: register 'qmi_wwan' at usb-0000:00:14.0-5, WWAN/QMI device, ba:5b:51:b1:ff:aa
Nov 30 09:51:50 tt-factory kernel: [    3.624630] usbcore: registered new interface driver qmi_wwan
Nov 30 09:51:52 tt-factory ModemManager[477]: spawning new qmi-proxy (try 1)...
Nov 30 09:51:53 tt-factory ModemManager[477]: [/dev/cdc-wdm1] Reading expected data format from: /sys/class/net/wwan0/qmi/raw_ip
Nov 30 09:51:53 tt-factory ModemManager[477]: [/dev/cdc-wdm1] Writing expected data format to: /sys/class/net/wwan0/qmi/raw_ip
Nov 30 09:51:53 tt-factory ModemManager[477]: [/dev/cdc-wdm1] Reading expected data format from: /sys/class/net/wwan0/qmi/raw_ip

我在这里很为难。所以任何帮助我都会很感激。提前谢谢。

相关内容