CN108107779B - Method for solving false alarm of automatic fire extinguishing system in kitchen - Google Patents

Method for solving false alarm of automatic fire extinguishing system in kitchen Download PDF

Info

Publication number
CN108107779B
CN108107779B CN201711346068.5A CN201711346068A CN108107779B CN 108107779 B CN108107779 B CN 108107779B CN 201711346068 A CN201711346068 A CN 201711346068A CN 108107779 B CN108107779 B CN 108107779B
Authority
CN
China
Prior art keywords
function
microprocessor
voltage
relay
false alarm
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
CN201711346068.5A
Other languages
Chinese (zh)
Other versions
CN108107779A (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.)
Jiangsu Chonon Kitchware Automatic Fire Extinguishing Equipment Co ltd
Original Assignee
Jiangsu Chonon Kitchware Automatic Fire Extinguishing Equipment 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 Jiangsu Chonon Kitchware Automatic Fire Extinguishing Equipment Co ltd filed Critical Jiangsu Chonon Kitchware Automatic Fire Extinguishing Equipment Co ltd
Priority to CN201711346068.5A priority Critical patent/CN108107779B/en
Publication of CN108107779A publication Critical patent/CN108107779A/en
Application granted granted Critical
Publication of CN108107779B publication Critical patent/CN108107779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The invention discloses a method for solving false alarm of an automatic fire extinguishing system in a kitchen, which comprises a first function for returning the output voltage of a storage battery and a second function for returning the off-state voltage of 8002A, wherein the first function and the second function are defined and assigned and stored in a register of a microprocessor of a control panel, so that the first function and the second function are returned before a relay of an alarm device performs an actuation action, and the change of the voltage of the off-state voltage of 8002A is controlled. The invention adopts a binary function, namely two callback functions are supplemented to a microprocessor at the same time to control the attraction of a relay, compared with the existing unary callback function control, the binary callback function control has more reliable data transmission, more optimized function exertion, more sensitive and reliable data source and destination, thereby solving the problem of false alarm fault.

Description

