Temperature correction method for improving laser coding time precision
The time compensation parameters of the laser decoding module are adjusted in real time through the FPGA processor and the temperature measurement chip, which solves the problems of low time accuracy and poor anti-interference ability in laser decoding technology, and achieves higher time measurement accuracy and anti-interference ability.
Patent Information
- Application Number
- CN202411469416.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-02-11
AI Technical Summary
In the existing laser decoding technology, the time accuracy is low and the anti-interference ability is poor, making it difficult to maintain the high frequency stability of the laser decoding module when the ambient temperature changes.
Through the FPGA processor, temperature measurement chip, crystal oscillator and signal output circuit, the working environment temperature of the crystal oscillator inside the laser decoding module is measured in real time, and the timing time compensation parameters are adjusted in real time according to the frequency-temperature relationship curve to ensure laser decoding The module clocks and decodes at the exact clock frequency.
The time measurement accuracy and anti-interference ability of the laser decoding module are improved, its adaptability under ambient temperature changes, and the demand for high-frequency stability crystal oscillators is reduced, which improves economicality.
Smart Images

Figure CN119415830A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of photoelectric detection, and in particular relates to a temperature correction method for improving the time accuracy of laser encoding. Background Art
[0002] Laser detection devices mainly rely on laser information to capture, identify, track and transmit information. Currently, laser angle deception interference and laser high repetition rate interference are mainly used to implement laser interference on laser detection devices.
[0003] Laser coding technology is the main way for laser detection devices to combat laser angle deception, laser high repetition rate, etc. Time accuracy is an important indicator of laser coding, and laser detection devices have increasingly higher requirements for laser coding time accuracy. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] The present invention is to solve the problems of low time accuracy and poor anti-interference ability of current laser decoding, and designs a temperature correction method to improve the time accuracy of laser encoding.
[0006] (II) Technical solution
[0007] In order to solve the above technical problems, the present invention provides a temperature correction method for improving the time accuracy of laser encoding. The method is implemented based on an FPGA processor, a temperature measurement chip, a crystal oscillator and a signal output circuit. The temperature measurement chip measures the working environment temperature of the crystal oscillator inside the laser decoding module in real time, and the FPGA processor adjusts the time compensation parameters of the laser decoding module timing in real time according to the obtained temperature data and the frequency-temperature relationship curve of the crystal oscillator, so that the laser decoding module performs timing and decoding according to the accurate clock frequency, and the signal output circuit outputs a decoding success signal after the decoding is successful.
[0008] Preferably, the method specifically comprises the following steps:
[0009] Step 1: The FPGA processor obtains the working environment temperature data of the crystal oscillator inside the laser decoding module through the temperature measurement chip;
[0010] Step 2: The FPGA processor calculates the time deviation of the working machine cycle of the FPGA processor according to the obtained working environment temperature data and the frequency-temperature relationship curve of the crystal oscillator, wherein the frequency-temperature relationship curve is obtained by performing a full-temperature range frequency stability test on the crystal oscillator;
[0011] Step 3: The FPGA processor corrects the timing result of the laser pulse recording moment in real time according to the time deviation calculated in real time, obtains the time compensation parameter of the laser decoding module timing, obtains the corrected time information according to the time compensation parameter, and enables the laser decoding module to perform timing and decoding according to the corrected time information;
[0012] Step 4: After successful decoding, the FPGA processor outputs a corrected decoding success signal through a signal output circuit.
[0013] Preferably, the laser decoding module timing is obtained by counting the working machine cycle generated by the crystal oscillator frequency through the FPGA processor. For a specific temperature, the calculation formula of the time deviation in step 2 is as follows:
[0014]
[0015] Among them, T Δ is the time deviation of the FPGA processor working machine cycle, T0 is the FPGA processor working machine cycle, F Δ It is the frequency deviation of the crystal oscillator at a specific temperature.
[0016] Preferably, when the laser decoding module performs decoding, the laser pulse recording moment is timed, and the time compensation parameter needs to be calculated each time the timing is performed. In step 3, the timing result of each laser pulse recording moment is corrected to obtain the calculation formula of the time compensation parameter as shown in formula (2):
[0017] T com =N*T Δ (2)
[0018] Among them, T com is the time compensation parameter, and N is the number of working machine cycles of the FPGA processor.
[0019] Preferably, in step 3, the laser decoding module is used to obtain a pulse input time T. α , then the corrected time information T α The calculation formula of ′ is as follows:
[0020] T α ′=T α +T com (3).
[0021] Preferably, before step 1, the step is also included: after the laser decoding module is turned on, a self-check is performed. If the internal circuits of the laser decoding module are working normally, a cycle process of time accuracy correction, laser decoding and decoding signal output is entered, otherwise a self-check fault is reported.
[0022] The invention also provides a laser decoding module implemented based on the method.
[0023] The present invention also provides a laser detection device comprising the laser decoding module.
[0024] (III) Beneficial effects
[0025] The present invention is implemented based on an FPGA processor, a crystal oscillator and a temperature measurement chip, and has the following characteristics:
[0026] (1) In the use environment of the laser detection device, the present invention can offset the change in the output frequency of the crystal oscillator caused by the change in ambient temperature, thereby improving the environmental adaptability of the laser decoding module;
[0027] (2) It avoids the need for a high-frequency stable crystal oscillator in the laser decoding module, thus improving the economic efficiency of the laser decoding module;
[0028] (3) According to the frequency-temperature relationship curve of the crystal oscillator, the time compensation parameters of the laser decoding module timing are adjusted in real time. The time measurement accuracy after correction can be greatly improved, thereby enhancing the anti-interference ability of the laser decoding module. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A hardware block diagram for realizing a temperature correction method for improving the time accuracy of laser encoding according to the present invention;
[0030] Figure 2 A processing flow chart of a temperature correction method for improving the time accuracy of laser encoding according to the present invention;
[0031] Figure 3 This is the curve of the crystal oscillator output frequency changing with temperature. DETAILED DESCRIPTION
[0032] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.
[0033] In order to solve the current problems of low time accuracy and poor anti-interference ability of laser decoding, the present invention designs a temperature correction method to improve the time accuracy of laser encoding, with the following purposes: 1. In the actual use environment of the laser detection device, this method can offset the changes in the output frequency of the crystal oscillator caused by changes in ambient temperature, thereby improving the environmental adaptability of the laser decoding module; 2. Improve the time accuracy of the laser encoding module, determine the authenticity of the laser signal through the received laser signal time information, and enhance the anti-interference ability of the laser detection device.
[0034] The present invention provides a temperature correction method for improving the time accuracy of laser encoding. The method uses a temperature measurement chip to measure the working environment temperature of a crystal oscillator inside a laser decoding module in real time, and an FPGA processor adjusts the time compensation parameters of the laser decoding module timing in real time according to the obtained temperature data and the frequency-temperature relationship curve of the crystal oscillator, so that the laser decoding module (laser decoding module) performs timing and decoding according to an accurate clock frequency.
[0035] The present invention is mainly applied to the laser decoding module of the laser detection device with high-precision decoding capability. The key technical indicator of the laser decoding module is the decoding time accuracy, which mainly depends on the time frequency accuracy of the crystal oscillator output. At present, the high-precision laser coding time accuracy is required to be within ±300ns. The method of the present invention can make the time measurement accuracy reach ±5ppm through temperature correction. The laser coding is calculated with a 50ms period. This accuracy can ensure that the decoding accuracy is within 50ms*5ppm=250ns.
[0036] The implementation method of the present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0037] Figure 1 The present invention is a hardware implementation environment diagram of a temperature correction method for improving the time accuracy of laser encoding, including (1) an FPGA processor, (2) a temperature measurement chip, (3) a crystal oscillator, and (4) a signal output circuit. In actual operation, the method uses the temperature measurement chip to measure the working environment temperature of the crystal oscillator inside the laser decoding module in real time, and the FPGA processor adjusts the time compensation parameters of the laser decoding module timing in real time according to the obtained temperature data and the frequency-temperature relationship curve of the crystal oscillator, so that the timing and decoding are performed according to the accurate clock frequency. After the decoding is successful, the signal output circuit outputs a decoding success signal. The FPGA processor can form an FPGA processor and its minimum system with a power supply, a reset circuit, an external clock, and a download circuit.
[0038] Figure 2 This is a flow chart of a temperature correction method for improving the time accuracy of laser encoding. The working process of this method is: after the laser decoding module is turned on, it performs a self-test. If the circuit works normally, it enters a cycle of time accuracy correction, laser decoding, and decoding signal output. Otherwise, the system reports a self-test fault.
[0039] The specific work steps include:
[0040] Step 1: The FPGA processor obtains the working environment temperature data of the crystal oscillator inside the laser decoding module through the temperature measurement chip;
[0041] Step 2: The FPGA processor calculates the time deviation of the FPGA processor's working machine cycle according to the obtained working environment temperature data and the frequency-temperature relationship curve of the crystal oscillator, wherein the frequency-temperature relationship curve is mainly obtained by performing a full-temperature range frequency stability test on the crystal oscillator;
[0042] The timing of the laser decoding module is mainly obtained by counting the working machine cycle generated by the crystal oscillator frequency through the FPGA processor. Figure 3 The typical crystal oscillator output frequency used in the laser decoding module varies with time. The temperature unit is ℃ and the frequency deviation unit is ppm. Figure 3 The frequency deviation of the crystal oscillator from -40℃ to +125℃ is given in Figure 3 The data in is stored in the memory of the FPGA processor in the form of parameters. For a specific temperature, the calculation formula of the time deviation in step 2 is shown in formula (1):
[0043]
[0044] Among them, T Δ is the time deviation of the FPGA processor working machine cycle, T0 is the FPGA processor working machine cycle, F Δ It is the frequency deviation of the crystal oscillator at a specific temperature.
[0045] Step 3: The FPGA processor corrects the timing result of the laser pulse recording moment in real time according to the time deviation calculated in real time, obtains the time compensation parameter of the laser decoding module timing, obtains the corrected time information according to the time compensation parameter, and enables the laser decoding module to perform timing and decoding according to the corrected time information (clock frequency);
[0046] When the laser decoding module is decoding, it is necessary to time the laser pulse recording moment, and the time compensation parameter needs to be calculated each time. In step 3, the timing result of each laser pulse recording moment is corrected to obtain the calculation formula of the time compensation parameter as shown in formula (2):
[0047] T com =N*T Δ (2)
[0048] Among them, T com is the time compensation parameter, and N is the number of working machine cycles of the FPGA processor.
[0049] Assume that the laser decoding module obtains a pulse input time as T α , then the corrected time information T α The calculation formula of ′ is shown in formula (3):
[0050] Tα ′=T α +T com (3)
[0051] Step 4: After successful decoding, the FPGA processor outputs a corrected decoding success signal through a signal output circuit.
[0052] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A temperature correction method for improving the time accuracy of laser encoding, characterized in that: The method is implemented based on an FPGA processor, a temperature measurement chip, a crystal oscillator and a signal output circuit. The temperature measurement chip is used to measure the working environment temperature of the crystal oscillator inside the laser decoding module in real time, and the FPGA processor adjusts the time compensation parameters of the laser decoding module timing in real time according to the obtained temperature data and the frequency-temperature relationship curve of the crystal oscillator, so that the laser decoding module performs timing and decoding according to the accurate clock frequency, and the signal output circuit outputs a decoding success signal after the decoding is successful.
2. The method according to claim 1, characterized in that The method specifically comprises the following steps: Step 1: The FPGA processor obtains the working environment temperature data of the crystal oscillator inside the laser decoding module through the temperature measurement chip; Step 2: The FPGA processor calculates the time deviation of the working machine cycle of the FPGA processor according to the obtained working environment temperature data and the frequency-temperature relationship curve of the crystal oscillator, wherein the frequency-temperature relationship curve is obtained by performing a full-temperature range frequency stability test on the crystal oscillator; Step 3: The FPGA processor corrects the timing result of the laser pulse recording moment in real time according to the time deviation calculated in real time, obtains the time compensation parameter of the laser decoding module timing, obtains the corrected time information according to the time compensation parameter, and enables the laser decoding module to perform timing and decoding according to the corrected time information; Step 4: After successful decoding, the FPGA processor outputs a corrected decoding success signal through a signal output circuit.
3. The method according to claim 2, characterized in that The laser decoding module timing is obtained by counting the working machine cycle generated by the crystal oscillator frequency through the FPGA processor. For a specific temperature, the calculation formula of the time deviation in step 2 is as follows: Among them, T Δ is the time deviation of the FPGA processor working machine cycle, T0 is the FPGA processor working machine cycle, F Δ It is the frequency deviation of the crystal oscillator at a specific temperature.
4. The method according to claim 3, characterized in that When the laser decoding module is decoding, the laser pulse recording moment is timed, and the time compensation parameter needs to be calculated each time. In step 3, the timing result of each laser pulse recording moment is corrected to obtain the calculation formula of the time compensation parameter as shown in formula (2): T com =N*T Δ (2) Among them, T com is the time compensation parameter, and N is the number of working machine cycles of the FPGA processor.
5. The method according to claim 4, characterized in that In step 3, the laser decoding module is set to obtain a pulse input time T α , then the corrected time information T α The calculation formula of ′ is as follows: T α ′=T α +T com (3)。 6. The method according to claim 2, characterized in that The step before step 1 also includes the following steps: after the laser decoding module is turned on, it performs a self-test. If the internal circuits of the laser decoding module work normally, it enters a cycle process of time accuracy correction, laser decoding and decoding signal output, otherwise it reports a self-test fault.
7. A laser decoding module implemented based on the method according to any one of claims 1 to 6, the module comprising an FPGA processor, a temperature measurement chip, a crystal oscillator and a signal output circuit.
8. A laser detection device comprising the laser decoding module as claimed in claim 7.