04-23-2020, 05:27 PM
Indeed you are correct, that was the case. Thank you for the lead.
As I had loaded a new image on another sd card it seemed to me that it could not be cached on the os file system. Checked if anything could be cached on a sim card, however stopped looking for this as I figure if anything this would be cleared by putting it in my old phone. After looking into internal cache to the modem I found a pdf for AT commands for the modem.
https://www.quectel.com/UploadImage/Down...l_V1.3.pdf
Which has a section on sms commands.
So through ssh I installed minicom with
apt update && apt install minicom
Followed by connecting to the modem tty through minicom by
minicom -D /dev/ttyUSB2
Entered
AT+CMGD=?
Which as far as I know from the pdf outputs a list of messages by number ending in the memory buffer / cache as.
+CMGD: (1,2,3,4,5,6,etc),(0-4)
Taking the 0-4 from the end I entered it into the delete command from the pdf like so
AT+CMGD=0,4
Which as best as I could see itterated through a list of buffers/items and cleared everything from the 0-4 memory buffer.
Rerunning the command to list the messages (AT+CMGD=?) it came back as
+CMGD: (),(0-4)
Which verified to me that the list of messages was cleared.
Then exited minicom with a reset. by pressing Ctrl + A then X and selected yes.
Rebooted the phone for safe measure and ran a few test messages and they came through as expected.
Some testing:
- Received test messages are stacking up again
- Deleting the messages from the chat application does not clear the cache.
- Clearing the cache the messages still remain available in the messaging app.
Seems to be a bug. I do not know if this is in the latest image.
Is there a way to do AT commands automatically via the command line to be able to script this delete action?
Now perhaps there is a way to move items from the modem cache to the file system / user's home and clear the cache (perhaps because they remain after purging the cache this is already so / meant to be) ?
As I had loaded a new image on another sd card it seemed to me that it could not be cached on the os file system. Checked if anything could be cached on a sim card, however stopped looking for this as I figure if anything this would be cleared by putting it in my old phone. After looking into internal cache to the modem I found a pdf for AT commands for the modem.
https://www.quectel.com/UploadImage/Down...l_V1.3.pdf
Which has a section on sms commands.
So through ssh I installed minicom with
apt update && apt install minicom
Followed by connecting to the modem tty through minicom by
minicom -D /dev/ttyUSB2
Entered
AT+CMGD=?
Which as far as I know from the pdf outputs a list of messages by number ending in the memory buffer / cache as.
+CMGD: (1,2,3,4,5,6,etc),(0-4)
Taking the 0-4 from the end I entered it into the delete command from the pdf like so
AT+CMGD=0,4
Which as best as I could see itterated through a list of buffers/items and cleared everything from the 0-4 memory buffer.
Rerunning the command to list the messages (AT+CMGD=?) it came back as
+CMGD: (),(0-4)
Which verified to me that the list of messages was cleared.
Then exited minicom with a reset. by pressing Ctrl + A then X and selected yes.
Rebooted the phone for safe measure and ran a few test messages and they came through as expected.
Some testing:
- Received test messages are stacking up again
- Deleting the messages from the chat application does not clear the cache.
- Clearing the cache the messages still remain available in the messaging app.
Seems to be a bug. I do not know if this is in the latest image.
Is there a way to do AT commands automatically via the command line to be able to script this delete action?
Now perhaps there is a way to move items from the modem cache to the file system / user's home and clear the cache (perhaps because they remain after purging the cache this is already so / meant to be) ?