Hi,
Glad you like our product!
As you're using RUTX12 both modems are always active no matter what, so they do not have a SIM switch functionality.
So, if you would like to disable modem 2 when modem 1 works fine - you would need to first detect that modem 1 works and then if it does - execute a command that disables modem 2. If modem 1 loses connection - modem 2 must be reenabled.
The best way to do this would be a script that always checks if modem 1 is active simply pinging through it once in a while and if it doesn't - then execute the command.
I will not be able to help you with the script, but I hope I gave enough logic to what should you do.
Command to disable the modem:
gsmctl -D
To enable it:
gsmctl -Q
to control different modems with gsmctl commands use: -O 3-1 or -O 1-1.2
so for example, command to shutdown second modem looks like this:
gsmctl -O 1-1.2 -D
EB.
If ID's do not work - you can see the actual ID's with this command:
ubus call gcont get '{"array":"modems"}'
If you want to learn about scripting you can find information here:
https://openwrt.org/docs/guide-developer/write-shell-script
EB.