Embodiment
By reference to the accompanying drawings the utility model is described in further detail below by embodiment.
Embodiment one
Please refer to Fig. 1, please refer to Fig. 1, in the present embodiment, a kind of system that realizes fire-fighting and monitoring interlock is provided, this system comprises fire protection warning subsystem, Monitor And Control Subsystem and communication subsystem, the fire protection warning subsystem is connected by the communication subsystem signal respectively with Monitor And Control Subsystem, and the two carries out the TCP network communication by communication subsystem.
The fire protection warning subsystem is as server end, and Monitor And Control Subsystem is as the client of fire protection warning subsystem, and Monitor And Control Subsystem initiatively connects with the fire protection warning subsystem by communication subsystem; The fire protection warning subsystem issues data message and/or order by communication subsystem to Monitor And Control Subsystem; Monitor And Control Subsystem responds according to data message and/or the order that the fire protection warning subsystem issues.
The fire protection warning subsystem comprises fire protection warning server, fire protection warning main frame and fire protection warning terminal, the fire protection warning terminal comprises manual alarm switch, alarm bell and alarm detector etc., the fire protection warning terminal is carried out communication by fire protection warning subsystem bus and fire protection warning main frame, the fire protection warning main frame is connected with the fire protection warning server signal, respectively issues data message and/or order by communication subsystem to Monitor And Control Subsystem by the fire protection warning server.
Monitor And Control Subsystem comprises monitoring server and monitor terminal, monitor terminal is connected with the monitoring server signal, wherein, monitor terminal comprises display screen and video camera etc., not shown among monitor terminal Fig. 1, Monitor And Control Subsystem is connected by the fire protection warning server of communication subsystem active with the fire protection warning subsystem by monitoring server as the client of fire protection warning subsystem.
Communication subsystem comprises Ethernet switch, fire protection warning server via Ethernet switch is connected with the monitoring server signal, fire protection warning server via Ethernet switch issues data message and/or order to monitoring server, monitoring server makes monitor terminal make corresponding response according to the data message that issues and/or order control monitor terminal.
Monitor And Control Subsystem brings into operation, namely initiatively send to the fire protection warning subsystem by communication subsystem and set up the TCP connection requests, after the fire protection warning subsystem listens to this connection request by communication subsystem, set up it according to connection request and be connected with the TCP of Monitor And Control Subsystem.By communication subsystem, the fire protection warning server in the fire protection warning subsystem namely sends to Monitor And Control Subsystem after receiving data messages such as the warning message of fire protection warning main frame and reset command immediately.Monitor And Control Subsystem carries out real-time listening by the fire protection warning subsystem of Socket, in case the fire protection warning subsystem sends data message and reset commands such as warning message to Monitor And Control Subsystem by communication subsystem, can receive in real time and carry out.Wherein, in each intelligent residential district, the interlock between above-mentioned fire protection warning subsystem and Monitor And Control Subsystem mainly adopts the server in the corresponding subsystem to dock to realize interlock mutually.
Below, the fire-fighting alarm host machine received warning message after, how the fire protection warning server in the fire protection warning subsystem and the monitoring server in the Monitor And Control Subsystem are that Ethernet switch realizes that the process of three's interlock is described in detail by communication subsystem.
Alarm detector detects breaking out of fire etc. in the residential quarter, by fire protection warning subsystem bus notice fire protection warning main frame, simultaneously, alarm bell is sounded, the fire protection warning main frame receives warning message, be about to it and be delivered to the fire protection warning server, fire protection warning server via Ethernet switch sends this warning message to monitoring server in the mode of TCP network signal simultaneously, monitoring server carries out real-time listening by the fire-fighting Alarm Server of Socket, so that this warning message is received in real time, after monitoring server listens to this warning message, control corresponding monitor terminal and make respective handling.
A kind of in the present embodiment realizes in the system of fire-fighting and monitoring interlock, the fire protection warning subsystem can in time be sent to Monitor And Control Subsystem by communication subsystem after receiving data messages such as warning message and/or reset command, if what Monitor And Control Subsystem received is reset command, can carry out reset command immediately, if the data message that Monitor And Control Subsystem listens to is warning message, monitoring server control monitor terminal such as video camera carry out the shooting of alarm region, video camera can send the image that photographs to monitoring server, by monitoring server video image is automatically switched to display screen.If Monitor And Control Subsystem also receives reset command when receiving data message such as warning message, can when carrying out reset command, also respond to data messages such as warning messages.
Below, be the method for the two interlock realization of fire protection warning subsystem and Monitor And Control Subsystem in the present embodiment.Wherein, the interlock between fire protection warning subsystem and Monitor And Control Subsystem mainly adopts the server in the corresponding subsystem to dock to realize interlock mutually.
The process of Monitor And Control Subsystem and fire protection warning subsystems linkage realizes as follows:
Step connects: Monitor And Control Subsystem initiatively connects by communication subsystem and fire protection warning subsystem as the client of fire protection warning subsystem; Wherein, the fire protection warning subsystem is monitored the Monitor And Control Subsystem that is considered as client as server end, and when listening to Monitor And Control Subsystem to its request connection, fire protection warning subsystem and Monitor And Control Subsystem namely connect;
Send data message and/or commands steps: the fire protection warning subsystem sends data message and/or order by communication subsystem to Monitor And Control Subsystem;
Receiving data information and/or commands steps: Monitor And Control Subsystem receives data message and/or the order that the fire protection warning subsystem sends by communication subsystem;
Response of step: Monitor And Control Subsystem responds according to data message and/or the order that the fire protection warning subsystem issues; That is: after the monitoring server of Monitor And Control Subsystem receives data message and/or order, search the monitor terminal of the Monitor And Control Subsystem of corresponding address according to data message, and the real-time video of the video camera in the monitor terminal of corresponding address is switched to the display screen of Monitor And Control Subsystem.
In the above-mentioned steps, also comprise:
The real-time listening step: Monitor And Control Subsystem is by Socket real-time listening fire protection warning subsystem, to receive data message and/or the order that the fire protection warning subsystem sends;
Detect on-line steps: whether the monitoring server of the fire protection warning server detection Monitor And Control Subsystem of fire protection warning subsystem is online, if online, then carries out sending data message and/or commands steps;
Return response frame step: after the monitoring server of Monitor And Control Subsystem receives the information and/or order that the fire protection warning server of fire protection warning subsystem sends, to the fire protection warning server return response frame of fire protection warning subsystem;
Receive the acknowledgement frame step: the fire protection warning server of fire protection warning subsystem receives the acknowledgement frame of the monitoring server loopback of Monitor And Control Subsystem in preset time, if surpassing preset time does not receive, then carry out again and send data message and/or commands steps and return response frame step, all do not receive the acknowledgement frame of loopback if continuous quadratic is above at preset time, then disconnect and the two be connected of the monitoring server of Monitor And Control Subsystem.
The realization of process in the above-mentioned interlock method mainly adopts the server in the corresponding subsystem to dock to realize interlock mutually.
Monitoring server initiatively sends to the fire protection warning server by communication subsystem in when operation start and sets up the TCP connection requests, and the fire protection warning server is set up by communication subsystem according to request and is connected with the TCP of Monitor And Control Subsystem.
After setting up the TCP connection, monitoring server receives data message and/or the order that the fire protection warning server sends by Socket real-time listening fire protection warning server to wait for.
The fire protection warning server is waited for data message and/or the order of fire protection warning main frame, after receiving the reset command and/or data message such as warning message of fire protection warning main frame transmission, connect according to the TCP that sets up, whether detect monitoring server online, if it is online, the fire protection warning server sends reset command and/or data message by communication subsystem with latticed form, if not online, does not then send reset command and/or data message to monitoring server.
Because monitoring server is by Socket real-time listening fire protection warning server, after the fire protection warning server sent data message, monitoring server can receive this data message in real time.
After monitoring server successfully receives the reset command and/or data message of fire protection warning server transmission, namely to fire protection warning server return response frame.
After the fire protection warning server sends data message, wait for the acknowledgement frame of monitoring server loopback, if the time of presetting as 1 second in, the fire protection warning server namely receives the acknowledgement frame of monitoring server loopback, then continue to wait for reset command and/or data message that the fire protection warning main frame sends, with the monitoring server communication process that next time links; If the time of presetting as 1 second in, the fire protection warning server does not receive the acknowledgement frame of monitoring server loopback, the fire protection warning server sends reset command and/or data message to monitoring server again, if the above fire protection warning server of continuous quadratic does not receive the acknowledgement frame of loopback in as 1 second all the time at preset time, then disconnection is connected with the TCP of monitoring server, and the communication of end and monitoring server.If send data message to monitoring server again, the fire protection warning server receives the acknowledgement frame of loopback in as 1 second at preset time, then the fire protection warning server continue to be waited for the data message that the fire protection warning main frame sends, with the monitoring server communication process that next time links.
After monitoring server and fire protection warning server are set up TCP and are connected, also create the data processing threads, the initialization data storehouse, to receive reset command and/or the data message that the fire protection warning server sends, in case successfully receive reset command and/or data message, it is the return response frame, and the buffering that reset command and/or data message are added in the database lined up, monitoring server reads reset command and/or data message from buffering is lined up, and search the sip address of the monitor terminal corresponding with reset command and/or data message according to the reset command that reads and/or data message, so that reset command and/or data message are flowed to the monitor terminal with corresponding sip address, make corresponding monitor terminal carry out respective operations according to the reset command that receives and/or data message.
Wherein, monitoring server is to realize in the following way by Socket real-time listening fire protection warning server respectively: monitoring server is namely opened Socket respectively with after the fire protection warning server is set up TCP and is connected by communication subsystem, with real-time listening fire protection warning server, in the process of the reset command of waiting for the transmission of reception fire protection warning server and/or data message, surpass preset time and do not receive reset command and/or data message, whether the monitoring server active detecting sets up normal TCP with the fire protection warning server is connected, disconnect if connect, then close current Socket, again asking to set up TCP with the fire protection warning server is connected, if normal the connection, then continue by Socket real-time listening fire protection warning server, with reset command and/or the data message of real-time reception fire protection warning server transmission.
Below, its command code form of order of introducing the form of communication frames when carrying out communication as the fire protection warning server of server end and monitoring server as client respectively, issuing from type format and fire protection warning server when the warning host type was fault in corresponding device type, the warning message in the data layout, warning message of warning message when data message that the fire protection warning server issues was warning message.
When fire protection warning server and monitoring server linked communication respectively, the communication frames form saw also following table 1.
Frame head |
Function code |
Frame number |
Data length |
Data |
2 bytes |
1 byte |
1 byte |
1 byte |
… |
Table 1
In the communication frames, its frame head is: 0xAA 0xAA(is head[0]=0xAA, head[1]=0xAA); Function code is: 0x01 warning message, 0x02 command code; Frame number is: 0-255, recycle, and server end is set; Data length: be the length of real data.
When data message was warning message, the data layout of warning message saw also following table 2.
Table 2
Server end sends the Frame of warning message: data length is 9 bytes; Device address number: high byte is preceding; Device type: corresponding relation sees the following form 3; Warning host type: 0x01 fire alarm; The 0x02 fault; Warning is from type: if host type is the 0x01(fire alarm), be 0 from type; If host type is the 0x02(fault), see the following form 4 from type.The acknowledgement frame of client loopback, its data length: be 0; Data are empty, frame number: for receiving the frame number of the Frame that server end sends.
Table 3
ID |
Title |
ID |
Title |
0x01 |
Device losses |
0x50 |
The interface board communication failure |
0x02 |
Open circuit |
0x51 |
The host communication fault |
0x03 |
The repeated code fault |
0x52 |
The display panel communication failure |
0x04 |
Short circuit |
0x53 |
The printer fault |
0x05 |
Equipment failure |
0x54 |
Power fail |
0x06 |
Type mismatch |
0x55 |
Broadcasting console panel communication failure |
0x07 |
Sensor fault |
0x56 |
Broadcasting console panel power amplifier fault |
0x08 |
Sensor pollutes |
0x57 |
The flash chamber communication failure |
0x09 |
Main failure |
0x60 |
Interface board CAN fault |
0x10 |
The loop short circuit |
0x61 |
Host C AN fault |
0x11 |
Loop open circuit |
0x62 |
Display panel CAN fault |
Table 4
When data message was order, the data layout of reset command saw also following table 5.
Table 5
Server end sends Frame: data length: 1 byte; Command type: 0x08 reset command; Client acknowledgement frame: data length: 0, data are empty, frame number is the frame number that receives the Frame of server end transmission.
Below, after receiving fire alarm information with the fire protection warning main frame, the fire protection warning server in the fire protection warning subsystem and the monitoring server in the Monitor And Control Subsystem are that Ethernet switch realizes that the process of three's interlock is that example is described in detail by communication subsystem.
Monitor And Control Subsystem brings into operation, monitoring server namely initiatively sends to the fire protection warning server by communication subsystem and sets up the TCP connection requests, the fire protection warning server is monitored monitoring server, after listening to this connection request, set up it by communication subsystem according to connection request and be connected with the TCP of monitoring server.Alarm detector is sensed fire and is taken place, namely by fire protection warning subsystem bus notice fire protection warning main frame, simultaneously, alarm bell is sounded, and the fire protection warning main frame receives warning message, and it is delivered to the fire protection warning server, the fire protection warning server receives warning message, whether online, detect onlinely if detecting monitoring server immediately, the fire protection warning server namely sends warning message.
Monitoring server is with after the fire protection warning server is set up TCP and is connected, wait in the process of the warning message that receives the transmission of fire protection warning server, by Socket real-time listening fire protection warning server, be whether the continuous active detecting of monitoring server is set up normal TCP with the fire protection warning server and be connected, and establishment data processing threads, as connect normal, after receiving warning message, soon warning message is added into to cushion and lines up, monitoring server initialization data storehouse, from lining up, buffering reads warning message, and search the sip address of the monitor terminal corresponding with warning message according to warning message, warning message is flowed to the monitor terminal with corresponding sip address, corresponding monitor terminal is carried out respective operations according to the warning message that receives.
After monitoring server receives warning message, according to the sip address in the warning message, near the automatic control alarm generation area monitor terminal, as control video camera, video camera is turned to the warning generation area, and the video image that video camera photographs delivered to monitoring server, the monitor terminal display screen that monitoring server automatically switches to the screen image Monitor And Control Subsystem uses for the cell management personnel.Cell management personnel on duty confirm that fire takes place after hearing the warning of seeing alarm region after alarm bell sounds simultaneously, and by the building talkback server appointment alarm region is issued evacuation according to field condition and instruct, this evacuates instruction can pass through the building talkback server, the building talkback supervisor, and cell gate main frame issue, after resident family receives warning message and evacuates instruction by the intercommunication indoor terminal indoor unit of building talkback subsystem, to take emergency measures according to warning message and evacuation instruction.
After the system and interlock method that use embodiment one and embodiment two, the case row in the background technology will be another kind of results:
In the winter of drying, certain residential quarter was through with lively, busy one day, and this moment, clock pointer pointed to 3:00 AM, and the residential quarter operator on duty is only at the key post Attended mode, and resident family and other operators on duty have also entered dreamland.The just dense Wang of signs of getting drunk this moment returns to night, and conveniently the cigarette end of mouth is lost to dustbin, this cigarette end has just in time dropped to above the lawn on doorway, after several minutes ... just hear suddenly that Lee on duty the fire alarm bell of duty room sounds in the duty room, this moment, Monitor And Control Subsystem turned to video camera the fire scene automatically according to the warning message that the fire protection warning subsystem issues, video display screen has also transmitted the field data of kindling point simultaneously, at this moment, the intensity of a fire is also in range of control, Lee predict he go to behind the kindling point a the intensity of a fire he can not control, but he can isolate B building and ignite, so he supresses the building talkback server and sends the fire evacuation instruction toward A simultaneously with B resident family at this moment, dialed 119 phones simultaneously, and gone to kindling point A the control intensity of a fire at top speed and make the isolation strip.Though A resident family has good soundproof effect not hear the alarm bell of fire-fighting corridor, but the intercommunication indoor terminal indoor unit of building talkback subsystem is just in client family the inside, this moment, A all residents were waken up by the evacuation instruction of the automatic Lee's transmission reported of indoor unit, the smooth escape of evacuation instruction that resident family reports according to indoor unit
System in the present embodiment, fire protection warning server and the monitoring server in the Monitor And Control Subsystem in the fire protection warning subsystem are docked with the unified standard interface, realize interlock by the Ethernet switch in the communication subsystem, overcome the two defective of independent operating separately of tradition, make the two in independent operating, also can connect by communication subsystem is interactive, and, even a certain network of the two interlock interrupts or certain network key device damage, can not cause the paralysis of whole cell intelligent management system yet, simultaneously, can also bring very big dirigibility to effective intelligent management of residential quarter, monitoring server can receive various data messages and/or the order that the fire protection warning server sends automatically in real time, in time to control monitor terminal according to the data message that receives and/or order, make things convenient for the generation of the various situations of the timely and effective reply of cell management personnel and resident family.
Above content be in conjunction with concrete preferred implementation to further describing that the utility model is done, can not assert that concrete enforcement of the present utility model is confined to these explanations.For the utility model person of an ordinary skill in the technical field, under the prerequisite that does not break away from the utility model design, can also make some simple deduction or replace.