Method for solving false alarm of automatic fire extinguishing system in kitchen
Technical Field
The invention relates to the technical field of fire-fighting equipment manufacturing, in particular to a method for solving false alarm of an automatic fire extinguishing system in a kitchen.
Background
The kitchen automatic fire extinguishing equipment control panel belongs to AC/DC power supply and can work, but the control panel of the existing kitchen automatic fire extinguishing system often has false alarm faults when the storage battery supplies power. The main reason is that in the uncontrolled SHUTDOWN voltage of the chip 8002A, SHUTDOWN is usually called SHUTDOWN, the high level is low level, the low level is high level, and the false alarm fault occurs as a result. It can be said that 8002A is an electronic switch with SHUTDOWN mode, which has a SHUTDOWN pin to turn off the bias circuit of the operational amplifier, and when the level is high, the voltage level is applied to the SHUTDOWN pin to turn off the operational amplifier, so that the output is disconnected from the speaker.
The control panel is controlled by a pin of the microprocessor, and the microprocessor can provide a quick and smooth level conversion to control the high-low change of the voltage level of the SHUTDOWN off end of 8002A, wherein the low is an access and the high is a closing.
In principle, the turn-off function of 8002A is controlled by the pin of the microprocessor, and the existing microprocessor only sets the voltage of the shut down pin of 8002A to be low level when under-voltage state, and the electronic switch is in the on-state, and controls the relay pull-in and walk-in alarm program of the alarm device (that is, adopting unidirectional processing technology, under-voltage alarm only designs the control program for under-voltage state, and one-element function control is adopted in one-to-one correspondence). However, when the storage battery outputs normal voltage, how to control the turn-off terminal of 8002A to be always stable in a high level state means that SHUTDOWN is performed to turn off SHUTDOWN the electronic switch, and the electronic switch is not set in the microprocessor, so that the microprocessor cannot realize level control capability.
Disclosure of Invention
The invention aims to provide a method for solving false alarm of an automatic fire extinguishing system in a kitchen.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for solving false alarm of kitchen automatic fire extinguishing system comprises a first function for returning the output voltage of a storage battery and a second function for returning the off-state voltage of 8002A, wherein the first function and the second function are defined and assigned to be stored in a register of a microprocessor of a control panel, so that the first function and the second function are returned before a relay of an alarm device performs an actuation action, and the change of the voltage of the off-state terminal of 8002A is controlled.
Compared with the prior art, the invention has the technical effects that:
the invention adopts a binary function, namely two callback functions are supplemented to a microprocessor at the same time to control the attraction of a relay, compared with the existing unary callback function control, the binary callback function control has more reliable data transmission, more optimized function exertion, more sensitive and reliable data source and destination, thereby solving the problem of false alarm fault.
Detailed Description
The present invention will be described in detail below with reference to specific embodiments. These embodiments are not intended to limit the present invention, and structural, methodological, or functional changes made by those skilled in the art according to these embodiments are included in the scope of the present invention.
One embodiment of the present invention is provided below:
a method for solving false alarm of kitchen automatic fire extinguishing system comprises a first function for returning the output voltage of a storage battery and a second function for returning the off-state voltage of 8002A, wherein the first function and the second function are defined and assigned to be stored in a register of a microprocessor of a control panel, so that the first function and the second function are returned before a relay of an alarm device performs an actuation action, and the change of the voltage of the off-state terminal of 8002A is controlled.
The microprocessor of the original control panel controls the SHUTDOWN of 8002A to be at a low level only when the output voltage of the storage battery is undervoltage, so that the SHUTDOWN of the SHUTDOWN pin is switched to be on, and the relay is controlled to pull in and go into an alarm program.
The invention supplements two callback functions in a microprocessor of a control panel, wherein one function is a first function for callback of the normal (relative to an undervoltage state) output voltage of a storage BATTERY, namely macEvent L oop,// BATTERY, the other function is a second function for callback of the cut-off voltage of 8002A, namely nwk _ event _ loop,// Vhh, and the two functions are defined and assigned to be stored in a register of the microprocessor.
In this embodiment, the microprocessor of the control panel employs: STM32F103VBT6X 7B 55993, when the microprocessor receives any one of the Data defined and stored IN the register, enters the Data _ Setupo O function, executes the callback function copyRoutene O according to the request of different descriptors, fills the descriptor of the microprocessor IN the DataStageIn O function, and waits for the transmission of the IN token packet. Thus, the operation program can be entered only after the token packet → the data packet → the handshake packet. For example, GPIO _ Mode is also an enumeration type, and its value affects only the lower four bits of the register, and the function of the upper four bits can determine whether this parameter is used for the configuration of GPIO pin output Mode. The firmware library of the STM32 first defines configuration words of all registers of each device in advance, then encapsulates the configuration words in a structure or an enumeration variable, and when a firmware function corresponding to the firmware library is called, corresponding configuration words are taken out from the encapsulated structure or the enumeration variable according to an incoming parameter, and finally the configuration words are written into the registers to complete configuration of the underlying registers.
Two callback functions are newly arranged, and the two functions need to be recalled before the pull-in action of the relay is executed: a first function and a second function. These two functions receive the following parameters:
byte array, a pointer to a group of elements;
int size is the number of elements in the array;
int elem _ size, the size of an element in the array, in bytes;
CompareFunction cmpFunc with the prototype pointer to the callback function.
The first function and the second function both sort the array, but each time it is decided which of the two elements is in front of it, one of the functions is a callback function whose address is passed in as a parameter. What is needed is to care about the addresses of the two elements used for comparison and to return a certain value.
Any value is sent to the buffer area of the microprocessor for storage after being in error, and the microprocessor returns a negative identifier 1 (the positive data byte is temporarily set to be 0, and the negative data byte is set to be 1) after receiving the alarm request. Thus, when the value is strictly defined into the function, the descriptor must be satisfied at the same time to obtain confirmation. So that the state control is not so thin. Only when the microprocessor receives any one of the two Data, the microprocessor enters a Data _ setup O function, the function executes a different callback function copyroute O according to a different descriptor requested, fills the descriptor of the descriptor sending microprocessor into a buffer IN a datastage IN O function, and waits for sending an IN token packet. Thus, the alarm program can be entered after the token packet → the data packet → the confirmation packet.
When the output voltage of the storage battery is normal, the pin at the turn-off end of 8002A is in a high level message SHUTDOWN, if any one of the two is wrong, the descriptor input into the microprocessor will be contradictory to the descriptor stored in the register in advance, and as a result, the microprocessor cannot obtain the confirmation of the microprocessor, and certainly, the microprocessor will send a negative reply: the character 0, the relay will not be attracted, and the false alarm phenomenon can be avoided.
The invention is described below by analyzing the program code:
step 1: the system comprises a header file defined by 51 singlechip registers;
step 2: the position defines that the relay is I/0 □ P1.3;
and step 3: a delay function;
and 4, step 4: calling back a first function;
and 5: calling back a second function;
step 6: defining an unsigned variable I, j;
and 7: the purpose of time delay is achieved through the self-nesting loop execution of I, j;
and 8: a main function;
and step 9: entering a While loop of a main program;
step 10: SampleAPP _ messagemsgcb (msgpkt); v/arrival of a packet reception event;
step 11: the format of the received data packet is: aflncoming msgpacket _ t;
step 12, unit16Date L ength// size of received data packet;
step 13: byte Date; v/the specific content of the received data packet;
step 14: os _ start _ system// packet handling function;
step 15: SampleApp _ MessageMSGCB (MSGpkt)// receiving and processing of data packets;
step 16, analyzing the content of the data packet, and when the length of the received data is uncertain, analyzing pkt- > cmd.data L ength;
if the data length is not matched, judging that a negative character 0 is wrongly sent out;
when the length of the received data packet is determined, a handshake packet confirmation (the identifier writing is 1) is sent out if the data packet can be entered;
and step 17: the relay acts (closes or opens).
Please note that:
1. calculating the delay time includes calculating the time of the clock cycle that the lcall statement of the calling function translates.
2. Actually using an unsigned type data structure;
3. actually using char type, int is not enough to be reused, and then long.
4. No floating point type is used.
Compared with the prior art, the invention has the technical effects that:
the invention adopts a binary function, namely two callback functions are supplemented to a microprocessor at the same time to control the attraction of a relay, compared with the existing unary callback function control, the binary callback function control has more reliable data transmission, more optimized function exertion, more sensitive and reliable data source and destination, thereby solving the problem of false alarm fault.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may be modified or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (1)

