How to use digital inputs to control Internet connectivity or VPN connection on an Ewon Cosy

30 Jul 2022

It may be useful to control when an Ewon Cosy is able to use its Internet connection. This article explains  how to use the Cosy digital inputs to disable its Internet connection, preventing Internet access and therefore remote access.

 

APPLICABLE PRODUCTS

  • Ewon Cosy 131
  • Ewon Cosy+

PRE-REQUISITES

  • Administrator login for the Ewon
  • Access to the Ewon's web interface
  • Appropriately wired digital input control
  • Digital input 1 not already in use for VPN control

For more information on wiring the Cosy's digital inputs, see Appendix C of the installation guide:

 

IN THIS ARTICLE

To easily configure the DI1 & DI2 function, just run the "DI Config" wizard.  This wizard will guide you through the different configuration steps.

Now if you want to fine-tune the DI1 function. For example, disable the VPN connection only instead of disabling the WAN/Internet connection, you can directly modify the dedicated COM (ComCfg) parameter : DI1Cfg Parameter.

SET THE DI1Cfg PARAMETER

The DI1Cfg parameter controls the Cosy's behavior based on the state of digital input 1. Depending on this parameter's setting, digital input 1 can disable either Internet or VPN access, and it can also send an SMS and/or email notification when the input becomes active. To configure SMS and/or email notifications, click Wizards at the top right of your Cosy's web interface, then select DI Config on the right.

To configure Internet control through digital input 1:

  1. Connect to the Ewon Cosy's web interface and log in as an admin
  2. Navigate to Setup -> System -> Storage -> Tabular edition -> Edit COM cfg
  3. Search for the parameter DI1Cfg

    mceclip1.png
    Fig 1. Navigating to the DI1Cfg parameter

  4. Double click next to this parameter in the Value column
  5. Change the value to 1, for Internet control
    1. If DI1 was already configured to send SMS and/or email, add 1 to the current value
    2. If DI1 was already configured to control the VPN connection, leave the value as it is. It's not possible to control the Internet connection and VPN connection at the same time.
  6. Reboot the Ewon to apply the change.

Possible DI1Cfg settings and behavior:

Behavior DI1Cfg Value
Disabled 0
Internet Control 1
VPN Control 2
Internet control + SMS notification 5
VPN control + SMS notification 6
Internet control + SMS and email notification 13
VPN control + SMS and email notification 14