Actions

Difference between revisions of "Virtual IO - Examples"

From Zenitel Wiki

(Controlling relays located in safe area)
Line 15: Line 15:
 
* '''RelayTimer_v1.lua''': Pulse the relay for a set time
 
* '''RelayTimer_v1.lua''': Pulse the relay for a set time
  
[[File:VIO_1_1_v1.PNG|thumb|left|500px|Relay ON script]]
+
[[File:ScriptRelayUpload.PNG|thumb|left|500px|Upload scripts to the station]]
<br style="clear:both;" />
 
 
 
[[File:VIO_1_2_v1.PNG|thumb|left|500px|Relay OFF script]]
 
<br style="clear:both;" />
 
 
 
[[File:VIO_1_3_v1.PNG|thumb|left|500px|Relay activation with timer script]]
 
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  

Revision as of 21:55, 24 July 2017

PS.png

Virtual I/O is a feature for activating scripts on station events.

The scripts mentioned in this article can be downloaded here.

Controlling relays located in safe area

Sometimes due to security requirements it is not allowed to operate the door lock from the relay in the Turbine station outside the door.

Instead of operating the relay in the door station, one can use the "Virtual I/O" feature to control the relay of an I/O unit (e.g. TKIS unit) which is located in a secure area.

Upload the script
There are three different scripts for relay control. The scripts can be downloaded here.

  • RelayOn_v1.lua: Turn relay ON
  • RelayOff_v1.lua: Turn relay OFF
  • RelayTimer_v1.lua: Pulse the relay for a set time
Upload scripts to the station



Script configuration
RelayOn script requires 3 parameters:

  • username (default: admin)
  • password (default: alphaadmin)
  • Turbine IP address
Configuration for RelayOn script


RelayOff script requires 3 parameters:

  • username (default: admin)
  • password (default: alphaadmin)
  • Turbine IP address
Configuration for RelayOff script


RelayWithTimer script requires 4 parameters:

  • username (default: admin)
  • password (default: alphaadmin)
  • Turbine IP address
  • Timer (the number of seconds the relay shoud stay active)
Configuration for Relay with timer script



Script Event assignement
After a script slot has been created the user can choose which event(s) which will start the script(s).

VIO 3.PNG


TruPortal Integration

By using Virtual I/O the Pulse system trigger a script that can control the door lock in a TruPortal system.


Upload the script

VIO 11 1 v1.PNG



Script configuration
TruPortal script requires 4 parameters:

  • username
  • password
  • TruPortal device IP address
  • Door number to activate
VIO 11 2 v1.PNG



Script Event assignement
After a script slot has been created the user can choose which event(s) which will start the script.

VIO 11 3 v1.PNG


Milestone Integration

By using Virtual I/O the Pulse system trigger a script that can control the Milestone Video Management System. In this example we want to activate a camera when the Turbine station calls the reception. The camera should switch off when the conversation ends.


Upload the script

VIO 21 1 v1.PNG



Script configuration
Milestone script requires 3 parameters:

  • Milestone server IP address
  • TCP port number
  • "Text" to send (example "Cam105")
Send command to switch to camera for station 105


A second slot is needed to deactivate the camera. Same parameters with text changed to "CamOff".

  • Milestone server IP address
  • TCP port number
  • "Text" to send (example "CamOff")
Send command to deactivate camera for station 105



Script Event assignement
After a script slot has been created the user can choose which events which will start the script.

VIO 21 3 v1.PNG