Decoding method of periodic variable interval laser code

Through the decoding method of periodically variable interval laser encoding, the problems of long decoding time and low computing efficiency in the prior art are solved, and fast and accurate laser pulse sequence decoding is achieved, reducing hardware requirements and costs.

CN119628748APending Publication Date: 2025-03-14BEIJING ORIENTAL SHARP LASER TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411644457.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The existing laser pulse encoding and decoding methods have problems such as long decoding time and low computational efficiency, which is difficult to meet the needs of efficient interaction.

Method used

The decoding method of periodically variable interval laser encoding is adopted. By determining the maximum number of decoded bits N, the minimum array length S is judged, the front and rear pulse sequences are compared, and the pulse interval is increased until the decoding is completed.

Benefits of technology

Fast and accurate laser pulse sequence decoding is achieved, reducing the requirements for hardware computing power, reducing the cost of use, and improving decision-making efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119628748A_ABST
    Figure CN119628748A_ABST
Patent Text Reader

Abstract

The invention discloses a decoding method of a periodic variable interval laser code. The decoding method comprises the following steps: S1, determining a required maximum decoding bit N; s2, the minimum array length S of the collected pulses is judged according to the maximum decoding bit N, and if N is an even number, S = N + 2; if N is an odd number, S = N + 1; s3, judging whether the front S / 2 pulse sequence and the rear S / 2 pulse sequence in the array are the same or not, if yes, resolving a code pattern and recording the sequence, and if not, performing the next step; s4, calculating whether S is equal to 2N or not so as to judge whether the maximum decoding length upper limit is reached or not, and if S is equal to 2N, indicating that the decoding capability is exceeded if the maximum decoding length upper limit is reached; and if S is not equal to 2N, adding two pulse intervals to the array, and repeating the steps S3 to S4 until decoding is completed. According to the method, the decoding speed is high, decoding can be carried out in two maximum decoding periods, and decoding is accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of laser pulse encoding and decoding, and in particular relates to a decoding method of periodic variable interval laser encoding, a computer program product, a storage medium and an electronic device. Background Art

[0002] In laser pulse coding applications, laser pulse coding is used to transmit precise target information. At the same time, the encoded laser pulse signal also has anti-interference effect. At present, in order to enhance reliability, laser pulse information almost all adopts multi-bit periodic cyclic coding. In order to interact with this laser pulse information, it is necessary to first solve the laser coding information. Only after accurately solving the coding information can the arrival time of the next laser pulse be predicted and targeted interaction can be carried out. Since the entire information interaction process is short, higher requirements are also put forward for the speed and efficiency of laser coding solution.

[0003] At present, there are two ways to solve laser coding:

[0004] 1. Laser pulse coded signal decoding method based on autocorrelation

[0005] The decoding method of the autocorrelation laser pulse coded signal is to perform autocorrelation processing on the sequence composed of pulse arrival time, calculate the signal repetition period, and then identify the signal code type by determining the time value, number and bit sequence of the pulse repetition interval within a signal cycle to achieve signal decoding. This coding solution method generally requires 4 signal cycles to achieve decoding, and the decoding time is relatively long.

[0006] 2. Code recognition based on differential autocorrelation matrix

[0007] Differential autocorrelation matrix coding recognition is a laser pulse coding recognition method based on autocorrelation matrix statistics. This method uses the received pulse sequence to construct the first-order differential autocorrelation matrix and the second-order differential autocorrelation matrix, and performs histogram statistics on them respectively. According to the characteristics of the histogram, the coding method of the laser pulse sequence is identified, and the pulse time parameters are solved at the same time. This solution method has a high computational complexity and low computational efficiency because it needs to construct an autocorrelation matrix and perform histogram statistics. Summary of the invention

[0008] In view of the deficiencies in the prior art, the present invention provides a decoding method for periodic variable interval laser coding, a computer program product, a storage medium and an electronic device. The technology can be used to solve the laser pulse information to provide a basis for subsequent processing.

[0009] The present invention achieves this object through the following technical solutions:

[0010] The present invention provides a decoding method for periodic variable interval laser coding, comprising the following steps:

[0011] S1, determine the maximum number of decoding bits N required;

[0012] S2, determine the minimum array length S of the collected pulse according to the maximum decoding bit number N. If N is an even number, then S = N + 2; if N is an odd number, then S = N + 1;

[0013] S3, determine whether the pulse sequences of the first S / 2 and the last S / 2 in the array are the same. If they are the same, calculate the code type and record the sequence. If they are not the same, proceed to the next step;

[0014] S4, calculate whether S is equal to 2N, so as to determine whether the maximum decoding length limit is reached. If S is equal to 2N, reaching the upper limit means that the decoding capacity is exceeded; if S is not equal to 2N, increase the array by 2 pulse intervals, and repeat steps S3 to S4 until the decoding is completed.

[0015] The present invention also provides a computer program product, comprising a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the decoding method of the periodic variable interval laser coding.

[0016] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the decoding method of the periodic variable interval laser coding are implemented.

