[go: up one dir, main page]

CN105654683B - A kind of fiber fence is remotely demarcated and single method of testing - Google Patents

A kind of fiber fence is remotely demarcated and single method of testing Download PDF

Info

Publication number
CN105654683B
CN105654683B CN201610039958.0A CN201610039958A CN105654683B CN 105654683 B CN105654683 B CN 105654683B CN 201610039958 A CN201610039958 A CN 201610039958A CN 105654683 B CN105654683 B CN 105654683B
Authority
CN
China
Prior art keywords
handheld terminal
optical
information
fence
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610039958.0A
Other languages
Chinese (zh)
Other versions
CN105654683A (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.)
Qilu Electric Technology Shandong Scientific And Technological Achievement Transformation Co ltd
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201610039958.0A priority Critical patent/CN105654683B/en
Publication of CN105654683A publication Critical patent/CN105654683A/en
Application granted granted Critical
Publication of CN105654683B publication Critical patent/CN105654683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B29/00Checking or monitoring of signalling or alarm systems; Prevention or correction of operating errors, e.g. preventing unauthorised operation
    • G08B29/18Prevention or correction of operating errors
    • G08B29/20Calibration, including self-calibrating arrangements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H9/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by using radiation-sensitive means, e.g. optical means
    • G01H9/004Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by using radiation-sensitive means, e.g. optical means using fibre optic sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Alarm Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明涉及一种光纤围栏远程标定及单人测试方法,包括以下步骤:利用光信号解调设备周期性注入绑设于围栏上或埋入地下的探测光缆中光脉冲信号;工作者携带手持终端随机对探测光缆的不同位置进行扰动或破坏,光缆中传输的光脉冲信号相位及偏振信息发生改变,向散射回来的被扰动调制后的光脉冲信号,经所述光信号解调设备接收进行光电和模数转换,并传输至处理主机;利用手持终端的GPS定位功能,获取当前手持终端的具体位置;手持终端接入GPRS网络,利用GPRS网络建立与处理主机无线通信,将手持终端的GPS位置通过无线网络传输至处理主机等步骤。本发明够降低光纤围栏特别是长距离光纤围栏应用中的人力成本,大大提高工作效率和标定、测试结果的准确性。

The invention relates to a method for remote calibration of an optical fiber fence and a single-person test, comprising the following steps: using an optical signal demodulation device to periodically inject an optical pulse signal into a detection optical cable bound on the fence or buried underground; the worker carries a hand-held terminal Randomly disturb or destroy different positions of the detection cable, the phase and polarization information of the optical pulse signal transmitted in the optical cable will change, and the disturbed and modulated optical pulse signal scattered back will be received by the optical signal demodulation device for photoelectric and analog-to-digital conversion, and transmit to the processing host; use the GPS positioning function of the handheld terminal to obtain the specific location of the current handheld terminal; connect the handheld terminal to the GPRS network, use the GPRS network to establish wireless communication with the processing host, and transfer the GPS position of the handheld terminal Steps such as transmitting to the processing host through the wireless network. The invention can reduce the labor cost in the application of the optical fiber fence, especially the long-distance optical fiber fence, and greatly improve the work efficiency and the accuracy of calibration and test results.

Description

一种光纤围栏远程标定及单人测试方法A remote calibration and single-person testing method for an optical fiber fence

技术领域technical field

本发明属于光纤传感技术及其应用领域,具体涉及一种光纤围栏远程标定及单人测试方法。The invention belongs to the field of optical fiber sensing technology and its application, and in particular relates to a remote calibration and single-person testing method of an optical fiber fence.

背景技术Background technique

目前,光纤围栏系统在周界安防、管道防破坏、线缆安全监测、大型土木结构健康监测领域得到广泛应用,系统基于光时域反射的分布式光纤传感机理,将监测路径上光缆感知的振动、应变等扰动信号转化为光的相位、偏振、光强等信息的变化,并进行光电转换,在处理终端对采集的扰动信号分析、处理,实现对入侵事件的检测、定位和识别功能,并实现设防区域的实时安全预警监测。At present, the fiber optic fence system is widely used in the fields of perimeter security, pipeline anti-sabotage, cable safety monitoring, and large-scale civil structure health monitoring. Disturbance signals such as vibration and strain are converted into changes in information such as phase, polarization, and light intensity of light, and photoelectric conversion is performed, and the collected disturbance signals are analyzed and processed at the processing terminal to realize the detection, positioning and identification of intrusion events. And realize the real-time security early warning monitoring of the fortified area.

由于光纤围栏系统报警定位时,只能定位入侵扰动点处的光缆长度,而实际应用中用户需要的是实际地理位置及线缆编号、埋设场景等具体信息,而光缆长度与实际设防区域长度或距离通常不一致,具体跟绑设方式相关,例如光缆进行“S”型布设时一般与实际空间距离实际比例为2.5-3,因此要进行准确的地理位置定位,通常需要在光缆铺设及系统搭建完毕后进行标定,即通过人为沿线扰动产生模拟入侵并将光缆定位信息与实际地理位置建立一一映射关系,实时将光缆定位信息与实际地理位置及用户关心的具体场景信息录入数据库,但标定过程中外场扰动者与监控室内映射表建立者通过电话通信来确定某点扰动事件的产生、结束及实际地理位置描述等信息,由于双方描述及主观理解的差异经常造成沟通不畅,直接影响标定工作的效率及标定信息的准确性;另一方面,光纤围栏系统搭建完毕后需要进行扰动响应灵敏度的全线测试,也会遇到类似问题,外场扰动方看不到报警响应界面,而监控室内响应记录者只能看到扰动响应界面,不能准确得到现场该扰动点处的光缆绑设情况及扰动力度等信息,二者在电话沟通中也会由于对入侵事件类型及扰动剧烈程度等主观认识差异导致测试信息不可靠,而且费时费力。由于监测区域通常长达几公里到几十公里,标定和测试过程依靠手机通信,产生较大经济开销,而且产生扰动与录入响应情况的人不同,在两人通信过程中,不可避免存在沟通理解差异。When the optical fiber fence system alarms and locates, it can only locate the length of the optical cable at the intrusion disturbance point, but in actual applications, what the user needs is specific information such as the actual geographic location, cable number, and burying scene, and the length of the optical cable is different from the actual length of the fortified area or The distance is usually inconsistent, which is related to the binding method. For example, when the optical cable is laid in an "S" shape, the actual ratio of the distance to the actual space is generally 2.5-3. Afterwards, the calibration is carried out, that is, the simulated intrusion is generated through artificial disturbance along the line, and a one-to-one mapping relationship between the optical cable positioning information and the actual geographic location is established, and the optical cable positioning information, the actual geographic location, and the specific scene information that users care about are entered into the database in real time. The field disturber and the builder of the mapping table in the monitoring room communicate by telephone to determine the occurrence and end of a disturbance event and the description of the actual geographic location. Due to the differences in the description and subjective understanding of the two parties, communication is often poor, which directly affects the calibration work. Efficiency and accuracy of calibration information; on the other hand, after the fiber optic fence system is built, it is necessary to conduct a full-line test of the disturbance response sensitivity, and similar problems will also be encountered. The disturbance party outside the field cannot see the alarm response interface, while the response recorder Only the disturbance response interface can be seen, and information such as the cable binding situation at the disturbance point and the disturbance intensity cannot be accurately obtained. During the telephone communication between the two, the difference in subjective understanding of the type of intrusion event and the severity of the disturbance will also lead to testing. Information is unreliable and time-consuming. Since the monitoring area is usually several kilometers to tens of kilometers long, the calibration and testing process relies on mobile phone communication, resulting in large economic costs, and the person who generates the disturbance is different from the person who entered the response. In the process of communication between two people, there is inevitably communication and understanding difference.

发明内容Contents of the invention

本发明的目的在于提供一种光纤围栏远程标定及单人测试方法,实现单人远程标定及扰动测试,能够降低光纤围栏特别是长距离光纤围栏应用中的人力成本,大大提高工作效率和标定、测试结果的准确性。The purpose of the present invention is to provide a remote calibration and single-person test method for an optical fiber fence, which can realize single-person remote calibration and disturbance testing, can reduce the labor cost in the application of fiber optic fences, especially long-distance fiber optic fences, and greatly improve work efficiency and calibration. Accuracy of Test Results.

为解决上述的技术问题,本发明采用以下技术方案:In order to solve the above-mentioned technical problems, the present invention adopts the following technical solutions:

一种光纤围栏远程标定方法,包括以下步骤:A remote calibration method for an optical fiber fence, comprising the following steps:

利用光信号解调设备周期性注入绑设于围栏上或埋入地下的探测光缆中光脉冲信号;Use optical signal demodulation equipment to periodically inject optical pulse signals into the detection optical cables tied on the fence or buried underground;

