UBPorts 1 week in
#8
(05-01-2020, 08:05 PM)antiX-Dave Wrote: A small update.
I was able to keep sms messaging working by purging the cache every now and then.
Making a script under /usr/local/bin/ named clear-cache.sh I am able to do this without the use of minicom.
The contents of /usr/local/bin/clear-cache.sh are:
Code:
#!/bin/sh
echo "AT+CMGD=0,4" > /dev/ttyUSB2
Which I gave the permissions of 755
Also added the script to cron via "crontab -e" with the entry of
Code:
*/10 * * * * /usr/local/bin/clear-cache.sh
clearing the cache every 10 minutes. This could be less frequent but if a few people send sms messages at the same time it could plug up the buffer / cache if set longer.

It was nice to see in later images that the ringtones/notification sounds started working.
Calling seems to be more spotty than the version used above.
This time around have been using image numbers 297/298 if I remember correctly

Using your idea as a base, I did the following. I was having an issue with USA T-Mobile (not CDMA) on the PureOS port for PP CE in which T-Mobile spam sent MMS messages to me (perhaps trying to confirm something). This was further exacerbated by being in an area without signal and the phone's battery dying regularly. I created the following script to delete the messages they send.


Code:
#!/bin/bash

MODEM=`sudo mmcli -L | awk '{print $1}' | awk -F'/' '{print $6}'`
oIFS=$IFS
IFS=$'\n'

CACHEDSMS=""

for CACHEDSMS in `sudo mmcli -m $MODEM --messaging-list-sms | awk '{print $1}' | awk -F'/' '{print $6}'`; do
    if sudo mmcli -s $CACHEDSMS | grep 'smsc: +12063130057' ; then
        sudo mmcli -m $MODEM --messaging-delete-sms=$CACHEDSMS
    fi
done



While I haven't put this in a cron, the script works and should be able to be placed in a cron.

See also this post.


Messages In This Thread
UBPorts 1 week in - by antiX-Dave - 04-18-2020, 09:46 PM
RE: UBPorts 1 week in - by antiX-Dave - 04-20-2020, 08:59 PM
RE: UBPorts 1 week in - by visiblink - 04-22-2020, 09:26 PM
RE: UBPorts 1 week in - by antiX-Dave - 04-23-2020, 05:27 PM
RE: UBPorts 1 week in - by antiX-Dave - 05-01-2020, 08:05 PM
RE: UBPorts 1 week in - by hikingpete - 05-02-2020, 12:15 PM
RE: UBPorts 1 week in - by thwright - 07-08-2020, 08:08 AM
RE: UBPorts 1 week in - by antiX-Dave - 05-02-2020, 01:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone UBPorts Edition stuck on PINE64 logo screen Giovanni Iannotti 4 5,860 09-01-2021, 01:20 PM
Last Post: Giovanni Iannotti
  online accounts in UBports Uturn 2 4,746 03-30-2021, 09:12 AM
Last Post: Uturn
  UBPorts Not Working Pinoideae 7 11,007 03-13-2021, 01:51 PM
Last Post: KNERD
  How to enable Ethernet with UBPorts and convergence dock? piney-tim 1 3,348 11-27-2020, 07:40 PM
Last Post: piney-tim
  UBPorts Convergence MonCon 0 2,610 11-24-2020, 04:25 PM
Last Post: MonCon
  Looks like I found a mild reason why UBPorts for pinephone hasn't seen much progress. plainenough 13 19,740 11-21-2020, 06:30 PM
Last Post: Nooblife
  "No network" on new UBPorts community edition pinephone professorsnapper 6 8,988 10-19-2020, 10:27 PM
Last Post: htc_tattoo
  UBPorts doesn't boot even after booting into recovery defekto 2 5,048 09-30-2020, 12:16 PM
Last Post: defekto
  Dekko on UBPorts PinePhone usable? djvinniev77 13 17,292 09-17-2020, 03:45 PM
Last Post: yurievitch
  How to enable SSH on UBPorts Ubuntu Touch? eaglecup 12 22,301 09-15-2020, 03:42 PM
Last Post: voidmain

Forum Jump:


Users browsing this thread: 4 Guest(s)