[0017] The present invention also provides an electronic device, comprising a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the decoding method of the periodic variable interval laser coding when executed by the processor.

[0018] Compared with the prior art, the present invention has the following beneficial effects:

[0019] This patent uses a simple and efficient data algorithm to achieve the solution of the laser sequence. The conventional decoding method is to solve the number of digits, bit sequence and time interval of the laser pulse. The decoding algorithm of this patent blurs the number of digits of the laser pulse. It does not solve the specific number of digits, which reduces the requirements for hardware computing power and reduces the cost of use, and improves the efficiency of decision-making. The decoding speed is fast, and it can be decoded within 2 maximum decoding cycles, and the decoding is accurate; the decoding algorithm is simple, and the relatively low-priced ARM can be used to replace the expensive FPGA chip for data processing, which reduces the demand for hardware and reduces costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0021] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0022] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to be able to fully convey the scope of the present invention to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0023] According to practical applications, the laser coding of multi-bit periodic variable interval has a maximum bit limit. The pulse interval is relatively long. The processing speed of the existing chip is fully capable of decoding the code within the pulse interval. The decoding device for this type of code will also set a maximum decoding bit. For ease of understanding, the decoding capacity with a maximum decoding bit of 8 is first used as an example to explain this decoding method. Since the 5-8-bit code contains integer multiples of 1-4-bit codes, the bit number recognition is not performed for periodic codes below 4 bits. Start decoding from 5 bits. After continuously collecting 10 pulse intervals, compare the 5 pulse intervals before and after. If they are completely consistent, it can be considered that the current code has been correctly decoded, and the coding order and pulse interval are recorded; if the 5 pulse intervals before and after are inconsistent, the 6-bit code is decoded after continuing to collect 2 pulse cycles, and the 6 pulse intervals before and after are compared. If they are completely consistent, it can be considered that the current code has been correctly decoded, and the coding order and pulse interval are recorded; and so on until the 8-bit code is solved.

[0024] The flowchart of the decoding method for a maximum decoding capability of N bits is as follows Figure 1 shown.

[0025] S1, determine the maximum number of decoding bits N required;

[0026] S2. Determine whether N is an even number, and use this to determine the minimum array length S. When N is an even number, S is N+2; when N is an odd number, S is N+1.

[0027] S3, determine whether the pulse sequences of the first S / 2 and the last S / 2 in the array are the same, if they are the same, solve the code pattern and record the sequence, if they are not the same, proceed to the next step;

[0028] S4. Calculate whether S is equal to 2N to determine whether the maximum decoding length has been reached. If the upper limit is reached, it means that the decoding capacity is exceeded. If S is equal to 2N, it exceeds the decoding capacity range. If S is not equal to 2N, increase the array by 2 pulse intervals and repeat steps S3 and S4 until the decoding is completed.

[0029] The decoding method of periodic variable interval laser coding provided by the present invention can be used in computer program products and electronic devices, and the coding is automatically decoded by running the program.

[0030] The method provided by the present invention determines the inclusion relationship between the long code type and the short code type, cancels the decoding of the short code type, improves the decoding efficiency, and constructs an array larger than the maximum decoding bit number to avoid decoding errors within the decoding capability range. The maximum decoding bit number can be increased or decreased according to the actual decoding requirements to achieve the decoding capability of the corresponding bit number.

[0031] The present invention has been described in detail above through embodiments, but the contents described are only exemplary embodiments of the present invention and cannot be considered to limit the scope of implementation of the present invention. The protection scope of the present invention is defined by the claims. Anyone who utilizes the technical solution described in the present invention, or a technician in the field, inspired by the technical solution of the present invention, designs a similar technical solution within the essence and protection scope of the present invention to achieve the above technical effects, or makes equal changes and improvements to the scope of application, shall still belong to the scope of protection covered by the patent of the present invention. It should be noted that in order to make a clear statement, the description of some components and processes that have no direct and obvious connection with the scope of protection of the present invention but are known to those skilled in the art are omitted in the description of the present invention.

Claims

1. A decoding method for periodic variable interval laser coding, characterized in that: The following steps are involved: S1, determine the maximum number of decoding bits N required; S2, determine the minimum array length S of the collected pulse according to the maximum decoding bit number N. If N is an even number, then S = N + 2; if N is an odd number, then S = N + 1; S3, determine whether the pulse sequences of the first S / 2 and the last S / 2 in the array are the same. If they are the same, calculate the code type and record the sequence. If they are not the same, proceed to the next step; S4, calculate whether S is equal to 2N, so as to determine whether the maximum decoding length limit is reached. If S is equal to 2N, reaching the upper limit means that the decoding capacity is exceeded; If S is not equal to 2N, the array is increased by 2 pulse intervals and steps S3 to S4 are repeated until the decoding is completed.

2. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the decoding method of periodic variable interval laser coding as claimed in claim 1 are implemented.

3. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the decoding method of periodic variable interval laser coding as claimed in claim 1 are implemented.

4. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the decoding method of the periodic variable interval laser coding as claimed in claim 1.