工作者携带手持终端随机对探测光缆的不同位置进行扰动或破坏,光缆中传输的光脉冲信号相位及偏振信息发生改变,后向散射回来的被扰动调制后的光脉冲信号,经所述光信号解调设备接收进行光电和模数转换,并传输至处理主机;The worker carries a hand-held terminal to randomly disturb or destroy different positions of the detection cable, the phase and polarization information of the optical pulse signal transmitted in the cable changes, and the disturbed and modulated optical pulse signal back scattered back, passes through the optical signal The demodulation equipment receives and performs photoelectric and analog-to-digital conversion, and transmits to the processing host;

利用手持终端的GPS定位功能,获取当前手持终端的具体位置;Use the GPS positioning function of the handheld terminal to obtain the specific location of the current handheld terminal;

手持终端接入GPRS网络,利用GPRS网络建立与处理主机无线通信,将手持终端的GPS位置通过无线网络传输至处理主机;The handheld terminal accesses the GPRS network, uses the GPRS network to establish wireless communication with the processing host, and transmits the GPS position of the handheld terminal to the processing host through the wireless network;

处理主机将光信号解调设备接收到的光信号进行光电和模数转换,并对数据处理分析对扰动事件定位,结合手持终端的GPS位置一起录入数据库映射表,建立远程标定数据库;The processing host performs photoelectric and analog-to-digital conversion on the optical signal received by the optical signal demodulation device, and analyzes the data to locate the disturbance event, and enters the database mapping table together with the GPS position of the handheld terminal to establish a remote calibration database;

处理主机根据数据库映射表在光纤围栏入侵监测系统软件百度地图界面标注探测光缆位置并在报警定位时将报警对应位置区别标注。The processing host marks the location of the detection cable on the Baidu map interface of the fiber optic fence intrusion monitoring system software according to the database mapping table, and marks the corresponding location of the alarm when the alarm is located.

进一步的,所述处理主机和手持终端是通过Socket进行通信,采用客户端/服务器模式,手持终端作客户端,光纤围栏入侵监测系统作服务器端。Further, the processing host and the handheld terminal communicate through Socket, adopting the client/server mode, the handheld terminal is used as the client, and the fiber optic fence intrusion monitoring system is used as the server.

进一步的,处理主机和手持终端通信具体方法是:Further, the specific method for processing the communication between the host and the handheld terminal is:

处理主机创建一个ServerSocket通信实例指定监听端口,调用accept()方法来获取连接的客户端Socket对象,并通过Socket输入输出流与客户端信息交互;The processing host creates a ServerSocket communication instance to specify the listening port, calls the accept() method to obtain the connected client Socket object, and interacts with the client information through the Socket input and output stream;

客户端创建一个Socket并指定服务器IP及端口号来初始化到服务器端的TCP连接,在SocketActivity中创建connectToServer()方法,读取服务器端发送的信息,并在AndroidMenifest.xml中添加用户权限,允许应用程序访问网络;The client creates a Socket and specifies the server IP and port number to initialize the TCP connection to the server, creates the connectToServer() method in SocketActivity, reads the information sent by the server, and adds user permissions in AndroidMenifest.xml to allow the application access to the Internet;

在服务器端创建一个TCP监听线程,循环监听是否有来自客户端的TCP连接请求,当收到连接请求,该线程会开启一个新的线程用于TCP通信,在新的线程中接收客户端发送的数据并作出消息响应,完成手持终端对光纤围栏入侵监测系统的控制交互和数据传输。Create a TCP listening thread on the server side, and loop to monitor whether there is a TCP connection request from the client. When receiving the connection request, the thread will open a new thread for TCP communication, and receive the data sent by the client in the new thread. And make a message response to complete the control interaction and data transmission of the handheld terminal to the fiber optic fence intrusion monitoring system.

进一步的,所述手持终端的GPS定位功能基于安卓地图定位SDK实现,当应用程序向定位SDK发起定位请求时,定位SDK会根据当前的GPS、基站、Wifi信息生成相对应的定位依据,并向定位服务器发送网络请求,定位服务器会根据请求的定位依据推算出对应的坐标位置,然后根据用户的定制信息,生成定位结果返回给定位SDK。Further, the GPS positioning function of the handheld terminal is implemented based on the Android map positioning SDK. When the application program initiates a positioning request to the positioning SDK, the positioning SDK will generate a corresponding positioning basis according to the current GPS, base station, and Wifi information, and send the positioning request to the positioning SDK. The positioning server sends a network request, and the positioning server calculates the corresponding coordinate position based on the requested positioning basis, and then generates a positioning result based on the user's customized information and returns it to the positioning SDK.

进一步的,所述GPS定位信息获取功能的具体方法:注册GPS和网络使用权限,使用LocationClientOption()来设置定位SDK的定位方式,如设置打开GPS,设置是否需要地址信息,设置发起定位请求的间隔时间等,调用requestLocation(),监听定位结果。Further, the specific method of the GPS positioning information acquisition function: register GPS and network usage rights, use LocationClientOption () to set the positioning method of the positioning SDK, such as setting to open GPS, setting whether address information is required, and setting the interval for initiating positioning requests Time, etc., call requestLocation() to monitor the positioning results.

进一步的,手持终端远程建立标定数据库的实现过程如下:(1)首先确立光缆定位信息与实际地理位置映射表的格式,在服务器数据库中建立数据库映射表并运行数据库,确定映射表主键值和各字段数据格式,光缆定位信息与实际地理位置映射表包含光缆序号、对应光缆位置、经度、纬度、地理位置信息等;(2)服务器端光纤围栏入侵监测系统软件留出函数作为手持终端客户端软件访问服务器端数据库的接口,实现增加、删除、查询、修改等数据库操作功能;(3)手持终端客户端软件获取用户标定信息,如光缆序号、对应光缆位置、经度、纬度、地理位置信息等,将数据转换成XML格式,通过Socket发送;(4)服务器端光纤围栏入侵监测系统软件使用MSXML.DLL读写XML格式数据,解析相应的指令对数据库进行录入、增加、删除等功能操作,完成对光缆位置信息与实际地理位置映射数据表的建立;(5)服务器端光纤围栏入侵监测系统软件百度地图界面显示线缆走向标定结果,光纤围栏入侵监测系统软件通过访问数据库获取光缆位置信息与实际地理位置映射表各标定点的经纬度信息,调用百度地图Polyline()方法与Marker()方法实现,可实现探测光缆地理空间分布在百度地图上的标注。。Further, the realization process of the remote establishment of the calibration database by the handheld terminal is as follows: (1) first establish the format of the mapping table between the optical cable positioning information and the actual geographic location, set up the database mapping table in the server database and run the database, and determine the primary key value of the mapping table and The data format of each field, the optical cable positioning information and the actual geographic location mapping table include the optical cable serial number, the corresponding optical cable location, longitude, latitude, geographic location information, etc.; The software accesses the server-side database interface to realize database operation functions such as adding, deleting, querying, and modifying; (3) The handheld terminal client software obtains user calibration information, such as optical cable serial number, corresponding optical cable position, longitude, latitude, geographic location information, etc. , convert the data into XML format, and send it through Socket; (4) The server-side optical fiber fence intrusion monitoring system software uses MSXML. (5) The Baidu map interface of the server-side fiber optic fence intrusion monitoring system software displays the calibration results of the cable direction, and the fiber optic fence intrusion monitoring system software obtains the cable location information and the actual location by accessing the database. The latitude and longitude information of each calibration point in the geographic location mapping table is implemented by calling the Polyline() method and the Marker() method of Baidu Maps, which can realize the marking of the geographic spatial distribution of the detection cable on the Baidu Map. .

一种光纤围栏单人测试方法,包括以下步骤:A single-person test method for an optical fiber fence, comprising the following steps:

利用光信号解调设备周期性注入绑设于围栏上或埋入地下的探测光缆中光脉冲信号;Use optical signal demodulation equipment to periodically inject optical pulse signals into the detection optical cables tied on the fence or buried underground;

工作者携带手持终端随机对探测光缆的不同位置进行扰动或破坏,光缆中传输的光脉冲信号相位及偏振信息发生改变,后向散射回来的被扰动调制后的光脉冲信号,经所述光信号解调设备接收进行光电和模数转换,并传输至处理主机;The worker carries a hand-held terminal to randomly disturb or destroy different positions of the detection cable, the phase and polarization information of the optical pulse signal transmitted in the cable changes, and the disturbed and modulated optical pulse signal back scattered back, passes through the optical signal The demodulation equipment receives and performs photoelectric and analog-to-digital conversion, and transmits to the processing host;

处理主机对探测光缆中光信号进行分析处理,判断光信号有无发生改变并进行定位;The processing host analyzes and processes the optical signal in the detection cable, judges whether the optical signal has changed and locates it;

手持终端接入GPRS网络,利用GPRS网络建立与处理主机无线通信,处理主机通过无线网络将光信号实时数据及报警定位相关信息传输至手持终端;The handheld terminal is connected to the GPRS network, and uses the GPRS network to establish wireless communication with the processing host, and the processing host transmits the real-time data of optical signals and alarm location related information to the handheld terminal through the wireless network;

手持终端绘制显示光信号实时曲线,并将报警定位相关信息在手持终端界面显示;The handheld terminal draws and displays the real-time curve of the optical signal, and displays the alarm location related information on the handheld terminal interface;

工作者通过监测手持终端界面光信号曲线有无变化及有无报警定位信息提示来判断该点光缆扰动响应灵敏度,实现光纤围栏扰动响应灵敏度单人测试。The worker judges the disturbance response sensitivity of the optical cable at this point by monitoring whether the optical signal curve of the handheld terminal interface changes and whether there is an alarm location information prompt, and realizes the single-person test of the disturbance response sensitivity of the optical fiber fence.

进一步的,所述处理主机和手持终端是通过Socket进行通信,采用客户端/服务器模式,手持终端作客户端,光纤围栏入侵监测系统作服务器端。Further, the processing host and the handheld terminal communicate through Socket, adopting the client/server mode, the handheld terminal is used as the client, and the fiber optic fence intrusion monitoring system is used as the server.

进一步的,处理主机和手持终端通信具体方法是:Further, the specific method for processing the communication between the host and the handheld terminal is:

处理主机创建一个ServerSocket通信实例指定监听端口,调用accept()方法来获取连接的客户端Socket对象,并通过Socket输入输出流与客户端信息交互;The processing host creates a ServerSocket communication instance to specify the listening port, calls the accept() method to obtain the connected client Socket object, and interacts with the client information through the Socket input and output stream;

客户端创建一个Socket并指定服务器IP及端口号来初始化到服务器端的TCP连接,在SocketActivity中创建connectToServer()方法,读取服务器端发送的信息,并在AndroidMenifest.xml中添加用户权限,允许应用程序访问网络;The client creates a Socket and specifies the server IP and port number to initialize the TCP connection to the server, creates the connectToServer() method in SocketActivity, reads the information sent by the server, and adds user permissions in AndroidMenifest.xml to allow the application access to the Internet;

在服务器端创建一个TCP监听线程,循环监听是否有来自客户端的TCP连接请求,当收到连接请求,该线程会开启一个新的线程用于TCP通信,在新的线程中接收客户端发送的数据并作出消息响应,完成手持终端对光纤围栏入侵监测系统的控制交互和监测数据传输。Create a TCP listening thread on the server side, and loop to monitor whether there is a TCP connection request from the client. When receiving the connection request, the thread will open a new thread for TCP communication, and receive the data sent by the client in the new thread. And make a message response to complete the control interaction and monitoring data transmission of the handheld terminal to the fiber optic fence intrusion monitoring system.

进一步的,所述手持终端在基于Socket通信连接方式接收到远程监测数据和报警定位信息后,在手持终端绘制显示光信号实时曲线,并将报警定位相关信息在手持终端界面显示;其信号曲线绘制的具体方法是:绘制波形显示背景图;标注横纵坐标的刻度;将波形数据映射到坐标系中,并通过MoveTo()、LineTo()等函数把数据点串联起来,完成对光信号波形曲线的绘制;不断对数据刷新,实现光信号波形曲线实时显示。Further, after the handheld terminal receives the remote monitoring data and alarm location information based on the Socket communication connection mode, it draws and displays the real-time curve of the optical signal on the handheld terminal, and displays the alarm location related information on the interface of the handheld terminal; the signal curve is drawn The specific method is: draw the waveform display background image; mark the scale of the horizontal and vertical coordinates; map the waveform data to the coordinate system, and connect the data points in series through MoveTo(), LineTo() and other functions to complete the optical signal waveform curve The drawing; constantly refresh the data to realize the real-time display of the optical signal waveform curve.

与现有技术相比,本发明的有益效果是:在光纤围栏标定、测试过程中,在手机终端利用手机应用软件,将远程访问报警界面信息、手动输入标定及测试信息等功能与手机GPS定位模块、GPRS无线通信模块结合,实现单人远程标定及扰动测试,能够降低光纤围栏特别是长距离光纤围栏应用中的人力成本,大大提高工作效率和标定、测试结果的准确性。Compared with the prior art, the beneficial effect of the present invention is: during the calibration and testing process of the optical fiber fence, the mobile phone terminal uses the mobile phone application software to combine functions such as remote access to alarm interface information, manual input of calibration and test information, and mobile phone GPS positioning. The combination of module and GPRS wireless communication module realizes single-person remote calibration and disturbance testing, which can reduce the labor cost of fiber optic fences, especially long-distance fiber optic fence applications, and greatly improve work efficiency and accuracy of calibration and test results.

附图说明Description of drawings

图1为本发明一种光纤围栏远程标定方法及一种光纤围栏单人测试方法的系统示意图。FIG. 1 is a system diagram of a remote calibration method for an optical fiber fence and a single-person testing method for an optical fiber fence according to the present invention.

图2为远程标定及扰动测试应用软件APP流程图。Figure 2 is a flowchart of the remote calibration and disturbance test application software APP.

图3为本发明手持终端与光纤围栏入侵监测系统Socket通信流程图。Fig. 3 is a flowchart of socket communication between the handheld terminal and the optical fiber fence intrusion monitoring system of the present invention.

图4为本发明一种光纤围栏远程标定方法百度地图定位原理图。Fig. 4 is a schematic diagram of a Baidu map positioning method for a remote calibration method of an optical fiber fence according to the present invention.

图5为手持终端远程标定及测试终端系统远程标定数据库映射表的格式。Fig. 5 is the format of the database mapping table for the remote calibration of the handheld terminal and the remote calibration of the test terminal system.

图6为手持终端远程建立标定数据库映射表的数据传输格式。Fig. 6 is the data transmission format for remotely establishing the calibration database mapping table by the handheld terminal.

图7为通过手持终端远程标定及测试终端系统建立的光缆定位信息与实际地理位置信息数据库映射表。Fig. 7 is a mapping table of the optical cable positioning information and the actual geographic location information database established by the handheld terminal remote calibration and testing terminal system.

图8为光纤围栏入侵监测系统服务器软件百度地图界面线缆位置标注最终效果。Figure 8 is the final effect of labeling cable positions on the Baidu map interface of the server software of the fiber optic fence intrusion monitoring system.

图9(a)为手持终端远程标定及扰动测试应用软件APP的远程监控界面。Figure 9(a) is the remote monitoring interface of the handheld terminal remote calibration and disturbance test application software APP.

图9(b)为手持终端远程标定及扰动测试应用软件APP的定位采集操作界面。Figure 9(b) is the positioning acquisition operation interface of the handheld terminal remote calibration and disturbance test application software APP.

图10(a)为手持终端远程标定及扰动测试终端系统远程监控界面光纤围栏信号特征曲线(无入侵扰动事件)。Figure 10(a) is the characteristic curve of the fiber fence signal on the remote monitoring interface of the handheld terminal remote calibration and disturbance test terminal system (no intrusion disturbance event).

图10(b)为手持终端远程标定及扰动测试应用软件APP远程监控界面的信号曲线(入侵扰动事件发生在8.13km处)。Figure 10(b) is the signal curve of the remote monitoring interface of the handheld terminal remote calibration and disturbance test application software APP (the intrusion disturbance event occurred at 8.13km).

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

图1示出了本发明一种光纤围栏远程标定方法的一个实施例:一种光纤围栏远程标定方法,包括以下步骤:Figure 1 shows an embodiment of a remote calibration method for a fiber optic fence of the present invention: a remote calibration method for a fiber optic fence, comprising the following steps:

利用光信号解调设备周期性注入绑设于围栏上或埋入地下的探测光缆中光脉冲信号;Use optical signal demodulation equipment to periodically inject optical pulse signals into the detection optical cables tied on the fence or buried underground;

工作者携带手持终端随机对探测光缆的不同位置进行扰动或破坏,光缆中传输的光脉冲信号相位及偏振信息发生改变,后向散射回来的被扰动调制后的光脉冲信号,经所述光信号解调设备接收进行光电和模数转换,并传输至处理主机;The worker carries a hand-held terminal to randomly disturb or destroy different positions of the detection cable, the phase and polarization information of the optical pulse signal transmitted in the cable changes, and the disturbed and modulated optical pulse signal back scattered back, passes through the optical signal The demodulation equipment receives and performs photoelectric and analog-to-digital conversion, and transmits to the processing host;

