Thx.
To first question (sim_switch change simX does not work):
>>> the command should work on the release that you are using
Well, command hanging in 7.01.4 and 7.01.2, so I did a sim_switch with -D for you to see at the very end of this comment.
For the 2nd question:
But both sim-cards have same metric, so how the WebUI gets the info about which sim is the one that is used right now?
>>> cat /etc/config/network:
...
config interface 'mob1s1a1'
option proto 'wwan'
option modem '1-1.4'
option metric '2'
option sim '1'
option pdp '1'
option apn 'web.vodafone.de'
option auth 'none'
config interface 'mob1s2a1'
option proto 'wwan'
option modem '1-1.4'
option metric '2'
option sim '2'
option pdp '1'
option apn 'web.vodafone.de'
option auth 'none'
Output of "sim_switch change simX" (remember, automatic sim-switch e.g. by sms is working fine):
root >>> /usr/bin/sim_switch -D change sim1
/usr/bin/sim_switch -D change sim1
Starting sim_switch...
Warning: debug messages will be shown!
Initializing uloop...
Connecting to ubus...
*** entry [config_read:330] ***
Reading configuration...
*** entry [read_entry:293] ***
*** entry [identify_modem:172] ***
Modem identified: 1-1.4 / 7
*** exit [identify_modem:233] ***
*** entry [set_sim_primary:128] ***
*** exit [set_sim_primary:167] ***
@option: modem = 1-1.4
@option: position = 1
@option: enabled = 1
@option: fail_flag = 1
@option: interval = 10
@option: retry_count = 3
@option: data_fail = 1
*** entry [read_rule:270] ***
*** exit [read_rule:286] ***
Reading section `1` done.
*** exit [read_entry:325] ***
Found modem: 1-1.4 and sim 1
*** entry [read_entry:293] ***
*** entry [identify_modem:172] ***
Modem identified: 1-1.4 / 7
*** exit [identify_modem:233] ***
*** entry [set_sim_primary:128] ***
Section 2 is primary
*** exit [set_sim_primary:167] ***
@option: modem = 1-1.4
@option: position = 2
@option: enabled = 1
@option: fail_flag = 1
@option: interval = 10
@option: retry_count = 3
@option: data_fail = 1
*** entry [read_rule:270] ***
*** exit [read_rule:286] ***
Reading section `2` done.
*** exit [read_entry:325] ***
Found modem: 1-1.4 and sim 2
*** exit [config_read:416] ***
Running...
*** entry [watcher_run:137] ***
*** entry [verify_rules:71] ***
Verifying rules...
Different sim is used
*** exit [verify_rules:132] ***
*** entry [verify_rules:71] ***
Verifying rules...
*** entry [rules_check_data_fail:252] ***
[rules_check_data_fail] - Received - Connected
*** exit [rules_check_data_fail:289] ***
*** exit [verify_rules:132] ***
*** exit [watcher_run:160] ***
*** entry [watcher_run:137] ***
*** entry [verify_rules:71] ***
Verifying rules...
Different sim is used
*** exit [verify_rules:132] ***
*** entry [verify_rules:71] ***
Verifying rules...
*** entry [rules_check_data_fail:252] ***
[rules_check_data_fail] - Received - Connected
*** exit [rules_check_data_fail:289] ***
*** exit [verify_rules:132] ***
*** exit [watcher_run:160] ***
*** entry [watcher_run:137] ***
*** entry [verify_rules:71] ***
Verifying rules...
Different sim is used
*** exit [verify_rules:132] ***
*** entry [verify_rules:71] ***
Verifying rules...
*** entry [rules_check_data_fail:252] ***
[rules_check_data_fail] - Received - Connected
*** exit [rules_check_data_fail:289] ***
*** exit [verify_rules:132] ***
*** exit [watcher_run:160] ***
^C