Sampling mode adjusting method and device, computer equipment, medium and product
By adjusting the signal sampling mode in a distributed fiber sensor device, determining the adjustment state and switching mode according to the phase signal of the optical signal, the problem of high signal storage redundancy is solved, and the storage redundancy is reduced and the equipment efficiency is improved. Effect.
Patent Information
- Application Number
- CN202411427526.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-02-25
AI Technical Summary
In distributed fiber optic sensing devices, the redundancy of signal storage is high, affecting the efficiency of positioning and identification.
By adjusting the signal sampling mode, the adjustment state of the current mode is determined according to the phase signal of the optical signal, and the current mode is adjusted to the target mode if necessary. The signal sampling rate of the target mode is different from the current mode to reduce the redundancy of signal storage .
Without affecting the location and identification of the required effective signals, the redundancy of signal storage is reduced, the amount of stored signals and/or information is reduced, the storage pressure of distributed fiber optic sensing devices is reduced, and the signal sampling mode is improved Adjustment speed and efficiency.
Smart Images

Figure CN119519841A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of security technology, and in particular to a sampling mode adjustment method, device, computer equipment, medium and product. Background Art
[0002] With the development of security technology, distributed optical fiber sensing equipment has been widely used in various fields. In practical applications, distributed optical fiber sensing equipment locates and identifies disturbance signals in the external environment by converting external signals into optical signals, and in the process of positioning and identifying, it is necessary to store relevant signals or positioning information to intervene or defend against disturbance signals generated by the outside world and improve the safety of the external environment.
[0003] In the related art, the distributed optical fiber sensing device mainly collects external signals under a sampling mode corresponding to a high signal sampling rate, and locates and identifies the disturbance signal according to the optical signal corresponding to the external signal.
[0004] However, in the related art, during the process of locating and identifying disturbance signals, there is a problem of high redundancy in signal storage when storing related signals or information. Summary of the invention
[0005] Based on this, it is necessary to provide a sampling mode adjustment method, device, computer equipment, medium and product to address the above-mentioned technical problems. When storing relevant signals or information in the process of locating and identifying disturbance signals, the redundancy of signal storage can be reduced while ensuring that the effective signals required for positioning and identification are not affected.
[0006] In a first aspect, an embodiment of the present application provides a sampling mode adjustment method, the method comprising:
[0007] Under the current signal sampling mode, an optical signal corresponding to the original signal generated in the external environment is obtained;
[0008] determining an adjustment state of a current signal sampling mode according to a phase signal of the optical signal;
[0009] When the adjustment state is yes, the current signal sampling mode is adjusted to the target signal sampling mode; the signal sampling rate of the target signal acquisition mode is different from that of the current signal sampling mode;
[0010] The target signal sampling mode is used as the current signal sampling mode, and the step of acquiring the optical signal corresponding to the original signal generated in the external environment is continued.
[0011] In one of the embodiments, before determining the adjustment state of the current signal sampling mode according to the phase signal of the optical signal, the method further includes:
[0012] Demodulate the optical signal to obtain the original phase signal corresponding to the optical signal;
[0013] The original phase signal is preprocessed to obtain a phase signal of the optical signal.
[0014] In one embodiment, determining the adjustment state of the current signal sampling mode according to the phase signal of the optical signal includes:
[0015] When the phase signal is greater than the preset signal threshold, it is determined that the adjustment state of the current signal sampling mode is yes; the signal sampling rate of the current signal sampling mode is less than the signal sampling rate of the target signal acquisition mode;
[0016] When the phase signal is less than the signal threshold, it is determined that the adjustment state of the current signal sampling mode is no.
[0017] In one embodiment, the method further comprises:
[0018] When the adjustment state is no, the current signal sampling mode is maintained, and the step of acquiring the optical signal corresponding to the original signal generated in the external environment is continued until the adjustment state of the current signal sampling mode is yes, and the current signal sampling mode is adjusted to the target signal sampling mode.
[0019] In one embodiment, the optical signal comprises a valid optical signal; and the method further comprises:
[0020] Storing the phase signal corresponding to the effective optical signal;
[0021] According to the phase signal of the effective optical signal, a signal type corresponding to the original signal generating the effective optical signal is determined.
[0022] In one embodiment, the method further comprises:
[0023] According to the effective optical signal and the phase signal of the effective optical signal, the original signal for generating the effective optical signal is subjected to positioning processing to determine the positioning information of the original signal.
[0024] In a second aspect, an embodiment of the present application provides a sampling mode adjustment device, the device comprising:
[0025] A signal acquisition module, used to acquire an optical signal corresponding to an original signal generated in an external environment under a current signal sampling mode;
[0026] A state determination module, used to determine the adjustment state of the current signal sampling mode according to the phase signal of the optical signal;
[0027] A mode adjustment module, used for adjusting the current signal sampling mode to a target signal sampling mode when the adjustment state is yes; the signal sampling rate of the target signal acquisition mode is different from that of the current signal sampling mode;
[0028] The execution module is used to use the target signal sampling mode as the current signal sampling mode and continue to execute the step of acquiring the optical signal corresponding to the original signal generated in the external environment.
[0029] In a third aspect, an embodiment of the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of any one of the embodiments of the first aspect when executing the computer program.
[0030] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method of any embodiment in the above-mentioned first aspect are implemented.
[0031] In a fifth aspect, an embodiment of the present application further provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method of any embodiment of the first aspect above.
[0032] The above embodiment provides a sampling mode adjustment method, device, computer equipment, medium and product, the method comprising: in the case of a current signal sampling mode, obtaining an optical signal corresponding to an original signal generated in an external environment, determining an adjustment state of the current signal sampling mode according to a phase signal of the optical signal, and when the adjustment state is yes, adjusting the current signal sampling mode to a target signal sampling mode, taking the target signal sampling mode as the current signal sampling mode, and continuing to execute the step of obtaining an optical signal corresponding to the original signal generated in the external environment, wherein the signal sampling rate of the target signal acquisition mode is different from that of the current signal sampling mode; in the process of locating and identifying the disturbance signal, the above method can continuously adjust the signal sampling mode, and in the process of locating and identifying the disturbance signal, The original signal generated in the external environment is collected under different signal sampling modes to locate and identify the disturbance signal generated in the external environment. In this way, the amount of signal and / or information to be stored in different time periods can be dynamically changed. When storing relevant signals or positioning information, the redundancy of signal storage can be reduced while ensuring that the effective signal required for positioning and identification is not affected. That is, the amount of stored signals and / or information is reduced, and the storage pressure of distributed optical fiber sensing equipment is reduced. At the same time, the above method does not require human participation, thereby improving the speed and efficiency of signal sampling mode adjustment, and timely reducing the redundancy of signal storage, and can also reduce the adjustment error caused by human participation, which can improve the correctness of signal sampling mode adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] FIG1 is a schematic flow chart of a sampling mode adjustment method in one embodiment;
[0034] FIG2 is a schematic flow chart of a sampling mode adjustment method in another embodiment;
[0035] FIG3 is a schematic flow chart of a sampling mode adjustment method in another embodiment;
[0036] FIG4 is a schematic flow chart of a sampling mode adjustment method in another embodiment;
[0037] FIG5 is a structural block diagram of a sampling mode adjustment device in one embodiment;
[0038] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0040] In the field of security, disturbance signals sent by enemies or intruders are often generated in the external environment, which will affect our security. Therefore, it is necessary to accurately locate and identify the disturbance signals to facilitate our intervention or defense against the disturbance signals and ensure that we are in a safe environment. Among them, distributed fiber optic sensing equipment is implemented using fiber optic sensing technology. As an emerging security technology, fiber optic sensing technology has the advantages of small size, corrosion resistance, anti-electromagnetic interference, high sensitivity, and long-distance monitoring that are unique to optical fibers themselves, so distributed fiber optic sensing equipment is widely used in the field of security.
[0041] In practical applications, the distributed optical fiber sensing device locates and identifies the disturbance signal in the external environment by converting the external signal into an optical signal, and in the process of positioning and identifying, it is necessary to store the relevant signal (including at least one of the optical signal and the phase signal) and / or the positioning information to intervene or defend against the disturbance signal generated by the outside world and improve the safety of the external environment. In the related art, the distributed optical fiber sensing device mainly collects the external signal under the sampling mode corresponding to the high signal sampling rate, and locates and identifies the disturbance signal according to the optical signal corresponding to the external signal. However, in the process of locating and identifying the disturbance signal in the related art, there is a problem of high redundancy of signal storage. Based on this, the embodiment of the present application provides a sampling mode adjustment method, which can reduce the redundancy of signal storage while storing the relevant signal or information in the process of locating and identifying the disturbance signal, while ensuring that the effective signal required for positioning and identification is not affected.
[0042] The sampling mode adjustment method provided in the embodiment of the present application can be applied to a distributed optical fiber sensing device. The above-mentioned distributed optical fiber sensing device can be a distributed optical fiber acoustic wave sensing device, an ultra-low noise single-frequency laser, a signal coherent demodulation device, etc. The specific form of the distributed optical fiber sensing device is not limited in this embodiment. The following embodiment takes the distributed optical fiber sensing device as the execution subject of the sampling mode adjustment method to introduce the specific process of the sampling mode adjustment method.
[0043] As shown in FIG1 , it is a flow chart of a sampling mode adjustment method provided in an embodiment of the present application. The method can be implemented by the following steps:
[0044] S100: Under the current signal sampling mode, an optical signal corresponding to an original signal generated in an external environment is obtained.
[0045] The original signal may be a disturbance signal or a non-disturbance signal. Meanwhile, the current signal sampling mode may be a sampling mode corresponding to a high signal sampling rate or a sampling mode corresponding to a low signal sampling rate.
[0046] Specifically, the distributed optical fiber sensing device is in the current signal sampling mode, and can collect the original signal generated in the external environment in real time, and convert the original signal into an optical signal, that is, an optical signal corresponding to the original signal.
[0047] S200: Determine an adjustment state of a current signal sampling mode according to a phase signal of an optical signal.
[0048] In practical applications, the distributed optical fiber sensing device can first obtain the phase signal of the optical signal, and then determine the adjustment state of the current signal sampling mode according to the phase signal of the optical signal.
[0049] The phase signal of the optical signal may be obtained by performing conversion processing, analysis processing and / or matching processing on the optical signal.
[0050] In one embodiment, the method of determining the adjustment state of the current signal sampling mode according to the phase signal of the optical signal can be to pre-train an algorithm model, and then input the phase signal of the optical signal into the algorithm model, and the algorithm model outputs the adjustment state of the current signal sampling mode.
[0051] In another embodiment, the method for determining the adjustment state of the current signal sampling mode based on the phase signal of the optical signal can also be to search for the phase signal of the optical signal in the mapping relationship between different phase signals and different adjustment states, and determine the adjustment state corresponding to the phase signal that matches the phase signal of the optical signal as the adjustment state of the current signal sampling mode.
[0052] S300: When the adjustment state is yes, the current signal sampling mode is adjusted to a target signal sampling mode; the signal sampling rates of the target signal sampling mode and the current signal sampling mode are different.
[0053] In the embodiment of the present application, when it is determined that the adjustment state of the current signal sampling mode is yes, it indicates that the phase signal of the original signal is large and there may be an abnormality. At this time, the current signal sampling mode needs to be adjusted, and the current signal sampling mode can be further adjusted to the target signal sampling mode. Among them, the above-mentioned possible abnormality can be understood as the original signal may be a valid disturbance signal, or the original signal may be an invalid disturbance signal.
[0054] S400: Taking the target signal sampling mode as the current signal sampling mode, and continuing to execute the step of acquiring the optical signal corresponding to the original signal generated in the external environment.
[0055] Furthermore, the distributed optical fiber sensing device may use the target signal sampling mode as the current signal sampling mode, and continue to execute the above steps S100-S300 in a loop.
[0056] The technical solution in the embodiment of the present application is to obtain an optical signal corresponding to the original signal generated in the external environment under the current signal sampling mode, determine the adjustment state of the current signal sampling mode according to the phase signal of the optical signal, and when the adjustment state is yes, adjust the current signal sampling mode to the target signal sampling mode, use the target signal sampling mode as the current signal sampling mode, and continue to execute the step of obtaining the optical signal corresponding to the original signal generated in the external environment, wherein the signal sampling rate of the target signal acquisition mode is different from that of the current signal sampling mode; in the process of locating and identifying the disturbance signal, the above method can continuously adjust the signal sampling mode, and collect external disturbance signals under different signal sampling modes. The original signal generated in the environment is used to locate and identify the disturbance signal generated in the external environment, so that the amount of signal and / or information to be stored in different time periods can be dynamically changed. When storing relevant signals or positioning information, under the premise of ensuring that the effective signals required for positioning and identification are not affected, the redundancy of signal storage can be reduced, that is, the amount of stored signals and / or information can be reduced, and the storage pressure of distributed optical fiber sensing equipment can be reduced; at the same time, the above method does not require human participation, thereby improving the speed and efficiency of signal sampling mode adjustment, and timely reducing the redundancy of signal storage, and can also reduce the adjustment error caused by human participation, which can improve the correctness of signal sampling mode adjustment.
[0057] The process of obtaining the phase signal of the optical signal is described below. In one embodiment, before executing the step in S200 above, as shown in FIG2 , the method may further include the following steps:
[0058] S500: Demodulate the optical signal to obtain an original phase signal corresponding to the optical signal.
[0059] In practical applications, a distributed optical fiber sensing device can pre-train a demodulation model, and then input the optical signal into the demodulation model. The demodulation model demodulates the optical signal and outputs the original phase signal corresponding to the optical signal.
[0060] Optionally, the above demodulation model can be implemented by at least one of a convolutional neural network model, a fully connected neural network model, a long short-term memory neural network model, a recurrent neural network model, a residual neural network model, etc.
[0061] In the embodiment of the present application, the distributed optical fiber sensing device can use a phase demodulation algorithm to demodulate the optical signal to obtain the original phase signal corresponding to the optical signal. Optionally, the above phase demodulation algorithm can be an optical phase demodulation algorithm based on a 3x3 coupler, a heterodyne demodulation algorithm, a phase-generated carrier demodulation algorithm, etc., which is not limited in the embodiment of the present application.
[0062] S600: Preprocess the original phase signal to obtain a phase signal of the optical signal.
[0063] The distributed optical fiber sensing device may adopt a denoising algorithm to preprocess the original phase signal to obtain a phase signal of the optical signal. Optionally, the denoising algorithm may include at least one of a wavelet transform denoising algorithm, a median filter denoising algorithm, a Wiener filter denoising algorithm, an empirical mode decomposition denoising algorithm, a smoothing filter algorithm, etc.
[0064] The technical solution in the embodiment of the present application can demodulate the optical signal to obtain the original phase signal corresponding to the optical signal, so as to determine the fluctuation of the original signal based on the original phase signal, and provide reference information for adjusting the signal sampling mode. The original phase signal can be further pre-processed to obtain the precise phase signal of the optical signal. On this basis, it can provide reference information for precise adjustment of the signal sampling mode based on the precise phase signal.
[0065] The process of determining the adjustment state of the current signal sampling mode according to the phase signal of the optical signal is described below. In one embodiment, the steps in S200 above may include the following steps: when the phase signal is greater than a preset signal threshold, determining that the adjustment state of the current signal sampling mode is yes; when the phase signal is less than the signal threshold, determining that the adjustment state of the current signal sampling mode is no; wherein the signal sampling rate of the current signal sampling mode is less than the signal sampling rate of the target signal acquisition mode.
[0066] In an embodiment of the present application, the phase signal of the optical signal can represent the amplitude or intensity of the original signal corresponding to the optical signal. Taking the case where the signal sampling rate of the current signal sampling mode is less than the signal sampling rate of the target signal acquisition mode, the distributed optical fiber sensing device can determine whether the phase signal of the optical signal is greater than a preset signal threshold. When the phase signal of the optical signal is greater than the signal threshold, the adjustment state of the current signal sampling mode is determined to be yes. Optionally, the signal threshold can be user-defined or determined based on historical experience values.
[0067] Further, when it is determined that the adjustment state of the current signal sampling mode is yes, first warning information may be output to remind the user that the current signal sampling mode needs to be adjusted to the target signal sampling mode.
[0068] At the same time, when it is determined that the phase signal of the optical signal is less than the signal threshold, it is determined that the adjustment state of the current signal sampling mode is no.
[0069] Exemplarily, as shown in FIG3 , loop 2 is the process of maintaining the current signal sampling mode, and loop 3 is the process of maintaining the target signal sampling mode. Condition 1 is that the phase signal of the optical signal is less than the signal threshold, and condition 2 is that the phase signal of the optical signal is greater than the preset signal threshold. Correspondingly, loop 1 represents the process of switching back and forth between the current signal sampling mode and the target signal sampling mode.
[0070] According to the technical solution in the embodiment of the present application, when the phase signal is greater than a preset signal threshold, the adjustment state of the current signal sampling mode is determined to be yes, and when the phase signal is less than the signal threshold, the adjustment state of the current signal sampling mode is determined to be no; the above method can determine the adjustment state of the current signal sampling mode according to the size relationship between the phase signal of the optical signal and the preset signal threshold, so as to flexibly adjust the signal sampling mode to the optimal sampling mode, so that the amount of data collected during the positioning and identification process is small and no valid signal is missing. At the same time, the processing process does not require the participation of complex algorithms, and the processing process is relatively simple, thereby improving the speed and efficiency of determining the adjustment state of the current signal sampling mode, and can also reduce the amount of collected data, so as to help reduce the errors generated in the positioning and identification processes, and improve the efficiency of data storage during the sampling process.
[0071] In one embodiment, after the step in S200 is executed, the method may further include: when the adjustment state is no, maintaining the current signal sampling mode, continuing to execute the step of acquiring the optical signal corresponding to the original signal generated in the external environment, until the adjustment state of the current signal sampling mode is yes, and adjusting the current signal sampling mode to the target signal sampling mode.
[0072] In an embodiment of the present application, when it is determined that the adjustment state of the current signal sampling mode is no, it indicates that the phase signal of the original signal is small and there is no abnormality in the original signal. At this time, there is no need to adjust the current signal sampling mode. The current signal sampling mode is maintained and the step of obtaining the optical signal corresponding to the original signal generated in the external environment is continued until the adjustment state of the current signal sampling mode is yes, and the current signal sampling mode is adjusted to the target signal sampling mode.
[0073] In practical applications, the above sampling mode adjustment method can be implemented through a cyclic processing process, that is, a process of switching back and forth between the target signal sampling mode and the current signal sampling mode. The cyclic processing process can be executed all the time, but the triggering method for stopping the cyclic processing process under certain circumstances can be a passive triggering method.
[0074] It should be noted here that if the adjustment status of the target signal sampling mode is the second warning information, the user is reminded that the target signal sampling mode needs to be adjusted to the current signal sampling mode.
[0075] The technical solution in the embodiment of the present application can maintain the current signal sampling mode when the adjustment state of the current signal sampling mode is no to reduce the amount of sampled data. This not only reduces the storage pressure of the distributed optical fiber sensing equipment, but also does not affect the collection of effective signals required for locating and identifying disturbance signals generated in the external environment. In other words, it does not affect the effective signals required for positioning and identification, and can also reduce the redundancy of data storage.
[0076] In one embodiment, the optical signal includes a valid optical signal; after performing the step in S600, as shown in FIG4 , the method may further include the following steps:
[0077] S700: Store the phase signal corresponding to the effective optical signal.
[0078] In practical applications, optical signals may include invalid optical signals and valid optical signals; invalid optical signals may be optical signals acquired in the current signal acquisition mode, that is, signals that are not helpful for positioning and identification; the above-mentioned valid optical signals may be optical signals acquired in the target signal acquisition mode, that is, valid signals required for positioning and identification.
[0079] Specifically, the distributed optical fiber sensing device can demodulate the effective optical signal to obtain a phase signal corresponding to the second optical signal, and further, can store the phase signal corresponding to the effective optical signal.
[0080] S800: Determine, according to the phase signal of the effective optical signal, a signal type corresponding to an original signal for generating the effective optical signal.
[0081] In an embodiment of the present application, in order to reduce the amount of data processed during positioning and identification and to increase the accuracy and speed of positioning and identification, the signal type corresponding to the original signal that generates the effective optical signal can be determined based on the phase signal of the effective optical signal.
[0082] Among them, the distributed optical fiber sensing device can search for the phase signal of the effective optical signal in the mapping relationship between different phase signals and different signal types, and determine the signal type corresponding to the phase signal that matches the phase signal of the effective optical signal in the mapping relationship as the signal type corresponding to the original signal of the effective optical signal.
[0083] In addition, the distributed optical fiber sensing device can also pre-train a recognition model, and then input the phase signal of the effective optical signal into the recognition model, and the recognition model outputs the disturbance signal type of the original signal of the effective optical signal. Optionally, the above recognition model can be composed of at least one of a convolutional neural network model, a fully connected neural network model, a long short-term memory neural network model, a recurrent neural network model, a residual neural network model, etc.
[0084] In one embodiment, after executing the step in S600, the method may further include: performing positioning processing on an original signal that generates the effective optical signal according to the effective optical signal and a phase signal of the effective optical signal, and determining positioning information of the original signal.
[0085] In practical applications, the distributed optical fiber sensing device can perform positioning processing on the original signal that generates the effective optical signal based on the effective optical signal and the phase signal of the effective optical signal to determine the positioning information of the original signal.
[0086] In one embodiment, the distributed optical fiber sensing device can pre-train a positioning algorithm model, and then input both the effective optical signal and the phase signal of the effective optical signal into the positioning algorithm model. The positioning algorithm model performs positioning processing on the original signal that generates the effective optical signal to obtain the positioning information of the original signal.
[0087] In another embodiment, the distributed optical fiber sensing device can perform time division processing on the effective optical signal and the phase signal of the effective optical signal to complete the positioning processing of the original signal that generates the effective optical signal and obtain the positioning information of the original signal.
[0088] This embodiment can perform positioning processing on the original signal that generates the effective optical signal based on the effective optical signal and the phase signal of the effective optical signal, and determine the positioning information of the original signal, so as to be able to issue an early warning in time based on the positioning information, prompting the user to perform corresponding operations on the disturbance signal in the external environment, thereby reducing the loss or harm caused by the interference to us.
[0089] The technical solution in the embodiment of the present application can store the phase signal corresponding to the effective optical signal for use in subsequent analysis. At the same time, the signal type corresponding to the original signal that generates the effective optical signal can be determined based on the phase signal of the effective optical signal, so that effective measures can be taken to intervene or defend against interference based on the signal type corresponding to the original signal generated in the environment, thereby reducing the loss or harm caused by the interference to us.
[0090] In one embodiment, the present application also provides a sampling mode adjustment method, which is applied to a distributed optical fiber sensing device, and the method includes the following process:
[0091] (1) Under the current signal sampling mode, obtain the optical signal corresponding to the original signal generated in the external environment;
[0092] (2) Demodulate the optical signal to obtain the original phase signal corresponding to the optical signal;
[0093] (3) Preprocessing the original phase signal to obtain the phase signal of the optical signal;
[0094] (4) determining the adjustment state of the current signal sampling mode according to the phase signal of the optical signal;
[0095] (5) When the phase signal is greater than a preset signal threshold, it is determined that the adjustment state of the current signal sampling mode is yes; the signal sampling rate of the current signal sampling mode is less than the signal sampling rate of the target signal acquisition mode; when the phase signal is less than the signal threshold, it is determined that the adjustment state of the current signal sampling mode is no;
[0096] (6) When the adjustment state is yes, the current signal sampling mode is adjusted to the target signal sampling mode, and the target signal sampling mode is used as the current signal sampling mode, and the step of acquiring the optical signal corresponding to the original signal generated in the external environment is continued; the signal sampling rate of the target signal acquisition mode is different from that of the current signal sampling mode;
[0097] (7) When the adjustment state is no, the current signal sampling mode is maintained, and the step of acquiring the optical signal corresponding to the original signal generated in the external environment is continued until the adjustment state of the current signal sampling mode is yes, and the current signal sampling mode is adjusted to the target signal sampling mode; the optical signal includes a valid optical signal;
[0098] (8) Storing the phase signal corresponding to the effective optical signal;
[0099] (9) determining the signal type corresponding to the original signal that generates the effective optical signal according to the phase signal of the effective optical signal;
[0100] (10) Based on the effective optical signal and the phase signal of the effective optical signal, the original signal that generates the effective optical signal is positioned and processed to determine the positioning information of the original signal.
[0101] The execution process of the above (1) to (10) can be specifically referred to the description of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0102] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0103] Based on the same inventive concept, the embodiment of the present application also provides a sampling mode adjustment device for implementing the sampling mode adjustment method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more sampling mode adjustment device embodiments provided below can refer to the limitations of the sampling mode adjustment method above, and will not be repeated here.
[0104] In one embodiment, FIG5 is a schematic diagram of the structure of a sampling mode adjustment device in an embodiment of the present application. The sampling mode adjustment device provided in the embodiment of the present application can be applied to a distributed optical fiber sensing device. As shown in FIG5, the sampling mode adjustment device in the embodiment of the present application may include: a signal acquisition module 11, a state determination module 12, a mode adjustment module 13 and an execution module 14, wherein:
[0105] The signal acquisition module 11 is used to acquire the optical signal corresponding to the original signal generated in the external environment in the current signal sampling mode;
[0106] A state determination module 12, used to determine the adjustment state of the current signal sampling mode according to the phase signal of the optical signal;
[0107] The mode adjustment module 13 is used to adjust the current signal sampling mode to the target signal sampling mode when the adjustment state is yes; the signal sampling rate of the target signal acquisition mode is different from that of the current signal sampling mode;
[0108] The execution module 14 is used to use the target signal sampling mode as the current signal sampling mode and continue to execute the step of acquiring the optical signal corresponding to the original signal generated in the external environment.
[0109] The sampling mode adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned sampling mode adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0110] In one embodiment, the sampling mode adjustment device further includes: a write position acquisition unit and a write unit, wherein:
[0111] A demodulation processing unit, used to demodulate the optical signal to obtain an original phase signal corresponding to the optical signal;
[0112] The preprocessing unit is used to preprocess the original phase signal to obtain a phase signal of the optical signal.
[0113] The sampling mode adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned sampling mode adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0114] In one embodiment, the state determination module 12 is specifically configured to:
[0115] When the phase signal is greater than the preset signal threshold, it is determined that the adjustment state of the current signal sampling mode is yes; the signal sampling rate of the current signal sampling mode is less than the signal sampling rate of the target signal acquisition mode;
[0116] When the phase signal is less than the signal threshold, it is determined that the adjustment state of the current signal sampling mode is no.
[0117] The sampling mode adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned sampling mode adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0118] In one embodiment, the sampling mode adjustment device further includes:
[0119] When the adjustment state is no, the current signal sampling mode is maintained, and the step of acquiring the optical signal corresponding to the original signal generated in the external environment is continued until the adjustment state of the current signal sampling mode is yes, and the current signal sampling mode is adjusted to the target signal sampling mode.
[0120] The sampling mode adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned sampling mode adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0121] In one embodiment, the optical signal includes a valid optical signal; the sampling mode adjustment device further includes: a signal storage module and a type module, wherein:
[0122] A signal storage module, used for storing a phase signal corresponding to a valid optical signal;
[0123] The type module is used to determine the signal type corresponding to the original signal that generates the effective optical signal according to the phase signal of the effective optical signal.
[0124] The sampling mode adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned sampling mode adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0125] In one embodiment, the sampling mode adjustment device further includes: a positioning processing module, wherein:
[0126] According to the effective optical signal and the phase signal of the effective optical signal, the original signal for generating the effective optical signal is subjected to positioning processing to determine the positioning information of the original signal.
[0127] The sampling mode adjustment device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned sampling mode adjustment method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0128] The specific definition of the sampling mode adjustment device can be found in the definition of the sampling mode adjustment method above, which will not be repeated here. Each module in the above-mentioned sampling mode adjustment device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0129] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG6 . The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide processing capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the phase signal of the optical signal, the positioning information of the optical signal and the original signal. The network interface of the computer device is used to communicate with an external endpoint via a network connection. When the computer program is executed by the processor, a sampling mode adjustment method is implemented.
[0130] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0131] In one embodiment, a computer device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the technical solution in the above-mentioned sampling mode adjustment method embodiment of the present application is implemented. The implementation principle and technical effect are similar and will not be repeated here.
[0132] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the technical solution of the sampling mode adjustment method mentioned above in the present application is implemented. The implementation principle and technical effect are similar and will not be repeated here.
[0133] In one embodiment, a computer program product is also provided, including a computer program. When the computer program is executed by a processor, the technical solution of the sampling mode adjustment method of the present application is implemented. The implementation principle and technical effect are similar and will not be repeated here.
[0134] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0136] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A sampling mode adjustment method, characterized in that: The method comprises: Under the current signal sampling mode, an optical signal corresponding to the original signal generated in the external environment is obtained; Determining an adjustment state of the current signal sampling mode according to a phase signal of the optical signal; When the adjustment state is yes, the current signal sampling mode is adjusted to a target signal sampling mode; the signal sampling rate of the target signal sampling mode is different from that of the current signal sampling mode; The target signal sampling mode is used as the current signal sampling mode, and the step of acquiring the optical signal corresponding to the original signal generated in the external environment is continued.
2. The method according to claim 1, characterized in that Before determining the adjustment state of the current signal sampling mode according to the phase signal of the optical signal, the method further includes: Demodulating the optical signal to obtain an original phase signal corresponding to the optical signal; The original phase signal is preprocessed to obtain a phase signal of the optical signal.
3. The method according to claim 1 or 2, characterized in that: The step of determining the adjustment state of the current signal sampling mode according to the phase signal of the optical signal comprises: When the phase signal is greater than a preset signal threshold, determining that the adjustment state of the current signal sampling mode is yes; the signal sampling rate of the current signal sampling mode is less than the signal sampling rate of the target signal acquisition mode; When the phase signal is less than the signal threshold, it is determined that the adjustment state of the current signal sampling mode is no.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: When the adjustment state is no, the current signal sampling mode is maintained, and the step of acquiring the optical signal corresponding to the original signal generated in the external environment is continued until the adjustment state of the current signal sampling mode is yes, and the current signal sampling mode is adjusted to the target signal sampling mode.
5. The method according to claim 1 or 2, characterized in that: The optical signal comprises a valid optical signal; and the method further comprises: Storing the phase signal corresponding to the effective optical signal; A signal type corresponding to an original signal generating the effective optical signal is determined according to the phase signal of the effective optical signal.
6. The method according to claim 5, characterized in that The method further comprises: According to the effective optical signal and the phase signal of the effective optical signal, positioning processing is performed on the original signal that generates the effective optical signal to determine the positioning information of the original signal.
7. A sampling mode adjustment device, characterized in that: The device comprises: A signal acquisition module, used to acquire an optical signal corresponding to an original signal generated in an external environment under a current signal sampling mode; A state determination module, used to determine the adjustment state of the current signal sampling mode according to the phase signal of the optical signal; A mode adjustment module, configured to adjust the current signal sampling mode to a target signal sampling mode when the adjustment state is yes; the target signal acquisition mode has a different signal sampling rate from the current signal sampling mode; The execution module is used to use the target signal sampling mode as the current signal sampling mode and continue to execute the step of acquiring the optical signal corresponding to the original signal generated in the external environment.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.