利用手持终端的GPS定位功能,获取当前手持终端的具体位置;Use the GPS positioning function of the handheld terminal to obtain the specific location of the current handheld terminal;

手持终端接入GPRS网络,利用GPRS网络建立与处理主机无线通信,将手持终端的GPS位置通过无线网络传输至处理主机;The handheld terminal accesses the GPRS network, uses the GPRS network to establish wireless communication with the processing host, and transmits the GPS position of the handheld terminal to the processing host through the wireless network;

处理主机将光信号解调设备接收到的光信号进行光电和模数转换,并对数据处理分析对扰动事件定位,结合手持终端的GPS位置一起录入数据库映射表,建立远程标定数据库;The processing host performs photoelectric and analog-to-digital conversion on the optical signal received by the optical signal demodulation device, and analyzes the data to locate the disturbance event, and enters the database mapping table together with the GPS position of the handheld terminal to establish a remote calibration database;

处理主机根据数据库映射表在光纤围栏入侵监测系统软件百度地图界面标注探测光缆位置并在报警定位时将报警对应位置区别标注。The processing host marks the location of the detection cable on the Baidu map interface of the fiber optic fence intrusion monitoring system software according to the database mapping table, and marks the corresponding location of the alarm when the alarm is located.

如图2所示,基于TCP/IP协议通过手持终端远程交互界面实现手持终端与光纤围栏入侵监测系统的无线数据通信,同时结合该手持终端的GPS定位功能,通过此客户端远程交互界面实现安卓地图GPS定位信息及实际地理位置信息的获取,与探测光缆定位信息一起录入数据库映射表,建立远程标定数据库。具体软件实现流程如下:(1)手持终端软件界面初始化;(2)建立与服务器端光纤围栏入侵监测系统的TCP连接,同时开启TCP数据通信线程;(3)调用百度地图SDK接口获取GPS定位相关信息;(4)人为扰动探测光缆模拟光缆扰动事件并通过TCP数据通信线程获取服务器端光纤围栏入侵监测系统入侵扰动事件定位数据;(5)将GPS定位信息及探测光缆定位信息转换为指定XML格式并通过TCP通信线程传输至服务器端光纤围栏入侵监测系统,由光纤围栏入侵监测系统执行指令操作将标定信息录入数据库映射表。As shown in Figure 2, based on the TCP/IP protocol, the wireless data communication between the handheld terminal and the fiber optic fence intrusion monitoring system is realized through the remote interactive interface of the handheld terminal. At the same time, combined with the GPS positioning function of the handheld terminal, the Android The acquisition of map GPS positioning information and actual geographic location information is entered into the database mapping table together with the detection cable positioning information to establish a remote calibration database. The specific software implementation process is as follows: (1) Initialize the software interface of the handheld terminal; (2) Establish a TCP connection with the server-side fiber optic fence intrusion monitoring system, and open the TCP data communication thread at the same time; (3) Call the Baidu map SDK interface to obtain GPS positioning correlation (4) Artificial disturbance detection optical cable simulates the disturbance event of the optical cable and obtains the location data of the intrusion disturbance event of the server-side fiber optic fence intrusion monitoring system through the TCP data communication thread; (5) Converts the GPS positioning information and the detection cable positioning information into the specified XML format And transmit it to the fiber optic fence intrusion monitoring system on the server side through the TCP communication thread, and the fiber optic fence intrusion monitoring system executes the instruction operation and enters the calibration information into the database mapping table.

根据本发明一种光纤围栏远程标定方法的另一个实施例,所述处理主机和手持终端是通过Socket进行通信,采用客户端/服务器(Client/Server)模式,手持终端作客户端,光纤围栏入侵监测系统作服务器端。According to another embodiment of the remote calibration method for a fiber optic fence of the present invention, the processing host and the handheld terminal communicate through a Socket, using the client/server (Client/Server) mode, the handheld terminal is used as the client, and the fiber optic fence is intruded The monitoring system is used as the server side.

图3示出了本发明一种光纤围栏远程标定方法的另一个优选实施例,处理主机和手持终端通信具体方法是:Fig. 3 shows another preferred embodiment of a remote calibration method for a fiber optic fence of the present invention, and the specific method for processing the communication between the host and the handheld terminal is:

处理主机创建一个ServerSocket通信实例指定监听端口,调用accept()方法来获取连接的客户端Socket对象,并通过Socket输入输出流与客户端信息交互;The processing host creates a ServerSocket communication instance to specify the listening port, calls the accept() method to obtain the connected client Socket object, and interacts with the client information through the Socket input and output stream;

客户端创建一个Socket并指定服务器IP及端口号来初始化到服务器端的TCP连接,在SocketActivity中创建connectToServer()方法,读取服务器端发送的信息,并在AndroidMenifest.xml中添加用户权限,允许应用程序访问网络;The client creates a Socket and specifies the server IP and port number to initialize the TCP connection to the server, creates the connectToServer() method in SocketActivity, reads the information sent by the server, and adds user permissions in AndroidMenifest.xml to allow the application access to the Internet;

在服务器端创建一个TCP监听线程,循环监听是否有来自客户端的TCP连接请求,当收到连接请求,该线程会开启一个新的线程用于TCP通信,在新的线程中接收客户端发送的数据并作出消息响应,完成手持终端对光纤围栏入侵监测系统的控制交互和数据传输。Create a TCP listening thread on the server side, and loop to monitor whether there is a TCP connection request from the client. When receiving the connection request, the thread will open a new thread for TCP communication, and receive the data sent by the client in the new thread. And make a message response to complete the control interaction and data transmission of the handheld terminal to the fiber optic fence intrusion monitoring system.

图4示出了本发明一种光纤围栏远程标定方法的另一个实施例,所述手持终端的GPS定位功能基于安卓地图(百度Android地图)定位SDK实现,当应用程序向定位SDK发起定位请求时,定位SDK会根据当前的GPS、基站、Wifi信息生成相对应的定位依据,并向定位服务器发送网络请求,定位服务器会根据请求的定位依据推算出对应的坐标位置,然后根据用户的定制信息,生成定位结果返回给定位SDK。Fig. 4 shows another embodiment of the remote calibration method of a kind of fiber optic fence of the present invention, the GPS positioning function of the handheld terminal is realized based on the Android map (Baidu Android map) positioning SDK, when the application program initiates a positioning request to the positioning SDK , the positioning SDK will generate corresponding positioning basis based on the current GPS, base station, and Wifi information, and send a network request to the positioning server. The positioning server will calculate the corresponding coordinate position according to the requested positioning basis, and then according to the user's customized information, Generate positioning results and return them to the positioning SDK.

根据本发明一种光纤围栏远程标定方法的另一个实施例,所述GPS定位信息获取功能的具体方法:注册GPS和网络使用权限,使用LocationClientOption()来设置定位SDK的定位方式,如设置打开GPS,设置是否需要地址信息,设置发起定位请求的间隔时间等,调用requestLocation(),监听定位结果。According to another embodiment of the remote calibration method of a fiber optic fence of the present invention, the specific method of the GPS positioning information acquisition function: register GPS and network access rights, use LocationClientOption () to set the positioning method of the positioning SDK, such as setting to open GPS , set whether address information is required, set the interval for initiating a location request, etc., call requestLocation(), and monitor the location result.

