11-11-2020, 02:23 PM
(This post was last modified: 11-11-2020, 02:37 PM by antiX-Dave.)
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
(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.
11-12-2020, 05:41 AM
(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
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.
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.
11-12-2020, 02:44 PM
(This post was last modified: 11-12-2020, 02:46 PM by antiX-Dave.)
(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?
(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.
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
Thank you @" antiX-Dave", I've used your script with the @ fdlamotte's adjustment.
But, I've forgotten to add the mandatory package . 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.
12-10-2020, 11:48 AM
(This post was last modified: 12-10-2020, 11:49 AM by kop316.)
(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 . 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.
|