我有一个内部移动调制解调器,已被很好地检测到,目前正在用于 4G 互联网。顺便说一句,ModemManager 也检测到它:
% mmcli -L
/org/freedesktop/ModemManager1/Modem/0 [Hewlett-Packard] MU736
因此,当我尝试发送时,我首先创建一条短信:
% mmcli -m 0 --messaging-create-sms="text=Test,number=002127…"
Successfully created new SMS: /org/freedesktop/ModemManager1/SMS/3
短信设置正确:
% mmcli -s 3 -----------------------------
General | dbus path: /org/freedesktop/ModemManager1/SMS/3
-----------------------------
Content | number: 002127…
| text: Test
-----------------------------
Properties | pdu type: submit
| delivery report: not requested
但是,当我尝试发送它时,它失败了:
% mmcli -s 3 --send
[06 mars 2022, 07:50:31] [Debug] Assuming '3' is the SMS index
[06 mars 2022, 07:50:31] [Debug] ModemManager process found at ':1.15'
[06 mars 2022, 07:50:31] [Debug] SMS found at '/org/freedesktop/ModemManager1/SMS/3'
error: couldn't send the SMS: 'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.Unknown: Unknown error'
编辑
有时我也会收到这样的错误消息:
% mmcli -s 4 --send
error: couldn't send the SMS: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Connected: No AT port available to run command'
那么,这是什么意思以及我该如何解决它?