根据本发明一种光纤围栏远程标定方法的另一个实施例,手持终端远程建立标定数据库的实现过程如下:(1)首先确立光缆定位信息与实际地理位置映射表的格式,在服务器数据库中建立数据库映射表并运行数据库,确定映射表主键值和各字段数据格式,如图5所示,光缆定位信息与实际地理位置映射表包含光缆序号、对应光缆位置、经度、纬度、地理位置信息等,并设置对应的合适数据格式;(2)服务器端光纤围栏入侵监测系统软件留出函数作为手持终端客户端软件访问服务器端数据库的接口,实现增加、删除、查询、修改等数据库操作功能;(3)手持终端客户端软件获取用户标定信息,如光缆序号、对应光缆位置、经度、纬度、地理位置信息等,将数据转换成XML格式,如图6所示,<DataBase>元素代表一条数据库操作指令,<ADD>元素代表一条数据库“增加”指令,<JD><WD>等元素包含数据库要增加的经度、纬度等标定信息,通过Socket发送;(4)服务器端光纤围栏入侵监测系统软件使用MSXML.DLL读写XML格式数据,解析相应的指令对数据库进行录入、增加、删除等功能操作。图7为标定完成后光缆位置信息与实际地理位置映射数据表,每行对应一个标定点,列【对应光缆位置】为标定各点对应探测光缆上的距离(单位为km),列【地理位置信息】为标定各点所对应的实际地理位置信息,列【经度】【纬度】为各点的百度地图坐标信息。图8为服务器端光纤围栏入侵监测系统软件百度地图界面线缆走向标定结果,光纤围栏入侵监测系统软件通过访问数据库获取光缆位置信息与实际地理位置映射表各标定点的经纬度信息,调用百度地图Polyline()方法与Marker()方法实现,可实现探测光缆地理空间分布在百度地图上的标注。According to another embodiment of the remote calibration method of a kind of optical fiber fence of the present invention, the implementation process of establishing the calibration database remotely by the handheld terminal is as follows: (1) first establish the format of the mapping table between the optical cable positioning information and the actual geographic location, and establish the database in the server database Map the table and run the database, determine the primary key value of the mapping table and the data format of each field, as shown in Figure 5, the optical cable positioning information and actual geographic location mapping table includes the optical cable serial number, corresponding optical cable location, longitude, latitude, geographic location information, etc. And set the corresponding suitable data format; (2) The server-side optical fiber fence intrusion monitoring system software reserves a function as an interface for the handheld terminal client software to access the server-side database, and realizes database operation functions such as adding, deleting, querying, and modifying; (3) ) The handheld terminal client software obtains user calibration information, such as cable serial number, corresponding cable location, longitude, latitude, geographic location information, etc., and converts the data into XML format, as shown in Figure 6, the <DataBase> element represents a database operation instruction , <ADD> element represents a database "add" command, <JD><WD> and other elements include calibration information such as longitude and latitude to be added to the database, and are sent through Socket; (4) The server-side optical fiber fence intrusion monitoring system software uses MSXML The .DLL reads and writes data in XML format, and parses the corresponding instructions to perform functional operations such as entry, addition, and deletion of the database. Figure 7 is the mapping data table of the optical cable position information and the actual geographic location after the calibration is completed. Each row corresponds to a calibration point, and the column [corresponding optical cable position] is the distance on the detection optical cable corresponding to each calibration point (in km), and the column [geographic location Information] is the actual geographic location information corresponding to each point, and the columns [longitude] and [latitude] are the Baidu map coordinate information of each point. Figure 8 shows the calibration results of the cables on the Baidu map interface of the server-side fiber optic fence intrusion monitoring system software. The fiber optic fence intrusion monitoring system software obtains the location information of the fiber optic cable and the latitude and longitude information of each calibration point in the actual geographic location mapping table by accessing the database, and calls the Baidu map Polyline The () method and the Marker() method are implemented, which can realize the marking of the geographical spatial distribution of the detection cable on the Baidu map.

手持终端远程标定界面操作效果如图所示:在主界面点击【定位采集】进入定位采集界面,点击图9(b)【定位】按钮,可获取当前标定人员或测试者所在位置的经纬度及地理位置信息和扰动点对应的光缆定位信息,同时可附加光缆序号、区域起止点、周围现场图片,点击图9(b)中【更新数据】将相关标定信息录入到监控系统远程数据库并建立光缆位置信息与实际地理位置信息映射表。The operation effect of the remote calibration interface of the handheld terminal is shown in the figure: Click [Positioning Collection] on the main interface to enter the positioning collection interface, click the [Positioning] button in Figure 9(b), and you can get the latitude, longitude and geography of the current calibration personnel or testers. The position information and the cable positioning information corresponding to the disturbance point can be attached with the cable serial number, the start and end points of the area, and the surrounding scene pictures. Click [Update Data] in Figure 9(b) to enter the relevant calibration information into the remote database of the monitoring system and establish the cable position. Information and actual geographic location information mapping table.

图1还示出了本发明一种光纤围栏单人测试方法的一个实施例:一种光纤围栏单人测试方法,包括以下步骤:Fig. 1 also shows an embodiment of a single-person testing method for a fiber optic fence of the present invention: a single-person testing method for a fiber optic fence, comprising the following steps:

利用光信号解调设备周期性注入绑设于围栏上或埋入地下的探测光缆中光脉冲信号;Use optical signal demodulation equipment to periodically inject optical pulse signals into the detection optical cables tied on the fence or buried underground;

工作者携带手持终端随机对探测光缆的不同位置进行扰动或破坏,光缆中传输的光脉冲信号相位及偏振信息发生改变,后向散射回来的被扰动调制后的光脉冲信号,经所述光信号解调设备接收进行光电和模数转换,并传输至处理主机;The worker carries a hand-held terminal to randomly disturb or destroy different positions of the detection cable, the phase and polarization information of the optical pulse signal transmitted in the cable changes, and the disturbed and modulated optical pulse signal back scattered back, passes through the optical signal The demodulation equipment receives and performs photoelectric and analog-to-digital conversion, and transmits to the processing host;

处理主机对探测光缆中光信号进行分析处理,判断光信号有无发生改变并进行定位;The processing host analyzes and processes the optical signal in the detection cable, judges whether the optical signal has changed and locates it;

手持终端接入GPRS网络,利用GPRS网络建立与处理主机无线通信,处理主机通过无线网络将光信号实时数据及报警定位相关信息传输至手持终端;The handheld terminal is connected to the GPRS network, and uses the GPRS network to establish wireless communication with the processing host, and the processing host transmits the real-time data of optical signals and alarm location related information to the handheld terminal through the wireless network;

手持终端绘制显示光信号实时曲线,并将报警定位相关信息在手持终端界面显示;The handheld terminal draws and displays the real-time curve of the optical signal, and displays the alarm location related information on the handheld terminal interface;

工作者通过监测手持终端界面光信号曲线有无变化及有无报警定位信息提示来判断该点光缆扰动响应灵敏度,实现光纤围栏扰动响应灵敏度单人测试。The worker judges the disturbance response sensitivity of the optical cable at this point by monitoring whether the optical signal curve of the handheld terminal interface changes and whether there is an alarm location information prompt, and realizes the single-person test of the disturbance response sensitivity of the optical fiber fence.

根据本发明一种光纤围栏单人测试方法的另一个实施例,所述处理主机和手持终端是通过Socket进行通信,采用客户端/服务器(Client/Server)模式,手持终端作客户端,光纤围栏入侵监测系统作服务器端。According to another embodiment of the single-person test method for a fiber optic fence of the present invention, the processing host and the handheld terminal communicate through Socket, adopting the client/server (Client/Server) mode, the handheld terminal is used as the client, and the fiber optic fence The intrusion detection system is used as the server side.

如图2所示,基于TCP/IP协议通过客户端远程交互界面实现手持终端与光纤围栏入侵监测系统的无线数据通信,实现在手持终端对光纤围栏入侵监测系统报警界面信号曲线及报警信息的远程实时访问和再现功能。具体软件实现流程如下:(1)手持终端软件界面初始化;(2)建立与服务器端光纤围栏入侵监测系统的TCP连接,同时开启TCP数据通信线程;(3)手持终端软件界面实时绘制光信号曲线;(4)人为扰动探测光缆模拟光缆扰动事件并通过TCP数据通信线程获取服务器端光纤围栏入侵监测系统入侵扰动事件定位数据;(4)手持终端界面报警定位信息提示。As shown in Figure 2, the wireless data communication between the handheld terminal and the fiber optic fence intrusion monitoring system is realized through the remote interactive interface of the client based on the TCP/IP protocol, and the remote control of the signal curve and alarm information of the fiber optic fence intrusion monitoring system alarm interface is realized on the handheld terminal. Real-time access and reproduction functions. The specific software implementation process is as follows: (1) Initialize the software interface of the handheld terminal; (2) Establish a TCP connection with the fiber optic fence intrusion monitoring system on the server side, and open the TCP data communication thread at the same time; (3) Draw the optical signal curve in real time on the software interface of the handheld terminal (4) Artificial disturbance detection optical cable simulates the disturbance event of the optical cable and obtains the location data of the intrusion disturbance event of the server-side fiber optic fence intrusion monitoring system through the TCP data communication thread; (4) The handheld terminal interface alarms and locates information prompts.

图3本发明一种光纤围栏单人测试方法的另一个实施例,处理主机和手持终端通信具体方法是:Fig. 3 is another embodiment of a single-person test method for an optical fiber fence of the present invention, and the specific method for processing the communication between the host and the handheld terminal is:

处理主机创建一个ServerSocket通信实例指定监听端口,调用accept()方法来获取连接的客户端Socket对象,并通过Socket输入输出流与客户端信息交互;The processing host creates a ServerSocket communication instance to specify the listening port, calls the accept() method to obtain the connected client Socket object, and interacts with the client information through the Socket input and output stream;

