A kind of fiber fence is remotely demarcated and single method of testing
Technical field
The invention belongs to optical fiber sensing technology and application thereof, be specifically related to a kind of fiber fence and remotely demarcate and single method of testing.
Background technology
At present, optical fiber fence system is tamper-proof at circumference security protection, pipeline, are used widely in cable secure monitoring, large civil structure health monitoring field, system is based on the distributing optical fiber sensing mechanism of optical time domain reflection, the disturbing signals such as the vibration of optical cable perception, strain on monitoring path are converted into the change of the information such as the phase place of light, polarization, light intensity, and carry out opto-electronic conversion, at processing terminal to the disturbing signal analysis of collection, process, realize the detection of intrusion event, location and recognition function, and the actual time safety early warning and monitoring in the region that realizes setting up defences.
During due to optical fiber fence system warning location, the cable length at invasion disturbance point place can only be positioned, and user is it is desirable that actual geographic position and cable are numbered in practical application, bury the specifying informations such as scene underground, and cable length with actual set up defences zone length or distance generally inconsistent, specifically relevant with tying up the mode of setting, it is 2.5-3 with real space apart from actual ratio that such as optical cable carries out general when " S " type is laid, therefore Geographic mapping accurately is carried out, typically require and demarcate after optical cable laying and system building, namely produce simulation invasion by artificial disturbance along the line and the information that positioned by optical cable sets up mapping relations one by one with actual geographic position, in real time optical cable is positioned the concrete scene information input database that information is concerned about with actual geographic position and user, but calibration process centre field disturbance person and mapping table creator in Control Room determine the generation of certain some disturbance event by telephone communication, the information such as end and actual geographic location expression, describe due to both sides and the difference of subjective understanding often results in confusing communication, directly affect the efficiency of staking-out work and the accuracy of calibration information, on the other hand, optical fiber fence system needs to carry out all fronts test of disturbance response sensitivity after building, also Similar Problems can be run into, outfield disturbance side can't see alarm response interface, and response record person can only see disturbance response interface in Control Room, the information such as the situation of setting and disturbance dynamics tied up by the optical cable that can not accurately obtain this disturbance point place on-the-spot, the two also due to the subjective understanding differences such as intrusion event type and disturbance severe degree cause test unreliable information, and wastes time and energy in telephonic communication.Due to monitored area typically for up to several kilometers to tens kilometers, demarcate and test process relies on mobile communication, produce bigger economic expense, and it is different from the people of typing response condition to produce disturbance, in two people's communication process, unavoidably there is communication and understand difference.
Summary of the invention
It is an object of the invention to provide a kind of fiber fence remotely to demarcate and single method of testing, realize single long-range demarcation and disturbance test, the human cost in the application of fiber fence particularly long-distance optical fiber fence can be reduced, be greatly improved work efficiency and the accuracy of demarcation, test result.
For solving above-mentioned technical problem, the present invention by the following technical solutions:
A kind of long-range scaling method of fiber fence, comprises the following steps:
Utilize the injection of optical signal demodulation device periodically to tie up and be located on fence or light pulse signal in buried detecting optical cable;
Worker carries handheld terminal and the diverse location of detecting optical cable carries out disturbance or destruction at random, the light pulse signal phase place and the polarization information that transmit in optical cable change, light pulse signal after the disturbed modulation that back scattering is returned, receive through described optical signal demodulation equipment and carry out photoelectricity and analog digital conversion, and transmit to processing main frame;
Utilize the GPS positioning function of handheld terminal, obtain the particular location of current handheld terminal;
Handheld terminal accesses GPRS network, utilizes GPRS network to set up and processes hosi wireless communication, by the GPS location of handheld terminal by wireless network transmissions to processing main frame;
The optical signal that optical signal demodulation equipment is received by process main frame carries out photoelectricity and analog digital conversion, and disturbance event is positioned by Data Management Analysis, in conjunction with the GPS location input database mapping table together of handheld terminal, sets up long-range nominal data storehouse;
Process main frame and in fiber fence system for monitoring intrusion software Baidu's map interface mark detecting optical cable position and when reporting to the police location, warning correspondence position is distinguished mark according to Database Mapping table.
Further, described process main frame and handheld terminal are to be communicated by Socket, adopt customer end/server mode, and handheld terminal makes client, and fiber fence system for monitoring intrusion makes server end.
Further, processing the main frame concrete grammar that communicates with handheld terminal is:
Process main frame and create a ServerSocket communication instance appointment listening port, call accept () method to obtain the client Socket object of connection, and mutual by Socket iostream and client-side information;
Client one Socket of establishment given server IP and port numbers are initialised to the TCP of server end and connect, SocketActivity creates connectToServer () method, read the information that server end sends, and in AndroidMenifest.xml, adding user right, it is allowed to application program accesses network;
A TCP watcher thread is created at server end, circulation monitors whether there is the TCP connection request from client, when receiving connection request, this thread can open a new thread for TCP communication, new thread receive the data of client transmission and makes message response, completing the handheld terminal control to fiber fence system for monitoring intrusion and transmit with data alternately.
Further, the GPS positioning function of described handheld terminal realizes based on Android Orientation on map SDK, when application program initiates Location Request to location SDK, location SDK can generate corresponding basis on location according to current GPS, base station, Wifi information, and send network request to location-server, location-server can extrapolate the coordinate position of correspondence, the then customized information according to user according to the basis on location of request, generates positioning result and returns to location SDK.
Further, described GPS positions the concrete grammar of acquisition of information function: registration GPS and Web vector graphic authority, use LocationClientOption () that the location mode of location SDK is set, GPS is opened as arranged, arrange the need of address information, the interval time etc. initiating Location Request is set, calls requestLocation (), monitor positioning result.
Further, handheld terminal remotely set up nominal data storehouse to realize process as follows: (1) is first established optical cable location information and is mapped tableau format with actual geographic position, building database mapping table runtime database in server database, determining mapping table Major key and each field data form, optical cable location information comprises optical cable sequence number, corresponding optical cable position, longitude, latitude, geographical location information etc. with actual geographic position mapping table; (2) server end fiber fence system for monitoring intrusion software reserves function and accesses the interface of server-side database as handheld terminal client software, it is achieved the database manipulation functions such as increase, deletion, inquiry, amendment; (3) handheld terminal client software obtains user's calibration information, such as optical cable sequence number, corresponding optical cable position, longitude, latitude, geographical location information etc., converts the data into XML format, is sent by Socket; (4) server end fiber fence system for monitoring intrusion software uses MSXML.DLL to read and write XML format data, resolve corresponding instruction and data base is carried out the feature operations such as typing, increase, deletion, complete optical cable positional information and actual geographic position are mapped the foundation of tables of data; (5) server end fiber fence system for monitoring intrusion software Baidu map interface display cable moves towards calibration result, fiber fence system for monitoring intrusion software obtains the latitude and longitude information of optical cable positional information and the actual geographic position each fixed point of mapping table by accessing data base, call Baidu's map Polyline () method to realize with Marker () method, it may be achieved detecting optical cable geographic space distribution mark on Baidu's map. .
A kind of single method of testing of fiber fence, comprises the following steps:
Utilize the injection of optical signal demodulation device periodically to tie up and be located on fence or light pulse signal in buried detecting optical cable;
Worker carries handheld terminal and the diverse location of detecting optical cable carries out disturbance or destruction at random, the light pulse signal phase place and the polarization information that transmit in optical cable change, light pulse signal after the disturbed modulation that back scattering is returned, receive through described optical signal demodulation equipment and carry out photoelectricity and analog digital conversion, and transmit to processing main frame;
Process main frame to be analyzed optical signal in detecting optical cable processing, it is judged that optical signal is with or without changing and positioning;
Handheld terminal accesses GPRS network, utilizes GPRS network to set up and processes hosi wireless communication, processes main frame and is transmitted optical signal real time data and warning location related information to handheld terminal by wireless network;
Handheld terminal draws display optical signal real-time curve, and by warning location related information in handheld terminal interface display;
Worker has unchanged by monitoring handheld terminal interface optical signal curve and has alarm free location information alert to judge this optical cable disturbance response sensitivity, it is achieved the single test of fiber fence disturbance response sensitivity.
Further, described process main frame and handheld terminal are to be communicated by Socket, adopt customer end/server mode, and handheld terminal makes client, and fiber fence system for monitoring intrusion makes server end.
Further, processing the main frame concrete grammar that communicates with handheld terminal is:
Process main frame and create a ServerSocket communication instance appointment listening port, call accept () method to obtain the client Socket object of connection, and mutual by Socket iostream and client-side information;
Client one Socket of establishment given server IP and port numbers are initialised to the TCP of server end and connect, SocketActivity creates connectToServer () method, read the information that server end sends, and in AndroidMenifest.xml, adding user right, it is allowed to application program accesses network;
A TCP watcher thread is created at server end, circulation monitors whether there is the TCP connection request from client, when receiving connection request, this thread can open a new thread for TCP communication, new thread receive the data of client transmission and makes message response, completing the handheld terminal control to fiber fence system for monitoring intrusion and transmit with Monitoring Data alternately.
Further, described handheld terminal, after the mode that communicates to connect based on Socket receives long-range Monitoring Data and warning location information, draws display optical signal real-time curve at handheld terminal, and by warning location related information in handheld terminal interface display; The concrete grammar that its signal curve is drawn is: draw waveform display background figure; The scale of mark transverse and longitudinal coordinate; Wave data is mapped in coordinate system, and by functions such as MoveTo (), LineTo (), data point is together in series, complete the drafting to photosignal waveform curve; Constantly to Refresh Data, it is achieved photosignal waveform curve shows in real time.
Compared with prior art, the invention has the beneficial effects as follows: in fiber fence demarcation, test process, mobile phone application software is utilized at mobile phone terminal, by remote access alert interface information, it is manually entered demarcation and the function such as test information is combined with cellphone GPS locating module, GPRS wireless communication module, realize single long-range demarcation and disturbance test, the human cost in the application of fiber fence particularly long-distance optical fiber fence can be reduced, be greatly improved work efficiency and the accuracy of demarcation, test result.
Accompanying drawing explanation
Fig. 1 is the system schematic of the present invention long-range scaling method of a kind of fiber fence and the single method of testing of a kind of fiber fence.
Fig. 2 remotely demarcates and disturbance test application software APP flow chart.
Fig. 3 is handheld terminal of the present invention and fiber fence system for monitoring intrusion Socket communication flow diagram.
Fig. 4 is one fiber fence of the present invention long-range scaling method Baidu Orientation on map schematic diagram.
Fig. 5 is that handheld terminal is remotely demarcated and system remote nominal data storehouse, test terminal maps tableau format.
Fig. 6 is the data transmission format that handheld terminal remotely sets up nominal data storehouse mapping table.
Fig. 7 is remotely demarcated by handheld terminal and optical cable location information and actual geographic location information data storehouse mapping table that test terminal system is set up.
Fig. 8 is fiber fence system for monitoring intrusion server software Baidu map interface cable location mark final effect.
Fig. 9 (a) remotely demarcate for handheld terminal and disturbance test application software APP remote control.
Fig. 9 (b) remotely demarcates for handheld terminal and the positioning acquisition of disturbance test application software APP operates interface.
Figure 10 (a) remotely demarcates for handheld terminal and disturbance test terminal system remote monitoring interface fiber fence signal characteristic curve (without invasion disturbance event).
Figure 10 (b) remotely demarcates for handheld terminal and the signal curve (invasion disturbance event occur at 8.13km place) of disturbance test application software APP remote control.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated. Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 illustrates an embodiment of the present invention long-range scaling method of a kind of fiber fence: a kind of long-range scaling method of fiber fence, comprises the following steps:
Utilize the injection of optical signal demodulation device periodically to tie up and be located on fence or light pulse signal in buried detecting optical cable;
Worker carries handheld terminal and the diverse location of detecting optical cable carries out disturbance or destruction at random, the light pulse signal phase place and the polarization information that transmit in optical cable change, light pulse signal after the disturbed modulation that back scattering is returned, receive through described optical signal demodulation equipment and carry out photoelectricity and analog digital conversion, and transmit to processing main frame;
Utilize the GPS positioning function of handheld terminal, obtain the particular location of current handheld terminal;
Handheld terminal accesses GPRS network, utilizes GPRS network to set up and processes hosi wireless communication, by the GPS location of handheld terminal by wireless network transmissions to processing main frame;
The optical signal that optical signal demodulation equipment is received by process main frame carries out photoelectricity and analog digital conversion, and disturbance event is positioned by Data Management Analysis, in conjunction with the GPS location input database mapping table together of handheld terminal, sets up long-range nominal data storehouse;
Process main frame and in fiber fence system for monitoring intrusion software Baidu's map interface mark detecting optical cable position and when reporting to the police location, warning correspondence position is distinguished mark according to Database Mapping table.
As shown in Figure 2, realized the RFDC of handheld terminal and fiber fence system for monitoring intrusion by handheld terminal remote interaction interface based on ICP/IP protocol, GPS positioning function in combination with this handheld terminal, realize Android map GPS by this client remote interactive interface and position the acquisition of information and actual geographic positional information, position input database mapping table together with information with detecting optical cable, set up long-range nominal data storehouse. It is as follows that concrete software realizes flow process: (1) handheld terminal software interface initializes; (2) foundation is connected with the TCP of server end fiber fence system for monitoring intrusion, opens tcp data communication thread simultaneously; (3) call Baidu's map SDK interface and obtain GPS location related information; (4) artificial disturbance detecting optical cable is simulated optical cable disturbance event and obtains server end fiber fence system for monitoring intrusion invasion disturbance event location data by tcp data communication thread; (5) GPS is positioned information and detecting optical cable location information is converted to appointment XML format and is transmitted to server end fiber fence system for monitoring intrusion by TCP communication thread, by fiber fence system for monitoring intrusion executing instruction operations by calibration information input database mapping table.
Another embodiment according to the present invention long-range scaling method of a kind of fiber fence, described process main frame and handheld terminal are to be communicated by Socket, adopt client/server (Client/Server) pattern, handheld terminal makes client, and fiber fence system for monitoring intrusion makes server end.
Fig. 3 illustrates another preferred embodiment of the present invention long-range scaling method of a kind of fiber fence, processes the main frame concrete grammar that communicates with handheld terminal and is:
Process main frame and create a ServerSocket communication instance appointment listening port, call accept () method to obtain the client Socket object of connection, and mutual by Socket iostream and client-side information;
Client one Socket of establishment given server IP and port numbers are initialised to the TCP of server end and connect, SocketActivity creates connectToServer () method, read the information that server end sends, and in AndroidMenifest.xml, adding user right, it is allowed to application program accesses network;
A TCP watcher thread is created at server end, circulation monitors whether there is the TCP connection request from client, when receiving connection request, this thread can open a new thread for TCP communication, new thread receive the data of client transmission and makes message response, completing the handheld terminal control to fiber fence system for monitoring intrusion and transmit with data alternately.
Fig. 4 illustrates another embodiment of the present invention long-range scaling method of a kind of fiber fence, the GPS positioning function of described handheld terminal positions SDK based on Android map (Baidu's Android map) and realizes, when application program initiates Location Request to location SDK, location SDK can according to current GPS, base station, Wifi information generates corresponding basis on location, and send network request to location-server, location-server can extrapolate the coordinate position of correspondence according to the basis on location of request, then the customized information according to user, generate positioning result and return to location SDK.
Another embodiment according to the present invention long-range scaling method of a kind of fiber fence, described GPS positions the concrete grammar of acquisition of information function: registration GPS and Web vector graphic authority, use LocationClientOption () that the location mode of location SDK is set, GPS is opened as arranged, arrange the need of address information, the interval time etc. initiating Location Request is set, calls requestLocation (), monitor positioning result.
Another embodiment according to the present invention long-range scaling method of a kind of fiber fence, handheld terminal remotely set up nominal data storehouse to realize process as follows: (1) is first established optical cable location information and is mapped tableau format with actual geographic position, building database mapping table runtime database in server database, determine mapping table Major key and each field data form, as shown in Figure 5, optical cable location information comprises optical cable sequence number with actual geographic position mapping table, corresponding optical cable position, longitude, latitude, geographical location information etc., and the suitable data form of correspondence is set, (2) server end fiber fence system for monitoring intrusion software reserves function and accesses the interface of server-side database as handheld terminal client software, it is achieved the database manipulation functions such as increase, deletion, inquiry, amendment, (3) handheld terminal client software obtains user's calibration information, such as optical cable sequence number, corresponding optical cable position, longitude, latitude, geographical location information etc., convert the data into XML format, as shown in Figure 6,<DataBase>element represents a data storehouse operational order,<ADD>element represents data storehouse " increase " instruction, and the element such as<JD><WD>comprises the calibration information such as longitude, the latitude that data base to increase, and is sent by Socket, (4) server end fiber fence system for monitoring intrusion software uses MSXML.DLL to read and write XML format data, resolves corresponding instruction and data base carries out the feature operations such as typing, increase, deletion. Fig. 7 is that after demarcation completes, optical cable positional information maps tables of data with actual geographic position, the corresponding fixed point of each row, row [corresponding optical cable position] are for demarcating the distance (unit is km) on each point correspondence detecting optical cable, row [geographical location information], for demarcating the actual geographic positional information corresponding to each point, arrange Baidu's map coordinate information that [longitude] [latitude] is each point. Fig. 8 is that server end fiber fence system for monitoring intrusion software Baidu map interface cable moves towards calibration result, fiber fence system for monitoring intrusion software obtains the latitude and longitude information of optical cable positional information and the actual geographic position each fixed point of mapping table by accessing data base, call Baidu's map Polyline () method to realize with Marker () method, it may be achieved detecting optical cable geographic space distribution mark on Baidu's map.
Handheld terminal long-range calibration interface operating effect is as shown in the figure: clicks [positioning acquisition] at main interface and enters positioning acquisition interface, click Fig. 9 (b) [location] button, the longitude and latitude of current demarcation personnel or tester position and the optical cable location information that geographical location information is corresponding with disturbance point can be obtained, simultaneously can additional optical cable sequence number, region terminal, around photo site, click [more new data] in Fig. 9 (b) and by associated calibration Data Enter to monitoring system remote data base and set up optical cable positional information and actual geographic positional information mapping table.
Fig. 1 also show an embodiment of the present invention single method of testing of a kind of fiber fence: a kind of single method of testing of fiber fence, comprises the following steps:
Utilize the injection of optical signal demodulation device periodically to tie up and be located on fence or light pulse signal in buried detecting optical cable;
Worker carries handheld terminal and the diverse location of detecting optical cable carries out disturbance or destruction at random, the light pulse signal phase place and the polarization information that transmit in optical cable change, light pulse signal after the disturbed modulation that back scattering is returned, receive through described optical signal demodulation equipment and carry out photoelectricity and analog digital conversion, and transmit to processing main frame;
Process main frame to be analyzed optical signal in detecting optical cable processing, it is judged that optical signal is with or without changing and positioning;
Handheld terminal accesses GPRS network, utilizes GPRS network to set up and processes hosi wireless communication, processes main frame and is transmitted optical signal real time data and warning location related information to handheld terminal by wireless network;
Handheld terminal draws display optical signal real-time curve, and by warning location related information in handheld terminal interface display;
Worker has unchanged by monitoring handheld terminal interface optical signal curve and has alarm free location information alert to judge this optical cable disturbance response sensitivity, it is achieved the single test of fiber fence disturbance response sensitivity.
Another embodiment according to the present invention single method of testing of a kind of fiber fence, described process main frame and handheld terminal are to be communicated by Socket, adopt client/server (Client/Server) pattern, handheld terminal makes client, and fiber fence system for monitoring intrusion makes server end.
As shown in Figure 2, the RFDC of handheld terminal and fiber fence system for monitoring intrusion is realized by client remote interactive interface, it is achieved in the handheld terminal remote real-time access to fiber fence system for monitoring intrusion alert interface signal curve and warning message and representational role based on ICP/IP protocol. It is as follows that concrete software realizes flow process: (1) handheld terminal software interface initializes; (2) foundation is connected with the TCP of server end fiber fence system for monitoring intrusion, opens tcp data communication thread simultaneously; (3) handheld terminal software interface real-time rendering optical signal curve; (4) artificial disturbance detecting optical cable is simulated optical cable disturbance event and obtains server end fiber fence system for monitoring intrusion invasion disturbance event location data by tcp data communication thread; (4) report to the police and position information alert in handheld terminal interface.
Another embodiment of the single method of testing of a kind of fiber fence of Fig. 3 present invention, processing the main frame concrete grammar that communicates with handheld terminal is:
Process main frame and create a ServerSocket communication instance appointment listening port, call accept () method to obtain the client Socket object of connection, and mutual by Socket iostream and client-side information;
Client one Socket of establishment given server IP and port numbers are initialised to the TCP of server end and connect, SocketActivity creates connectToServer () method, read the information that server end sends, and in AndroidMenifest.xml, adding user right, it is allowed to application program accesses network;
A TCP watcher thread is created at server end, circulation monitors whether there is the TCP connection request from client, when receiving connection request, this thread can open a new thread for TCP communication, new thread receive the data of client transmission and makes message response, completing the handheld terminal control to fiber fence system for monitoring intrusion and transmit with data alternately.
Another embodiment according to the present invention single method of testing of a kind of fiber fence, the concrete grammar that handheld terminal signal curve is drawn is: (1) draws waveform display background figure; (2) scale of transverse and longitudinal coordinate is marked; (3) Wave data is mapped in coordinate system, and by functions such as MoveTo (), LineTo (), data point is together in series, complete the drafting to photosignal waveform curve; (4) constantly to Refresh Data, it is achieved photosignal waveform curve shows in real time.
Another embodiment according to the present invention single method of testing of a kind of fiber fence, handheld terminal disturbance test interface operates as shown in the figure: clicks [remotely monitoring] at main interface and enters remote control, remotely monitoring fiber fence system for monitoring intrusion interface, monitor signal that long-range real-time reception arrives and current warning message are such as shown in Fig. 9 (a), such as warning optical cable sequence number, warning place, time of fire alarming, invasion disturbance type etc. Peripherally fence pointwise carries out artificial disturbance, it may be achieved the disturbance response sensitivity test to whole piece Monitoring Line, and warning blind area is modified process such as in time tying up the mode of setting. Figure 10 (a) (b) is respectively without the signal curve receiving and showing when invading disturbance and have invasion disturbance, and invasion disturbance occurs at 8.13km place.
Although reference be made herein to invention has been described for the multiple explanatory embodiment of the present invention, but, it should be understood that those skilled in the art can be designed that a lot of other amendments and embodiment, these amendments and embodiment will drop within spirit disclosed in the present application and spirit. More specifically, disclosure, drawings and claims scope in, it is possible to building block and/or layout to theme composite configuration carry out multiple modification and improvement. Except the deformation that building block and/or layout are carried out and improving, to those skilled in the art, other purposes also will be apparent from.