How to send sms from command line using mmcli and Fibocom L850GL
I am on Debian 10 and I am using mmcli v1.10.0
I have modem manager gui installed and it can send and receive SMS using my Fibocom L850GL wwan card using a GUI.
I want to send SMS from command line, I have tried to use gammu, but also mmcli, both with failure.
Reproduction
dka@dka:[~]: mmcli -m 0 --messaging-create-sms="text='Hello world',number='+336********'"
Successfully created new SMS: /org/freedesktop/ModemManager1/SMS/0
dka@dka:[~]: mmcli -s 0 --send -v
Expected
I expect to send SMS
Result
I have this when sending message:
dka@dka:[~]: mmcli -s 0 --send -v
[28 Nov 2019, 03:46:12] [Debug] Assuming '0' is the SMS index
[28 Nov 2019, 03:46:12] [Debug] ModemManager process found at ':1.8'
[28 Nov 2019, 03:46:12] [Debug] Sms found at '/org/freedesktop/ModemManager1/SMS/0'
error: couldn't send the SMS: 'GDBus.Error:org.freedesktop.libmbim.Error.Status.Failure: Couldn't send SMS part: Failure'
How can modem-manager-gui send the SMS but not mmcli? What does modem-manager-gui does that mmcli don't ?
I have tried to build from source modem-manager to upgrade to v1.12.0. without succcess.
I would really appreciate if you could let me know what magic you are doing to be able to send SMS from the gui, so I can do it from the command line.
Related issues
- https://linuxonly.ru/forum/modem-manager-gui/99/how-to-send-sms-from-command-line/
- https://superuser.com/questions/1504998/how-to-send-an-sms-from-debian-command-line
Thanks a lot for this awesome software!
Edited by Kopax Anderson