客户端创建一个Socket并指定服务器IP及端口号来初始化到服务器端的TCP连接,在SocketActivity中创建connectToServer()方法,读取服务器端发送的信息,并在AndroidMenifest.xml中添加用户权限,允许应用程序访问网络;The client creates a Socket and specifies the server IP and port number to initialize the TCP connection to the server, creates the connectToServer() method in SocketActivity, reads the information sent by the server, and adds user permissions in AndroidMenifest.xml to allow the application access to the Internet;

在服务器端创建一个TCP监听线程,循环监听是否有来自客户端的TCP连接请求,当收到连接请求,该线程会开启一个新的线程用于TCP通信,在新的线程中接收客户端发送的数据并作出消息响应,完成手持终端对光纤围栏入侵监测系统的控制交互和数据传输。Create a TCP listening thread on the server side, and loop to monitor whether there is a TCP connection request from the client. When receiving the connection request, the thread will open a new thread for TCP communication, and receive the data sent by the client in the new thread. And make a message response to complete the control interaction and data transmission of the handheld terminal to the fiber optic fence intrusion monitoring system.

根据本发明一种光纤围栏单人测试方法的另一个实施例,手持终端信号曲线绘制的具体方法是:(1)绘制波形显示背景图;(2)标注横纵坐标的刻度;(3)将波形数据映射到坐标系中,并通过MoveTo()、LineTo()等函数把数据点串联起来,完成对光信号波形曲线的绘制;(4)不断对数据刷新,实现光信号波形曲线实时显示。According to another embodiment of the single-person testing method of a fiber optic fence of the present invention, the specific method for drawing the signal curve of the handheld terminal is: (1) drawing the waveform display background image; (2) marking the scale of the horizontal and vertical coordinates; (3) drawing The waveform data is mapped to the coordinate system, and the data points are connected in series through MoveTo(), LineTo() and other functions to complete the drawing of the optical signal waveform curve; (4) Continuously refresh the data to realize the real-time display of the optical signal waveform curve.

根据本发明一种光纤围栏单人测试方法的另一个实施例,手持终端扰动测试界面操作如图所示:在主界面点击【远程监控】进入远程监控界面,远程监控光纤围栏入侵监测系统界面,远程实时接收到的监测信号及当前的报警信息如图9(a)所示,如报警光缆序号、报警地点、报警时间、入侵扰动类型等。沿周界围栏逐点进行人为扰动,可实现对整条监测线路的扰动响应灵敏度测试,并及时对报警盲区进行更改绑设方式等处理。图10(a)(b)分别为无入侵扰动和有入侵扰动时接收并显示的信号曲线,入侵扰动发生在8.13km处。According to another embodiment of the single-person test method for fiber optic fences of the present invention, the operation of the hand-held terminal disturbance test interface is shown in the figure: click [Remote Monitoring] on the main interface to enter the remote monitoring interface, and remotely monitor the fiber optic fence intrusion monitoring system interface, The monitoring signal received remotely in real time and the current alarm information are shown in Figure 9(a), such as the alarm cable serial number, alarm location, alarm time, intrusion disturbance type, etc. Man-made disturbances along the perimeter fence point by point can realize the disturbance response sensitivity test of the entire monitoring line, and timely change the binding method of the alarm blind area. Figure 10(a)(b) are the received and displayed signal curves without intrusion disturbance and with intrusion disturbance respectively, and the intrusion disturbance occurred at 8.13km.

尽管这里参照本发明的多个解释性实施例对本发明进行了描述,但是,应该理解,本领域技术人员可以设计出很多其他的修改和实施方式,这些修改和实施方式将落在本申请公开的原则范围和精神之内。更具体地说,在本申请公开、附图和权利要求的范围内,可以对主题组合布局的组成部件和/或布局进行多种变型和改进。除了对组成部件和/或布局进行的变形和改进外,对于本领域技术人员来说,其他的用途也将是明显的。Although the invention has been described herein with reference to a number of illustrative embodiments thereof, it is to be understood that numerous other modifications and implementations can be devised by those skilled in the art which will fall within the scope of the disclosure disclosed in this application. within the scope and spirit of the principles. More specifically, within the scope of the disclosure, drawings and claims of the present application, various modifications and improvements can be made to the components and/or layout of the subject combination layout. In addition to variations and modifications to the component parts and/or layout, other uses will be apparent to those skilled in the art.

Claims (10)

