Actions

Difference between revisions of "EDO - External Data Output"

From Zenitel Wiki

(Syntax)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''EDO (External Data Output)''' is an user definable [http://en.wikipedia.org/wiki/ASCII ASCII] HEX protocol intended for CCTV control etc.
+
{{AI}}
 +
'''EDO''' (External Data Output) is a user definable [http://en.wikipedia.org/wiki/ASCII ASCII] HEX protocol intended for CCTV control, making customized logs etc.
  
EDO is controlled from the [[Event Handler]] where it can be configured to send free text merged with parameters for the active stations. Up to four EDO ports can be defined.
+
EDO ports can be configured as RS232 serial ports or TCP/IP ports. Up to ten EDO ports can be defined. The EDO ports are configured from AlphaPro: [[Exchange_%26_System_%28AlphaPro%29#Serial_Ports|Exchange & System -> Serial Ports]].
  
Add EDO port number as an optional parameter before the text
+
EDO is controlled from the [[Event Handler]] where it can be configured to send free text merged with parameters for the active stations.
EDO 3 ”This goes to port 3”
+
== Syntax ==
EDO 1 ”text” is equivalent to EDO ”text”
+
EDO "free text"                      - sends '''''free text''''' on the EDO port 1
 
+
EDO 1 "free text"                    - sends '''''free text''''' on the EDO port 1
The $PUT DP message already have port parameter because $PUT 3 is EDO port 1. This is followed up by
+
EDO 2 "Door A2 open\x0D\x0A"        - sends '''''Door A2 open''''' including CR + LF on the EDO port 2
$PUT 4 (EDO port 2)
+
EDO 3 "Door A2 opened by %1.dir\r\n" - sends '''''Door A2 opened by 101''''' including CR + LF on the EDO port 3 when
$PUT 5 (EDO port 3)
+
                                        station 101 presses "6" and activates the door opening event
$PUT 6 (EDO port 4)
+
EDO 4 "\x02free text\x03"            - sends <STX> + '''''free text''''' + <ETX> on the EDO port 4  
 +
                                        (STX = ASCII hex 02 and ETX = ASCII hex 03)
  
  
== Syntax ==
+
The data protocol message [[PUT STRING|$PUT]] can also be used to output data on EDO ports:
 +
$PUT 3 "free text"  - sends '''''free text''''' on the EDO port 1
 +
$PUT 4 "free text"  - sends '''''free text''''' on the EDO port 2
 +
$PUT 5 "free text"  - sends '''''free text''''' on the EDO port 3
 +
$PUT 6 "free text"  - sends '''''free text''''' on the EDO port 4
  
EDO "free text"                      - sends '''free text''' on the EDO port 1
 
EDO 1 "free text"                    - sends '''free text''' on the EDO port 1
 
EDO 2 "Door A2 open\x0D\x0A"        - sends '''Door A2 open''' including CR + LF on the EDO port 2
 
EDO 3 "Door A2 opened by %1.dir\r\n" - sends '''Door A2 opened by 101''' including CR + LF on the EDO port 3 when
 
                                        station 101 presses "6" and activates the door opening event
 
EDO 4 "\xfree text\x" - sends '''Door A2 opened by 101''' including CR + LF on the EDO port 3 when
 
                                        station 101 presses "6" and activates the door opening event
 
  
== Example ==
+
The $PUT command is useful when the EDO data should be routed in AlphaNet:
 +
@2 $PUT 5 "my text"  - sends '''''my text''''' on EDO port 3 in node 2
  
EDO 2 "Door A2 open \x0D\x0A"
+
{{note|Note that there is an offset of two between $PUT and EDO: $PUT 4 sends to EDO port 2}}
Output: Door A2 open +CR+LF
 
  
 
== See also ==
 
== See also ==
Line 32: Line 31:
 
*[[EDI|EDI - External Data Input]]
 
*[[EDI|EDI - External Data Input]]
  
 +
[[Category:CCTV]]
 
[[Category:Event Handler]]
 
[[Category:Event Handler]]
 
[[Category:Built-In Action Commands]]
 
[[Category:Built-In Action Commands]]

Latest revision as of 15:13, 4 October 2019

AI.png

EDO (External Data Output) is a user definable ASCII HEX protocol intended for CCTV control, making customized logs etc.

EDO ports can be configured as RS232 serial ports or TCP/IP ports. Up to ten EDO ports can be defined. The EDO ports are configured from AlphaPro: Exchange & System -> Serial Ports.

EDO is controlled from the Event Handler where it can be configured to send free text merged with parameters for the active stations.

Syntax

EDO "free text"                      - sends free text on the EDO port 1
EDO 1 "free text"                    - sends free text on the EDO port 1
EDO 2 "Door A2 open\x0D\x0A"         - sends Door A2 open including CR + LF on the EDO port 2
EDO 3 "Door A2 opened by %1.dir\r\n" - sends Door A2 opened by 101 including CR + LF on the EDO port 3 when 
                                       station 101 presses "6" and activates the door opening event
EDO 4 "\x02free text\x03"            - sends <STX> + free text + <ETX> on the EDO port 4 
                                       (STX = ASCII hex 02 and ETX = ASCII hex 03)


The data protocol message $PUT can also be used to output data on EDO ports:

$PUT 3 "free text"  - sends free text on the EDO port 1
$PUT 4 "free text"  - sends free text on the EDO port 2
$PUT 5 "free text"  - sends free text on the EDO port 3
$PUT 6 "free text"  - sends free text on the EDO port 4


The $PUT command is useful when the EDO data should be routed in AlphaNet:

@2 $PUT 5 "my text"  - sends my text on EDO port 3 in node 2
Note icon Note that there is an offset of two between $PUT and EDO: $PUT 4 sends to EDO port 2


See also