A fire alarm with editable formula and threshold value based on external storage chip and method thereof

By using an external memory chip in the fire alarm to store and parse algorithm logic and thresholds, the fire alarm can be flexibly updated, solving the problems of update difficulties and risks in the existing technology, and ensuring the flexibility and stability of the equipment.

CN108074367BActive Publication Date: 2024-10-29SHANGHAI INST OF DISASTER PREVENTION & RELIEF
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201611009207.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2016-11-17
Publication Date
2024-10-29
Estimated Expiration
2036-11-17

AI Technical Summary

Technical Problem

The detection program and alarm algorithm of existing fire alarms are difficult to update once they are mass-produced, and FLASH self-writing is risky and cannot flexibly respond to step-by-step improvements or adjustments to the algorithm.

Method used

Using an editable formula and threshold method based on an external memory chip, the algorithm logic and thresholds are updated by reading and parsing the fields stored in the external memory chip, avoiding self-programming of the microprocessor's internal flash memory and achieving flexible updates of algorithms and thresholds. .

Benefits of technology

It realizes flexible updating of fire alarm algorithms and thresholds, reduces the risk of microprocessor paralysis, avoids equipment recovery difficulties caused by update errors, and supports dynamic adjustment and optimization of detection programs and alarm algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108074367B_ABST
    Figure CN108074367B_ABST
Patent Text Reader

Abstract

The present invention provides a fire alarm system and method with editable formulas and thresholds based on an external storage chip. The system and method enable non-professional programmers to write corresponding algorithms for comprehensive judgment based on three elements: carbon monoxide, particle concentration, and temperature, without the need for programming knowledge. Moreover, the algorithm can be updated only by replacing the external storage chip, which greatly facilitates the subsequent maintenance and updating of the alarm by the fire alarm manufacturer and reduces the maintenance cost.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] Common fire alarms use program solidification to solidify the detection program and alarm algorithm in the flash memory of the microprocessor, which is difficult to update once mass production. Some manufacturers use the remote update solution provided by the microprocessor, sending a string of specified format through a remote communication interface such as CAN bus, network port, etc. to trigger the BOOT firmware of the microprocessor itself, and further download the program data update and rewrite it to the FLASH segment of the execution program to achieve the program update. The cost of this is relatively expensive. First of all, the cost of the microprocessor with CAN bus and network port is relatively high, and the cost of self-programmable flash memory is also more difficult to add power than general flash memory; in addition, if the update process fails and causes the corresponding BOOT part of the code to be rewritten or causes the microprocessor to no longer be able to update the program, it must go through the mass production process to restore to normal again.

[0002] Due to the shortcomings of FLASH self-writing, some manufacturers have adopted a compromise solution, that is, adding a non-volatile memory outside the microprocessor, and storing some thresholds for alarm judgment in the non-volatile memory. When the threshold is needed, the microprocessor initiates a read operation through the bus to read the required threshold. This does reduce the possibility of the microprocessor being completely paralyzed due to FLASH self-writing, but it is not flexible enough and can only update the threshold parameters used in the algorithm. Once the algorithm is improved or adjusted in a step-by-step manner, this compromise solution cannot cope with the algorithm adjustment of the step improvement.

[0003] Once the fire alarm hardware is designed and finalized, all detection circuit hardware will not be changed, so the detection procedures of temperature, CO concentration, and particle concentration will not be changed. After confirming that there are no bugs, there is basically no need to update this part of the code. However, the algorithm for determining when to generate an alarm and the type of alarm based on the collected temperature, CO concentration, and particle concentration cannot be completely fixed, because as researchers deepen their research or further research progresses in special places and special time periods, more suitable algorithms may be developed, and this part of the algorithm must be listed as an updateable part of the code.

[0004] In response to this demand, the inventor invented a fire alarm machine method based on an external memory chip that can edit formulas and thresholds, allowing users to update algorithm logic and thresholds by updating the data in the external memory, and there is no self-programming of the flash memory inside the microprocessor, eliminating the corresponding risks. The external memory chip is detachably installed in the alarm by embedding the slot, which makes it easy for maintenance personnel to replace the external memory chip to update the algorithm. Summary of the invention

