CN103970681B - Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument - Google Patents

Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument Download PDF

Info

Publication number
CN103970681B
CN103970681B CN201410182099.1A CN201410182099A CN103970681B CN 103970681 B CN103970681 B CN 103970681B CN 201410182099 A CN201410182099 A CN 201410182099A CN 103970681 B CN103970681 B CN 103970681B
Authority
CN
China
Prior art keywords
buffer pool
data
vibration
optical fiber
intrusion detection
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.)
Expired - Fee Related
Application number
CN201410182099.1A
Other languages
Chinese (zh)
Other versions
CN103970681A (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.)
CLP Kesiyi Technology Co Ltd
Original Assignee
CETC 41 Institute
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 CETC 41 Institute filed Critical CETC 41 Institute
Priority to CN201410182099.1A priority Critical patent/CN103970681B/en
Publication of CN103970681A publication Critical patent/CN103970681A/en
Application granted granted Critical
Publication of CN103970681B publication Critical patent/CN103970681B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Burglar Alarm Systems (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
  • Optical Transform (AREA)

Abstract

The present invention provides a kind of many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument, vibration signal is buffered by repeatedly buffering and carries out parallel processing, give full play to the multi-core parallel processing capability of the polycaryon processor of existing maturation, create multiple memory buffer pond and the vibration data of continuous acquisition is carried out parallel cache process, and each memory buffer pond has been bound a computational threads for calculating, it is possible to achieve to the parallel processing repeatedly vibrated in the short time.Use such scheme, the optical fiber perimeter intrusion detection instrument disposal ability to repeatedly vibrating in the short time can be greatly improved, and need not increase how many costs, cause when repeatedly vibrating in avoiding the short time fails to report problem, improves the vibration positional accuracy of MZ optical fiber perimeter intrusion detection instrument.

Description

Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument
Technical field
The invention belongs to sensory field of optic fibre, for the technical field of data processing of MZ optical fiber perimeter intrusion detection instrument, in particular a kind of Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument.
Background technology
In optical fiber sensing system, MZ optical fiber perimeter intrusion detection instrument is a kind of critically important Fibre Optical Sensor, and it is applied widely, due to It can carry out distributed vibration location, has simultaneously and has low energy dependency, high environmental resistance, electromagnetism interference, anticorrosive, waterproof, anti- The characteristics such as moist, thermal adaptability is strong, a MZ optical fiber perimeter intrusion detection instrument can carry out unmanned to tens kilometers of long regions and enter Invading monitoring, when there being people to swarm into region on duty, MZ optical fiber perimeter intrusion detection instrument can position by swarming into the vibration caused and report to the police. Compared with traditional electronic monitoring equipment, MZ optical fiber perimeter intrusion detection instrument is more suitable for, environment very long in China and complexity, waste nothing Signs of human habitation, be not easy on the boundary line of patrol defence lay on a large scale, can go on patrol as frontier guards of China, on duty strong the most supplementary, significantly change Frontier guards of kind China is merely able to the patrol environment relying on walking, rides etc. severe, arduous;Can be used for the military base of China, core sets Grant unmanned and the intrusion detection of the important places such as nuclear material, weapons and ammunitions storehouse, airport.
In MZ optical fiber perimeter intrusion detection instrument, for two-way M-Z fibre coherence technique, commonly used broad sense cross correlation algorithm calculates optical fiber and shakes Dynamic positional information, positions intrusion behavior, and its positioning precision of this computational methods depends on the signal of MZ optical fiber perimeter intrusion detection instrument Acquisition rate, signal acquisition rate is the highest, and its positioning precision is the best.But raising signal acquisition rate, the amount of calculation of cross correlation algorithm also can be significantly Increasing, the calculating time needed for calculating invasion positional information is also significantly increased.If occurring twice at short notice or repeatedly vibrating, then owing to calculating Time is longer, causes the situation missing vibration signal to occur, affects the invasion accuracy of judgement degree of MZ optical fiber perimeter intrusion detection instrument, also affect The use of MZ optical fiber perimeter intrusion detection instrument.
Therefore, prior art existing defects, need to improve.
Summary of the invention
The technical problem to be solved is for the deficiencies in the prior art, it is provided that a kind of delaying for MZ optical fiber perimeter intrusion detection instrument more Rush method for parallel processing.
Technical scheme is as follows:
A kind of many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument, wherein, comprises the following steps:
Step 101: read the device information of optical fiber perimeter intrusion detection instrument, it is determined that Buffer Pool size M of subsequent calculations structure and Thread Count N, Thread Count N subtracts 1 equal to processor core quantity, and Buffer Pool size M should be greater than 0.5s* sampling rate;
Step 102: according to Thread Count N and Buffer Pool size M, builds Buffer Pool 1~N, sets up computational threads 1~N;
Step 103: gather the vibration data of optical fiber perimeter intrusion detection instrument;
Step 104: the vibration data gathered is made whether the judgement being to vibrate, then terminates this time to calculate if not vibration, if vibration is then Enter step 105;Simultaneously regardless of result of determination, continue to repeat step 103 and continue vibration data is acquired;
Step 105: the vibration data comprising this vibration information is put in interim Buffer Pool;
Step 106: whether judge in Buffer Pool 1 with the presence of data, if having data to calculate in Buffer Pool 1, then Buffer Pool 1 is in Busy condition, enters step 109;If not having data in Buffer Pool 1, then Buffer Pool 1 is in idle condition, enters step 107;
Step 107: the vibration data in interim Buffer Pool is stored in Buffer Pool 1;
Step 108: call thread 1 and calculate the vibration data in Buffer Pool 1, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 109: whether judge in Buffer Pool 2 with the presence of data, if having data to calculate in Buffer Pool 2, then Buffer Pool 2 is in Busy condition, enters step 112;If not having data in Buffer Pool 2, then Buffer Pool 2 is in idle condition, enters step 110;
Step 110: the vibration data in interim Buffer Pool is stored in Buffer Pool 2;
Step 111: call thread 2 and calculate the vibration data in Buffer Pool 2, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 112: whether judge in Buffer Pool X with the presence of data, described X is from 3 to N-1;If there being data to carry out in Buffer Pool X Calculate, then Buffer Pool X is in busy condition, if X < N, then repeats step 112 after X value adds 1;If X >=N, enter step 115;If Do not have data in Buffer Pool X, then Buffer Pool X is in idle condition, enters step 113;
Step 113: the vibration data in interim Buffer Pool is stored in Buffer Pool X;
Step 114: call thread X and calculate the vibration data in Buffer Pool X, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 115: whether judge in Buffer Pool N with the presence of data, if having data to calculate in Buffer Pool N, then Buffer Pool N is in Busy condition, enters step 119;If not having data in Buffer Pool N, then Buffer Pool N is in idle condition, enters step 116;
Step 116: the vibration data in buffering temporarily is stored in Buffer Pool N;
Step 117: call thread N and calculate the vibration data in Buffer Pool N, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 118: calculated vibration position information exported to optical fiber perimeter intrusion detection instrument, this time vibration data calculates and terminates;
Step 119: owing to vibration is too frequent, exceeded many ways to play for time processing speed, it is impossible to complete the calculating of this vibration data, returned mistake False information.
The described many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument, wherein, in described step 101, described instrument is believed Breath is processor core quantity, system signal acquisition rate.
Use such scheme, vibration signal buffered by repeatedly buffering and carries out parallel processing, giving full play to the polycaryon processor of existing maturation Multi-core parallel processing capability, create multiple memory buffer pond and the vibration data of continuous acquisition carried out parallel cache process, and each internal memory is delayed Rush pond and bound a computational threads for calculating, it is possible to achieve to the parallel processing repeatedly vibrated in the short time, optical fiber perimeter can be greatly improved and enter Invade the monitoring instrument disposal ability to repeatedly vibrating in the short time, and need not increase how many costs, it is to avoid cause when repeatedly vibrating in the short time Fail to report problem, improve the vibration positional accuracy of MZ optical fiber perimeter intrusion detection instrument.
Accompanying drawing explanation
Fig. 1 is the flow chart of the inventive method.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
As it is shown in figure 1, the present invention provides a kind of many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument, wherein, including with Lower step:
Step 101: read the device information of optical fiber perimeter intrusion detection instrument, it is determined that Buffer Pool size M of subsequent calculations structure and Thread Count N, Thread Count N subtracts 1 equal to processor core quantity, and Buffer Pool size M should be greater than 0.5s* sampling rate;
Step 102: according to Thread Count N and Buffer Pool size M, builds Buffer Pool 1~N, sets up computational threads 1~N;
Step 103: gather the vibration data of optical fiber perimeter intrusion detection instrument;
Step 104: the vibration data gathered is made whether the judgement being to vibrate, then terminates this time to calculate if not vibration, if vibration is then Enter step 105;Simultaneously regardless of result of determination, continue to repeat step 103 and continue vibration data is acquired;
Step 105: the vibration data comprising this vibration information is put in interim Buffer Pool;
Step 106: whether judge in Buffer Pool 1 with the presence of data, if having data to calculate in Buffer Pool 1, then Buffer Pool 1 is in Busy condition, enters step 109;If not having data in Buffer Pool 1, then Buffer Pool 1 is in idle condition, enters step 107;
Step 107: the vibration data in interim Buffer Pool is stored in Buffer Pool 1;
Step 108: call thread 1 and calculate the vibration data in Buffer Pool 1, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 109: whether judge in Buffer Pool 2 with the presence of data, if having data to calculate in Buffer Pool 2, then Buffer Pool 2 is in Busy condition, enters step 112;If not having data in Buffer Pool 2, then Buffer Pool 2 is in idle condition, enters step 110;
Step 110: the vibration data in interim Buffer Pool is stored in Buffer Pool 2;
Step 111: call thread 2 and calculate the vibration data in Buffer Pool 2, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 112: whether judge in Buffer Pool X with the presence of data, described X is from 3 to N-1;If there being data to carry out in Buffer Pool X Calculate, then Buffer Pool X is in busy condition, if X < N, then repeats step 112 after X value adds 1;If X >=N, enter step 115;If Do not have data in Buffer Pool X, then Buffer Pool X is in idle condition, enters step 113;
Step 113: the vibration data in interim Buffer Pool is stored in Buffer Pool X;
Step 114: call thread X and calculate the vibration data in Buffer Pool X, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 115: whether judge in Buffer Pool N with the presence of data, if having data to calculate in Buffer Pool N, then Buffer Pool N is in Busy condition, enters step 119;If not having data in Buffer Pool N, then Buffer Pool N is in idle condition, enters step 116;
Step 116: the vibration data in buffering temporarily is stored in Buffer Pool N;
Step 117: call thread N and calculate the vibration data in Buffer Pool N, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 118: calculated vibration position information exported to optical fiber perimeter intrusion detection instrument, this time vibration data calculates and terminates;
Step 119: owing to vibration is too frequent, exceeded many ways to play for time processing speed, it is impossible to complete the calculating of this vibration data, returned mistake False information.
In above-mentioned, in described step 101, described device information is processor core quantity, system signal acquisition rate.
Using such scheme, buffer vibration signal by repeatedly buffering and carry out parallel processing, the multinuclear giving full play to existing maturation processes The multi-core parallel processing capability of device, creates multiple memory buffer pond and the vibration data of continuous acquisition is carried out parallel cache process, and to each internal memory Buffer Pool has bound a computational threads for calculating, it is possible to achieve to the parallel processing repeatedly vibrated in the short time, can be greatly improved optical fiber perimeter The intrusion detection instrument disposal ability to repeatedly vibrating in the short time, and need not increase how many costs, it is to avoid lead when repeatedly vibrating in the short time Cause fails to report problem, improves the vibration positional accuracy of MZ optical fiber perimeter intrusion detection instrument.
It should be appreciated that for those of ordinary skills, can be improved according to the above description or be converted, and all these improvement and Conversion all should belong to the protection domain of claims of the present invention.

Claims (2)

1., for many buffering parallel processing method of MZ optical fiber perimeter intrusion detection instrument, its feature exists
In, comprise the following steps:
Step 101: read the device information of optical fiber perimeter intrusion detection instrument, it is determined that Buffer Pool size M of subsequent calculations structure and Thread Count N, Thread Count N subtracts 1 equal to processor core quantity, and Buffer Pool size M should be greater than 0.5s* sampling rate;
Step 102: according to Thread Count N and Buffer Pool size M, builds Buffer Pool 1~N, sets up computational threads 1~N;
Step 103: gather the vibration data of optical fiber perimeter intrusion detection instrument;
Step 104: the vibration data gathered is made whether the judgement being to vibrate, then terminates this time to calculate if not vibration, if vibration is then Enter step 105;Simultaneously regardless of result of determination, continue to repeat step 103 and continue vibration data is acquired;
Step 105: the vibration data comprising this vibration information is put in interim Buffer Pool;
Step 106: whether judge in Buffer Pool 1 with the presence of data, if having data to calculate in Buffer Pool 1, then Buffer Pool 1 is in Busy condition, enters step 109;If not having data in Buffer Pool 1, then Buffer Pool 1 is in idle condition, enters step 107;
Step 107: the vibration data in interim Buffer Pool is stored in Buffer Pool 1;
Step 108: call thread 1 and calculate the vibration data in Buffer Pool 1, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 109: whether judge in Buffer Pool 2 with the presence of data, if having data to calculate in Buffer Pool 2, then Buffer Pool 2 is in Busy condition, enters step 112;If not having data in Buffer Pool 2, then Buffer Pool 2 is in idle condition, enters step 110;
Step 110: the vibration data in interim Buffer Pool is stored in Buffer Pool 2;
Step 111: call thread 2 and calculate the vibration data in Buffer Pool 2, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 112: whether judge in Buffer Pool X with the presence of data, described X is from 3 to N-1;If there being data to carry out in Buffer Pool X Calculate, then Buffer Pool X is in busy condition, if X < N, then repeats step 112 after X value adds 1;If X >=N, enter step 115;If Do not have data in Buffer Pool X, then Buffer Pool X is in idle condition, enters step 113;
Step 113: the vibration data in interim Buffer Pool is stored in Buffer Pool X;
Step 114: call thread X and calculate the vibration data in Buffer Pool X, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 115: whether judge in Buffer Pool N with the presence of data, if having data to calculate in Buffer Pool N, then Buffer Pool N is in Busy condition, enters step 119;If not having data in Buffer Pool N, then Buffer Pool N is in idle condition, enters step 116;
Step 116: the vibration data in buffering temporarily is stored in Buffer Pool N;
Step 117: call thread N and calculate the vibration data in Buffer Pool N, uses cross correlation algorithm to be calculated vibration position information, Enter step 118;
Step 118: calculated vibration position information exported to optical fiber perimeter intrusion detection instrument, this time vibration data calculates and terminates;
Step 119: owing to vibration is too frequent, exceeded many ways to play for time processing speed, it is impossible to complete the calculating of this vibration data, returned mistake False information.
2. the many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument as claimed in claim 1, it is characterised in that described step In rapid 101, described device information is processor core quantity, system signal acquisition rate.
CN201410182099.1A 2014-05-04 2014-05-04 Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument Expired - Fee Related CN103970681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410182099.1A CN103970681B (en) 2014-05-04 2014-05-04 Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410182099.1A CN103970681B (en) 2014-05-04 2014-05-04 Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument

Publications (2)

Publication Number Publication Date
CN103970681A CN103970681A (en) 2014-08-06
CN103970681B true CN103970681B (en) 2016-10-05

Family

ID=51240207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410182099.1A Expired - Fee Related CN103970681B (en) 2014-05-04 2014-05-04 Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument

Country Status (1)

Country Link
CN (1) CN103970681B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650820A (en) * 2009-09-24 2010-02-17 浙江大学 Large image real-time browsing method based on multi-core structure
CN102812438A (en) * 2010-03-01 2012-12-05 索尼克斯公司 Methods and apparatus for optimizing concurrency in multiple core systems

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650820A (en) * 2009-09-24 2010-02-17 浙江大学 Large image real-time browsing method based on multi-core structure
CN102812438A (en) * 2010-03-01 2012-12-05 索尼克斯公司 Methods and apparatus for optimizing concurrency in multiple core systems

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
分布式光纤振动传感系统的数据采集与处理;苏旭峰;《中国优秀硕士学位论文全文数据库 信息科技辑》;20110315;第2011卷(第3期);全文 *

Also Published As

Publication number Publication date
CN103970681A (en) 2014-08-06

Similar Documents

Publication Publication Date Title
CN103761748B (en) Anomaly detection method and device
CN103196465B (en) Method for separating noise of sensing signal and extracting signal of phase-sensitive optical time domain reflectometer
WO2013011282A3 (en) Portal monitoring
WO2011135281A8 (en) Method and system for security system tampering detection
CN107179942B (en) Real-time data analysis task distribution processing method based on multithreading
GB2512768A (en) Seismic monitoring
CN103226028B (en) Method for identifying and detecting disturbance signals of phase-sensitive optical time domain reflectometer
CN103456168B (en) A kind of traffic intersection pedestrian behavior monitoring system and method
CN104282103B (en) A kind of vibrational waveform end-point detection new method based on short-time energy
CN104217513A (en) Method for improving intrusion event identification accuracy based on phase-sensitive optical time domain reflectrometer (phi-OTDR)
Sun et al. Man-made threat event recognition based on distributed optical fiber vibration sensing and SE-WaveNet
CN109326070A (en) A kind of perimeter security system and circumference security monitor method
CN105306878A (en) Internet of things coprocessing monitor camera system
CN103743366A (en) Fish body dimension measuring system
US20170357587A1 (en) Up/down prefetcher
CN103970681B (en) Many buffering parallel processing method for MZ optical fiber perimeter intrusion detection instrument
CN103529489B (en) underwater target monitoring system
Soltis et al. Accelerometers and simple algorithms identify activity budgets and body orientation in African elephants Loxodonta africana
CN103956013B (en) A kind of wind and rain disturbing signal real-time judgment method
CN108401140A (en) Intelligent video monitoring system and method based on multilayer visual processing
CN107067608B (en) A kind of effective vibrational waveform intercept method based on three-level threshold determination
CN107067610A (en) Vibration optical fiber intelligent alarm system
CN101639963B (en) Implementation method of optical fiber vibration processor system
CN104484968A (en) Method, device and system for human detection
CN109583319B (en) Ship detection method based on sea surface infrared remote sensing image

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190226

Address after: 266000 No. 98 Xiangjiang Road, Huangdao District, Qingdao City, Shandong Province

Patentee after: CHINA ELECTRONICS TECHNOLOGY INSTRUMENTS Co.,Ltd.

Address before: 266000 No. 98 Xiangjiang Road, Qingdao economic and Technological Development Zone, Shandong

Patentee before: THE 41ST INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY Group Corp.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266000 No. 98 Xiangjiang Road, Huangdao District, Qingdao City, Shandong Province

Patentee after: CLP kesiyi Technology Co.,Ltd.

Address before: 266000 No. 98 Xiangjiang Road, Huangdao District, Qingdao City, Shandong Province

Patentee before: CHINA ELECTRONICS TECHNOLOGY INSTRUMENTS Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161005