1. A method for solving false alarm of kitchen automatic fire extinguishing system is characterized by comprising a first function for returning the output voltage of a storage battery and a second function for returning the off-state voltage of 8002A, wherein the first function and the second function are defined and assigned and stored in a register of a microprocessor of a control panel, so that the first function and the second function are returned before a relay of an alarm device performs an actuation action, and the change of the voltage of the off-state voltage of 8002A is controlled;
the microprocessor of the control panel controls a SHUTDOWN pin of 8002A to be at a low level only when the output voltage of the storage battery is undervoltage, so that the SHUTDOWN pin is switched from off to on, and a relay is controlled to pull in a walk-in alarm program;
two callback functions are supplemented in a microprocessor of a control panel, wherein one function is a first function for calling back the normal output voltage of the storage BATTERY, namely macEvent L oop,// BATTERY, the other function is a second function for calling back the turn-off voltage of 8002A, namely nwk _ event _ loop,// Vhh, the two functions are defined and assigned and stored in a register of the microprocessor, the two callback functions are adopted to control the pull-in and break-out of the relay so as to control the occurrence of false alarm, and the relay needs to call back the two functions, namely the first function and the second function, before the pull-in action is executed;
wherein, the microprocessor of control panel adopts: STM32F103VBT6X 7B 55993, when the microprocessor receives any one of the Data defined and stored IN the register, the Data _ Setupo O function is entered, the function executes different callback functions copyRouteine O according to different descriptors of the request, the descriptors are sent to the microprocessor IN the DataStageIn O function for processing and then sent to the buffer, an IN token packet is waited to be sent, and then the alarm program is entered after the IN token packet → the Data packet → the handshake packet;
when the output voltage of the storage battery is normal, the SHUTDOWN pin of 8002A is at high level and is turned off, if any one of the high level state and the off state is wrong, the descriptor input into the microprocessor is contradicted with the descriptor stored in the register in advance, the relay is turned off, and the false alarm phenomenon is avoided.
CN201711346068.5A 2017-12-15 2017-12-15 Method for solving false alarm of automatic fire extinguishing system in kitchen Active CN108107779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711346068.5A CN108107779B (en) 2017-12-15 2017-12-15 Method for solving false alarm of automatic fire extinguishing system in kitchen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711346068.5A CN108107779B (en) 2017-12-15 2017-12-15 Method for solving false alarm of automatic fire extinguishing system in kitchen

Publications (2)

Publication Number Publication Date
CN108107779A CN108107779A (en) 2018-06-01
CN108107779B true CN108107779B (en) 2020-07-24

Family

ID=62217064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711346068.5A Active CN108107779B (en) 2017-12-15 2017-12-15 Method for solving false alarm of automatic fire extinguishing system in kitchen

Country Status (1)

