Empty content SMS not cleared from modem (State shows receiving)
I have run across an issue with chatty not being able to handle empty content SMS sent to my L5. If too many of these are sent to a L5, chatty does not clear these messages from the modem and any further messages are no longer received.
I receive these messages from a mobile router that has its own SIM, the intent is to notify me of network connectivity or internal statuses. It then sends SMS notifications to my L5. Since figuring out the issue, I have removed these notifications because it prevents all other SMS from reaching my modem and ultimately chatty.
Attached is a screenshot of the following command:
for i in {163..165}; do mmcli -m 0 --sms ${i}; done
(I'm not sure if it's useful for debugging purposes, but the "number" and the "smsc" number are different values. "number" is from the router and I'm not sure what "smsc" refers to)
I'm not sure why this particular router sends so many of these empty SMS, but I have had to clear hundreds of these manually from the L5 modem using a few step process:
- Get a list of all SMS held by the modem
mmcli --modem 0 --messaging-list-sms
- Check the contents of each SMS
for i in {1..10}; do mmcli -m 0 --sms ${i}; done
- Delete each SMS held by the modem and not processed by chatty
for i in {1..10}; do mmcli -m 0 --messaging-delete-sms=${i}; done
- Repeat steps 1-3 until the modem stops receiving these SMS notifications.
I'd expect chatty to delete these for me as it prevents me from receiving any further SMS communications.