[0005] A method for fire alarm based on editable formulas and thresholds of an external storage chip, the method is characterized by: reading fields in an external storage chip row by row, parsing the fields to obtain corresponding thresholds and steps, at least one of the parsed steps forming a processing flow, and inputting the parsed thresholds and currently detected environmental parameters into the processing flow for processing to determine whether to alarm and the type of alarm.

[0006] The fields stored in the external memory chip are all wrapped with line breaks; each line is an independent field; the microprocessor stops parsing the subsequent storage space of the external memory chip after reading the stop symbol.

[0007] The fields stored in the external storage chip are as follows: the first row of fields is a version number field, which is used to save the version number of the current algorithm; the second row of fields is a threshold symbol corresponding value field, which is used to record the information of the threshold symbol machine corresponding floating-point value; each row from the third row to the stop symbol is a step, and starting from the three rows of steps, executing each row of steps backwards line by line to the stop symbol is a complete operation of the algorithm processing flow; substituting the floating-point value corresponding to the threshold symbol obtained by analysis and the currently collected environmental parameters and running the algorithm processing flow once can determine whether an alarm is issued and the type of alarm.

[0008] The version number field is a character string written by the algorithm updater to identify the algorithm version; the threshold symbol corresponding value field is a field that defines the association between the threshold and the corresponding floating-point value, and the association between the two is defined in the manner of "threshold symbol = floating-point value", and multiple threshold symbol-floating-point value correspondences are separated by separators.

[0009] The steps are divided into two parts: a condition part and an execution step; when all conditions in the condition part are met, the operation defined in the execution part is executed.

[0010] The types of the currently collected environmental parameters include at least: temperature, CO concentration, and particle concentration.

[0011] The threshold symbol, the fire alarm reads and analyzes the threshold symbols and their corresponding floating-point values ​​one by one when the work is initialized, the microprocessor creates a corresponding floating-point type threshold shadow variable in the memory for each threshold symbol, and makes the initial value of the threshold shadow variable equal to the floating-point value corresponding to the threshold symbol in the external storage chip; when executing the processing flow, the floating-point value corresponding to the threshold symbol is indirectly read from the threshold shadow variable in the microprocessor memory; all shadow variables are stored in a reset non-cleared memory block on the microprocessor; the shadow variables in the memory are written back to the external storage chip through a timing mechanism to ensure that the threshold in the external storage chip is consistent with the value of the corresponding shadow variable in the memory.

[0012] The conditional part, each conditional judgment expression in the conditional part is nested through brackets, and the judgment is performed step by step from the outside to the inside; the conditional judgment expression contained in the brackets is connected with the conditional judgment expression contained in other brackets through "&&" to form an "and" connection; the conditional judgment expression contained in the brackets is connected with the conditional judgment expression contained in other brackets through "||" to form an "or" connection.

[0013] The operations defined in the execution part at least include: issuing an alarm for exceeding the temperature limit, issuing an alarm for exceeding the CO concentration limit, issuing an alarm for exceeding the particle concentration limit, and iterating calculation of a threshold shadow variable and changing its value. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 shows a schematic diagram of a fire alarm 100;

[0015] Figure 2 An external memory chip storage field diagram 200 is shown. DETAILED DESCRIPTION

[0016] Figure 1 The schematic diagram of the fire alarm 100 is shown, which includes: a microprocessor 101, an external memory 102, a temperature detection device 103, a CO concentration detection device 104, and a particle concentration detection device 105.

[0017] The microprocessor 101 executes the program stored in its internal flash memory to detect the ambient temperature through the temperature detection device 103, the carbon monoxide concentration in the environment through the CO concentration detection device 104, and the particle concentration in the environment through the particle concentration detection device 105.

[0018] Figure 2A schematic diagram 200 of the storage field of an external storage chip is shown; for the convenience of explanation and not for limitation, the judgment formula in the schematic diagram of this specific embodiment is enclosed by "()", and the execution part is enclosed by "<>", but this does not mean that only such symbols can be used. The present invention can still use other symbols agreed with the algorithm developers to achieve the above inclusion. The lines are separated by line breaks "\r\n"; the first line field 201 is the version information of the algorithm. When the algorithm is written, the algorithm version is written by the writing device, which is beneficial to the later maintenance. The second line field 202 is the threshold symbol corresponding value field. The example is used as an explanation and not as a limitation. The schematic diagram of this specific embodiment shows the situation where the temperature alarm threshold T1 is 51.3 degrees Celsius, the carbon monoxide alarm concentration CO1 is 350ppm, and the air particle alarm concentration KR is 200ppm. ";" is used as an isolator to isolate each corresponding relationship. The microprocessor 101 reads and parses the second line field 202 at the initialization of work, and obtains the temperature threshold value: T1=51.3 degrees Celsius, the carbon monoxide alarm threshold value: CO1=350.0ppm, and the air particle alarm concentration: KR=200ppm, and creates corresponding shadow variables in its on-chip RAM (memory) to store the above threshold values. The processing flow 203 is composed of the four steps from the third line 2031 to the sixth line 2034, that is, before the end symbol END204; the microprocessor 101 reads and parses each step from the external storage, and executes the processing flow 203 once after periodically collecting environmental parameters to determine whether the alarm has been alarmed. In each line, the conditional part is inside the "()", and the execution part is inside the "<>"; when the microprocessor 101 detects that the judgment formula in the "()" or the combination of "and" or "or" of multiple "()" judgment formulas is established, the operation defined in the execution part is executed. Symbols T, CO, KL are the temperature, carbon monoxide concentration, and air particle concentration of the environment in which the fire alarm 101 is located before executing the current processing flow 203; for the purpose of explanation rather than limitation, in the subsequent description, T, CO, and KL respectively represent the temperature, CO concentration, and particle concentration of the environment currently detected by the fire alarm 101; the third line 2031 is parsed by the microprocessor 101 to obtain the step logic: if the current temperature T is greater than 70% of the temperature threshold T1, then the new threshold T1 defined in the execution part is equal to its original value plus the current temperature T (degrees Celsius) multiplied by a coefficient of 0.1. The fourth line 2032 is parsed to obtain the step logic: if the current temperature T is greater than T1, a temperature alarm (T-WARN) is triggered.Combining the steps of line 3 2031 and line 4 2032, it can be clearly known that this is an alarm logic algorithm for adapting to high temperature environments or high temperature seasons, that is, when the fire alarm 101 detects that the temperature T in the environment exceeds 70% of the alarm threshold T1, it adds an additional 0.1T (the cumulative coefficient is 0.1) on the basis of T1 to increase the alarm threshold to avoid erroneous triggering of the alarm due to higher temperatures that may be reached later; when the temperature is usually high, after several iterations of the above-mentioned operation, no alarm is triggered, but the threshold is pushed to a higher level to avoid false alarms; in the event of a fire, the temperature rise rate caused by the spread of the fire is much faster than the temperature rise rate caused by the climate, and the step of line 3 2031 cannot be iterated for several times and the temperature alarm is triggered by the step of line 4 2032. When the cumulative coefficient is set reasonably, it will not affect the triggering of the temperature alarm. As an example for illustration and not limitation, the temperature accumulation coefficient in row 3 is 0.1. If the cycle of the single detection environmental parameter operation processing flow is short, the coefficient can be reduced to avoid increasing the temperature alarm threshold T1 too quickly to an excessively high level, thereby greatly delaying the timeliness of the alarm. Similarly, the coefficient can be increased when the cycle of the single detection environmental parameter operation processing program is short, otherwise the coefficient is too small to play a role in suppressing subsequent false alarms caused by excessively high temperatures. The specific coefficients, initial values ​​of the temperature thresholds, and the cycle of the single detection operation processing flow are studied and experimentally verified by relevant researchers and summarized into an algorithm and written into the external memory 102.

[0019] Similarly, the algorithm developer can also add a restriction step for the sake of insurance, that is, not allowing the value of the temperature alarm threshold T1 to exceed 60 degrees Celsius, that is, only need to insert such a step between the third line 2031 and the fourth line 2032: "(T1>60)<T1=60> \r\n", after parsing this step, the microprocessor 101 will detect whether the current value of the temperature threshold T1 is greater than 60 degrees Celsius. If it is greater, the temperature threshold T1 is limited to not exceed 60 degrees Celsius.

[0020] Although the subsequent steps are executed sequentially, they are basically not logically related to the third line 2031 and the fourth line 2032. The logic of the step parsed in the fifth line 2033 is: if the current carbon monoxide concentration exceeds CO1 (350ppm), the carbon monoxide excess alarm is triggered; the logic of the step parsed in the sixth line 2034 is: if the current air particle concentration exceeds KR (200ppm), the particle concentration excess alarm is triggered.

[0021] For example, as an illustration and not as a limitation, if there is a field like this in the step: "(T>T1)||(CO>CO1)||(KL>KR) <warn>\r\n", the step logic parsed by the microprocessor 101 is: if the current temperature T exceeds the temperature threshold T1 or the current carbon monoxide concentration CO exceeds the carbon monoxide threshold CO1 or the current air particle concentration value exceeds the particle concentration threshold KR, an alarm is triggered. This is an example of a conditional judgment formula that triggers an alarm in an "or" connection manner.

[0022] For another example, by way of illustration and not limitation, if the field 2031 in line 3 is changed to: "(T>0.7*T1)&&(KL<0.1KR)<T1=T1+0.1T> \r\n", the logical meaning of the final analysis of the "and" connection method is: if the current temperature T is greater than 70% of the temperature threshold T1 and the current particle concentration is less than 10% of the particle concentration threshold KR, the temperature threshold T1 is iteratively increased by 10% of the current temperature. The above step fields have physical meaning, because except for a few light chemicals (methanol, alcohol, etc.) that do not produce visible particle smoke, other common wood and plastics in daily life basically emit obvious visible particle smoke. In the case of a fire that occurs but spreads slowly, the fire alarm The temperature around the fire alarm 101 exceeds 70% of the temperature threshold T1, and because the smoke spreads faster than the fire, the particle concentration KL around the fire alarm 101 is no less than 10% of the particle concentration threshold KR at this time, so the corresponding T1 iterative accumulation is prohibited, so that the fire alarm 101 can generate an alarm more promptly during the subsequent fire spread. Normally, when the temperature is high, the particle concentration KL in the air is less than 10% of the particle concentration threshold KR, so it will not affect the iterative increase of T1 to enhance the anti-interference ability of the fire alarm 101.

[0023] Even more, algorithm developers can use certain conditions to complement each other objectively to raise the alarm in advance, so as to improve the response speed of fire alarm. For example, as an illustration and not as a limitation, if there is a field like this in the step: "(T>0.7T1)&&(KL>0.5KR) <warn>The logic of the steps analyzed by the microprocessor 101 is: if the current temperature is greater than 70% of the temperature threshold and the current particle concentration KL is greater than 50% of the particle concentration threshold, an alarm is triggered, which is helpful to minimize false alarms and improve the alarm response speed, thereby gaining precious alarm time for rescue and fire fighting.

[0024] After the algorithm is verified to be effective through multiple experiments based on the research results of the algorithm developers for specific environments and specific seasons, as long as the above-mentioned text editing rules are followed, the algorithm developers can update the internal algorithm of the fire alarm 101 without mastering any programming language; and these updates are safe, and even if an update error occurs, it will not affect the solidified programs such as temperature acquisition program, CO concentration acquisition program, particle concentration acquisition program, sound and light alarm program, wireless communication program, external memory analysis program, etc., and it only needs to replace an external memory chip with a normal algorithm to continue using it, without the need to perform functional recovery of the fire alarm 101 through mass production equipment and mass production operations (re-downloading a program that can run normally to overwrite the damaged program in its internal flash memory).< / warn> < / warn>

Claims

1. A method for fire alarm based on editable formulas and thresholds of an external storage chip, the method being characterized by: reading fields in the external storage chip row by row, parsing the fields to obtain corresponding thresholds and steps, at least one parsed step forming an algorithm processing flow, and inputting the parsed thresholds and currently detected environmental parameters into the algorithm processing flow for processing to determine whether to alarm and the type of alarm; The external memory chip is detachably installed in the fire alarm by embedding the slot. The fields stored in the external memory chip are all wrapped by line breaks; each line is an independent field; the microprocessor stops parsing the subsequent storage space of the external memory chip after reading the stop symbol; The fields stored in the external storage chip: the first row of fields is a version number field, which is used to save the version number of the current algorithm; the second row of fields is a threshold symbol corresponding value field, which is used to record the information of the threshold symbol and its corresponding floating-point value; each row parsed from the third row to the stop symbol is a step; starting from the third row of steps, executing each row of steps backwards line by line to the stop symbol is a complete operation of the algorithm processing flow; substituting the floating-point value corresponding to the threshold symbol and the environmental parameters currently collected by the fire alarm and running the algorithm processing flow once can determine whether to alarm and the type of alarm; The steps are divided into two parts: the condition part and the execution part ; When all conditions in the condition part are met, the operation defined in the execution part is executed; The types of environmental parameters currently collected by the fire alarm include at least: temperature, CO concentration, and particle concentration; The version number field is a character string written by the algorithm updater to identify the algorithm version; the threshold symbol corresponding value field is a field that defines the association between the threshold and the corresponding floating-point value, and the association between the two is defined in the manner of "threshold symbol = floating-point value", and multiple threshold symbol-floating-point value correspondences are separated by separators.

2. According to claim 1, a method for fire alarm based on an editable formula and threshold value of an external storage chip, the threshold symbol, the fire alarm reads and analyzes the threshold symbol and its corresponding floating-point value one by one when the work is initialized, the microprocessor creates a corresponding floating-point type threshold shadow variable in the memory for each threshold symbol, and makes the initial value of the threshold shadow variable equal to the floating-point value corresponding to the threshold symbol in the external storage chip; when executing the processing flow, the floating-point value corresponding to the threshold symbol is indirectly read from the threshold shadow variable in the microprocessor memory; all shadow variables are stored in a reset non-cleared memory block on the processor; the shadow variables in the memory are written back to the external storage chip through a timing mechanism to ensure that the threshold in the external storage chip is consistent with the value of the corresponding shadow variable in the memory.

3. According to the fire alarm method of editable formula and threshold value based on external storage chip described in claim 1, the condition part, each condition judgment formula of the condition part is nested through brackets, and the judgment is performed step by step from the outside to the inside; the condition judgment formula contained in the brackets is connected with the condition judgment formula contained in other brackets through "&&" to form an "and" connection; the condition judgment formula contained in the brackets is connected with the condition judgment formula contained in other brackets through "|" to form an "or" connection.

4. According to the method of fire alarm based on editable formula and threshold value of external storage chip in claim 1, the operation defined in the execution part is at least include: An operation of issuing an alarm for exceeding the temperature limit, an alarm for exceeding the CO concentration limit, an alarm for exceeding the particle concentration limit, and iterative calculation of a threshold shadow variable and changing its value.

Citation Information

Patent Citations

  • Key combined with mobile phone and mobile phone chip inserted type strick door lock

    CN1561123A

  • Radio internet alarmer for fire disaster

    CN2857119Y

  • Security controller and security control method

    JP2010282513A

  • Ocean vessel safety monitoring and early warning system and work method thereof

    CN103268691A