FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
667 views 3 comments
by anonymous

Hello,

I have a RUTX12 with firmware RUTX_R_00.07.04.2. I did a full reset and reconfiguration when upgrading to this version. I noticed an issue with sms handling on sim 1, everything works perfectly with sim 2.

Problem description

I could not receive SMS with sim 1 : 

  • nothing in Services -> Mobile Utilities -> Messages -> Read Messages
  • SMS to SMS forwarding not working
  • SMS rules not triggered

Sending sms was working through, even for SMS to SMS forward of messages received from sim 2.

Analysis

Services -> Mobile Utilities -> Messages -> Storage configuration for sim 1 was:

  • "SIM card" 
  • "Used: 50 Available: 50"
  • Leave free space: 5

Conclusion : sim card appears full.

When changing storage to "Modem storage", I received SMS forwards and SMS rules results from previous messages one after the other and after that everything works fine again.

Improvement thought : as I received responses from previous sms, the SMS were received and stored somewhere, they were just "hanging", waiting for storage free space, and that was blocking SMS forward and SMS rules actions. It would be nice to make those independent, so that being unable to save messages would not prevent actions based on those.

Solving issue

I would like to purge all SIM card stored sms.

Even though SIM card seems full, nothing is showing in Services -> Mobile Utilities -> Messages -> Read Messages so if I click on "DELETE ALL", I get an error message saying "There are no messages to delete" and nothing happens.

If I try and list all messages using gsmctl when storage is set to sim card :

root@192.168.1.1:~# gsmctl -S -l all

[gsmctl_read_sms:68] error: ERROR: Library misuse

If I try and delete a message :

root@192.168.1.1:~# gsmctl -S -d 1

[gsmctl_delete_sms:44] error: ERROR: Request timed out

Question : How can I purge all messages from sim card 1 ?

Thanks for your help,

Lucien

1 Answer

0 votes
by anonymous

Hello,

Did you notice, if the SIM storage was full before update, or did it fill after update? 

Was this issue present on previous versions? If not, could you try downgrading to see if it replicates?

Do you have an opportunity to test another SIM, to see, if it is possible to fill its message memory as well, to rule out the possibility of the issue being related to specific SIM? I did try it, but was not unable to replicate, as the device should start deleting messages, once available storage reduces to 5 messages, as configured.

How frequently the device receives SMS messages? Are those short messages, or long, with a number of characters of several messages?

Could you login to the router via SSH and execute different commands to:

  • list messages:
    • gsmctl -A 'AT+CMGL="ALL"'
  • delete messages:
    • gsmctl -A 'AT+CMGR=<index>'

      • Replace <index> with an integer.

I would also like you to attach a troubleshoot file to your question. Please, replicate the issue, then access router's WebUI, go to System -> Administration -> Troubleshoot section and download troubleshoot file from there. The logs in the file might provide more insight into the issue.

Best regards,

Best answer
by anonymous

Hello,

Did you notice, if the SIM storage was full before update, or did it fill after update? 

Was this issue present on previous versions? If not, could you try downgrading to see if it replicates?

Unfortunately I don't know when it became full and if the issue was there before the upgrade. I can try a downgrade in a few days.

Do you have an opportunity to test another SIM, to see, if it is possible to fill its message memory as well, to rule out the possibility of the issue being related to specific SIM? I did try it, but was not unable to replicate, as the device should start deleting messages, once available storage reduces to 5 messages, as configured.

I have send a bunch of sms to sim 2 and indeed it does not reproduce the same issue. The number of messages is indeed maxed at 44, new messages are handled correctly but not saved or more probably deleted right away. So it might be an issue with the sim, but what kind of issue can it be ?

How frequently the device receives SMS messages? Are those short messages, or long, with a number of characters of several messages?

As of now not so much, just some promotional sms, but I am writing and testing sms rules so it will receive a lot these coming days and maybe 5 to 10 a day when everything is settled.

Could you login to the router via SSH and execute different commands to:

  • list messages:
    • gsmctl -A 'AT+CMGL="ALL"'
root@192.168.1.1:~# gsmctl -A 'AT+CMGL="ALL"'
ERROR
  • delete messages:
    • gsmctl -A 'AT+CMGR=<index>'

      • Replace <index> with an integer.

root@192.168.1.1:~# gsmctl -A 'AT+CMGR=1'

+CMGR: 1,,157

07913386094000F04009D032580C47030008227080029194808B06080404C10301FEFF004C00690067006E00650020004F00720061006E00670065002000300036002A002A002A002A002A0030003000360020003A0020006C00650020006D006F007400200064006500200070006100730073006500200064007500200063006F006D0070007400650020004F00720061006E0067006500200061002000E9007400E90020

I would also like you to attach a troubleshoot file to your question. Please, replicate the issue, then access router's WebUI, go to System -> Administration -> Troubleshoot section and download troubleshoot file from there. The logs in the file might provide more insight into the issue.

Done

by anonymous

I was able to purge all the messages from sim 1 using the following script :

#!/bin/sh

i=0

while [ "$i" -lt 50 ]

do

  echo "Deleting pdu $i"

  gsmctl -S -Z "$i"

  i=$((i + 1))

done

Now it is working again. I have send 50 messages to max the storage, it is still working fine.
Let me know if you see something in the log that could explain the issue and be fixed.
by anonymous
Hello,

The developers are aware about the issue. Apparently, it was caused by some corrupted messages in SIM memory. After deleting those messages SMS sending and receiving should be working fine.

The solution is being worked on. Currently it is set for 7.5 firmware release, but this may change depending on the development process priorities and testing process.

Best regards,