Question
What settings do I need to configure if I want to operate the SIM under the following conditions?
-
Under normal circumstances, establish a permanent connection with SIM0. If any of the following conditions is met, switch the SIM to the other one to establish a permanent connection.
- If disconnected from the Internet network
- If a communication cannot be established for 30 seconds continuously
- If you are out of the range of communication for 30 seconds
- If a communication cannot be established for 30 seconds after making a call, discontinue the attempt, and switch the SIM to the other one.
- Please do not switch between the SIMs if a certain amount of time has elapsed after establishing a connection.
Answer
In order to operate the SIM to satisfy the conditions above, configure the mobile connection settings under the following conditions.
- Set the connection priority of SIM0 higher than the one of the other SIM.
- Set the disconnection detection function (disconnect-detection) to disconnect the connection when the RSSI becomes -113 or lower for 30 seconds or longer.
- Disable the connection duration (no connection-timeout)
Command examples
amnimo(cfg)# mobile peer amnimo ← Transit to detailed configuration mode of the mobile connection
amnimo(cfg-mp-amnimo)# session A ← Transit 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 ← Disconnection detection function
amnimo(cfg-mps-A)# no connection-timeout ← Disable the connection duration
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 ← Transit 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)# disconnect-detection time 30 rssi -93 ← Disconnection detection function
amnimo(cfg-mps-B)# no connection-timeout ← Disable the connection duration
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 ← Transit 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)#
Next, set the schedule under the following condition.
- Set the schedule to disconnect the line if a communication cannot be established for 30 seconds with schedule keep-alive
Command examples
amnimo(cfg)# schedule keep-alive mobile
amnimo(cfg-sch-ka-mobile)# datetime */10 * * * *
amnimo(cfg-sch-ka-mobile)# action disconnect ecm ecm0 reset enable
amnimo(cfg-sch-ka-mobile)# ping dest (ping destination)
amnimo(cfg-sch-ka-mobile)# ping timeout 30
amnimo(cfg-sch-ka-mobile)# ping interval 3
amnimo(cfg-sch-ka-mobile)# ping count 10
amnimo(cfg-sch-ka-mobile)# enable
amnimo(cfg-sch-ka-mobile)# exit
*Send ping 10 times at 3-second intervals every 10 minutes. If there is a response even once, the communication is judged to be normal. (ping will not be sent after receiving a response.)
If the above settings are configured, the SIM will be operated as follows.
-
If disconnected from the Internet
If disconnected from the Internet, session connections will be established in the order of priority. -
If a communication cannot be established for 30 seconds continuously
As the line is disconnected from the Internet from the device side, connections will be processed in the order of priority. If a session with a high priority cannot be connected, it will switch to the next one. Under normal circumstances, you will be able to establish communication on the first session connection without problems. -
If you are out of the range of communication for 30 seconds
By setting the disconnection detection function (disconnect-detection), you will be able to disconnect the line and switch the current session to the next one. - Specifications of AG10/20 LED lighting
References
- 複数の SIM を利用している場合、どちらが優先して接続されますか? > 設定例 2 (Japanese Only)
- CLI ユーザーズマニュアル > 5.7 モバイル回線を設定する (Japanese Only)
- CLI ユーザーズマニュアル > 7.7.3 スケジュールを設定する (Japanese Only)
Comments
0 comments
Please sign in to leave a comment.