Question
If using multiple SIMs, which one will be prioritized and connected to?
Also, please let me know how to configure the priority settings.
Target devices
- AG10
- AR10
Answer
The connection priority is decided by the priority for the session. If using multiple SIMs, the SIM set for the session with the highest priority will be the first priority.
The priority is indicated in the range of 0 to 9, with "0" being the highest and "9" being the lowest.
This section explains two ways to configure the settings for switching the session at the connection destination to the other one depending on the connection status.
Setting example 1
- If Session A is disconnected, it will be automatically switched to Session B.
This section explains how to use 2 SIMs for Mobile Connection Sessions A and B. In this procedure, the priority of SIM 0 is set higher than that of SIM 1. (They are connected to the same destination.)
Session |
A | B |
SIM card | sim0 | sim1 |
Priority | priority 0 | priority 1 |
APN | amnimo.net | amnimo.net |
username | user | user |
password | pass | pass |
Examples of configuration commands
amnimo(cfg)# mobile peer amnimo ← Shift to detailed configuration mode of the mobile
amnimo(cfg-mp-amnimo)# session A ←Shift to detailed configuration mode of Session A
amnimo(cfg-mps-A)# priority 0 ← Specify the connection priority
amnimo(cfg-mps-A)# sim 0 ← Specify the SIM
amnimo(cfg-mps-A)# apn amnimo.net
amnimo(cfg-mps-A)# username user
amnimo(cfg-mps-A)# password pass
amnimo(cfg-mps-A)# enable
amnimo(cfg-mps-A)# exit
amnimo(cfg-mp-amnimo)# session B ←Shift to detailed configuration mode of Session B
amnimo(cfg-mps-B)# priority 1 ← Specify the connection priority
amnimo(cfg-mps-B)# sim 1 ← Specify the SIM
amnimo(cfg-mps-B)# apn amnimo.net
amnimo(cfg-mps-B)# username user
amnimo(cfg-mps-B)# password pass
amnimo(cfg-mps-B)# enable
amnimo(cfg-mps-B)# exit
amnimo(cfg-mp-amnimo)# exit
amnimo(cfg)# interface ecm0 ←Shift to detailed configuration mode of the interface
amnimo(cfg-interface-ecm0)# mobile amnimo
amnimo(cfg-interface-ecm0)# dhcp4
amnimo(cfg-interface-ecm0)# enable
amnimo(cfg-interface-ecm0)# exit
amnimo(cfg)#
Setting example 2
- Switch between Session A and Session B alternately depending on the connection status.
In this case, if the received signal strength (RSSI) of Session A becomes lower than the set value, it will be automatically switched to Session B. If the RSSI of Session B becomes lower than the set value, it will be automatically switched to Session A.
In addition to the settings configured in Setting example 1, configure the settings for switching the current session to the other one depending on the RSSI.
Session |
A | B |
SIM card | sim0 | sim1 |
Priority | priority 0 | priority 1 |
APN | amnimo.net | amnimo.net |
username | user | user |
password | pass | pass |
disconnect-detection(※) | time 30 rssi -93 | time 30 rssi -93 |
※ disconnect-detection
Enable the disconnection detection function. If the value specified for rssi continues during the period specified for time, the line will be disconnected.
In this example, if the received signal strength (RSSI) continues to be -93dBm or lower for 30 seconds or longer (time), the current session will switch to the other one.
- Reference: LED status list - Antenna level
Examples of configuration commands
amnimo(cfg)# mobile peer amnimo ← Shift to detailed configuration mode of the mobile
amnimo(cfg-mp-amnimo)# session A ←Shift to detailed configuration mode of Session A
amnimo(cfg-mps-A)# priority 0 ← Specify the connection priority
amnimo(cfg-mps-A)# sim 0 ← Specify the SIM
amnimo(cfg-mps-A)# disconnect-detection time 30 rssi -93 ← The disconnection detection function
amnimo(cfg-mps-A)# apn amnimo.net
amnimo(cfg-mps-A)# username user
amnimo(cfg-mps-A)# password pass
amnimo(cfg-mps-A)# enable
amnimo(cfg-mps-A)# exit
amnimo(cfg-mp-amnimo)# session B ←Shift to detailed configuration mode of Session B
amnimo(cfg-mps-B)# priority 1 ← Specify the connection priority
amnimo(cfg-mps-B)# sim 1← Specify the SIM
amnimo(cfg-mps-A)# disconnect-detection time 30 rssi -93 ← The disconnection detection function
amnimo(cfg-mps-B)# apn amnimo.net
amnimo(cfg-mps-B)# username user
amnimo(cfg-mps-B)# password pass
amnimo(cfg-mps-B)# enable
amnimo(cfg-mps-B)# exit
amnimo(cfg-mp-amnimo)# exit
amnimo(cfg)# interface ecm0 ←Shift to detailed configuration mode of the interface
amnimo(cfg-interface-ecm0)# mobile amnimo
amnimo(cfg-interface-ecm0)# dhcp4
amnimo(cfg-interface-ecm0)# enable
amnimo(cfg-interface-ecm0)# exit
amnimo(cfg)#
Reference information
Comments
0 comments
Please sign in to leave a comment.