Actions

Difference between revisions of "2-2c. CCTV with data (1) - Event Handler (solution)"

From Zenitel Wiki

(Related articles)
 
(12 intermediate revisions by one other user not shown)
Line 7: Line 7:
 
* ''Pressing the call button at the Entrance or at the SOS Point should generate a '''Call Request''' (623 + 101) to the Control Room.''
 
* ''Pressing the call button at the Entrance or at the SOS Point should generate a '''Call Request''' (623 + 101) to the Control Room.''
  
[[File:2-2b solution1.PNG|left|thumb|500px|Program DAK 1 of the Entrance station to "I 101"]]
+
[[File:2-2c solution1.PNG|left|thumb|500px|Program DAK 1 of the Entrance station to "I 623 I 101"]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
[[File:2-2b solution2.PNG|left|thumb|500px|Program DAK 1 of the SOS Point station to "I 101"]]
+
[[File:2-2c solution2.PNG|left|thumb|500px|Program DAK 1 of the SOS Point station to "I 623 I 101"]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
[[File:2-2b solution3.PNG|left|thumb|500px|By setting Call Priority Setup = Low, the call from the Entrance will be forced to Private ringing mode, regardless of the Open/Private status of the Control Room]]
+
 
 +
'''CCTV Control:'''
 +
* ''When a Call Request (= mail) is received at the Control Room, the AlphaCom should send ASCII text on the EDO port 1 to the CCTV system, telling which camera to connect to which monitor.''
 +
* ''The EDO output should be "C1M1" when station 107 is calling, and "C2M1" when station 108 is calling.''
 +
 
 +
 
 +
When the Control Room receives Call Request (The Received Mail event goes ON), and the caller is station 107, send "C1M1" to the EDO port:
 +
[[File:2-2c solution3.PNG|left|thumb|500px|Received Mail ON at 101 when called from station 107 will trigger the EDO command]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
[[File:2-2b solution4.PNG|left|thumb|500px|By setting Call Priority Setup = Low, the call from the SOS Point will be forced to Private ringing mode, regardless of the Open/Private status of the Control Room]]
+
When the Control Room receives Call Request (The Received Mail event goes ON), and the caller is station 108, send "C2M1" to the EDO port:
 +
[[File:2-2c solution4.PNG|left|thumb|500px|Received Mail ON at 101 when called from station 107 will trigger the EDO command]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
====Relay control ====
 
* ''A relay output to the CCTV system should be activated when the private ringing starts. There is one relay for each substation. Use the outputs 5 and 6.''
 
* ''The relay should stay activate until the call is accepted and the conversation is cancelled. (If the call is not answered, the relay must drop when the ringing times out).''
 
  
 +
* ''The AlphaCom should be set as a "TCP/IP Server", and TCP port number 4005 should be used for the communication (Hint: Remember to define the port in "Filters" setting).''
  
When the Control Room starts ringing (The Private Ringing mode event goes ON), and the caller is station 107, turn on RCO 5:
+
In '''Exchange & System''' > '''Serial Ports''', set the EDIO 1 port as TCP/IP Server, using port 4005:
[[File:2-2b solution5.PNG|left|thumb|500px|Private Ringing mode ON at 101 when called from station 107 will trigger RCO 5 on]]
+
[[File:2-2c solution5.PNG|left|thumb|500px|EDIO 1 port as TCP/IP Server, using port 4005]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
When the Control Room starts ringing (The Private Ringing mode event goes ON), and the caller is station 108, turn on RCO 6:
+
In AlphaWeb, Filters settings, define TCP port 4005:
[[File:2-2b solution6.PNG|left|thumb|500px|Private Ringing mode ON at 101 when called from station 108 will trigger RCO 6 on]]
+
[[File:2-2c solution6.PNG|left|thumb|500px|Defining TCP port 4005]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
When the conversation with the Entrance ends (or the ringing times out), the station returns to idle mode. Now the event "4 - Station in Use" will go OFF:
+
In AlphaWeb, Filters settings, enable the TCP port 4005 on relevant ethernet port:
[[File:2-2b solution7.PNG|left|thumb|500px|Turn off the RCO 5 when the Entrance station 107 returns to idle]]
+
[[File:2-2c solution7.PNG|left|thumb|500px|Enabling the TCP port 4005]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
When the conversation with the SOS Point ends (or the ringing times out), the station returns to idle mode. Now the event "4 - Station in Use" will go OFF:
 
[[File:2-2b solution8.PNG|left|thumb|500px|Turn off the RCO 6 when SOS point station 108 returns to idle]]
 
<br style="clear:both;" />
 
  
====Relay control. Alternative solution ====
+
* ''Use the software "PuTTY" to verify that the correct data is being transmitted from the AlphaCom (In PuTTY use the Connection type = "Raw").''
This solution reduces the number of events. Instead of using one event for each substation, one can set the "When Related To" = "All", and use the IF statement to check who is calling.
 
  
[[File:2-2b solution9.PNG|left|thumb|500px|This event is triggered by calls from any station. The IF statement is used to check who the caller is]]
+
In PuTTY, enter the IP address of the AlphaCom, port number 4005, and Connection type = "Raw":
 +
[[File:2-2c solution8.PNG|left|thumb|500px|PuTTY settings]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action string:
+
In PuTTY, verify that the correct data is beinfg transmitted when a Call Request is made from station 107 or from station 108:
IF %op(%2.dir,=,107)
+
[[File:2-2c solution9.PNG|left|thumb|500px|Data output in PuTTY]]
RCO 5 ON
+
<br style="clear:both;" />
ENDIF
 
IF %op(%2.dir,=,108)
 
RCO 6 ON
 
ENDIF
 
 
 
Explanation: If the call is from 107, turn on RCO 5. If the call is from 108, turn on RCO 6.
 
  
 
 
When the Control Room station returns to idle, the outputs should go off:
 
[[File:2-2b solution10.PNG|left|thumb|500px|Turn all outputs off whenever the Control Room returns to idle]]
 
<br style="clear:both;" />
 
  
 
<br><br><br><br>
 
<br><br><br><br>
Line 67: Line 59:
  
 
===Related articles ===
 
===Related articles ===
* [[2-2b. CCTV with relay - Event Handler (practice)]]
+
* [[2-2c. CCTV with data (1) - Event Handler (practice)]]
 +
 
 +
[[Category: AlphaCom practice]]

Latest revision as of 10:07, 30 June 2022

System configuration


Solution

Call buttons:

  • Pressing the call button at the Entrance or at the SOS Point should generate a Call Request (623 + 101) to the Control Room.
Program DAK 1 of the Entrance station to "I 623 I 101"


Program DAK 1 of the SOS Point station to "I 623 I 101"



CCTV Control:

  • When a Call Request (= mail) is received at the Control Room, the AlphaCom should send ASCII text on the EDO port 1 to the CCTV system, telling which camera to connect to which monitor.
  • The EDO output should be "C1M1" when station 107 is calling, and "C2M1" when station 108 is calling.


When the Control Room receives Call Request (The Received Mail event goes ON), and the caller is station 107, send "C1M1" to the EDO port:

Received Mail ON at 101 when called from station 107 will trigger the EDO command


When the Control Room receives Call Request (The Received Mail event goes ON), and the caller is station 108, send "C2M1" to the EDO port:

Received Mail ON at 101 when called from station 107 will trigger the EDO command



  • The AlphaCom should be set as a "TCP/IP Server", and TCP port number 4005 should be used for the communication (Hint: Remember to define the port in "Filters" setting).

In Exchange & System > Serial Ports, set the EDIO 1 port as TCP/IP Server, using port 4005:

EDIO 1 port as TCP/IP Server, using port 4005


In AlphaWeb, Filters settings, define TCP port 4005:

Defining TCP port 4005


In AlphaWeb, Filters settings, enable the TCP port 4005 on relevant ethernet port:

Enabling the TCP port 4005



  • Use the software "PuTTY" to verify that the correct data is being transmitted from the AlphaCom (In PuTTY use the Connection type = "Raw").

In PuTTY, enter the IP address of the AlphaCom, port number 4005, and Connection type = "Raw":

PuTTY settings


In PuTTY, verify that the correct data is beinfg transmitted when a Call Request is made from station 107 or from station 108:

Data output in PuTTY








Related articles