1.一种光纤围栏远程标定方法,其特征在于包括以下步骤:1. A remote calibration method for an optical fiber fence, characterized in that it comprises the following steps: 利用光信号解调设备周期性注入绑设于围栏上或埋入地下的探测光缆中光脉冲信号;Use optical signal demodulation equipment to periodically inject optical pulse signals into the detection optical cables tied on the fence or buried underground; 工作者携带手持终端随机对探测光缆的不同位置进行扰动或破坏,光缆中传输的光脉冲信号相位及偏振信息发生改变,后向散射回来的被扰动调制后的光脉冲信号,经所述光信号解调设备接收进行光电和模数转换,并传输至处理主机;The worker carries a hand-held terminal to randomly disturb or destroy different positions of the detection cable, the phase and polarization information of the optical pulse signal transmitted in the cable changes, and the disturbed and modulated optical pulse signal back scattered back, passes through the optical signal The demodulation equipment receives and performs photoelectric and analog-to-digital conversion, and transmits to the processing host; 利用手持终端的GPS定位功能,获取当前手持终端的具体位置;Use the GPS positioning function of the handheld terminal to obtain the specific location of the current handheld terminal; 手持终端接入GPRS网络,利用GPRS网络建立与处理主机无线通信,将手持终端的GPS位置通过无线网络传输至处理主机;The handheld terminal accesses the GPRS network, uses the GPRS network to establish wireless communication with the processing host, and transmits the GPS position of the handheld terminal to the processing host through the wireless network; 处理主机将光信号解调设备接收到的光信号进行光电和模数转换,并对数据处理分析对扰动事件定位,结合手持终端的GPS位置一起录入数据库映射表,建立远程标定数据库;The processing host performs photoelectric and analog-to-digital conversion on the optical signal received by the optical signal demodulation device, and analyzes the data to locate the disturbance event, and enters the database mapping table together with the GPS position of the handheld terminal to establish a remote calibration database; 处理主机根据数据库映射表在光纤围栏入侵监测系统软件百度地图界面标注探测光缆位置并在报警定位时将报警对应位置区别标注。The processing host marks the location of the detection cable on the Baidu map interface of the fiber optic fence intrusion monitoring system software according to the database mapping table, and marks the corresponding location of the alarm when the alarm is located. 2.根据权利要求1所述的一种光纤围栏远程标定方法,其特征在于:所述处理主机和手持终端是通过Socket进行通信,采用客户端/服务器模式,手持终端作客户端,光纤围栏入侵监测系统作服务器端。2. The remote calibration method for a fiber optic fence according to claim 1, characterized in that: the processing host and the handheld terminal communicate through a Socket, using client/server mode, the handheld terminal is used as the client, and the fiber optic fence is intruded into The monitoring system is used as the server side. 3.根据权利要求2所述的一种光纤围栏远程标定方法,其特征在于:处理主机和手持终端通信具体方法是:3. The remote calibration method of a fiber optic fence according to claim 2, characterized in that: the specific method for processing the communication between the host computer and the handheld terminal is: 处理主机创建一个ServerSocket通信实例指定监听端口,调用accept()方法来获取连接的客户端Socket对象,并通过Socket输入输出流与客户端信息交互;The processing host creates a ServerSocket communication instance to specify the listening port, calls the accept() method to obtain the connected client Socket object, and interacts with the client information through the Socket input and output stream; 客户端创建一个Socket并指定服务器IP及端口号来初始化到服务器端的TCP连接,在SocketActivity中创建connectToServer()方法,读取服务器端发送的信息,并在AndroidMenifest.xml中添加用户权限,允许应用程序访问网络;The client creates a Socket and specifies the server IP and port number to initialize the TCP connection to the server, creates the connectToServer() method in SocketActivity, reads the information sent by the server, and adds user permissions in AndroidMenifest.xml to allow the application access to the Internet; 在服务器端创建一个TCP监听线程,循环监听是否有来自客户端的TCP连接请求,当收到连接请求,该线程会开启一个新的线程用于TCP通信,在新的线程中接收客户端发送的数据并作出消息响应,完成手持终端对光纤围栏入侵监测系统的控制交互和数据传输。Create a TCP listening thread on the server side, and loop to monitor whether there is a TCP connection request from the client. When receiving the connection request, the thread will open a new thread for TCP communication, and receive the data sent by the client in the new thread. And make a message response to complete the control interaction and data transmission of the handheld terminal to the fiber optic fence intrusion monitoring system. 4.根据权利要求1所述的一种光纤围栏远程标定方法,其特征在于:所述手持终端的GPS定位功能基于安卓地图定位SDK实现,当应用程序向定位SDK发起定位请求时,定位SDK会根据当前的GPS、基站、Wifi信息生成相对应的定位依据,并向定位服务器发送网络请求,定位服务器会根据请求的定位依据推算出对应的坐标位置,然后根据用户的定制信息,生成定位结果返回给定位SDK。4. The remote calibration method for a fiber optic fence according to claim 1, characterized in that: the GPS positioning function of the handheld terminal is implemented based on the Android map positioning SDK, and when the application program initiates a positioning request to the positioning SDK, the positioning SDK will Generate corresponding positioning basis based on current GPS, base station, and Wifi information, and send a network request to the positioning server. The positioning server will calculate the corresponding coordinate position according to the requested positioning basis, and then generate a positioning result according to the user's customized information and return Given positioning SDK. 5.根据权利要求4所述的一种光纤围栏远程标定方法,其特征在于:所述GPS定位信息获取功能的具体方法:注册GPS和网络使用权限,使用LocationClientOption()来设置定位SDK的定位方式,如设置打开GPS,设置是否需要地址信息,设置发起定位请求的间隔时间等,调用requestLocation(),监听定位结果。5. The remote calibration method of a fiber optic fence according to claim 4, characterized in that: the specific method of obtaining the GPS positioning information function: registering GPS and network access rights, using LocationClientOption () to set the positioning method of the positioning SDK , such as setting to turn on GPS, setting whether address information is required, setting the interval for initiating positioning requests, etc., calling requestLocation() to monitor the positioning results. 6.根据权利要求1所述的一种光纤围栏远程标定方法,其特征在于:手持终端远程建立标定数据库的实现过程如下:(1)首先确立光缆定位信息与实际地理位置映射表的格式,在服务器数据库中建立数据库映射表并运行数据库,确定映射表主键值和各字段数据格式,光缆定位信息与实际地理位置映射表包含光缆序号、对应光缆位置、经度、纬度、地理位置信息等;(2)服务器端光纤围栏入侵监测系统软件留出函数作为手持终端客户端软件访问服务器端数据库的接口,实现增加、删除、查询、修改等数据库操作功能;(3)手持终端客户端软件获取用户标定信息,如光缆序号、对应光缆位置、经度、纬度、地理位置信息等,将数据转换成XML格式,通过Socket发送;(4)服务器端光纤围栏入侵监测系统软件使用MSXML.DLL读写XML格式数据,解析相应的指令对数据库进行录入、增加、删除等功能操作,完成对光缆位置信息与实际地理位置映射数据表的建立;(5)服务器端光纤围栏入侵监测系统软件百度地图界面显示线缆走向标定结果,光纤围栏入侵监测系统软件通过访问数据库获取光缆位置信息与实际地理位置映射表各标定点的经纬度信息,调用百度地图Polyline()方法与Marker()方法实现,可实现探测光缆地理空间分布在百度地图上的标注。6. a kind of optical fiber fence remote calibration method according to claim 1, is characterized in that: the realization process of setting up the calibration database remotely by the handheld terminal is as follows: (1) at first establish the format of the optical cable positioning information and the actual geographic location mapping table, in Establish a database mapping table in the server database and run the database, determine the primary key value of the mapping table and the data format of each field, the optical cable positioning information and the actual geographic location mapping table include the optical cable serial number, corresponding optical cable position, longitude, latitude, geographic location information, etc.; ( 2) The server-side optical fiber fence intrusion monitoring system software reserves the function as an interface for the handheld terminal client software to access the server-side database, and realizes database operation functions such as adding, deleting, querying, and modifying; (3) The handheld terminal client software obtains user calibration Information, such as optical cable serial number, corresponding optical cable position, longitude, latitude, geographic location information, etc., convert the data into XML format and send it through Socket; (4) The server-side fiber optic fence intrusion monitoring system software uses MSXML.DLL to read and write XML format data , analyze the corresponding instructions to enter, add, delete and other functional operations on the database, and complete the establishment of the mapping data table between the optical cable position information and the actual geographic location; (5) The Baidu map interface of the server-side optical fiber fence intrusion monitoring system software displays the cable direction As a result of the calibration, the software of the fiber optic fence intrusion monitoring system obtains the location information of the fiber optic cable and the latitude and longitude information of each calibration point in the actual geographic location mapping table by accessing the database, and calls the Polyline() method and the Marker() method of Baidu map to realize the detection of the geographical distribution of the fiber optic cable. Annotation on Baidu map. 7.一种光纤围栏单人测试方法,其特征在于包括以下步骤:7. A single-person testing method for an optical fiber fence, characterized in that it comprises the following steps: 利用光信号解调设备周期性注入绑设于围栏上或埋入地下的探测光缆中光脉冲信号;Use optical signal demodulation equipment to periodically inject optical pulse signals into the detection optical cables tied on the fence or buried underground; 工作者携带手持终端随机对探测光缆的不同位置进行扰动或破坏,光缆中传输的光脉冲信号相位及偏振信息发生改变,后向散射回来的被扰动调制后的光脉冲信号,经所述光信号解调设备接收进行光电和模数转换,并传输至处理主机;The worker carries a hand-held terminal to randomly disturb or destroy different positions of the detection cable, the phase and polarization information of the optical pulse signal transmitted in the cable changes, and the disturbed and modulated optical pulse signal back scattered back, passes through the optical signal The demodulation equipment receives and performs photoelectric and analog-to-digital conversion, and transmits to the processing host; 处理主机对探测光缆中光信号进行分析处理,判断光信号有无发生改变并进行定位;The processing host analyzes and processes the optical signal in the detection cable, judges whether the optical signal has changed and locates it; 手持终端接入GPRS网络,利用GPRS网络建立与处理主机无线通信,处理主机通过无线网络将光信号实时数据及报警定位相关信息传输至手持终端;The handheld terminal is connected to the GPRS network, and uses the GPRS network to establish wireless communication with the processing host, and the processing host transmits the real-time data of optical signals and alarm location related information to the handheld terminal through the wireless network; 手持终端绘制显示光信号实时曲线,并将报警定位相关信息在手持终端界面显示;工作者通过监测手持终端界面光信号曲线有无变化及有无报警定位信息提示的探测点来判断该点光缆扰动响应灵敏度,实现光纤围栏扰动响应灵敏度单人测试。The handheld terminal draws and displays the real-time curve of the optical signal, and displays the relevant information of the alarm location on the interface of the handheld terminal; the worker judges the optical cable disturbance at this point by monitoring whether the optical signal curve on the interface of the handheld terminal changes and whether there is a detection point prompted by the alarm location information Response sensitivity, realize single-person test of fiber optic fence disturbance response sensitivity. 8.根据权利要求7所述的一种光纤围栏单人测试方法,其特征在于:所述处理主机和手持终端是通过Socket进行通信,采用客户端/服务器模式,手持终端作客户端,光纤围栏入侵监测系统作服务器端。8. The single-person test method for a fiber optic fence according to claim 7, wherein: the processing host and the handheld terminal communicate through Socket, adopt client/server mode, the handheld terminal is used as the client, and the fiber optic fence The intrusion detection system is used as the server side. 9.根据权利要求8所述的一种光纤围栏单人测试方法,其特征在于:处理主机和手持终端通信具体方法是:9. A single-person testing method for an optical fiber fence according to claim 8, characterized in that: the specific method for processing the communication between the host and the handheld terminal is: 处理主机创建一个ServerSocket通信实例指定监听端口,调用accept()方法来获取连接的客户端Socket对象,并通过Socket输入输出流与客户端信息交互;The processing host creates a ServerSocket communication instance to specify the listening port, calls the accept() method to obtain the connected client Socket object, and interacts with the client information through the Socket input and output stream; 客户端创建一个Socket并指定服务器IP及端口号来初始化到服务器端的TCP连接,在SocketActivity中创建connectToServer()方法,读取服务器端发送的信息,并在AndroidMenifest.xml中添加用户权限,允许应用程序访问网络;The client creates a Socket and specifies the server IP and port number to initialize the TCP connection to the server, creates the connectToServer() method in SocketActivity, reads the information sent by the server, and adds user permissions in AndroidMenifest.xml to allow the application access to the Internet; 在服务器端创建一个TCP监听线程,循环监听是否有来自客户端的TCP连接请求,当收到连接请求,该线程会开启一个新的线程用于TCP通信,在新的线程中接收客户端发送的数据并作出消息响应,完成手持终端对光纤围栏入侵监测系统的控制交互和监测数据传输。Create a TCP listening thread on the server side, and loop to monitor whether there is a TCP connection request from the client. When receiving the connection request, the thread will open a new thread for TCP communication, and receive the data sent by the client in the new thread. And make a message response to complete the control interaction and monitoring data transmission of the handheld terminal to the fiber optic fence intrusion monitoring system. 10.根据权利要求7所述的一种光纤围栏单人测试方法,其特征在于:所述手持终端在基于Socket通信连接方式接收到远程监测数据和报警定位信息后,在手持终端绘制显示光信号实时曲线,并将报警定位相关信息在手持终端界面显示;其信号曲线绘制的具体方法是:绘制波形显示背景图;标注横纵坐标的刻度;将波形数据映射到坐标系中,并通过MoveTo()、LineTo()等函数把数据点串联起来,完成对光信号波形曲线的绘制;不断对数据刷新,实现光信号波形曲线实时显示。10. A single person testing method for an optical fiber fence according to claim 7, characterized in that: after the handheld terminal receives the remote monitoring data and alarm location information based on the Socket communication connection mode, the handheld terminal draws and displays the optical signal real-time curve, and display the relevant information of alarm location on the interface of the handheld terminal; the specific method of drawing the signal curve is: draw the background image of the waveform display; mark the scale of the horizontal and vertical coordinates; map the waveform data to the coordinate system, and pass MoveTo( ), LineTo() and other functions connect the data points in series to complete the drawing of the optical signal waveform curve; continuously refresh the data to realize the real-time display of the optical signal waveform curve.
CN201610039958.0A 2016-01-21 2016-01-21 A kind of fiber fence is remotely demarcated and single method of testing Active CN105654683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610039958.0A CN105654683B (en) 2016-01-21 2016-01-21 A kind of fiber fence is remotely demarcated and single method of testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610039958.0A CN105654683B (en) 2016-01-21 2016-01-21 A kind of fiber fence is remotely demarcated and single method of testing

