CN108022398B - Communication method for fire alarm system - Google Patents

Communication method for fire alarm system Download PDF

Info

Publication number
CN108022398B
CN108022398B CN201610973171.1A CN201610973171A CN108022398B CN 108022398 B CN108022398 B CN 108022398B CN 201610973171 A CN201610973171 A CN 201610973171A CN 108022398 B CN108022398 B CN 108022398B
Authority
CN
China
Prior art keywords
fire
data
frame
communication terminal
fighting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610973171.1A
Other languages
Chinese (zh)
Other versions
CN108022398A (en
Inventor
曾意忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XI'AN SHENGSAIER ELECTRONIC CO Ltd
Original Assignee
XI'AN SHENGSAIER ELECTRONIC CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XI'AN SHENGSAIER ELECTRONIC CO Ltd filed Critical XI'AN SHENGSAIER ELECTRONIC CO Ltd
Priority to CN201610973171.1A priority Critical patent/CN108022398B/en
Publication of CN108022398A publication Critical patent/CN108022398A/en
Application granted granted Critical
Publication of CN108022398B publication Critical patent/CN108022398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B17/00Fire alarms; Alarms responsive to explosion
    • G08B17/10Actuation by presence of smoke or gases, e.g. automatic alarm devices for analysing flowing fluid materials by the use of optical means
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/01Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
    • G08B25/014Alarm signalling to a central station with two-way communication, e.g. with signalling back

Landscapes

  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Alarm Systems (AREA)

Abstract

A communication method for a fire alarm system is characterized in that a digital communication protocol is adopted to realize bidirectional communication between a controller and a fire communication terminal through a communication bus, the controller inquires in groups and rapidly positions event information of the fire communication terminal, and carries out read-write operation on the fire communication terminal with an event, and the fire communication terminal responds to the operation of the controller so as to realize state monitoring of each fire communication terminal in the fire alarm system by the controller. The fire alarm system has the advantages of novel and reasonable design, simple and convenient use and operation, good use effect, high intelligent degree, high communication speed, accurate data transmission, higher data reliability and easy expanded application, can simply, conveniently and timely and accurately transmit information to a plurality of fire communication terminals, effectively overcomes the defects of information transmission of the traditional fire alarm system, and can better adapt to the requirements of the novel fire alarm system on richer data communication and more over-expanded functions.

Description

Communication method for fire alarm system
Technical Field
The invention relates to the field of communication, in particular to a communication method for a fire alarm system.
Background
At present, the communication mode of the fire alarm system of each fire alarm product manufacturer between the controller and the fire communication terminals is mainly to inquire the real-time state of each fire communication terminal in an address polling mode. The communication mode is long in application time and can meet the application requirement of a simple fire-fighting communication terminal. However, with the wide application of devices such as digital processors, the functions of fire-fighting communication terminals are becoming more abundant, the number of fire-fighting communication units in the communication loop increases, and the rapid event location communication method based on digital communication will gradually replace the polling communication method of the pulse modulation method. The digital communication has the advantages that the state information of the fire-fighting communication terminal, the sensor value and the like can be accurately transmitted, the transmitted data can be completely verified, the reliability of the data is improved, the communication efficiency can be improved through an event query mechanism, and the timely and accurate transmission of the fire alarm information is ensured. Digital communication protocols will gradually replace traditional pulse width modulation-like protocols.
Disclosure of Invention
The communication method for the fire alarm system, provided by the invention, has the advantages of novel and reasonable design, simplicity and convenience in use and operation, good use effect, high intelligent degree, capability of simply, conveniently and accurately transmitting information to a plurality of fire communication terminals in time, realization of real-time two-way communication between a controller of the fire alarm system and the plurality of control terminals, high communication speed, accurate data transmission, higher data reliability and easiness in expanded application, effectively overcomes the defects of information transmission of the traditional fire alarm system, and can better adapt to the requirements of the novel fire alarm system on richer data communication and more over-expanded functions.
In order to achieve the above object, the present invention provides a communication method for a fire alarm system, the fire alarm system comprising a controller and a fire communication terminal connected with the controller through a loop card, the controller being connected with a plurality of loop cards, each loop card being connected with a plurality of fire communication terminals through a communication bus;
the communication method for the fire alarm system adopts a digital communication protocol to realize bidirectional communication between the controller and the fire communication terminals through a communication bus, the controller inquires in groups and rapidly positions event information of the fire communication terminals, and carries out read-write operation on the fire communication terminals with events, and the fire communication terminals respond to the operation of the controller so as to realize state monitoring of each fire communication terminal in the fire alarm system by the controller;
the digital communication protocol comprises three communication data frame formats: loop event query frame, grouping query frame, and read-write control instruction frame.
The controller sends a loop event query frame to all the fire-fighting communication terminals through the loop card to query whether an event occurs at the fire-fighting communication terminals, the controller sends a grouping query frame to all the fire-fighting communication terminals through the loop card to quickly locate address information of the fire-fighting communication terminals with the event on the bus in a grouping query mode, and the controller sends a read-write control instruction frame to the fire-fighting communication terminals with the event through the loop card to read data information in the fire-fighting communication terminals or write the data instruction information into the fire-fighting communication terminals.
The loop event query frame includes: start bit, address high bit data, digital mode flag bit data, address low bit data and event return bit data; the digital mode mark bit data is used for representing marks of a digital communication protocol, the address high bit data and the address low bit data are used for representing types of data frames, and the event echo bit data is the occurrence event echo data of the fire-fighting communication terminal;
the packet query frame includes: start bit, address high bit data, digital mode flag bit data, address low bit data, group number data and bit number data; the digital mode mark bit data is used for representing marks of a digital communication protocol, the address high bit data, the address low bit data and the group number data are used for representing types of data frames, and the bit number data is group number value and grouping bit number value echo data of the fire-fighting communication terminal;
the read-write control command frame comprises: start bit, address high bit DATA, digital mode flag bit DATA, address low bit DATA, command number bit DATA, DATA1 DATA, DATA2 DATA, check DATA, and error response bit DATA; the DATA of the digital mode flag bit is used for representing a flag of a digital communication protocol, the DATA of the address high bit and the DATA of the address low bit are used for storing a physical address of a fire-fighting communication terminal, the DATA of the command number bit is used for representing the type of a DATA frame, the DATA1 DATA is address information of a register or a memory in the fire-fighting communication terminal, the DATA2 is DATA information read from the fire-fighting communication terminal or DATA instruction information to be written into the fire-fighting communication terminal, the check DATA is used for DATA check, and the DATA of the error response bit is used for representing whether the reading and the writing of the DATA are successful.
The packet query frame includes: an inter-group event query frame, an intra-group event query frame, an inter-group online query frame, and an intra-group online query frame.
The read-write control command frame comprises: register read command frame, register write command frame, memory read command frame, memory write command frame.
The method for grouping query and fast positioning fire-fighting communication terminal event information by the controller specifically comprises the following steps:
step S1, the controller sends loop event inquiry frames to all fire-fighting communication terminals through the loop card, if the event return code information of any one fire-fighting communication terminal is received, the step S2 is carried out, otherwise, the loop event inquiry frames are continuously sent to all fire-fighting communication terminals;
and step S2, the controller sends a grouping inquiry frame to all the fire-fighting communication terminals through the loop card, and obtains and records the physical address information of the fire-fighting communication terminals with events according to the group number and bit number return code information of the fire-fighting communication terminals.
The step S2 includes the following steps:
s2.1, the controller sends an inter-group event query frame to all the fire-fighting communication terminals through the loop card, and obtains and records the group number of the group where the fire-fighting communication terminal of the event occurs according to the group number return code information of the fire-fighting communication terminal;
and S2.2, according to the group number of the group in which the fire-fighting communication terminal with the incident is positioned, the controller sends an event inquiry frame in the group to the fire-fighting communication terminal in each group through the loop card, and according to the bit number return code information of the fire-fighting communication terminal with the incident, the bit number of the fire-fighting communication terminal with the incident in each group is obtained and recorded, and finally the physical address information of the fire-fighting communication terminal with the incident is obtained.
Also comprises the following steps:
and step S0, before the controller sends loop event query frames to all fire-fighting communication terminals through the loop card, the controller sends grouping query frames to all fire-fighting communication terminals through the loop card, and address information of the on-line fire-fighting communication terminals is obtained and recorded according to the group number and bit number return code information of the fire-fighting communication terminals.
The step S0 includes the following steps:
s0.1, the controller sends an inter-group online inquiry frame to all the fire-fighting communication terminals through the loop card, and obtains and records the group number of the group where the on-line fire-fighting communication terminal is located according to the group number return code information of the on-line fire-fighting communication terminal;
and S0.2, according to the group number of the group where the online fire-fighting communication terminal is located, the controller sends an in-group online inquiry frame to the online fire-fighting communication terminal in each group through the loop card, and according to the bit number return code information of the online fire-fighting communication terminal, the bit number of the online fire-fighting communication terminal in each group is obtained and recorded.
The method for the controller to carry out read-write operation on the fire-fighting communication terminal with the occurrence of the event comprises the following steps:
when the controller reads the fire-fighting communication terminal with the incident, the controller sends a register read command frame or a memory read command frame to the fire-fighting communication terminal with the incident through the loop card, and reads data return code information and check data of the fire-fighting communication terminal;
when the controller performs write operation on the fire-fighting communication terminal with the incident, the controller sends a register write command frame or a memory write command frame to the fire-fighting communication terminal with the incident through the loop card.
The method for responding the operation of the controller by the fire-fighting communication terminal specifically comprises the following steps:
step S1, the fire-fighting communication terminal receives the communication data frame sent by the controller, judges the frame format of the communication data frame, if the communication data frame is a loop event inquiry frame, the step S2 is carried out, if the communication data frame is a grouping inquiry frame, the step S3 is carried out, and if the communication data frame is a read-write control command frame, the step S4 is carried out;
step S2, the fire fighting communication terminal with the event continues to receive the residual data of the communication data frame, code returning is carried out at the event code returning position of the loop event inquiry frame, and the fire fighting communication terminal without the event does not carry out code returning;
step S3, the fire-fighting communication terminal continues to receive the group number data of the communication data frame, judges the frame format of the communication data frame, if the frame format is an inter-group online inquiry frame, the step S5 is carried out, if the frame format is an inter-group online inquiry frame, the step S6 is carried out, if the frame format is an inter-group event inquiry frame, the step S7 is carried out, and if the frame format is an intra-group event inquiry frame, the step S8 is carried out;
step S4, the fire-fighting communication terminal continues to receive the command number bit data of the communication data frame, judges the frame format of the communication data frame, if the communication data frame is a register read command frame or a memory read command frame, the step S9 is carried out, and if the communication data frame is a register write command frame or a memory write command frame, the step S10 is carried out;
step S5, the fire-fighting communication terminal continues to receive the residual data of the communication data frame, automatically calculates the corresponding grouping number according to the address of the fire-fighting communication terminal, and returns the corresponding data bit code of the group number information in the bit number of the inter-group online inquiry frame;
step S6, the fire-fighting communication terminal continues to receive the residual data of the communication data frame, automatically calculates the group internal bit number according to the group number data in the group internal online inquiry frame and the address of the fire-fighting communication terminal, and returns the corresponding data bit of the bit number information in the bit number of the group internal online inquiry frame;
step S7, the fire fighting communication terminal with the event continues to receive the residual data of the communication data frame, automatically calculates the corresponding grouping number according to the address of the fire fighting communication terminal, returns the corresponding data bit of the group number information in the bit number of the inter-group event inquiry frame, and the fire fighting communication terminal without the event does not return the code;
step S8, the fire fighting communication terminal with the incident continues to receive the residual data of the communication data frame, automatically calculates the position number in the group according to the group number data in the group incident inquiry frame and the address of the fire fighting communication terminal, returns the corresponding data position of the position number information in the position number of the group incident inquiry frame, and the fire fighting communication terminal without the incident does not return the code;
step S9, the fire fighting communication terminal of the incident continues to receive the address information of the register or the memory to be read, the DATA information in the register or the memory is obtained according to the received address information of the register or the memory, and the DATA information is coded back in the DATA2 DATA bit of the register read command frame or the memory read command frame;
and step S10, the fire fighting communication terminal in the event continues to receive the address information of the memory or the register to be written, the written data instruction and the verification data, and writes the received data instruction information data into the memory or the register of the corresponding address.
When the controller carries out read-write operation on the fire-fighting communication terminal with the incident, data verification is carried out and whether the read-write operation is successful or not is verified.
In step S4, the fire fighting communication terminal first determines whether the physical address in the read/write control command frame matches the physical address of the terminal, if not, discards the remaining data of the communication data frame, and continues to receive the next communication data frame, and if so, the fire fighting communication terminal continues to receive the command number bit data of the communication data frame, and determines what frame format the communication data frame is.
Compared with the prior art, the invention has the following advantages:
1. the communication mode adopts a two-wire system communication bus, simplifies the composition of a communication line, is more suitable for longer-distance application, and reduces the line cost. The communication signal voltage is composed of a power supply voltage level and a signal level, and when signals are transmitted, power supply support can be provided for the fire-fighting communication terminal, so that the complexity of a fire-fighting system can be simplified.
2. By adopting the event searching and positioning method of grouping query, the fire-fighting communication terminal with the event can be quickly positioned, the communication efficiency of the communication bus is improved, the communication occupancy rate of the communication bus is reduced, the loss on the communication line is reduced, and the energy-saving design is facilitated.
3. The communication adopts a digital communication protocol, the communication data is accurate, a data checking mechanism is provided, the reliability and the accuracy of the data can be effectively improved, and the defects of information transmission of the traditional fire alarm system are effectively overcome.
Drawings
Fig. 1 is a schematic view of the construction of a fire alarm system.
Fig. 2 is a frame format diagram of a loop event query frame.
Fig. 3 is a frame format diagram of a packet query frame.
Fig. 4 is a frame format diagram of a read/write control command frame.
Fig. 5 is a schematic diagram of a communication signal waveform.
Fig. 6 is a flowchart of a method for grouping query and fast locating fire communication terminal event information by a controller.
Fig. 7 is a flowchart of a method of the fire fighting communication terminal responding to the operation of the controller.
Detailed Description
The preferred embodiment of the present invention will be described in detail below with reference to fig. 1 to 7.
As shown in fig. 1, the fire alarm system comprises a controller and a fire communication terminal connected with the controller through a loop card, wherein the controller is connected with a plurality of loop cards, and each loop card is connected with the fire communication terminal through a communication bus; the loop card separates or superposes a clock signal and a data signal in each frame of data information transmitted by the loop card; the number of fire-fighting communication terminals which can be connected in parallel on each loop card is less than or equal to 240, and the fire-fighting communication terminals comprise: smoke detector, temperature detector, manual alarm button, audible and visual alarm etc. each fire control communication terminal has unique physical address.
In this embodiment, all the fire fighting communication terminals are divided into 15 groups, each group has a group number value, each group has 16 bits, and each bit has a group bit number value.
The invention provides a communication method for a fire alarm system, which adopts a digital communication protocol to realize two-way communication between a controller and fire communication terminals through a communication bus and carries out state monitoring on each fire communication terminal in the fire alarm system; the digital communication protocol comprises three communication data frame formats: the controller sends the grouping inquiry frame to all the fire-fighting communication terminals through the loop card to quickly locate the address information of the fire-fighting communication terminal with the event on the bus in a grouping inquiry mode, and sends the read-write control instruction frame to the fire-fighting communication terminal with the event through the loop card to read the data information in the fire-fighting communication terminal or write the data instruction information into the fire-fighting communication terminal.
As shown in fig. 2, the loop event query frame includes: start bit, address high bit data, digital mode flag bit data, address low bit data and event return bit data; the digital mode mark bit data is used for representing marks of a digital communication protocol, the address high bit data and the address low bit data are used for representing types of data frames, and the event echo bit data is echo data of the fire-fighting communication terminal; when the controller sends a loop event query frame to all the fire communication terminals through the loop card, if an event occurs in any fire communication terminal, the fire communication terminal writes logic '1' into an event echo bit of the loop event query frame.
As shown in fig. 3, the packet query frame includes: start bit, address high bit data, digital mode flag bit data, address low bit data, group number data and bit number data; the digital mode mark bit data is used for representing marks of a digital communication protocol, the address high bit data, the address low bit data and the group number data are used for representing types of data frames, and the bit number data is echo data of the fire-fighting communication terminal.
The packet query frame includes: an inter-group event query frame, an intra-group event query frame, an inter-group online query frame, and an intra-group online query frame.
The inter-group event inquiry frame is used for inquiring the group number of the fire-fighting communication terminal with the occurrence of the event; the fire-fighting communication terminal comprises an address high-order data storage unit, an address low-order data storage unit, a group number data storage unit and a fire-fighting communication terminal, wherein the address high-order data, the address low-order data and the group number data are fixed values and are used for representing the type of a data frame; when the controller sends the inter-group event query frame to all the fire-fighting communication terminals through the loop card, the fire-fighting communication terminal which generates the event returns the code according to the corresponding data bit in the bit number of the inter-group event query frame according to the group number value.
The event inquiry frame in the group is used for inquiring the bit number of the fire-fighting communication terminal with the event in a certain group; the group number data is a group number to be inquired, and the bit number data is used for storing group bit number value return code data of the fire-fighting communication terminal; when the controller sends the intra-group event query frame to the fire communication terminals in the same group through the loop card, the fire communication terminals in which the events occur return codes according to the corresponding data bits in the bit numbers of the intra-group event query frame according to the grouping bit number values of the fire communication terminals.
The inter-group online inquiry frame is used for inquiring a group number occupied by an online fire-fighting communication terminal; the fire-fighting communication terminal comprises an address high-order data storage unit, an address low-order data storage unit, a group number data storage unit and a fire-fighting communication terminal, wherein the address high-order data, the address low-order data and the group number data are fixed values and are used for representing the type of a data frame; when the controller sends the inter-group online inquiry frame to all the fire-fighting communication terminals through the loop card, the online fire-fighting communication terminals return codes according to the corresponding data bits in the bit numbers of the inter-group online inquiry frame according to the group number values.
The in-group online inquiry frame is used for inquiring the bit number occupied by the online fire-fighting communication terminal in a certain group; the group number data is a group number to be inquired, and the bit number data is used for storing the grouped bit number data echo data of the fire-fighting communication terminal; when the controller sends the in-group online inquiry frame to the online fire-fighting communication terminals in the same group through the loop card, the online fire-fighting communication terminals return codes according to the corresponding data bits in the bit numbers of the in-group online inquiry frames according to the grouping bit number values of the online fire-fighting communication terminals.
As shown in fig. 4, the read/write control command frame includes: start bit, address high bit DATA, digital mode flag bit DATA, address low bit DATA, command number bit DATA, DATA1 DATA, DATA2 DATA, check DATA, and error response bit DATA; in the embodiment, if reading or writing succeeds, a logic "1" is written in the error response bit, and if reading or writing succeeds, a logic "0" is written in the error response bit.
The read-write control command frame comprises: register read command frame, register write command frame, memory read command frame, memory write command frame.
The register reading command frame is used for reading a numerical value in a register of a corresponding address in the fire-fighting communication terminal; the DATA of the command number bit is a fixed value and is used for representing the type of a DATA frame, the DATA1 DATA is address information of a register in the fire-fighting communication terminal, the DATA2 is used for storing DATA information read from the register of the fire-fighting communication terminal, the check DATA is used for storing check DATA generated by the fire-fighting communication terminal, and the error response bit DATA is used for representing whether the reading of the DATA is successful or not.
The register write command frame is used for writing data into a register of a corresponding address in the fire-fighting communication terminal; the DATA of the command number bit is a fixed value and is used for representing the type of a DATA frame, the DATA1 DATA is address information of a register in the fire-fighting communication terminal, the DATA2 DATA is DATA instruction information to be written into the register, the check DATA is used for storing check DATA generated by a controller, and the error response bit DATA is used for representing whether the writing of the DATA is successful or not.
The memory reading command frame is used for reading a numerical value in a memory of a corresponding address in the fire-fighting communication terminal; the DATA of the command number is a fixed value and is used for representing the type of a DATA frame, the DATA1 is address information of a memory in the fire-fighting communication terminal, the DATA2 is used for storing DATA information read from the memory of the fire-fighting communication terminal, the check DATA is used for storing check DATA generated by the fire-fighting communication terminal, and the error response bit DATA is used for representing whether the reading of the DATA is successful or not.
The memory write command frame is used for writing data into a memory of a corresponding address in the fire-fighting communication terminal; the DATA of the command number is a fixed value and is used for representing the type of a DATA frame, the DATA1 is address information of a memory in the fire-fighting communication terminal, the DATA2 is DATA instruction information to be written into the memory, the check DATA is used for storing check DATA generated by a controller, and the error response bit DATA is used for representing whether the writing of the DATA is successful or not.
In this embodiment, data communication is implemented in a two-wire communication bus form, and as shown in fig. 5, a communication signal sent by a controller through a loop card includes three level specifications: a power supply voltage of 24V; signal level 5V, representing a digital signal logic "1"; signal level 0V, representing a digital logic "0". The moment when the 24V voltage is switched to 5V or 0V is the synchronous moment of the clock, and the 5V or 0V signal level is sent out according to the data content in the communication data frame in the digital communication protocol. The duration of the signal level is 300 mus and the duration of the 24V level of the supply voltage is 300 mus. If the fire-fighting communication terminal returns the code at the appointed data bit in the communication data frame and the return code outputs a 5V signal level, the two-wire system communication line is short-circuited to generate a cross-current, the current is larger than 50mA, the return code digital logic '1' is represented, and the level 0V represents the return code digital logic '0'. If the communication signal level is the power supply voltage 24V and there is no level change for 4000 mus, the communication reset state is followed by the first clock synchronization timing as the start timing of a new one of the communication frames. If the communication signal level is 0V and there is no level change for 2500 muS continuously, it is a communication frame error timeout state in which the fire communication terminal starts waiting for the next communication frame to be received after waiting for the communication signal level to return to the 24V power supply voltage and generating a communication reset state. In the communication signal that the controller sent through the return circuit card, when mains voltage 24V exported, can provide power supply support for fire control communication terminal, when 24V level jumped to other levels, fire control communication terminal should stop getting the electricity from the communication bus and be used for its self power supply.
The invention provides a communication method for a fire alarm system, which comprises the following steps: the controller sends a loop event query frame to all the fire-fighting communication terminals through the loop card to query whether an event occurs at the fire-fighting communication terminals, if the controller receives an event return code of the fire-fighting communication terminals through the loop card, the controller sends a grouping query frame to all the fire-fighting communication terminals through the loop card and receives a group number and a bit number return code of the fire-fighting communication terminals, the address information of the fire-fighting communication terminals where the event occurs is quickly positioned in a grouping query mode, and according to the address information of the fire-fighting communication terminals where the event occurs, the controller sends a read-write control command frame to the fire-fighting communication terminals where the event occurs through the loop card, reads data information in the fire-fighting communication terminals or writes the data command information into the fire-fighting communication terminals.
As shown in fig. 6, the method for grouping query and fast locating fire fighting communication terminal event information by a controller specifically includes the following steps:
step S0, the controller sends a grouping inquiry frame to all fire-fighting communication terminals through the loop card, and obtains and records the address information of the on-line fire-fighting communication terminals according to the group number and the bit number return code information of the fire-fighting communication terminals;
step S1, the controller sends loop event inquiry frames to all fire-fighting communication terminals through the loop card, if the event return code information of any one fire-fighting communication terminal is received, the step S2 is carried out, otherwise, the loop event inquiry frames are continuously sent to all fire-fighting communication terminals;
and step S2, the controller sends a grouping inquiry frame to all the fire-fighting communication terminals through the loop card, and obtains and records the physical address information of the fire-fighting communication terminals with events according to the group number and bit number return code information of the fire-fighting communication terminals.
The step S0 includes the following steps:
s0.1, the controller sends an inter-group online inquiry frame to all the fire-fighting communication terminals through the loop card, and obtains and records the group number of the group where the on-line fire-fighting communication terminal is located according to the group number return code information of the on-line fire-fighting communication terminal;
and S0.2, according to the group number of the group where the online fire-fighting communication terminal is located, the controller sends an in-group online inquiry frame to the online fire-fighting communication terminal in each group through the loop card, and according to the bit number return code information of the online fire-fighting communication terminal, the bit number of the online fire-fighting communication terminal in each group is obtained and recorded.
The step S2 includes the following steps:
s2.1, the controller sends an inter-group event query frame to all the fire-fighting communication terminals through the loop card, and obtains and records the group number of the group where the fire-fighting communication terminal of the event occurs according to the group number return code information of the fire-fighting communication terminal;
and S2.2, according to the group number of the group in which the fire-fighting communication terminal with the incident is positioned, the controller sends an event inquiry frame in the group to the fire-fighting communication terminal in each group through the loop card, and according to the bit number return code information of the fire-fighting communication terminal with the incident, the bit number of the fire-fighting communication terminal with the incident in each group is obtained and recorded, and finally the physical address information of the fire-fighting communication terminal with the incident is obtained.
The method for the controller to carry out read-write operation on the fire-fighting communication terminal with the occurrence of the event comprises the following steps:
the controller sends a register read command frame or a memory read command frame to the fire communication terminal with an event through the loop card, the DATA1 DATA in the register read command frame or the memory read command frame is address information of a register or a memory in the fire communication terminal, the controller reads DATA code returning information and verification DATA of the fire communication terminal through the loop card, DATA verification is carried out according to a verification DATA generation rule of the read-write control command frame, if the verification is correct and the DATA reading is successful, the controller sends the register read command frame or the memory read command frame to the fire communication terminal after writing the error response bit of the register read command frame or the memory read command frame into logic '1' through the loop card, otherwise, the controller sends the register read command frame or the memory read command frame to the fire communication terminal with the event again through the loop card, the controller writes the logic '0' into the error response bit of the register read command frame or the memory read command frame, and the controller sends the register read command frame or the memory read command frame to A command frame;
the controller sends a register write command frame or a memory write command frame to the fire-fighting communication terminal with an event through the loop card, the DATA1 DATA in the register write command frame or the memory write command frame is address information of a register or a memory in the fire-fighting communication terminal, the DATA2 DATA is DATA instruction information to be written into the register or the memory, the check DATA is generated by the controller, and the controller reads an error response return code of the fire-fighting communication terminal through the loop card and judges whether the DATA writing operation is successful.
As shown in fig. 7, the method for responding to the operation of the controller by the fire-fighting communication terminal specifically includes the following steps:
step S1, the fire-fighting communication terminal receives the start bit, the address high bit data, the digital mode flag bit data and the address low bit data of the communication data frame sent by the controller, and judges the frame format of the communication data frame, if the communication data frame is a loop event query frame, the step S2 is carried out, if the communication data frame is a grouping query frame, the step S3 is carried out, and if the communication data frame is a read-write control command frame, the step S4 is carried out;
step S2, the fire fighting communication terminal with the event continues to receive the residual data of the communication data frame, code returning is carried out at the event code returning position of the loop event inquiry frame, and the fire fighting communication terminal without the event does not carry out code returning;
step S3, the fire-fighting communication terminal continues to receive the group number data of the communication data frame, judges the frame format of the communication data frame, if the frame format is an inter-group online inquiry frame, the step S5 is carried out, if the frame format is an inter-group online inquiry frame, the step S6 is carried out, if the frame format is an inter-group event inquiry frame, the step S7 is carried out, and if the frame format is an intra-group event inquiry frame, the step S8 is carried out;
step S4, the fire-fighting communication terminal firstly judges whether the physical address in the read-write control command frame matches with the physical address of the terminal, if not, the remaining data of the communication data frame is discarded, the next communication data frame is continuously received, if matching, the fire-fighting communication terminal continuously receives the command number bit data of the communication data frame, the frame format of the communication data frame is judged, if the frame format is the register read command frame or the memory read command frame, the step S9 is carried out, and if the frame format is the register write command frame or the memory write command frame, the step S10 is carried out;
step S5, the fire-fighting communication terminal continues to receive the residual data of the communication data frame, automatically calculates the corresponding grouping number according to the address of the fire-fighting communication terminal, and returns the corresponding data bit code of the group number information in the bit number of the inter-group online inquiry frame;
step S6, the fire-fighting communication terminal continues to receive the residual data of the communication data frame, automatically calculates the group internal bit number according to the group number data in the group internal online inquiry frame and the address of the fire-fighting communication terminal, and returns the corresponding data bit of the bit number information in the bit number of the group internal online inquiry frame;
step S7, the fire fighting communication terminal with the event continues to receive the residual data of the communication data frame, automatically calculates the corresponding grouping number according to the address of the fire fighting communication terminal, returns the corresponding data bit of the group number information in the bit number of the inter-group event inquiry frame, and the fire fighting communication terminal without the event does not return the code;
step S8, the fire fighting communication terminal with the incident continues to receive the residual data of the communication data frame, automatically calculates the position number in the group according to the group number data in the group incident inquiry frame and the address of the fire fighting communication terminal, returns the corresponding data position of the position number information in the position number of the group incident inquiry frame, and the fire fighting communication terminal without the incident does not return the code;
step S9, the fire fighting communication terminal which has an event continues to receive the address information of the register or the memory which needs to be read, the DATA information in the register or the memory is obtained according to the received address information of the register or the memory, the DATA information is coded back at the DATA2 DATA bit of the register reading command frame or the memory reading command frame, the check DATA bit code of the check information in the register reading command frame or the memory reading command frame is generated, and if the error response bit of the register reading command frame or the memory reading command frame is received as logic '1', the event information is cleared;
and step S10, the fire fighting communication terminal which has an incident continues to receive the address information of the memory or the register to be written, the data instruction to be written and the check data, the data of the received communication data frame is checked according to the check data generation rule of the read-write control command frame, if the check is correct, the received data instruction information data is written into the memory or the register of the corresponding address, if the write is successful, a logic '1' is written into the error response bit of the register write command frame or the memory write command frame, if the check is wrong, the data is not written, a logic '0' is written into the error response bit of the register write command frame or the memory write command frame, and the register write command frame or the memory write command frame is sent to the controller.
After each frame of communication data frame is sent, the fire-fighting communication terminal needs to receive 5ms of communication static time, no communication frame data exists on the data communication bus in the time period, and the controller does not send any communication data frame; after the communication rest time is over, the fire communication terminal enters a communication reset state, and after that, the controller can start the transmission of a new communication data frame.
Compared with the prior art, the invention has the following advantages:
1. the communication mode adopts a two-wire system communication bus, simplifies the composition of a communication line, is more suitable for longer-distance application, and reduces the line cost. The communication signal voltage is composed of a power supply voltage level and a signal level, and when signals are transmitted, power supply support can be provided for the fire-fighting communication terminal, so that the complexity of a fire-fighting system can be simplified.
2. By adopting the event searching and positioning method of grouping query, the fire-fighting communication terminal with the event can be quickly positioned, the communication efficiency of the communication bus is improved, the communication occupancy rate of the communication bus is reduced, the loss on the communication line is reduced, and the energy-saving design is facilitated.
3. The communication adopts a digital communication protocol, the communication data is accurate, a data checking mechanism is provided, the reliability and the accuracy of the data can be effectively improved, and the defects of information transmission of the traditional fire alarm system are effectively overcome.
In conclusion, the fire alarm system has the advantages of novel and reasonable design, simple and convenient use and operation, good use effect, high intelligent degree, high communication speed, accurate data transmission, high data reliability and easy expanded application, can simply, conveniently and accurately transmit information to a plurality of fire communication terminals in time, realizes the real-time bidirectional communication between the controller of the fire alarm system and the plurality of control terminals, effectively overcomes the defects of the traditional fire alarm system in information transmission, and can better adapt to the requirements of the novel fire alarm system on richer data communication and more extensive functions.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.

Claims (11)

1. A communication method for a fire alarm system comprises a controller and fire communication terminals connected with the controller through loop cards, wherein the controller is connected with a plurality of loop cards, and each loop card is connected with the fire communication terminals through a communication bus; it is characterized in that the preparation method is characterized in that,
the communication method for the fire alarm system adopts a digital communication protocol to realize bidirectional communication between the controller and the fire communication terminals through a communication bus, the controller inquires in groups and rapidly positions event information of the fire communication terminals, and carries out read-write operation on the fire communication terminals with events, and the fire communication terminals respond to the operation of the controller so as to realize state monitoring of each fire communication terminal in the fire alarm system by the controller;
the digital communication protocol comprises three communication data frame formats: a loop event query frame, a grouping query frame and a read-write control instruction frame;
the controller sends a loop event query frame to all the fire-fighting communication terminals through the loop card to query whether an event occurs at the fire-fighting communication terminals, sends a grouping query frame to all the fire-fighting communication terminals through the loop card to quickly locate address information of the fire-fighting communication terminals with the event on the bus in a grouping query mode, and sends a read-write control instruction frame to the fire-fighting communication terminals with the event through the loop card to read data information in the fire-fighting communication terminals or write the data instruction information into the fire-fighting communication terminals;
the loop event query frame includes: start bit, address high bit data, digital mode flag bit data, address low bit data and event return bit data; the digital mode mark bit data is used for representing marks of a digital communication protocol, the address high bit data and the address low bit data are used for representing types of data frames, and the event echo bit data is the occurrence event echo data of the fire-fighting communication terminal;
the packet query frame includes: start bit, address high bit data, digital mode flag bit data, address low bit data, group number data and bit number data; the digital mode mark bit data is used for representing marks of a digital communication protocol, the address high bit data, the address low bit data and the group number data are used for representing types of data frames, and the bit number data is group number value and grouping bit number value echo data of the fire-fighting communication terminal;
the read-write control instruction frame comprises: start bit, address high bit DATA, digital mode flag bit DATA, address low bit DATA, command number bit DATA, DATA1 DATA, DATA2 DATA, check DATA, and error response bit DATA; the DATA of the digital mode flag bit is used for representing a flag of a digital communication protocol, the DATA of the address high bit and the DATA of the address low bit are used for storing a physical address of a fire-fighting communication terminal, the DATA of the command number bit is used for representing the type of a DATA frame, the DATA1 DATA is address information of a register or a memory in the fire-fighting communication terminal, the DATA2 is DATA information read from the fire-fighting communication terminal or DATA instruction information to be written into the fire-fighting communication terminal, the check DATA is used for DATA check, and the DATA of the error response bit is used for representing whether the reading and the writing of the DATA are successful.
2. The communication method for fire alarm system according to claim 1, wherein the packet polling frame comprises: an inter-group event query frame, an intra-group event query frame, an inter-group online query frame, and an intra-group online query frame.
3. The communication method for a fire alarm system according to claim 1, wherein the read/write control command frame comprises: register read command frame, register write command frame, memory read command frame, memory write command frame.
4. The communication method for fire alarm system according to claim 2 or 3, wherein the method for the controller to query and quickly locate the fire communication terminal event information in groups comprises the steps of:
step S1, the controller sends loop event inquiry frames to all fire-fighting communication terminals through the loop card, if the event return code information of any one fire-fighting communication terminal is received, the step S2 is carried out, otherwise, the loop event inquiry frames are continuously sent to all fire-fighting communication terminals;
and step S2, the controller sends a grouping inquiry frame to all the fire-fighting communication terminals through the loop card, and obtains and records the physical address information of the fire-fighting communication terminals with events according to the group number and bit number return code information of the fire-fighting communication terminals.
5. The communication method for a fire alarm system according to claim 4, wherein the step S2 includes the steps of:
s2.1, the controller sends an inter-group event query frame to all the fire-fighting communication terminals through the loop card, and obtains and records the group number of the group where the fire-fighting communication terminal of the event occurs according to the group number return code information of the fire-fighting communication terminal;
and S2.2, according to the group number of the group in which the fire-fighting communication terminal with the incident is positioned, the controller sends an event inquiry frame in the group to the fire-fighting communication terminal in each group through the loop card, and according to the bit number return code information of the fire-fighting communication terminal with the incident, the bit number of the fire-fighting communication terminal with the incident in each group is obtained and recorded, and finally the physical address information of the fire-fighting communication terminal with the incident is obtained.
6. The communication method for a fire alarm system according to claim 4, further comprising the steps of:
and step S0, before the controller sends loop event query frames to all fire-fighting communication terminals through the loop card, the controller sends grouping query frames to all fire-fighting communication terminals through the loop card, and address information of the on-line fire-fighting communication terminals is obtained and recorded according to the group number and bit number return code information of the fire-fighting communication terminals.
7. The communication method for a fire alarm system according to claim 6, wherein the step S0 includes the steps of:
s0.1, the controller sends an inter-group online inquiry frame to all the fire-fighting communication terminals through the loop card, and obtains and records the group number of the group where the on-line fire-fighting communication terminal is located according to the group number return code information of the on-line fire-fighting communication terminal;
and S0.2, according to the group number of the group where the online fire-fighting communication terminal is located, the controller sends an in-group online inquiry frame to the online fire-fighting communication terminal in each group through the loop card, and according to the bit number return code information of the online fire-fighting communication terminal, the bit number of the online fire-fighting communication terminal in each group is obtained and recorded.
8. The communication method for fire alarm system according to claim 5 or 7, wherein the method for the controller to read and write the fire communication terminal in which the event occurs comprises the steps of:
when the controller reads the fire-fighting communication terminal with the incident, the controller sends a register read command frame or a memory read command frame to the fire-fighting communication terminal with the incident through the loop card, and reads data return code information and check data of the fire-fighting communication terminal;
when the controller performs write operation on the fire-fighting communication terminal with the incident, the controller sends a register write command frame or a memory write command frame to the fire-fighting communication terminal with the incident through the loop card.
9. The communication method for fire alarm system according to claim 8, wherein the method for the fire fighting communication terminal to respond to the operation of the controller comprises the steps of:
step S1, the fire-fighting communication terminal receives the communication data frame sent by the controller, judges the frame format of the communication data frame, if the communication data frame is a loop event inquiry frame, the step S2 is carried out, if the communication data frame is a grouping inquiry frame, the step S3 is carried out, and if the communication data frame is a read-write control command frame, the step S4 is carried out;
step S2, the fire fighting communication terminal with the event continues to receive the residual data of the communication data frame, code returning is carried out at the event code returning position of the loop event inquiry frame, and the fire fighting communication terminal without the event does not carry out code returning;
step S3, the fire-fighting communication terminal continues to receive the group number data of the communication data frame, judges the frame format of the communication data frame, if the frame format is an inter-group online inquiry frame, the step S5 is carried out, if the frame format is an inter-group online inquiry frame, the step S6 is carried out, if the frame format is an inter-group event inquiry frame, the step S7 is carried out, and if the frame format is an intra-group event inquiry frame, the step S8 is carried out;
step S4, the fire-fighting communication terminal continues to receive the command number bit data of the communication data frame, judges the frame format of the communication data frame, if the communication data frame is a register read command frame or a memory read command frame, the step S9 is carried out, and if the communication data frame is a register write command frame or a memory write command frame, the step S10 is carried out;
step S5, the fire-fighting communication terminal continues to receive the residual data of the communication data frame, automatically calculates the corresponding grouping number according to the address of the fire-fighting communication terminal, and returns the corresponding data bit code of the group number information in the bit number of the inter-group online inquiry frame;
step S6, the fire-fighting communication terminal continues to receive the residual data of the communication data frame, automatically calculates the group internal bit number according to the group number data in the group internal online inquiry frame and the address of the fire-fighting communication terminal, and returns the corresponding data bit of the bit number information in the bit number of the group internal online inquiry frame;
step S7, the fire fighting communication terminal with the event continues to receive the residual data of the communication data frame, automatically calculates the corresponding grouping number according to the address of the fire fighting communication terminal, returns the corresponding data bit of the group number information in the bit number of the inter-group event inquiry frame, and the fire fighting communication terminal without the event does not return the code;
step S8, the fire fighting communication terminal with the incident continues to receive the residual data of the communication data frame, automatically calculates the position number in the group according to the group number data in the group incident inquiry frame and the address of the fire fighting communication terminal, returns the corresponding data position of the position number information in the position number of the group incident inquiry frame, and the fire fighting communication terminal without the incident does not return the code;
step S9, the fire fighting communication terminal of the incident continues to receive the address information of the register or the memory to be read, the DATA information in the register or the memory is obtained according to the received address information of the register or the memory, and the DATA information is coded back in the DATA2 DATA bit of the register read command frame or the memory read command frame;
and step S10, the fire fighting communication terminal in the event continues to receive the address information of the memory or the register to be written, the written data instruction and the verification data, and writes the received data instruction information data into the memory or the register of the corresponding address.
10. The communication method for the fire alarm system according to claim 9, wherein when the controller performs a read/write operation on the fire communication terminal in which the event occurs, data verification is performed and it is verified whether the read/write operation is successful.
11. The communication method for the fire alarm system of claim 10, wherein in step S4, the fire fighting communication terminal first determines whether the physical address in the read/write control command frame matches the physical address of the terminal, if not, discards the remaining data of the communication data frame, and continues to receive the next communication data frame, and if so, the fire fighting communication terminal continues to receive the command number bit data of the communication data frame, and determines what frame format the communication data frame is.
CN201610973171.1A 2016-11-04 2016-11-04 Communication method for fire alarm system Active CN108022398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610973171.1A CN108022398B (en) 2016-11-04 2016-11-04 Communication method for fire alarm system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610973171.1A CN108022398B (en) 2016-11-04 2016-11-04 Communication method for fire alarm system

Publications (2)

Publication Number Publication Date
CN108022398A CN108022398A (en) 2018-05-11
CN108022398B true CN108022398B (en) 2020-03-10

Family

ID=62083655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610973171.1A Active CN108022398B (en) 2016-11-04 2016-11-04 Communication method for fire alarm system

Country Status (1)

Country Link
CN (1) CN108022398B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110136410A (en) * 2019-06-21 2019-08-16 山东众海公共安全器材有限公司 A kind of two lines bus digital communication method of fire alarm and linkage control system
CN111918507A (en) * 2020-08-14 2020-11-10 付永涛 Safety protection method of fire alarm control system of power plant
CN112206453A (en) * 2020-10-22 2021-01-12 珠海格力电器股份有限公司 Fire control system
CN114283549B (en) * 2022-01-28 2024-05-31 西安盛赛尔电子有限公司 Communication method for fire alarm system
CN115311801B (en) * 2022-08-12 2023-07-11 营口天成消防设备有限公司 Encoding method for two-bus equipment and infrared combination for fire protection

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1296245A (en) * 1999-12-02 2001-05-23 王殊 Two-bus communication method and fire alarm system using same
WO2005001789A1 (en) * 2003-06-27 2005-01-06 Visible Voice Pty Limited Emergency communication
CN101221686A (en) * 2008-01-29 2008-07-16 西安特菲尔电子有限公司 Inside communication method of fire disaster warning system
CN101819710A (en) * 2010-03-30 2010-09-01 西安盛赛尔电子有限公司 Two-way serial communication protocol based communication method for fire alarm system
CN102355395A (en) * 2011-10-09 2012-02-15 蚌埠依爱消防电子有限责任公司 Bus communication protocol of fire alarm system
CN104065545A (en) * 2014-06-27 2014-09-24 浙江大学 RS485 bus communication method based on Modbus protocol and power electronic system based on communication method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1296245A (en) * 1999-12-02 2001-05-23 王殊 Two-bus communication method and fire alarm system using same
WO2005001789A1 (en) * 2003-06-27 2005-01-06 Visible Voice Pty Limited Emergency communication
CN101221686A (en) * 2008-01-29 2008-07-16 西安特菲尔电子有限公司 Inside communication method of fire disaster warning system
CN101819710A (en) * 2010-03-30 2010-09-01 西安盛赛尔电子有限公司 Two-way serial communication protocol based communication method for fire alarm system
CN102355395A (en) * 2011-10-09 2012-02-15 蚌埠依爱消防电子有限责任公司 Bus communication protocol of fire alarm system
CN104065545A (en) * 2014-06-27 2014-09-24 浙江大学 RS485 bus communication method based on Modbus protocol and power electronic system based on communication method

Also Published As

Publication number Publication date
CN108022398A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN108022398B (en) Communication method for fire alarm system
RU2566948C2 (en) Method and apparatus for busbar subscriber activation and corresponding subscriber
CN102354443B (en) Wireless infrared (IR) remote control device and operating method thereof
CN102253913B (en) Device for carrying out state acquisition and output control on multi-board-card port
CN105721295B (en) A kind of gateway that cloud server is communicated with PLC PPI
EP3957966A1 (en) Daisy chain two-wire sensor measurement system and measurement method therefor
US9268519B2 (en) System and method for updating electronic shelf labels and updating apparatus and method of an electronic shelf label
KR101165941B1 (en) Control/monitor signal transmission system
CN104143244A (en) Communication method for automatic fire alarm system and automatic fire alarm system
CN105446837A (en) Method, device and system for detecting whether IIC (inter-integrated circuit) interface device is connected
US20100064081A1 (en) Remote communication system of a network
CN104484260B (en) Simulation monitoring circuit based on GJB289 bus interface SoC (system on a chip)
CN103869687A (en) Clock controller and clock
CN110308685B (en) Electric power overhauls job site monitoring machine
CN114283549B (en) Communication method for fire alarm system
SE515929C2 (en) Method of synchronizing communication means in a battery with communication means in an electronic equipment, an apparatus and a battery
JPH0142539B2 (en)
CN114095300B (en) Data reading and writing method and device with self-adaptive rate
CN2884169Y (en) Low temp. preservation temp. recording device based-on electronic label
CN201553168U (en) Safety monitoring equipment
CN204390224U (en) A kind of fault-tolerant master-slave synchronisation serial communication system based on FPGA
CN112623890A (en) Elevator single bus communication SBP control system
CN115903436B (en) Time calibration method for submarine seismograph array system and related device
CN103281214B (en) CAN surveillance on a kind of SCM Based star
CN111431631A (en) Bidirectional communication method, receiving equipment, sending equipment and communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant