10948 questions

13055 answers

20356 comments

27896 members

0 votes
50 views 2 comments
by
We have some RUT950/955 and RUTX series deployed on site,  Vodafone UK have advised us the connections are not refreshing when we schedule a reboot or modem reset.  They have advised to do a manual roam on the device, ie. switch to a different operator then back again.

Is there a way to automate this, as once we switch to a different operator we will lose connectivity and cant be going to every site.  Would ideally like to do this every 24/48 hours.  Can it be done via SMS or a cron job?  Any advise appreciated.

cheers

1 Answer

0 votes
by
Hello Aaron,

You can try the configuration example in the link below:

https://wiki.teltonika-networks.com/view/Crontabs#Periodic_SIM_switch

I will also drop two links below that will help you to create the crontab syntax and configure it on the routers:

https://crontab-generator.org/

https://wiki.teltonika-networks.com/view/Crontabs#Syntax_and_editing

Please note for this setup, you will need to consider the switching time, mobile network registration, and execute two times the sim switch configuration to get back your primary SIM card working again.

As another possible solution, you could enable an SMS rule to send an SMS message to switch from one operator to the other and vice-versa by sending a text message with the command: switch_sim from your mobile to the router active operator cellphone number.

For more details, you can check:

https://wiki.teltonika-networks.com/view/RUT955_Mobile_Utilities#SMS_Utilities

https://wiki.teltonika-networks.com/view/RUT955_Mobile_Utilities#SMS_rule_execution_syntax

I hope this helps to solve your query.

Regards.
by
Hi

Thanks for your reply.  We dont have primary and secondary sims, just the one vodafone sim in the primary slot.

So not sure where that leaves me in terms of a solution.  I dont fully understand the cron solutions, never used them unfortunately.  Is there an example or could someone generate an example whereby the following happens.

Primary SIM --> Switch to manual operator (so connection will be lost here)

Wait 5 minutes

Primary SIM - Switch to automatic operator (connection will restore, and hopefully fully reset the connection to Vodafone)

Thanks
by

Hi Aaron,

You can try including the lines below in your crontab editor:

0 23 * * * gsmctl -Y >/dev/null 2>&1

5 23 * * * gsmctl -Y >/dev/null 2>&1

Those are sim switch commands scheduled every day at 23:00 and 23:05 hours.

I strongly suggest you try and test these commands first, and then if everything goes as expected, use them as a final solution.

The crontab generator is the best place to start regarding getting the proper job execution syntax:

https://crontab-generator.org/

I will keep an eye on your comments. I hope this helps to solve your query.

Regards.