CN102568135A - Data storing and matching method facing to pulse electronic fence system - Google Patents
Data storing and matching method facing to pulse electronic fence system Download PDFInfo
- Publication number
- CN102568135A CN102568135A CN2011104465894A CN201110446589A CN102568135A CN 102568135 A CN102568135 A CN 102568135A CN 2011104465894 A CN2011104465894 A CN 2011104465894A CN 201110446589 A CN201110446589 A CN 201110446589A CN 102568135 A CN102568135 A CN 102568135A
- Authority
- CN
- China
- Prior art keywords
- fence system
- electronic fence
- rule
- pulse
- facts
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000013500 data storage Methods 0.000 claims abstract description 16
- 230000000875 corresponding effect Effects 0.000 claims description 17
- 230000001960 triggered effect Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 abstract description 4
- 238000004364 calculation method Methods 0.000 abstract description 2
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Medical Treatment And Welfare Office Work (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
本发明公开了一种面向电子围栏系统的数据存储匹配方法,首先确定电子围栏系统中的事实,然后根据Drools规则引擎,确定脉冲电子围栏系统事实对应的规则集;接着对脉冲电子围栏系统的已知事实进行匹配,这些已知事实存储在后台存储电子围栏系统事实的服务器中;当从脉冲电子围栏系统的前端传来新的数据时,返回上一步继续进行数据的重新匹配。本发明针对电子围栏系统具有的四种报警方式:断线、短路、防拆、通信失败;以及系统的数据存储容量较大的特点,充分利用了基于规则的系统所具有的时间冗余性和结构相似性的特点,避免了大量的重复匹配以及相统方式公共部分的重复计算,从而大幅度提高了匹配效率。
The invention discloses a data storage and matching method oriented to an electronic fence system. First, the facts in the electronic fence system are determined, and then according to the Drools rule engine, the rule set corresponding to the facts of the pulse electronic fence system is determined; These known facts are stored in the server that stores the facts of the electronic fence system in the background; when new data is transmitted from the front end of the pulse electronic fence system, return to the previous step to continue the data re-matching. The present invention aims at the four alarm modes of the electronic fence system: disconnection, short circuit, anti-demolition, and communication failure; and the characteristics of the large data storage capacity of the system, making full use of the time redundancy and The characteristics of structural similarity avoid a large number of repeated matching and repeated calculation of common parts in the same way, thus greatly improving the matching efficiency.
Description
技术领域 technical field
本发明属于数据存储匹配技术,特别是一种可靠的面向脉冲电子围栏的数据存储匹配方法。 The invention belongs to data storage and matching technology, in particular to a reliable data storage and matching method for pulse electronic fences.
背景技术 Background technique
在一些重要的场所,如大型工厂、住宅区、看守所等人员密集且较难管理的场合,都需要周界安全防范和入侵报警系统。 In some important places, such as large factories, residential areas, detention centers and other places where people are dense and difficult to manage, perimeter security and intrusion alarm systems are required.
对于目前较先进的周界报警系统之一——电子围栏系统而言,当前端探测围栏处于断线、短路、防拆、通信失败状态时能产生报警信号。脉冲电子围栏的例子包括,例如,中国实用新型专利CN2703088公开的“智能电子围栏”和中国发明专利申请CN101520933公开的“心跳式探测电子围栏传感器系统及探测方法”。 For one of the more advanced perimeter alarm systems at present - the electronic fence system, an alarm signal can be generated when the front-end detection fence is in the state of disconnection, short circuit, tamper-proof, and communication failure. Examples of pulse electronic fences include, for example, the "smart electronic fence" disclosed in Chinese utility model patent CN2703088 and the "heartbeat detection electronic fence sensor system and detection method" disclosed in Chinese invention patent application CN101520933.
目前的脉冲电子围栏系统普遍采用实时数据传输,并没有对后台数据综合分析,存在数据存储量大,具有时间冗余性和结构相似的缺点。 The current pulse electronic fence system generally adopts real-time data transmission, and does not comprehensively analyze the background data, which has the disadvantages of large data storage, time redundancy and similar structure.
发明内容 Contents of the invention
本发明的目的在于提供一种可靠的面向电脉冲子围栏系统的数据存储匹配方法,从而实现降低系统数据存储匹配的复杂性。 The purpose of the present invention is to provide a reliable data storage matching method for the electric pulse sub-fence system, thereby reducing the complexity of system data storage matching.
实现本发明目的的技术解决方案为:一种面向脉冲电子围栏系统的数据存储匹配方法,步骤如下: The technical solution to realize the purpose of the present invention is: a data storage and matching method oriented to the pulse electronic fence system, the steps are as follows:
第一步,确定电子围栏系统中的事实,该事实可以从反馈到脉冲发生器(主机)中的脉冲信号和探测到的电阻值获得; The first step is to determine the fact in the electronic fence system, which can be obtained from the pulse signal fed back to the pulse generator (host) and the detected resistance value;
第二步,根据Drools规则引擎,确定脉冲电子围栏系统事实对应的规则集; In the second step, according to the Drools rule engine, determine the rule set corresponding to the pulse electronic fence system fact;
第三步,根据第二步确定的规则集,对脉冲电子围栏系统的已知事实进行匹配,这些已知事实存储在后台存储电子围栏系统事实的服务器中; The third step is to match the known facts of the pulse electronic fence system according to the rule set determined in the second step, and these known facts are stored in the server that stores the facts of the electronic fence system in the background;
第四步,当从脉冲电子围栏系统的前端传来新的数据时,返回第三步继续进行数据的重新匹配。 In the fourth step, when new data is transmitted from the front end of the pulse electronic fence system, return to the third step to continue the data re-matching.
本发明与现有技术相比,其显著优点:现有的电子围栏系统并不会对从围栏前端获得的数据进行数据匹配,数据量较大。而本发明充分利用了基于规则的系统所具有的时间冗余性和结构相似性的特点,避免了大量的重复匹配以及相同方式公共部分的重复计算,从而大幅度提高了匹配效率。 Compared with the prior art, the present invention has significant advantages: the existing electronic fence system does not perform data matching on the data obtained from the front end of the fence, and the data volume is relatively large. However, the present invention fully utilizes the characteristics of time redundancy and structural similarity of the rule-based system, avoids a large number of repeated matching and repeated calculation of common parts in the same way, and thus greatly improves the matching efficiency.
附图说明 Description of drawings
图1是基于电子围栏系统的数据存储系统结构图。 Figure 1 is a structural diagram of a data storage system based on an electronic fence system.
图2是基于电子围栏系统的数据存储事实的匹配图。 Figure 2 is a matching diagram based on the data storage facts of the electronic fence system.
具体实施方式 Detailed ways
本发明一种面向脉冲电子围栏系统的数据存储匹配方法,步骤如下: The present invention is a data storage and matching method oriented to the pulse electronic fence system, the steps are as follows:
第一步,确定电子围栏系统中的事实,该事实可以从反馈到脉冲发生器(主机)中的脉冲信号和探测到的电阻值获得。这里事实指电子围栏系统的数据内容及其相关数据之间的多元关系。其中脉冲电子围栏系统的数据指从电子围栏系统的前端获得的电阻值R,该多元关系可以用一个简单的三元组来表示:(参数 ^属性 动作),其中,参数指脉冲电子围栏系统中的数据内容,属性指脉冲电子围栏系统是否获得反馈脉冲信号和是否布防2种属性,动作指脉冲电子围栏系统不报警、断路报警、短路报警3种动作;三元组表示如果该脉冲电子围栏系统的数据具有上述3种属性中的一种,就可以得到是否执行报警和报警类型的动作。 The first step is to determine the fact in the electric fence system, which can be obtained from the pulse signal fed back into the pulse generator (host) and the detected resistance value. The facts here refer to the multivariate relationship between the data content of the electronic fence system and its related data. The data of the pulse electronic fence system refers to the resistance value R obtained from the front end of the electronic fence system. This multivariate relationship can be expressed by a simple triple: (parameter ^ attribute action), where the parameter refers to The data content, the attribute refers to whether the pulse electronic fence system obtains the feedback pulse signal and whether to arm the two attributes, the action refers to the three actions of the pulse electronic fence system: no alarm, open circuit alarm, and short circuit alarm; triples indicate if the pulse electronic fence system If the data has one of the above three attributes, you can get whether to execute the alarm and the action of the alarm type.
第二步,确定电子围栏系统相应存储方式对应的规则,规则由前件部分和后件部分组成。其中前件部分是规则的条件部分,包含触发规则的一个或多个条件,其结果为布尔类型;后件部分包含了规则触发之后所要执行的一系列动作。假设电子围栏发射两端的电阻值为R0,规则集r由如下规则组成: The second step is to determine the rules corresponding to the corresponding storage methods of the electronic fence system. The rules are composed of the former part and the latter part. The antecedent part is the condition part of the rule, which contains one or more conditions that trigger the rule, and the result is Boolean type; the latter part contains a series of actions to be executed after the rule is triggered. Assuming that the resistance value at both ends of the electronic fence transmitter is R 0 , the rule set r consists of the following rules:
r 1 : ^获得反馈脉冲信号→不报警; r 1 : ^ Obtain feedback pulse signal → no alarm;
r 2 : ^未获得反馈脉冲信号且布防→断路报警; r 2 : ^The feedback pulse signal is not obtained and arming → open circuit alarm;
r 3 : ^获得脉冲信号→短路报警; r 3 : ^Obtain pulse signal→short circuit alarm;
当存在的数据满足条件时,相应的动作被激活。 When the existing data satisfies the condition, the corresponding action is activated.
第三步,根据第二步确定的规则,对电子围栏系统的已知事实进行匹配。假设电子围栏系统的规则集中有3条规则,该3条规则根据系统状态和已知事实获得;等待处理的事实有M个,M可从电子围栏系统的前端围栏获得。那么在进行规则匹配的过程中,对于每一条规则r,都需要判断当前的f是否会使规则r的条件部分为真,如果结果为真,,则用f的实参值f i ( i=1,2,…m)代替规则r中的前件部分,代替后即获得规则r的实例。 The third step is to match the known facts of the electronic fence system according to the rules determined in the second step. Suppose there are 3 rules in the rule set of the electronic fence system , the three rules are obtained according to the system state and known facts; there are M facts waiting to be processed , M can be obtained from the front fence of the electric fence system. Then in the process of rule matching, for each rule r , it is necessary to judge whether the current f will make the condition part of the rule r true, and if the result is true, then use the actual parameter value f i of f ( i= 1,2,...m) to replace the antecedent part of the rule r , and get the instance of the rule r after the replacement.
具体匹配步骤如下: The specific matching steps are as follows:
1. 从规则集的3条规则中取出一条规则r; 1. Take out a rule r from the 3 rules in the rule set;
2. 从已保存在数据库中的M个事实中取出由p个事实形成的一个组合序列c,p值大于等于1,组合序列c由上述p个事实组成; 2. Take out a combination sequence c formed by p facts from the M facts already stored in the database, the p value is greater than or equal to 1, and the combination sequence c is composed of the above p facts;
3. 用该组合c对规则r的条件部分进行判断,如果前件部分为真,则将后件部分保存,执行相应的动作。 3. Use the combination c to judge the condition part of the rule r . If the antecedent part is true, save the latter part and execute the corresponding action.
4. 读取下一个组合c,转入步骤3继续进行对规则r的条件部分的判断; 4. Read the next combination c , go to step 3 and continue to judge the condition part of rule r ;
5. 读取下一条规则r,转入步骤2。 5. Read the next rule r and go to step 2.
第四步,当从电子围栏系统的前端传来新的数据时,进行数据的重新匹配。在每次事实发生改变之后,都将匹配操作过程中产生的各种动作和状态保存,在下一次改变事实时,这些存储的状态大部分都不会发生改变;将规则中相同方式的公共部分整合在一起,以减少公共部分的重复运算。对于每一个方式都会附加一个匹配列表,用以记录已存在的方式与事实之间匹配的对应关系,当添加新的事实时,会找出所有能与该事实匹配的方式,并将该事实加入到匹配列表中相应方式的对应关系中。 The fourth step is to perform data re-matching when new data is transmitted from the front end of the electronic fence system. After each fact change, the various actions and states generated during the matching operation are saved, and when the fact is changed next time, most of these stored states will not change; integrate the common parts in the same way in the rules together to reduce repeated operations on common parts. For each method, a matching list will be attached to record the matching relationship between the existing method and the fact. When adding a new fact, all the methods that can match the fact will be found and added to the fact to the corresponding relationship of the corresponding mode in the matching list.
下面结合附图对本发明作进一步详细描述。 The present invention will be described in further detail below in conjunction with the accompanying drawings.
结合图1,本发明涉及一种可靠的面向电子围栏系统的数据存储匹配方法,步骤如下: With reference to Fig. 1, the present invention relates to a reliable electronic fence system-oriented data storage matching method, the steps are as follows:
第一步, 确定事实。在电子围栏系统中,电子围栏及主机数据具有六种存储事实存入数据库。用三元组表示为: Step one, establish the facts. In the electronic fence system, electronic fence and host data have six kinds of storage facts stored in the database. Expressed in triplets as:
f 1 :(正常^布防 不报警) ;f 2 : (断线^布防 断线报警) ;f 3 : (短路^布防 短路报警) ;f 4 : (防拆^布防 不报警) ;f 5 : (通信失败^布防 通信失败报警) ;f 6 : (电源^撤防 不报警) 。 f 1 : (normal^arming, no alarm); f 2 : (broken line^arming, broken line alarm); f 3 : (short circuit^arming, short circuit alarm); f 4 : (tampering^arming, no alarm); f 5 : (communication failure ^ arm communication failure alarm); f 6 : (power ^ disarm no alarm).
第二步,确定相应的存储方式对应的规则,相应的事实在数据库中对应相应的存储,建立规则库: The second step is to determine the rules corresponding to the corresponding storage methods, corresponding facts correspond to corresponding storage in the database, and establish a rule base:
r 1 : ^获得反馈脉冲信号→不报警; r 1 : ^ Obtain feedback pulse signal → no alarm;
r 2 : ^未获得反馈脉冲信号且布防→断路报警; r 2 : ^The feedback pulse signal is not obtained and arming → open circuit alarm;
r 3 : ^获得脉冲信号→短路报警; r 3 : ^Obtain pulse signal→short circuit alarm;
第三步,如图2,电子围栏系统的规则集中有3条规则,等待处理的数据也就是事实有M个,这M个事实是从电子围栏系统的前端围栏传至服务器的数据。在进行规则匹配的过程中,对于每一条规则r,都需要判断当前的事实f是否会使规则r的条件部分为真,如果结果为真,则用f的实参值f i ( i=1,2,…m)代替规则r中的前件部分,代替后即获得规则r的实例。 The third step, as shown in Figure 2, there are 3 rules in the rule set of the electronic fence system , the data waiting to be processed is the fact that there are M , these M facts are data transmitted from the front fence of the electronic fence system to the server. In the process of rule matching, for each rule r , it is necessary to judge whether the current fact f will make the condition part of the rule r true, and if the result is true, use the actual parameter value f i of f ( i=1 ,2,...m) replace the antecedent part of the rule r , and get the instance of the rule r after the replacement.
第四步,在每次事实发生改变之后,都将匹配操作过程中产生的各种动作和状态保存,在下一次改变事实时,这些存储的状态大部分都不会发生改变;将规则中相同方式的公共部分整合在一起,以减少公共部分的重复运算。对于每一个方式都会附加一个匹配列表,用以记录已存在的方式与事实之间匹配的对应关系,当添加新的事实时,会找出所有能与该事实匹配的方式,并将该事实加入到匹配列表中相应方式的对应关系中。 The fourth step is to save the various actions and states generated during the matching operation after each fact is changed. When the fact is changed next time, most of these stored states will not change; the same method in the rule The common parts are integrated together to reduce the repeated operations of the common parts. For each method, a matching list will be attached to record the matching relationship between the existing method and the fact. When adding a new fact, all the methods that can match the fact will be found and added to the fact. to the corresponding relationship of the corresponding mode in the matching list.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201110446589 CN102568135B (en) | 2011-12-28 | 2011-12-28 | Data storing and matching method facing to pulse electronic fence system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201110446589 CN102568135B (en) | 2011-12-28 | 2011-12-28 | Data storing and matching method facing to pulse electronic fence system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102568135A true CN102568135A (en) | 2012-07-11 |
| CN102568135B CN102568135B (en) | 2013-12-18 |
Family
ID=46413465
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201110446589 Expired - Fee Related CN102568135B (en) | 2011-12-28 | 2011-12-28 | Data storing and matching method facing to pulse electronic fence system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102568135B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105427545A (en) * | 2015-12-30 | 2016-03-23 | 山东中创软件商用中间件股份有限公司 | Drools-based equipment warning management method and device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5790023A (en) * | 1994-12-22 | 1998-08-04 | Waters Instruments Inc. | Apparatus and method for control of electric fence |
| CN1866283A (en) * | 2005-12-13 | 2006-11-22 | 华为技术有限公司 | System and method for implementing regular system triggering |
| CN101520933A (en) * | 2009-04-02 | 2009-09-02 | 浙江积体电子科技股份有限公司 | Heart-beat detection electronic fence sensor system and detection method thereof |
| CN201812350U (en) * | 2010-07-15 | 2011-04-27 | 上海稳普智能科技有限公司 | Internal triggering high/low voltage switching electronic fence system |
| CN201859511U (en) * | 2010-07-30 | 2011-06-08 | 李志斌 | High-voltage pulse electronic fence system |
-
2011
- 2011-12-28 CN CN 201110446589 patent/CN102568135B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5790023A (en) * | 1994-12-22 | 1998-08-04 | Waters Instruments Inc. | Apparatus and method for control of electric fence |
| CN1866283A (en) * | 2005-12-13 | 2006-11-22 | 华为技术有限公司 | System and method for implementing regular system triggering |
| CN101520933A (en) * | 2009-04-02 | 2009-09-02 | 浙江积体电子科技股份有限公司 | Heart-beat detection electronic fence sensor system and detection method thereof |
| CN201812350U (en) * | 2010-07-15 | 2011-04-27 | 上海稳普智能科技有限公司 | Internal triggering high/low voltage switching electronic fence system |
| CN201859511U (en) * | 2010-07-30 | 2011-06-08 | 李志斌 | High-voltage pulse electronic fence system |
Non-Patent Citations (1)
| Title |
|---|
| 汪煜: "电子围栏入侵报警防护技术的解析与应用", 《技术与应用》, 31 July 2009 (2009-07-31), pages 53 - 56 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105427545A (en) * | 2015-12-30 | 2016-03-23 | 山东中创软件商用中间件股份有限公司 | Drools-based equipment warning management method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102568135B (en) | 2013-12-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111177417B (en) | Security event correlation method, system and medium based on network security knowledge graph | |
| WO2021258348A1 (en) | Abnormal flow detection method and system and computer storage medium | |
| CN101242278A (en) | Online identification method of network multi-step attack intent | |
| CN119272277B (en) | An APT detection method based on semantic enhancement and attention mechanism | |
| CN103973697B (en) | A kind of thing network sensing layer intrusion detection method | |
| CN110865625A (en) | Process data anomaly detection method based on time series | |
| CN106330949B (en) | An Intrusion Detection Method Based on Markov Chain | |
| CN110910551A (en) | 3D face recognition access control system and 3D face recognition-based access control method | |
| Xu et al. | Detecting semantic attack in SCADA system: A behavioral model based on secondary labeling of states-duration evolution graph | |
| CN103916385A (en) | WAF safety monitoring system based on intelligent algorithm | |
| Liao et al. | Divergence-based transferability analysis for self-adaptive smart grid intrusion detection with transfer learning | |
| CN104486115B (en) | The method and system of positioning failure | |
| CN102568135A (en) | Data storing and matching method facing to pulse electronic fence system | |
| CN103779334A (en) | Active protection device for smart card | |
| CN115758337A (en) | Backdoor real-time monitoring method, electronic equipment, medium based on sequential graph convolutional network | |
| CN117938555B (en) | Log sequence and parameter anomaly detection method and system for Internet of Vehicles cloud platform | |
| Cheng et al. | Fault Detection Method for Wi‐Fi‐Based Smart Home Devices | |
| CN119005247A (en) | Fraud detection method based on graph neural network | |
| CN108600258A (en) | A kind of method for auditing safely towards Integrated Electronic System self-generating white list | |
| CN119398137B (en) | Defense method and system for federated learning poisoning attacks | |
| CN119094216B (en) | An Internet of Things network intrusion detection method, device, medium and product | |
| CN120338114B (en) | Unified characterization and dynamic knowledge reasoning method and device for intelligent cluster system | |
| CN110213291B (en) | Computer network defense decision-making system | |
| Jiwu et al. | Application of iot technology in throttle motor detection system | |
| CN205722048U (en) | A kind of novel intelligent door lock |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| ASS | Succession or assignment of patent right |
Free format text: FORMER OWNER: NANJIANG UNIV. OF SCIENCE + ENGINEERING Effective date: 20140515 Owner name: NANJIANG UNIV. OF SCIENCE + ENGINEERING Free format text: FORMER OWNER: NANJING UNIVERSITY OF SCIENCE AND TECHNOLOGY CHANGSHU INSTITUTE CO., LTD. Effective date: 20140515 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 215513 SUZHOU, JIANGSU PROVINCE TO: 210094 NANJING, JIANGSU PROVINCE |
|
| TR01 | Transfer of patent right |
Effective date of registration: 20140515 Address after: 210094 Xuanwu District, Jiangsu, Xiaolingwei, No. 200, No. Patentee after: Nanjing University of Science and Technology Address before: Changshu Economic Development Zone, Suzhou City, Jiangsu province 215513 (Riverside) Branch Chong Park Institute of Road No. 5 Patentee before: Nanjing University Of Science And Technology Changshu Institute Co., Ltd. Patentee before: Nanjing University of Science and Technology |
|
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20131218 Termination date: 20151228 |
|
| EXPY | Termination of patent right or utility model |