Situation
When an OpenVPN connection is established, the router should close an output to notify a downstream controller.
Solution
An event is defined that triggers an action as soon as the OpenVPN connection is established. The action then closes the output on the router, which is detected by the connected controller.
It is assumed that you have access to the router's user interface and that the router has Internet access. To do this, we recommend registering the router with the icom Connectivity Suite and commissioning it for use with the icom Connectivity Suite using the Startup Wizard.
It is also assumed that the router's output is correctly connected to the input of the controller.Please note the different digital outputs on our routers!
The various routers and plug-in cards (MRcards) from INSYS icom have different types of digital outputs that vary in wiring:
Normally open contact (NO)
Open collector outputs
configurable digital inputs/outputs (open collector)
Depending on the output, a different wiring is required. The differences are detailed in the Differences in the Outputs section below.
You can find the exact specifications for the outputs in the installation manual for the respective router.
The following configuration example applies to a MIRO router with a configurable input/output (open collector).
Open the user interface of the router: https://insys.icom
The following configuration is only necessary if you are using a configurable input/output on your router:
Click on the Ports → I/O page on in the line of the IO you want to use and configure it as Output..png)
Click on SUBMIT.
Click on the Events → Events page on and add a new event that closes the output when the OpenVPN connection is established:
Description: enter a unique description for the event
Event: Interface state has changed
Interface: openvpn1
State changed to: Online
Action: Set digital output
Digital output: select the used output and select close.png)
Click on SUBMIT.
Click on the Events → Events page on and add a new event that opens the output when the OpenVPN connection is closed:
Description: enter a unique description for the event
Event: Interface state has changed
Interface: openvpn1
State changed to: Offline
Action: Set digital output
Digital output: select the used output and select open.png)
Click on SUBMIT.
Activate the profile with a click on ACTIVATE PROFILE .
You have now configured your router so that it closes the output when the OpenVPN connection is established and opens the output again when the connection is closed.
Differences in the Outputs
Open collector outputs
The following routers and plug-in cards feature open collector outputs (the I/Os (inputs/outputs) must be configured as outputs):
MIRO
ECR
SCR
MOROS.neo (digital inputs/outputs IO1, IO2, DIO1 and DIO2)
MRX.neo (basic card, digital inputs/outputs DIO1 and DIO2)
MRcard MSI.5G (digital inputs/outputs IO1 and IO2)
MRcard MSI.4G (digital inputs/outputs IO1 and IO2)
For open-collector outputs, the controller's input must be connected via a relay, as shown in the following diagram:
.png)
Normally open contact (NO)
The following plug-in cards feature normally open contacts (NO):
MRcard SI (digital outputs O1.4 and O2.4)
MRcard IO (digital outputs DO1 through DO4)
With normally open (NO) outputs, the controller's input can be controlled directly, as shown in the following diagram:
.png)
Result Testing
Restart the router and check the Status → Log View page to see if the connection is closed when the OpenVPN connection is established.
.png)
On the Status → Log View page, check whether the output opens again when the OpenVPN connection is closed.
.png)
Troubleshooting
Check on the Status → Log view page the Events log for possible hints.