Configuring Contact Closure Profiles
Last Updated: August 17, 2009
Each Cisco Analog Video Gateway module comes with eight contact closure interfaces. Four contact closure interfaces can be configured as alarm inputs or as contact closure relay outputs. The other four contact closure interfaces are for inputs only. Alarm interfaces can be used to detect contact trigger events and to control external devices.
The Cisco Analog Video Gateway is designed to interact with local or remote controllers to manage and control the contact closure interfaces. Alarm interfaces are set to their proper states and monitor trigger events. When an alarm is detected, the source and severity of the alarm are determined, the system log file is updated, and predefined HTTP messages are sent to the controllers. For example, in response to the nature of the alarm, the alarm can request the Cisco Analog Video Gateway to adjust the camera, begin video streaming, or trigger the external devices.
The Cisco Analog Video Gateway has eight preconfigured contact closure ports. The contact closure ports have the following default configuration. You can only modify a contact closure port; you cannot add or delete a contact closure port.
Use the contactclosure-port command to configure the specified contact closure interface profile.
Whenever possible, configuration and management of the Cisco Analog Video Gateway module should be configured using the Video Surveillance Operations Manager (VSOM) graphical user interface.
Note In the VSOM, the state change from open-to-close is considered falling and the state change from close-to-open is considered rising.
SUMMARY STEPS
1. configure terminal
2. contactclosure-port portnum
3. [default | description | direction | relaystate | state]
4. end
5. exit
6. show contactclosure-port portnum
or
show contactclosure-port hw-state
or
show contactclosure-port summary
DETAILED STEPS
|
|
|
Step 1 |
configure terminal
Router# configure terminal |
Enters global configuration mode. |
Step 2 |
contactclosure-port portnum
VSE-Module(config)> contactclosure-port 0 Modifying existing port VSE-Module(config-contactclosure-port)> |
Enters contact closure port configuration profile mode. portnum: Contact closure ports. Integer value in the range of 0 to 7. |
Step 3 |
[default | description | direction | relaystate | state]
VSE-Module(config)> contactclosure-port 0 Modifying existing port VSE-Module(config-contactclosure-port)> description "contact closure port 0 config" VSE-Module(config-contactclosure-port)> direction in VSE-Module(config-contactclosure-port)> relaystate close VSE-Module(config-contactclosure-port)> state enabled VSE-Module(config-contactclosure-port)> VSE-Module(config-contactclosure-port)> VSE-Module(config-contactclosure-port)> end VSE-Module(config)> exit VSE-Module > |
Configures a contact closure port profile. default: Contact closure default values. Use the no form of this command to remove the default values. description: Contact closure text description in quotes. Up to 80 text characters are allowed. direction: Contact closure for output direction applies only to ports 0 to 3. Contact closure for the input direction applies to all contact closure ports. Default: in. relaystate: Contact closure relay state: open or close. Default: open. state: Operational state of the contact closure port: enabled or disabled. Default: disabled. |
Step 4 |
end
VSE-Module(config-contactclosure-port)> end |
Exits contact closure port configuration. |
Step 5 |
exit
VSE-Module(config)> exit |
Exits global configuration mode. |
Step 6 |
show contactclosure-port portnum
show contactclosure-port hw-state
show contactclosure-port summary
VSE-Module> show contactclosure-port 0 |
Displays the contact closure configuration parameters for a specified port, displays the hardware state for all contact closure ports, or displays the contact closure port summary. |
Examples
The following example shows the contact closure configuration parameters for a specified port 0:
vse-module> show contactclosure-port 0
description "contact closure port 0 config"
The following example shows the hardware state (open or close) for evert contact closure port:
vse-module> show contactclosure-port hw-state
The following example shows the contact closure port summary:
vse-module> show contactclosure-port summary
port state direction relayState
=====================================