08-21-2020, 08:35 PM
(This post was last modified: 08-21-2020, 08:39 PM by SwordfishII.)
(08-17-2020, 08:26 PM)kop316 Wrote: So I did a bit of invesitgating:
I have investigated it a bit more. Modem Manager can see the MMS notification with this command:
$mmcli -m 4 --messaging-list-sms
/org/freedesktop/ModemManager1/SMS/13 (received)
/org/freedesktop/ModemManager1/SMS/12 (receiving)
/org/freedesktop/ModemManager1/SMS/11 (received)
I sent myself an MMS and redid the command
$mmcli -m 4 --messaging-list-sms
/org/freedesktop/ModemManager1/SMS/14 (received)
/org/freedesktop/ModemManager1/SMS/13 (received)
/org/freedesktop/ModemManager1/SMS/12 (receiving)
/org/freedesktop/ModemManager1/SMS/11 (received)
I additionally was able to download the SMS with this command:
$mmcli -m 4 -s 14 --create-file-with-data=/home/mobian/mms2.txt
You can also see it with this command:
mobian@mobian:~$ mmcli -m 2 -s 8
-----------------------
General | dbus path: /org/freedesktop/ModemManager1/SMS/8
-----------------------
Content | number: 2300
| data: **kop316 deleted this data due to privacy concerns**
-----------------------
Properties | pdu type: deliver
| state: received
| storage: me
| smsc: +12063130079
| class: 1
| timestamp: 2020-08-17T19:51:03-07:00
It was the SMS notifcation! Between this and the fact that most of the other MMS handling is done though WAP/HTTP, I don't think Modem Manager needs to be modified in order to support MMS.
Even more exciting, I can download the MMS! I had to switch to mobile data, but once I did a simple "wget" downloaded the MMS payload.
Almost seems like a background daemon querying for an mms sms in the background would work. Once it finds one it triggers a wget script.
Probably not the most power efficient way and bound to have issues with sleep, but functional.