Country Link
CN (1) CN108107779B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3611335A (en) * 1968-11-13 1971-10-05 Bbk Electronics Inc Multiple combustion sensing device with false alarm prevention
JPS6267478A (en) * 1985-09-20 1987-03-27 Nec Corp System for confirming operation of alarm detection circuit
JP2002042268A (en) * 2000-07-27 2002-02-08 Hochiki Corp Fire and gas leakage alarm
CN201449650U (en) * 2009-05-27 2010-05-05 无锡奥利杰科技有限公司 Low-voltage smoke detector chip with loudspeaker drive
CN101770680A (en) * 2009-01-04 2010-07-07 深圳市赋安安全系统有限公司 Disaster detection alarming device and alarming method thereof
CN102231509A (en) * 2011-06-21 2011-11-02 西安电子科技大学 Undervoltage latch circuit capable of preventing error turning
CN103295357A (en) * 2013-05-30 2013-09-11 中国船舶重工集团公司第七�三研究所 Ultraviolet flame detector for automatic fire extinguishment system
CN105632078A (en) * 2014-10-25 2016-06-01 陕西高新能源发展有限公司 Smoke alarm based on single-chip microcomputer

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3932850A (en) * 1975-01-22 1976-01-13 Pittway Corporation Warning device
CN2212805Y (en) * 1993-11-15 1995-11-15 颜旭东 Intelligent detector for preventing theft and fire
CN2595405Y (en) * 2002-03-12 2003-12-31 广东胜捷消防设备有限公司 Fire extinguishing device for house and kitchen
CN1870705A (en) * 2006-06-13 2006-11-29 深圳市杰特电信控股有限公司 Automatic alarm system and method of mobile phone
CN202084135U (en) * 2011-06-15 2011-12-21 何天生 Novel fire-preventing monitor
CN203244716U (en) * 2013-05-29 2013-10-23 中国船舶重工集团公司第七�三研究所 Automatic fire extinguishing system pressure type deflagration detector

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3611335A (en) * 1968-11-13 1971-10-05 Bbk Electronics Inc Multiple combustion sensing device with false alarm prevention
JPS6267478A (en) * 1985-09-20 1987-03-27 Nec Corp System for confirming operation of alarm detection circuit
JP2002042268A (en) * 2000-07-27 2002-02-08 Hochiki Corp Fire and gas leakage alarm
CN101770680A (en) * 2009-01-04 2010-07-07 深圳市赋安安全系统有限公司 Disaster detection alarming device and alarming method thereof
CN201449650U (en) * 2009-05-27 2010-05-05 无锡奥利杰科技有限公司 Low-voltage smoke detector chip with loudspeaker drive
CN102231509A (en) * 2011-06-21 2011-11-02 西安电子科技大学 Undervoltage latch circuit capable of preventing error turning
CN103295357A (en) * 2013-05-30 2013-09-11 中国船舶重工集团公司第七�三研究所 Ultraviolet flame detector for automatic fire extinguishment system
CN105632078A (en) * 2014-10-25 2016-06-01 陕西高新能源发展有限公司 Smoke alarm based on single-chip microcomputer

Also Published As

Publication number Publication date
CN108107779A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
JP5233504B2 (en) Route control apparatus and packet discarding method
TW202002599A (en) Information processing method, apparatus, device and system
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
CN101431763A (en) Method and apparatus for implementing base station power-down alarm by using interrupt
US20190114183A1 (en) Terminal Configuration Method and Terminal Based on Provision Protocol for Transmission
CN101763324B (en) Method for realizing equipment simulating and device thereof
CN1960276B (en) Remote control system and method
WO2020088351A1 (en) Method for sending device information, computer device and distributed computer device system
CN108107779B (en) Method for solving false alarm of automatic fire extinguishing system in kitchen
JPWO2014141593A1 (en) Information processing device
CN106708761A (en) Service message processing method and device
CN110474827B (en) FIN message multi-environment forwarding method, equipment and system
CN115334156A (en) Message processing method, device, equipment and storage medium
CN108833981A (en) A kind of method of switching on and shutting down
CN101202458B (en) Power supply circuit
CN115037786B (en) Method for improving data transmission efficiency and related equipment
CN102467218A (en) Method for turning off power
CN113612659B (en) Device networking test method and device, electronic device and storage medium
CN109753470A (en) A kind of control method, micro-control unit and computer storage medium
CN105589823A (en) Method, apparatus and circuit for realizing USB (universal serial bus) interface multiplexing MHL (mobile high-definition link)
CN108270694A (en) A kind of high speed transmission method based on LVDS
CN105245840A (en) Data forwarding method and device and camera
CN109918215B (en) Process communication method, system, terminal and storage medium
CN113497740A (en) Network forwarding equipment, link fault detection method, device and storage medium
CN106970884B (en) Method and device for processing serial port command applied to android system running layer

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