MMS Download Script
#1
Just finished cleaning up / redoing my bash script for downloading mms messages. It appears that others have already published their programs/scripts for working with MMS and some are now working on better implementations. Thought I would share mine anyway in case it helps somehow.

Script:
https://gitlab.com/antiX-Dave/mms-downlo...s-download

It will need / should have installed curl, recoverjpeg, libnotify-bin, sox
apt install curl recoverjpeg libnotify-bin sox

You will need to modify the variables in the script at least to show your service providers mms proxy and mms proxy port

I also have this running on a cron job every 5 minutes.
For this you also need to install cron
apt install --no-install-recommends cron


A couple others I have noticed working on mms when looking where to post this
https://forum.pine64.org/showthread.php?tid=11994
https://forum.pine64.org/showthread.php?tid=12106
#2
(11-11-2020, 02:23 PM)antiX-Dave Wrote: Just finished cleaning up / redoing my bash script for downloading mms messages. It appears that others have already published their programs/scripts for working with MMS and some are now working on better implementations. Thought I would share mine anyway in case it helps somehow.

Script:
https://gitlab.com/antiX-Dave/mms-downlo...s-download

It will need / should have installed curl, recoverjpeg, libnotify-bin, sox
apt install curl recoverjpeg libnotify-bin sox

You will need to modify the variables in the script at least to show your service providers mms proxy and mms proxy port

I also have this running on a cron job every 5 minutes.
For this you also need to install cron
apt install --no-install-recommends cron


A couple others I have noticed working on mms when looking where to post this
https://forum.pine64.org/showthread.php?tid=11994
https://forum.pine64.org/showthread.php?tid=12106

This is great - thanks for working on and sharing it! And thanks for pointing to the other MMS projects as well, which I hadn't heard of. This has been the only issue keeping me from using the Pinephone as my daily driver, since my wife and friends often send MMS messages and I was concerned about missing them or having them clog up my inbox. Look forward to trying it out soon.
#3
Thumbs Up 
(11-11-2020, 02:23 PM)antiX-Dave Wrote: Just finished cleaning up / redoing my bash script for downloading mms messages. It appears that others have already published their programs/scripts for working with MMS and some are now working on better implementations. Thought I would share mine anyway in case it helps somehow.

Script:
https://gitlab.com/antiX-Dave/mms-downlo...s-download

It will need / should have installed curl, recoverjpeg, libnotify-bin, sox
apt install curl recoverjpeg libnotify-bin sox

You will need to modify the variables in the script at least to show your service providers mms proxy and mms proxy port

I also have this running on a cron job every 5 minutes.
For this you also need to install cron
apt install --no-install-recommends cron


A couple others I have noticed working on mms when looking where to post this
https://forum.pine64.org/showthread.php?tid=11994
https://forum.pine64.org/showthread.php?tid=12106
#4
Now lets just make this bash script run in the background every 5 or 10 mins automatically after boot and package it as a .deb file for public download and it should satisfy anyone who has this as a Daily Driver requirement.
#5
AntiX-Dave, Thanks for the work! I am not quite ready to try this, but in going through the motion I found today with sudo mmcli -L that my modem is no longer 0, but is 6. (which explains why I was getting error message of not finding the modem, even though my phone voice and data were both working.) So then I continue to check and see if i have any large sms that usually means someone sent me a mms without me knowing. Literally, within the same hour, with sudo mmcli -i 6 , I get the error message that there is no SIM found. OK, so I did another sudo mmcli -L , and what do you know, it is now 7, not 6.
#6
(11-12-2020, 01:44 PM)HLing Wrote: AntiX-Dave, Thanks for the work!  I am not quite ready to try this, but in going through the motion I found today with sudo mmcli -L that my modem is no longer 0, but is 6.  (which explains why I was getting error message of not finding the modem, even though my phone voice and data were both working.) So then I continue to check and see if i have any large sms that usually means someone sent me a mms without me knowing.  Literally, within the same hour, with sudo mmcli -i 6 , I get the error message that there is no SIM found.  OK, so I did another sudo mmcli -L , and what do you know, it is now 7, not 6.

Not 100% sure but it sounds like your modem is improperly power cycling and the kernel is seeing it as a new device every time the modem power cycles without seeing the "old" one turning off. Maybe this is a bug when you are toggling mobile service/data on and off? Mine is consistently 0.

If that is the case maybe the script needs to check for the modem over a sequence from 0-10?
#7
(11-12-2020, 02:44 PM)antiX-Dave Wrote:
(11-12-2020, 01:44 PM)HLing Wrote: AntiX-Dave, Thanks for the work!  I am not quite ready to try this, but in going through the motion I found today with sudo mmcli -L that my modem is no longer 0, but is 6.  (which explains why I was getting error message of not finding the modem, even though my phone voice and data were both working.) So then I continue to check and see if i have any large sms that usually means someone sent me a mms without me knowing.  Literally, within the same hour, with sudo mmcli -i 6 , I get the error message that there is no SIM found.  OK, so I did another sudo mmcli -L , and what do you know, it is now 7, not 6.

Not 100% sure but it sounds like your modem is improperly power cycling and the kernel is seeing it as a new device every time the modem power cycles without seeing the "old" one turning off. Maybe this is a bug when you are toggling mobile service/data on and off? Mine is consistently 0.

If that is the case maybe the script needs to check for the modem over a sequence from 0-10?

So I updated and upgraded after posting the above.  After rebooting, sudo mmcli -L is back to 0.  I think whatever happened had happened yesterday already.  Maybe updating had fixed it.  But, yes, prior to this my modem had also been consistently 0.
#8
Hi,
Thank you for sharing your script, I've been using it and it worked well.

I also have this modem number that increments on each wakeup, so I've modified the script to get the number automatically :

MODEM_NUM=`mmcli -L|awk '{print $1}'|awk -F '/' '{print $6}'` ;

also, at some point, the wwan interface name changed (it got back to normal afterwards), so I also got to get the name automatically

INTERFACE=`ls /sys/class/net|grep ww -m 1`;

I sometimes have to reset the modem, but this mostly works.

I hope it will help

Regards,
--
FdL
#9
Thank you @"antiX-Dave", I've used your script with the @fdlamotte's adjustment.

But, I've forgotten to add the mandatory package Confused . I've some phone numbers but nothing else, and now nothing to try the script.

I would know how to send a MMS with the Pinephone and Mobian.
#10
(12-10-2020, 10:36 AM)Gribouille Wrote: Thank you @"antiX-Dave", I've used your script with the @fdlamotte's adjustment.

But, I've forgotten to add the mandatory package Confused . I've some phone numbers but nothing else, and now nothing to try the script.

I would know how to send a MMS with the Pinephone and Mobian.


https://forum.pine64.org/showthread.php?tid=12456

It's being worked on! There are ways to send an MMS, but it is clunky right now. Right now thw bulk of the work is now to intergrate it into purple-mm-sms (which then into chatty). If folks have experience with this sort of thing, help would be appreciated though.


Possibly Related Threads…
Thread Author Replies Views Last Post
  PureMaps and OSM Scout Server maps download biketool 7 4,292 10-04-2024, 04:25 AM
Last Post: vusra
  Will this battery-saving script cause problems? rp3 1 1,642 08-28-2022, 02:00 PM
Last Post: biketool
  Bookworm Navigation Enabler Script biketool 2 2,034 06-02-2022, 04:12 AM
Last Post: biketool
  "Unable to download updates: The following packages have unmet dependencies:" bitnick 13 13,848 04-23-2021, 09:45 PM
Last Post: ryo
  MAC Address/NIC Privacy Script [various options] RTP 2 4,224 08-17-2020, 09:39 AM
Last Post: RTP
  Download Latest Version through wget/curl pizzalovingnerd 1 3,489 06-20-2020, 03:30 AM
Last Post: rico

Forum Jump:


Users browsing this thread: 3 Guest(s)