Publications (2)

Publication Number Publication Date
CN105654683A CN105654683A (en) 2016-06-08
CN105654683B true CN105654683B (en) 2018-01-23

Family

ID=56486462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610039958.0A Active CN105654683B (en) 2016-01-21 2016-01-21 A kind of fiber fence is remotely demarcated and single method of testing

Country Status (1)

Country Link
CN (1) CN105654683B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106781341B (en) * 2016-12-27 2020-04-14 公安部第三研究所 A vibration simulation system, method and vibration testing system
CN107367292A (en) * 2017-08-30 2017-11-21 桂林市光明科技实业有限公司 A kind of hand-held transmitting device of fiber-optic grating sensor geography information positioning
CN108022401B (en) * 2017-11-30 2020-09-15 南京南邮信息产业技术研究院有限公司 Perimeter protection system rapid layout method based on wireless sensor
CN108389343B (en) * 2018-02-05 2020-01-07 长飞光纤光缆股份有限公司 Defense area type optical fiber intrusion monitoring system capable of prompting intrusion track
CN109995426B (en) * 2019-03-25 2020-11-27 深圳供电局有限公司 Optical cable sheath length positioning method and optical fiber vibration detection system
CN110488254A (en) * 2019-08-28 2019-11-22 河北纤感科技有限公司 A kind of method of automatic Calibration fiber-optic vibration geography information
CN111024212B (en) * 2020-01-14 2020-09-25 辽宁国运通达通信集团有限公司 Method for converting optical cable distance into landmark position
CN111537144A (en) * 2020-05-27 2020-08-14 唐山兴邦管道工程设备有限公司 Pipeline leakage optical fiber monitoring auxiliary calibration system
CN112629821B (en) * 2020-11-17 2023-10-27 中国移动通信集团江苏有限公司 Methods, devices, electronic equipment and storage media for determining the location of optical cables
CN114910156B (en) * 2022-06-08 2024-11-08 上海市信息管线有限公司 A method, device, equipment and storage medium for monitoring disturbance of underground pipeline

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102519623A (en) * 2011-12-09 2012-06-27 中国一冶集团有限公司 Distributed stress/temperature sensing optical fiber coordinate locating device
CN103424137A (en) * 2013-08-06 2013-12-04 神华集团有限责任公司 Position calibration method and device for distributed optical fiber sensing system
CN203414094U (en) * 2013-08-06 2014-01-29 神华集团有限责任公司 Fiber switch value sensing system
CN203534614U (en) * 2013-08-06 2014-04-09 神华集团有限责任公司 Position calibration device used for distributed optical fiber sensing system
CN104359498A (en) * 2014-10-23 2015-02-18 深圳艾瑞斯通技术有限公司 Optical fiber vibrating position positioning method, device and system
CN104482858A (en) * 2014-12-24 2015-04-01 北京奥普科达科技有限公司 High-sensitivity and high-precision optical fiber identification and calibration method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008073347A1 (en) * 2006-12-07 2008-06-19 Venture Ad Astra, Llc Space-time calibration system and method
US8521028B2 (en) * 2009-03-22 2013-08-27 Universite Laval Method and system for high precision GPS applications

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102519623A (en) * 2011-12-09 2012-06-27 中国一冶集团有限公司 Distributed stress/temperature sensing optical fiber coordinate locating device
CN103424137A (en) * 2013-08-06 2013-12-04 神华集团有限责任公司 Position calibration method and device for distributed optical fiber sensing system
CN203414094U (en) * 2013-08-06 2014-01-29 神华集团有限责任公司 Fiber switch value sensing system
CN203534614U (en) * 2013-08-06 2014-04-09 神华集团有限责任公司 Position calibration device used for distributed optical fiber sensing system
CN104359498A (en) * 2014-10-23 2015-02-18 深圳艾瑞斯通技术有限公司 Optical fiber vibrating position positioning method, device and system
CN104482858A (en) * 2014-12-24 2015-04-01 北京奥普科达科技有限公司 High-sensitivity and high-precision optical fiber identification and calibration method and system

Also Published As

Publication number Publication date
CN105654683A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105654683B (en) A kind of fiber fence is remotely demarcated and single method of testing
CN101159068B (en) Information collection and processing method for land inspection and real-time monitoring by field equipment
US6604049B2 (en) Spatial information using system, system for obtaining information, and server system
US9183646B2 (en) Apparatus, systems and methods to generate electronic records of underground facility marking operations performed with GPS-enabled marking devices
US20100146454A1 (en) Position-dependent information representation system, position-dependent information representation control device, and position-dependent information representation method
US20130211718A1 (en) Apparatus and method for providing indoor navigation service
CN106600501B (en) Geological disaster group testing and group prevention method and platform for realizing same
CN105760454A (en) Method for dynamically measuring distribution density of city population in real time
CN108429791A (en) A kind of information popularization method and system
CA2715312C (en) Searchable electronic records of underground facility locate marking operations
CN111260182A (en) Method, device and storage medium for on-site checking and evidence obtaining of natural resource asset audit
CN101141683B (en) System and method for implementing landmark collection of geographic information system using mobile phone
CN106899932B (en) Method and system for monitoring activity population density
EP2889582A1 (en) Information management system
CN104753995A (en) Environmental quality data management method, management platform and wireless communication terminal
CN105657825A (en) Positioning method, mobile terminal, cloud server and positioning system
CN108763414B (en) Live-action display method and device, terminal equipment and storage medium
CN109408608A (en) A kind of positioning display method and device
KR101454191B1 (en) System and method for monitoring river bed variation using location based service
JP2014142194A (en) Device for measuring natural frequency of building using portable information terminal
CN115242769A (en) Remote field quality inspection system
CN112685761A (en) Software system for agricultural room surveying and mapping integration
CN108900609B (en) A kind of business approval method, server, client and storage medium
JP2008042610A (en) Information providing system, information providing server apparatus, terminal device, program used therefor, and information providing method
CN110443739A (en) A kind of system in long-range prospecting geomantic omen

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210416

Address after: 250013 Room 102, West unit, building 13, 81 Qianfo Shandong Road, Lixia District, Jinan City, Shandong Province

Patentee after: Jinan Century advantage Information Technology Co.,Ltd.

Address before: 611731 Chengdu province high tech Zone (West) West source Avenue, No. 2006

Patentee before: University of Electronic Science and Technology of China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230322

Address after: 701, Qilu Transportation Information Industrial Park, Building 2, United Fortune Plaza, 2177 Tianchen Road, Jinan Area, China (Shandong) Free Trade Pilot Zone, Jinan City, Shandong Province, 250000

Patentee after: Qilu Electric Technology (Shandong) scientific and technological achievement transformation Co.,Ltd.

Address before: 250013 Room 102, West unit, building 13, 81 Qianfo Shandong Road, Lixia District, Jinan City, Shandong Province

Patentee before: Jinan Century advantage Information Technology Co.,Ltd.