Execute script on SIM Switch (RUTX50)

Hello,

I’ve got a RUTX50 and I’m looking to utilise the dual SIM functionality.

I have SIM 1 (SIM 1 is default) from Provider A with a daily limit of 1 GB and SIM 2 from Provider B with a monthy limit. I’ve so far implement the following:

Router Reboots at 11:59 PM everyday and a startup script is run to check if SIM 1 is the current SIM . If, SIM1 is the current SIM then a cell lock command is executed.

Once the 1 GB data is used and the mobile data limit is reached, I’ve set the router to switch over to SIM 2.

What I want to know, is it possible for a script to run so that the system reverts back to automatic cell selection when SIM 2 becomes active as I don’t need to perform any cell locking for the SIM 2 from Provider B. i.e. When automatic SIM switch takes place to SIM 2, remove any cell locks.

Thank you.

Hi ranveerm,

Welcome to Teltonika Networks Community!

If you are pertaining to cells as bands, then it could be possible through uci commands.

uci set simcard.@sim[1].band=‘auto’
uci commit

This commands will change the band selection of Sim 2 from manual to auto.

However, we need to add in the script how it will determine when Sim 2 is in use.

Kindly use this link as reference for shell scripting: User Scripts examples - Teltonika Networks Wiki

Let me know if this helps.

Regards,

Thank you for your help and reference.

This topic was automatically closed 40 hours after the last reply. New replies are no longer allowed.