06-02-2013 09:51 AM
hello,
the basic idea of 819 dual sim is that the router will change the activated sim to the other one when the signal is died (failover)
i want to creat an EEM applet that helps to switch to the other sim when the current band is GSM and test the signal in the switched one if it's WCDMA
it will be the activated one
i think we have to use the below coomands in the applet
1- check rssi
show cellular 0 radio
a) wcdma signal
Radio power mode = ON
Current Band = WCDMA 2100, Channel Number = 10612
Current RSSI = -74 dBm
Band Selected = Auto
Number of nearby cells = 1
Cell 1
Primary Scrambling Code = 0x14E
RSCP = -78 dBm, ECIO = -9 dBm
b) gsm signal
Current Band = GSM 900, Channel Number = 61
Current RSSI = -94 dBm
Band Selected = Auto
Number of nearby cells = 1
Cell 1
Primary Scrambling Code = 0x172
RSCP = -105 dBm, ECIO = -6 dBm
2- to change the activated sim
cellular 0 gsm sim activate slot [0/1]
thnks in advance
06-02-2013 09:58 AM
What type of signal test are you looking for?
06-02-2013 10:05 AM
i want the router to switch automatically when the signal is 2G (GSM) to the other SIM if its signal is (WCDMA)
a) wcdma signal
Radio power mode = ON
Current Band = WCDMA 2100, Channel Number = 10612 <---------------- the required one
Current RSSI = -74 dBm
Band Selected = Auto
Number of nearby cells = 1
Cell 1
Primary Scrambling Code = 0x14E
RSCP = -78 dBm, ECIO = -9 dBm
b) gsm signal
Current Band = GSM 900, Channel Number = 61
Current RSSI = -94 dBm
Band Selected = Auto
Number of nearby cells = 1
Cell 1
Primary Scrambling Code = 0x172
RSCP = -105 dBm, ECIO = -6 dBm
06-02-2013 10:48 AM
Right, but I'm not sure what you mean by test the signal. That would imply some kind of threshold. I'm also not sure how to determine what the active SIM slot is, or how to see what the other SIM band is. One unidirectional way to do what you want would be something like:
event manager applet watch-wcdma
event timer watchdog time 60
action 001 cli command "enable"
action 002 cli command "show cell 0 radio"
action 003 regexp "Current Band = (GSM|WCDMA)" $_cli_result match band
action 004 if $_regexp_result eq 1
action 005 if $band eq "GSM"
action 006 cli command "cellular 0 gsm sim activate slot 1"
action 007 end
action 008 end
06-03-2013 01:41 AM
great !
-the best signal is WCDMA compared with GSM (regaldess the strenth of RSSI )
-to determine the active slot we can use the below command
show cellular 0 all | i SIM
which results
Configured default profile for active SIM 0 is profile 1.
Active SIM = 0 <------------------------------------------------------------- the active slot
SIM switchover attempts = 0
SIM Status = OK
SIM User Operation Required = None
Copy-to-SIM Status = 0x0
06-03-2013 09:36 AM
Is there a way, then, to see what band the non-active SIM has selected? If not, then the applet would just keep bouncing between the two if neither could select WCDMA.
06-03-2013 12:58 PM
there is no way to test the non-active sim ! so you are totally right
but can you adjust the applet to do its action every 1 hour so if it siwtched to the other sim and it was GSM too it wouldn't switch to the first unless the timer reached to zero ?!!
06-03-2013 04:04 PM
Then in that case, you could do:
event manager applet watch-wcdma
event timer watchdog time 3600
action 001 cli command "enable"
action 002 cli command "show cell 0 radio"
action 003 regexp "Current Band = (GSM|WCDMA)" $_cli_result match band
action 004 if $_regexp_result eq 1
action 005 if $band eq "GSM"
action 006 cli command "show cell 0 all | inc SIM"
action 007 regexp "Active SIM = ([0-9])" $_cli_result match slot
action 008 if $slot eq 1
action 009 cli command "cellular 0 gsm sim activate slot 0"
action 010 else
action 011 cli command "cellular 0 gsm sim activate slot 1"
action 012 end
action 013 end
action 014 end
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: