CN103778747A - Method for speeding up starting of fire fighting apparatus through fire alarm control unit - Google Patents

Method for speeding up starting of fire fighting apparatus through fire alarm control unit Download PDF

Info

Publication number
CN103778747A
CN103778747A CN201410029541.7A CN201410029541A CN103778747A CN 103778747 A CN103778747 A CN 103778747A CN 201410029541 A CN201410029541 A CN 201410029541A CN 103778747 A CN103778747 A CN 103778747A
Authority
CN
China
Prior art keywords
fire alarm
fire
control unit
alarm point
hash table
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.)
Pending
Application number
CN201410029541.7A
Other languages
Chinese (zh)
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.)
YI'AI FIRE-FIGHTING ELECTRONICS Co Ltd BENGBU
Original Assignee
YI'AI FIRE-FIGHTING ELECTRONICS Co Ltd BENGBU
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 YI'AI FIRE-FIGHTING ELECTRONICS Co Ltd BENGBU filed Critical YI'AI FIRE-FIGHTING ELECTRONICS Co Ltd BENGBU
Priority to CN201410029541.7A priority Critical patent/CN103778747A/en
Publication of CN103778747A publication Critical patent/CN103778747A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Alarm Systems (AREA)

Abstract

The invention discloses a method for speeding up starting of a fire fighting apparatus through a fire alarm control unit. The method comprises steps that information of an alarm component is stored in a NAND-FLASH in a data file format, data files are directly mapped to memory space through a file mapping mode, and a user utilizes a pointer to read and write the data files directly; a loop component array and a fire alarm point position array are defined through an address data structure and stored in a buffer region separately, the loop component array forms a hash table visited by the fire alarm point position array, and logic relational expression with fire alarm point positions traverses the hash table; data are read through a file direct mapping mode, logical relationships are processed through a mode of hash table traversal, the processing mode of the fire alarm control unit is simplified, arithmetic speed of the fire alarm control unit is increased, therefore, response processing of fire alarm point signals is accelerated, and a starting signal of the fire fighting apparatus is output timely.

Description

A kind of method that improves fire alarm control unit startup fire fighting equipment speed
Technical field
The present invention relates to fire protection warning control field, specifically a kind of method that improves fire alarm control unit startup fire fighting equipment speed.
Background technology
Along with electronic technology development with rapid changepl. never-ending changes and improvements, particularly embedded technology application in recent years is universal, and the fire alarm control unit in fire-fighting system, by original single-chip microcomputer master control, develops to embedded real-time multi-task operating system; In the time that embedded system is used for industry control object, very strict to requirement of real-time; When presence detector detects after fire alarm, fire alarm is fed back to fire alarm control unit, fire alarm control unit carries out exporting control signal startup fire fighting equipment after logical process; Known real-time multi-task operating system is in large scale, complex interfaces, and functional module is various, causes inevitably time delay of fire alarm control unit; Add the realization of the communication between processing and the equipment of multithreading task scheduling, graphic interface of user program, all may become the slack-off latency of system; And fire alarm control unit is processed fire alarm data acquisition read-write mode at present, first warning piece data are read in to the buffer zone of kernel spacing from NAND-FLASH, then by buffer zone, data are write to user's space; When it processes with the logical relation of fire alarm point, conventionally need to travel through all addressing points, when addressing, the number of putting is more, reach 10,000 even 20,000 time, can increase undoubtedly the load of fire alarm control unit, the processing speed that makes it start fire fighting equipment is slack-off, and in the time that fire occurs, the speed that starts fire fighting equipment directly determines that can fire be effectively controlled.
Summary of the invention
The object of the present invention is to provide a kind of method that improves fire alarm control unit startup fire fighting equipment speed, the method can improve the speed of fire alarm control unit startup fire fighting equipment, and fire alarm is accomplished to quick response.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of method that improves fire alarm control unit startup fire fighting equipment speed, warning piece information is stored in NAND-FLASH with document format data, adopt File Mapping mode that data file is mapped directly to memory headroom, user uses pointer directly data file to be read and write; By address data structure definition circuit element array and fire alarm point position array, circuit element array and fire alarm point position array are stored in separately to buffer zone, described circuit element array forms the Hash table of fire alarm point positional number group access, to the logical relation expression formula traversal Hash table with fire alarm point position.
The invention has the beneficial effects as follows, adopt direct file mapping mode reading out data, and the mode processing logic relation of employing traversal Hash table, simplify the processing mode of fire alarm control unit, can improve the arithmetic speed of fire alarm control unit, thereby accelerate the response processing of fire alarm point signal, exported in time the enabling signal of fire equipments.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the present invention is further described:
Fig. 1 is the directly schematic diagram of mapping of file in the present invention.
Embodiment
As shown in Figure 1, warning piece information is stored in NAND-FLASH(2 with document format data) in, warning piece can be the user-defined parts that need to produce warning such as the probe of alarm button, fire hydrant button, smoke-temperature sensing, adopt File Mapping mode that data file is mapped directly to memory headroom (3), user uses pointer directly data file to be read and write; Can adopt MapFlashFile2Mem () to complete, this function returns to the pointer that points to memory headroom (3), uses fread4mem function and fwrite2mem function is read and write data file; Give up traditional read () and write () function, first file read in to CPU(1) the buffer zone mode of write memory space (3) again of kernel, the efficiency of reading and writing data is higher than traditional approach.
For the logical relation expression formula that contains fire alarm point position, first set up circuit element array, for example:
struct?LoopStatus
{
UCHAR alarmtype; // type of alarm
COleDateTime alarmtime; // time of fire alarming
UCHAR moduletype; // unit type
UCHAR nBuilding; // building
UCHAR nFloor; // layer
UCHAR nSubarea; // subregion
UCHAR sign; // transmission Shield Flag
UINT repeat; // circuit board sends again aobvious device Information sign
UCHAR alarmtype_ct; // send to concentrator mark
UCHAR alarmtype_rp; // send to again the type of alarm storage of aobvious device
CHAR alarmtype_crt; // send to crt to indicate
CHAR alarmtype_rmt; // pass to long distance control system mark
};
LoopStatus nCheckData[80] [242]; // circuit element state
This array is subscript take loop/address, records the essential information of the parts such as each fire alarm point probe/module, if 40 loops of fire alarm control unit configuration are total to 242*40=9680 addressing point; If configure 80 loops, 242*80=19360 addressing point altogether; After File Mapping completes, program is read programming data from NAND-FLASH file, by nCheckData[80] all parameters of [242] are by the ascending order initialization in loop/address;
Set up again fire alarm point position array, for example:
struct?TriggerPos
{
UCHAR?nLoop;
UCHAR?nAddr;
};
TriggerPos?nTriggerPos[MAXTRIGGERNUM];
Fire alarm is put to position array size MAXTRIGGERNUM and be made as 1000; Leave separately circuit element array and fire alarm point position array in buffer zone, circuit element array has formed the Hash table that fire alarm point position array conducts interviews, for the logical relation expression formula with fire alarm point position, from buffer zone, fire alarm point position traversal, traveling through buffer zone only needs 1000 times; If employing traditional approach, has how many subregions in logical relation expression formula so, in the time that being related to, computational logic will travel through how many times, and very time-consuming for jumbo firefighting warning linkage control system; The system of 242*80 addressing point capacity, nearly 20,000 times of the judgement of each traversal; Adopt the present invention greatly to reduce the number of times of traversal, simplified the processing mode of fire alarm control unit, can improve the arithmetic speed of fire alarm control unit, thereby to having accelerated the response processing of fire alarm point signal, export in time the enabling signal of fire equipments.
The above, be only preferred embodiment of the present invention, not the present invention done to any pro forma restriction; Any those of ordinary skill in the art, do not departing from technical solution of the present invention scope situation, all can utilize method and the technology contents of above-mentioned announcement to make many possible variations and modification to technical solution of the present invention, or be revised as the equivalent embodiment of equivalent variations.Therefore, every content that does not depart from technical solution of the present invention, according to technical spirit of the present invention to any simple modification made for any of the above embodiments, be equal to replacements, equivalence change and modify, all still belong to technical solution of the present invention protect scope in.

Claims (1)

1. improve the method that fire alarm control unit starts fire fighting equipment speed, it is characterized in that comprising the following steps:
Warning piece information is stored in NAND-FLASH with document format data, adopts File Mapping mode that data file is mapped directly to memory headroom, user uses pointer directly data file to be read and write;
By address data structure definition circuit element array and fire alarm point position array, circuit element array and fire alarm point position array are stored in separately to buffer zone, described circuit element array forms the Hash table of fire alarm point positional number group access, to the logical relation expression formula traversal Hash table with fire alarm point position.
CN201410029541.7A 2014-01-23 2014-01-23 Method for speeding up starting of fire fighting apparatus through fire alarm control unit Pending CN103778747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410029541.7A CN103778747A (en) 2014-01-23 2014-01-23 Method for speeding up starting of fire fighting apparatus through fire alarm control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410029541.7A CN103778747A (en) 2014-01-23 2014-01-23 Method for speeding up starting of fire fighting apparatus through fire alarm control unit

Publications (1)

Publication Number Publication Date
CN103778747A true CN103778747A (en) 2014-05-07

Family

ID=50570934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410029541.7A Pending CN103778747A (en) 2014-01-23 2014-01-23 Method for speeding up starting of fire fighting apparatus through fire alarm control unit

Country Status (1)

Country Link
CN (1) CN103778747A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110363972A (en) * 2019-06-21 2019-10-22 秦皇岛尼特智能科技有限公司 The method and device of region linkage control is carried out according to fire alarm

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020042796A1 (en) * 2000-09-21 2002-04-11 Nec Corporation File managing system
US20040236718A1 (en) * 2003-04-14 2004-11-25 Netbotz, Inc. Method and system for journaling and accessing sensor and configuration data
US20070109975A1 (en) * 2005-11-04 2007-05-17 Reckamp Steven R Remote device management in a home automation data transfer system
WO2012166917A1 (en) * 2011-06-01 2012-12-06 American Power Conversion Corporation Systems and methods for executing device control
CN102968438A (en) * 2012-09-29 2013-03-13 南京国电南自轨道交通工程有限公司 Storage control method of history data in integrated supervisory control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020042796A1 (en) * 2000-09-21 2002-04-11 Nec Corporation File managing system
US20040236718A1 (en) * 2003-04-14 2004-11-25 Netbotz, Inc. Method and system for journaling and accessing sensor and configuration data
US20070109975A1 (en) * 2005-11-04 2007-05-17 Reckamp Steven R Remote device management in a home automation data transfer system
WO2012166917A1 (en) * 2011-06-01 2012-12-06 American Power Conversion Corporation Systems and methods for executing device control
CN102968438A (en) * 2012-09-29 2013-03-13 南京国电南自轨道交通工程有限公司 Storage control method of history data in integrated supervisory control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110363972A (en) * 2019-06-21 2019-10-22 秦皇岛尼特智能科技有限公司 The method and device of region linkage control is carried out according to fire alarm

Similar Documents

Publication Publication Date Title
JP5596164B2 (en) Hardware resource management in data processing systems
CN1991808B (en) Method and apparatus for a guest to access a memory mapped device
US10180908B2 (en) Method and apparatus for virtualized control of a shared system cache
EP2997477B1 (en) Page table data management
US20160019168A1 (en) On-Demand Shareability Conversion In A Heterogeneous Shared Virtual Memory
CN104536912B (en) The apparatus and method that internal memory protected mode is realized in small-scale operating system
CN106020498A (en) Safety early-warning method and terminal
US11138034B2 (en) Method and apparatus for collecting information, and method and apparatus for releasing memory
KR102360178B1 (en) System and method for providing application list
CN103440171A (en) Realization method of real-time operating system of component-based hardware
CN101782954A (en) Computer and abnormal progress detection method
US20170083240A1 (en) Selective data copying between memory modules
CN102262434A (en) Method and apparatus for modifying a transition to an altered power state of an electronic device based on accelerometer output
CN106933583A (en) The method and computer equipment of hardware device are recognized in operating system
CN102708001A (en) Linux embedded equipment and switching method between user mode and engineering mode
WO2020191549A1 (en) Soc chip, method for determination of hotspot function and terminal device
CN103778747A (en) Method for speeding up starting of fire fighting apparatus through fire alarm control unit
US10055359B2 (en) Pinning objects in multi-level memory hierarchies
CN107608756B (en) CPU hardware characteristic-based virtual machine introspection triggering method and system
CN106201452A (en) Present the device of window, the method and apparatus presenting user interface
CN107765832A (en) A kind of method, terminal and computer-readable recording medium for controlling indicator lamp
US20170293554A1 (en) Hardware-assisted garbage collection
CN104679196B (en) System and its implementation are resetted when processor-based self-test, exception
CN203366040U (en) Indoor temperature and humidity detection switch device based on 51 single-chip microcomputer
CN106126360A (en) Cavity, address screen method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140507