PPM pulse laser communication device and method based on serial port protocol
Through the PPM pulse laser communication technology based on the serial port protocol, the problem of small bandwidth of the laser communication system is solved. Through the combination of the laser encoding output module and the system clock unit, the bandwidth of the laser communication system is improved, and the problems of transmission distance and bandwidth are solved. limit.
Patent Information
- Application Number
- CN202410780856.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-18
AI Technical Summary
The communication bandwidth of existing laser communication systems is small and is limited by the upper repetition frequency limit and emission frequency of modulated pulse lasers, resulting in limitations in transmission distance and bandwidth.
Using PPM pulse laser communication based on the serial port protocol, the source data is PPM modulated through the laser encoding output module to generate PPM return-to-zero pulse data, and combined with the system clock unit for counting and conversion, to realize the non-return-to-zero serial port protocol format data Encoding and decoding to improve communication bandwidth.
Without changing the existing hardware equipment, the communication bandwidth of the laser communication system is significantly improved and longer-distance information transmission is achieved.
Smart Images

Figure CN118367988B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser communication technology, and in particular to a PPM pulse laser communication based on a serial port protocol. Background Art
[0002] Wireless laser communication relies on the propagation of light in space to transmit information. It is a communication method that does not rely on optical fiber and does not require frequency licenses. It has the advantage of flexibility compared to optical fiber communication and microwave communication. In terms of specific communication methods, continuous wave or pulse lasers can be used as modulated light sources. Continuous wave modulation has a high rate but low power, and has high requirements for the linearity of the modulation system; pulse modulation has high power and long transmission distance, but low pulse repetition rate.
[0003] Pulse Position Modulation (PPM) technology is one of the wireless optical communication modulation methods recommended by the Consultative Committee for Space Data Systems (CCSDS). PPM is a communication method that transmits different information by changing the position of the pulse at a fixed period.
[0004] In order to obtain higher peak power for transmission over longer distances, space laser communication systems generally use modulated pulse lasers, which transmit information by modulating whether the laser emits laser light within a fixed repetition rate through the presence or absence of pulse signals.
[0005] However, in actual communication systems, the repetition rate of the modulated pulse laser itself has an upper limit or the emission frequency of the current laser in the system is limited, resulting in a small communication bandwidth of the laser communication system. Summary of the invention
[0006] The present invention proposes a PPM pulse laser communication device and method based on a serial port protocol, which solves the problem of small communication bandwidth existing in the existing laser communication system.
[0007] The PPM pulse laser communication device based on the serial port protocol described in the present invention has the following technical solutions:
[0008] The device comprises the following modules:
[0009] The laser coding output module is used to perform PPM modulation on the source data, obtain PPM return-to-zero pulse data, and send the PPM return-to-zero pulse data to the outside; wherein:
[0010] The source data includes a plurality of data frames, and the frame period of the data frames is a given value;
[0011] Each data frame includes a specific frame header, a number of non-return-to-zero serial port protocol format data and a normal high level, and the specific frame header is located at the front of each data frame;
[0012] Each non-return-to-zero serial port protocol format data includes 1 start bit, m data bits and 1 stop bit, where m is a positive integer; in each non-return-to-zero serial port protocol format data, the start bit is at the front and the stop bit is at the back, the start bit is a low level and the stop bit is a high level;
[0013] The normal high level is a high level of at least m+2 consecutive digital bits;
[0014] The laser decoding module is used to decode the non-return-to-zero serial port protocol format data in the source data according to the PPM return-to-zero pulse data.
[0015] Further, a preferred embodiment is provided, wherein the laser coding output module comprises the following units:
[0016] The falling edge detection unit is used to detect the falling edge of the source data; it is also used to determine whether the currently detected data is a normal high level:
[0017] If at least m+2 consecutive digital bits are detected to be high level, the current data frame ends, the currently detected data is a normal high level, and the PPM modulation ends, and the falling edge of the next data frame continues to be detected;
[0018] Otherwise, the currently detected data is non-return-to-zero serial port protocol format data;
[0019] A system clock unit, used for counting the detected non-return-to-zero serial port protocol format data; and for converting the non-return-to-zero serial port protocol format data into return-to-zero code serial data; and for converting the return-to-zero code serial data into parallel data, wherein the parallel data is the position data of the time slot where the PPM pulse is located;
[0020] The time slot counting unit is used to perform PPM modulation on the parallel data according to the system clock to obtain PPM return-to-zero pulse data.
[0021] Further, a preferred embodiment is provided, wherein the laser decoding module comprises the following units:
[0022] A rising edge detection unit is used to detect the rising edge of the PPM return-to-zero pulse data after pulse broadening;
[0023] The system clock unit is used to perform counting processing according to the detected rising edge, and restore the PPM return-to-zero pulse data after pulse widening to the PPM return-to-zero pulse data of the standard pulse width;
[0024] A query frame header counting unit is used to perform query counting processing on a specific frame header and identify two PPM zeroing pulse data at the beginning of each data frame;
[0025] The high-level position counting unit is used to start PPM demodulation with the timing of the two PPM zeroing pulse data at the beginning of each data frame as the starting point, and demodulate the PPM zeroing pulse data into parallel data; it is also used to determine whether the currently detected data is a normal high level:
[0026] If it is detected that a number of consecutive parallel data contain at least m+2 consecutive digital bits of high level, the current data frame ends, the currently detected data is a normal high level, and the PPM demodulation ends at the same time, and the rising edge of the next data frame continues to be detected;
[0027] Otherwise, the parallel data is converted into serial data to obtain return-to-zero code serial data, and then the system clock unit is called to complete the conversion from return-to-zero code to non-return-to-zero code, and the non-return-to-zero serial port protocol format data in the source data is decoded.
[0028] The present invention also proposes a PPM pulse laser communication method based on a serial port protocol, and its technical solution is as follows:
[0029] The method comprises the following steps:
[0030] Laser coding output steps: PPM modulate the source data to obtain PPM return-to-zero pulse data, and send the PPM return-to-zero pulse data outward; wherein:
[0031] The source data includes a plurality of data frames, and the frame period of the data frames is a given value;
[0032] Each data frame includes a specific frame header, a number of non-return-to-zero serial port protocol format data and a normal high level, and the specific frame header is located at the front of each data frame;
[0033] Each non-return-to-zero serial port protocol format data includes 1 start bit, m data bits and 1 stop bit, where m is a positive integer; in each non-return-to-zero serial port protocol format data, the start bit is at the front and the stop bit is at the back, the start bit is a low level and the stop bit is a high level;
[0034] The normal high level is a high level of at least m+2 consecutive digital bits;
[0035] Laser decoding steps: According to the PPM return-to-zero pulse data, decode the non-return-to-zero serial port protocol format data in the source data.
[0036] The present invention also proposes a computer program product, and its technical solution is as follows:
[0037] A computer program product includes: a processor and a memory, wherein the memory is used to store executable instructions of the processor, and the processor is configured to execute the above-mentioned PPM pulse laser communication method based on the serial port protocol by executing the executable instructions.
[0038] The present invention also proposes a computer storage medium, and its technical solution is as follows:
[0039] A computer storage medium stores a computer program, and when the computer program is run, the above-mentioned PPM pulse laser communication method based on the serial port protocol is executed.
[0040] The present invention has the following beneficial effects:
[0041] The PPM pulse laser communication device based on the serial port protocol described in the present invention encodes the source data based on the serial port protocol and combines PPM modulation with pulse laser communication, thereby further improving the communication bandwidth without changing the existing hardware equipment of the communication system.
[0042] The PPM pulse laser communication device and method based on the serial port protocol described in the present invention are suitable for laser communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 A data processing flow chart of a laser coding output module in one embodiment of the present invention;
[0045] Figure 2 This is a data processing flow chart of a laser decoding module in one embodiment of the present invention; in the figure, NRZ refers to non-return-to-zero data code, RZ refers to return-to-zero data code, and the system clock 200MHz can be obtained by frequency multiplication and can be adjusted according to actual needs. DETAILED DESCRIPTION
[0046] In order to make the technical solutions and advantages of the present invention more clearly described, the specific implementation methods of the present invention will be further described in detail and completely in conjunction with the accompanying drawings. The various implementation methods described below are only part of the preferred solutions of the present invention, rather than all implementation methods; the various implementation methods described below are intended to explain the present invention and cannot be understood as limitations on the present invention; the reasonable combination of technical features defined in the various implementation methods of the present invention, and all other implementation methods obtained by ordinary technicians in the field without creative work based on the implementation methods of the present invention, are within the scope of protection of the present invention.
[0047] Implementation Method 1: Combination Figure 1 and 2 This embodiment describes a PPM pulse laser communication device based on a serial port protocol. The specific implementation contents are as follows:
[0048] A PPM pulse laser communication device based on a serial port protocol, the device comprises the following modules:
[0049] The laser coding output module is used to perform PPM modulation on the source data, obtain PPM return-to-zero pulse data, and send the PPM return-to-zero pulse data to the outside; wherein:
[0050] The source data includes a plurality of data frames, and the frame period of the data frames is a given value;
[0051] Each data frame includes a specific frame header, a number of non-return-to-zero serial port protocol format data and a normal high level, and the specific frame header is located at the front of each data frame;
[0052] Each non-return-to-zero serial port protocol format data includes 1 start bit, m data bits and 1 stop bit, where m is a positive integer; in each non-return-to-zero serial port protocol format data, the start bit is at the front and the stop bit is at the back, the start bit is a low level and the stop bit is a high level;
[0053] The normal high level is a high level of at least m+2 consecutive digital bits;
[0054] The laser decoding module is used to decode the non-return-to-zero serial port protocol format data in the source data according to the PPM return-to-zero pulse data.
[0055] In this embodiment, the laser communication device is part of the laser communication system. The laser communication system also includes a laser transmitter and a laser receiver. The laser communication link is "laser coding output module → laser transmitter → spatial transmission → laser receiver → laser decoding module", that is, the laser coding output module sends PPM return-to-zero pulse data to the laser transmitter, and the laser transmitter then sends the PPM return-to-zero pulse data outward in the form of laser pulses. The laser pulse (i.e., PPM return-to-zero pulse data) is received by the laser receiver through spatial transmission, and finally the laser receiver sends the (pulse-broadened) PPM return-to-zero pulse data to the laser decoding module.
[0056] It should be noted that the laser receiver is equipped with a photodetector, which amplifies and shapes the received PPM return-to-zero pulse data to obtain the PPM return-to-zero pulse data after pulse widening; therefore, the laser decoding module receives the PPM return-to-zero pulse data after pulse widening; therefore, after the laser decoding module receives the PPM return-to-zero pulse data after pulse widening, it needs to restore it to the PPM return-to-zero pulse data (of standard pulse width) emitted by the laser encoding output module through counting processing.
[0057] Furthermore, in a preferred embodiment, the value of m is 8, that is, each non-return-to-zero serial port protocol format data includes 8 data bits.
[0058] The value of m can be adjusted according to actual conditions, and m can also be 5, 6, 7, 9 or 10, etc.
[0059] Furthermore, in a preferred implementation, the specific frame header is 0x01, which is 8 binary bits represented by 2 hexadecimal numbers.
[0060] In this implementation, the source data is encoded based on the serial port protocol, and PPM modulation is combined with pulse laser communication, thereby further improving the communication bandwidth without changing the existing hardware equipment of the communication system.
[0061] Implementation Method 2: Combination Figure 1 and 2 This embodiment is described. This embodiment is a further limitation of the PPM pulse laser communication device based on the serial port protocol described in the first embodiment. The specific implementation contents are as follows:
[0062] The laser coding output module includes the following units:
[0063] The falling edge detection unit is used to detect the falling edge of the source data; it is also used to determine whether the currently detected data is a normal high level:
[0064] If at least m+2 consecutive digital bits are detected to be high level, the current data frame ends, the currently detected data is a normal high level, and the PPM modulation ends, and the falling edge of the next data frame continues to be detected;
[0065] Otherwise, the currently detected data is non-return-to-zero serial port protocol format data;
[0066] A system clock unit, used for counting the detected non-return-to-zero serial port protocol format data; and for converting the non-return-to-zero serial port protocol format data into return-to-zero code serial data; and for converting the return-to-zero code serial data into parallel data, wherein the parallel data is the position data of the time slot where the PPM pulse is located;
[0067] The time slot counting unit is used to perform PPM modulation on the parallel data according to the system clock to obtain PPM return-to-zero pulse data.
[0068] In this implementation manner, the falling edge detected for the source data is the start bit of the non-return-to-zero serial port protocol format data.
[0069] In this embodiment, the laser coding output module further includes an output unit for sending the PPM return-to-zero pulse data to the laser transmitter.
[0070] Furthermore, in a preferred embodiment, the system clock unit converts the return-to-zero code serial data into parallel data in the following manner:
[0071] The return-to-zero code serial data is divided into n groups, and each group of n return-to-zero codes is serial-to-parallel converted to obtain a corresponding group of parallel data. Generally, the value of n is 4.
[0072] The modulation of n return-to-zero codes as a group is also called 2 n -PPM modulation.
[0073] Adoption 2 n -After PPM modulation, the modulated laser transmitter changes from emitting one laser pulse to represent one bit of data information to emitting one laser pulse to represent n bits of data information. Therefore, the communication bandwidth can be increased by n times without changing the existing hardware equipment of the communication system.
[0074] Furthermore, in a preferred embodiment, the time slot counting unit performs PPM modulation on the parallel data according to the system clock to obtain PPM return-to-zero pulse data in the following manner:
[0075] Determine whether the count value of the time slot counting unit is equal to the data value of the parallel data:
[0076] If they are equal, the output is high level "1";
[0077] Otherwise, the output is low level "0".
[0078] Implementation Method 3: Combination Figure 1 and 2 This embodiment is described. This embodiment is a further limitation of the PPM pulse laser communication device based on the serial port protocol described in the first embodiment. The specific implementation contents are as follows:
[0079] The laser decoding module includes the following units:
[0080] A rising edge detection unit is used to detect the rising edge of the PPM return-to-zero pulse data after pulse broadening;
[0081] The system clock unit is used to perform counting processing according to the detected rising edge, and restore the PPM return-to-zero pulse data after pulse widening to the PPM return-to-zero pulse data of the standard pulse width;
[0082] A query frame header counting unit is used to perform query counting processing on a specific frame header and identify two PPM zeroing pulse data at the beginning of each data frame;
[0083] The high-level position counting unit is used to start PPM demodulation with the timing of the two PPM zeroing pulse data at the beginning of each data frame as the starting point, and demodulate the PPM zeroing pulse data into parallel data; it is also used to determine whether the currently detected data is a normal high level:
[0084] If it is detected that a number of consecutive parallel data contain at least m+2 consecutive digital bits of high level, the current data frame ends, the currently detected data is a normal high level, and the PPM demodulation ends at the same time, and the rising edge of the next data frame continues to be detected;
[0085] Otherwise, the parallel data is converted into serial data to obtain return-to-zero code serial data, and then the system clock unit is called to complete the conversion from return-to-zero code to non-return-to-zero code, and the non-return-to-zero serial port protocol format data in the source data is decoded.
[0086] In this embodiment, the laser decoding module receives the PPM return-to-zero pulse data after pulse stretching after being shaped and amplified by the photoelectric detector.
[0087] In this implementation manner, the rising edge of the PPM return-to-zero pulse data after pulse stretching is detected, and detection of the rising edge indicates that the data is at an abnormal low level at this time.
[0088] In this embodiment, the PPM return-to-zero pulse data of the standard pulse width is the restored PPM return-to-zero pulse data emitted by the laser encoding output module.
[0089] In this embodiment, due to the existence of a specific frame header (0x01), the first two pulses of each data frame (i.e., PPM zeroing pulse data) are separated by a fixed time interval. By querying the frame header counting unit for query counting processing, the first two pulse data can be identified, and PPM demodulation is performed with the timing of the two pulse data as the starting point, and the PPM pulse is restored to parallel data.
[0090] Furthermore, in a preferred embodiment, the system clock unit is 200 MHz.
[0091] Implementation Method 4: Combination Figure 1 and 2 This embodiment describes a PPM pulse laser communication method based on a serial port protocol. The specific implementation contents are as follows:
[0092] A PPM pulse laser communication method based on a serial port protocol, the method comprising the following steps:
[0093] Laser coding output steps: PPM modulate the source data to obtain PPM return-to-zero pulse data, and send the PPM return-to-zero pulse data outward; wherein:
[0094] The source data includes a plurality of data frames, and the frame period of the data frames is a given value;
[0095] Each data frame includes a specific frame header, a number of non-return-to-zero serial port protocol format data and a normal high level, and the specific frame header is located at the front of each data frame;
[0096] Each non-return-to-zero serial port protocol format data includes 1 start bit, m data bits and 1 stop bit, where m is a positive integer; in each non-return-to-zero serial port protocol format data, the start bit is at the front and the stop bit is at the back, the start bit is a low level and the stop bit is a high level;
[0097] The normal high level is a high level of at least m+2 consecutive digital bits;
[0098] Laser decoding steps: According to the PPM return-to-zero pulse data, decode the non-return-to-zero serial port protocol format data in the source data.
[0099] The method described in this embodiment is implemented using the PPM pulse laser communication device based on the serial port protocol described in the first embodiment.
[0100] Implementation Method 5: Combination Figure 1 This embodiment is described as a specific example of the PPM pulse laser communication device based on the serial port protocol described in the first embodiment.
[0101] The upper limit of the modulation repetition frequency of the laser is set to 10MHz, and the maximum laser communication rate of the serial protocol data is 10Mbps under normal circumstances. In this embodiment, the communication rate of the serial protocol data is set to 40Mbps, and the 2000Mpa serial protocol data can be realized without changing the hardware facilities of the pulse laser. 4 -PPM pulsed laser communication increases the communication system bandwidth by 4 times.
[0102] like Figure 1 As shown, the transmitter source data outputs 40Mbps non-return-to-zero serial protocol format data with a specific frame header of 0x01, which is normally high level and has a certain frame period, hereinafter referred to as source data. A high frequency clock (200MHz in this embodiment) is used for data processing.
[0103] First, the falling edge of the source data is detected. When the falling edge is detected, the start bit of the serial port protocol data is detected.
[0104] Then, we start to determine whether there will be 10 consecutive codes with high level "1":
[0105] If "yes", a frame of data ends, the source data enters the normal high level, and the PPM modulation ends at the same time, and the falling edge of the start bit of the next frame of data is detected;
[0106] If "No", the non-return-to-zero code is converted to the return-to-zero code, and each group of 4 codes (if n codes are in a group, it is 2 n -PPM modulation) to obtain parallel data by serial-to-parallel conversion, which represents the position data of the time slot where the PPM pulse is located;
[0107] Finally, the PPM modulation is completed by counting the time slot counter and judging whether the time slot counter value is equal to the parallel data value:
[0108] "Yes", then the output is high level "1";
[0109] If "No", the low level "0" is output, which means that the PPM modulation of the return-to-zero pulse data is realized. Among them, the special frame header 0x01 is to facilitate the completion of PPM decoding at the receiving end.
[0110] It should be noted that the modulation of a frame of data is terminated by judging whether there will be 10 consecutive high-level "1" codes. This is because even if 8 data bits and 1 stop bit of a cycle of serial port protocol data are all high-level "1", due to the existence of the low-level start bit "0", the cumulative number of consecutive high-level "1" will not exceed 9.
[0111] Implementation Method 6: Combination Figure 2This embodiment is described as another specific embodiment of the PPM pulse laser communication device based on the serial port protocol described in the first embodiment:
[0112] like Figure 2 As shown,
[0113] First, the photodetector performs amplification and shaping on the received light pulse to obtain the PPM data after pulse broadening;
[0114] Then, the rising edge of the PPM data after stretching is detected. If the rising edge is detected, it means that the data is at an abnormal low level at this time, and the data is restored to the PPM modulation data of the standard pulse width through counting processing;
[0115] Then, due to the existence of the specific frame header 0x01, the first two pulses of each frame are separated by a fixed time interval. Through high-frequency clock counting query, these two pulses are identified and PPM demodulation is performed with this time sequence as the starting point, and the PPM pulses are restored to parallel data;
[0116] Finally, we start to determine whether three consecutive parallel data are all "1111":
[0117] If "yes", the decoding of one frame of PPM data is completed and the non-return-to-zero conversion is completed, and the rising edge of the next frame of data is detected;
[0118] If "No", proceed to the next step to achieve parallel-to-serial conversion to obtain serial return-to-zero code data; complete the conversion of return-to-zero code to non-return-to-zero code through high-frequency clock counting, and realize the restoration of source data non-return-to-zero serial port protocol format data, and finally achieve 200Mbps non-return-to-zero serial port protocol data. 4 -PPM pulsed laser communication achieves a 4-fold increase in communication system bandwidth.
[0119] It should be noted that the reason why one frame of decoding is terminated when three consecutive parallel data are all "1111" is that even if the 8 data bits and 1 stop bit of one cycle of serial protocol data are all high level "1", due to the existence of the low level "0" of the start bit, the cumulative number of consecutive high level "1" will not exceed 9. 4 -PPM modulation, so the number of consecutive parallel data that are all "1111" will not exceed 2 at most.
[0120] The technical solution provided by the present invention is further described in detail above through several specific implementation modes in order to highlight the advantages and benefits of the technical solution provided by the present invention. However, the several specific implementation modes described above are not intended to be used as limitations on the present invention. Any reasonable changes and improvements to the present invention, reasonable combinations of implementation modes and equivalent substitutions based on the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A PPM pulse laser communication device based on a serial port protocol, characterized in that: The device comprises the following modules: The laser coding output module is used to perform PPM modulation on the source data, obtain PPM return-to-zero pulse data, and send the PPM return-to-zero pulse data to the outside; wherein: The source data includes a plurality of data frames, and the frame period of the data frames is a given value; Each data frame includes a specific frame header, a number of non-return-to-zero serial port protocol format data and a normal high level, and the specific frame header is located at the front of each data frame; Each non-return-to-zero serial port protocol format data includes 1 start bit, m data bits and 1 stop bit, where m is a positive integer; in each non-return-to-zero serial port protocol format data, the start bit is at the front and the stop bit is at the back, the start bit is a low level and the stop bit is a high level; The normal high level is a high level of at least m+2 consecutive digital bits; A laser decoding module is used to decode the non-return-to-zero serial port protocol format data in the source data according to the PPM return-to-zero pulse data; The laser coding output module includes the following units: The falling edge detection unit is used to detect the falling edge of the source data; it is also used to determine whether the currently detected data is a normal high level: If at least m+2 consecutive digital bits are detected to be high level, the current data frame ends, the currently detected data is a normal high level, and the PPM modulation ends, and the falling edge of the next data frame continues to be detected; Otherwise, the currently detected data is non-return-to-zero serial port protocol format data; A system clock unit, used for counting the detected non-return-to-zero serial port protocol format data; and for converting the non-return-to-zero serial port protocol format data into return-to-zero code serial data; and for converting the return-to-zero code serial data into parallel data, wherein the parallel data is the position data of the time slot where the PPM pulse is located; A time slot counting unit, used for performing PPM modulation on the parallel data according to a system clock to obtain PPM return-to-zero pulse data; The laser decoding module includes the following units: A rising edge detection unit is used to detect the rising edge of the PPM return-to-zero pulse data after pulse broadening; The system clock unit is used to perform counting processing according to the detected rising edge, and restore the PPM return-to-zero pulse data after pulse widening to the PPM return-to-zero pulse data of the standard pulse width; A query frame header counting unit is used to perform query counting processing on a specific frame header and identify two PPM zeroing pulse data at the beginning of each data frame; The high-level position counting unit is used to start PPM demodulation with the timing of the two PPM zeroing pulse data at the beginning of each data frame as the starting point, and demodulate the PPM zeroing pulse data into parallel data; it is also used to determine whether the currently detected data is a normal high level: If it is detected that a number of consecutive parallel data contain at least m+2 consecutive digital bits of high level, the current data frame ends, the currently detected data is a normal high level, and the PPM demodulation ends at the same time, and the rising edge of the next data frame continues to be detected; Otherwise, the parallel data is converted into serial data to obtain the return-to-zero code serial data, and then the system clock unit is called to complete the conversion from the return-to-zero code to the non-return-to-zero code, and the non-return-to-zero serial port protocol format data in the source data is decoded; The specific frame header is 0x01, which is 8 binary bits represented by 2 hexadecimal numbers.
2. The PPM pulse laser communication method based on the serial port protocol is characterized in that: The method comprises the following steps: Laser coding output steps: PPM modulate the source data to obtain PPM return-to-zero pulse data, and send the PPM return-to-zero pulse data outward; wherein: The source data includes a plurality of data frames, and the frame period of the data frames is a given value; Each data frame includes a specific frame header, a number of non-return-to-zero serial port protocol format data and a normal high level, and the specific frame header is located at the front of each data frame; Each non-return-to-zero serial port protocol format data includes 1 start bit, m data bits and 1 stop bit, where m is a positive integer; in each non-return-to-zero serial port protocol format data, the start bit is at the front and the stop bit is at the back, the start bit is a low level and the stop bit is a high level; The normal high level is a high level of at least m+2 consecutive digital bits; Laser decoding steps: according to the PPM return-to-zero pulse data, decode the non-return-to-zero serial protocol format data in the source data; The laser coding output step comprises the following steps: Falling edge detection step: perform falling edge detection on the source data; determine whether the currently detected data is a normal high level: If at least m+2 consecutive digital bits are detected to be high level, the current data frame ends, the currently detected data is a normal high level, and the PPM modulation ends, and the falling edge of the next data frame continues to be detected; Otherwise, the currently detected data is non-return-to-zero serial port protocol format data; System clock step: counting the detected non-return-to-zero serial port protocol format data; converting the non-return-to-zero serial port protocol format data into return-to-zero code serial data; converting the return-to-zero code serial data into parallel data, wherein the parallel data is the position data of the time slot where the PPM pulse is located; Time slot counting step: performing PPM modulation on the parallel data according to the system clock to obtain PPM return-to-zero pulse data; The laser decoding step comprises the following steps: Rising edge detection step: detecting the rising edge of the PPM zeroing pulse data after pulse broadening; System clock step: perform counting processing according to the detected rising edge, and restore the PPM return-to-zero pulse data after pulse widening to the PPM return-to-zero pulse data of the standard pulse width; Query frame header count step: perform query count processing on a specific frame header to identify the two PPM zeroing pulse data at the beginning of each data frame; High level position counting steps: starting from the timing of the two PPM zeroing pulse data at the beginning of each data frame, start PPM demodulation, demodulate the PPM zeroing pulse data into parallel data; determine whether the currently detected data is a normal high level: If it is detected that a number of consecutive parallel data contain at least m+2 consecutive digital bits of high level, the current data frame ends, the currently detected data is a normal high level, and the PPM demodulation ends at the same time, and the rising edge of the next data frame continues to be detected; Otherwise, the parallel data is converted into serial data to obtain the return-to-zero code serial data, and then the system clock unit is called to complete the conversion from the return-to-zero code to the non-return-to-zero code, and the non-return-to-zero serial port protocol format data in the source data is decoded; The specific frame header is 0x01, which is 8 binary bits represented by 2 hexadecimal numbers.
3. A computer program product comprising: A processor and a memory, characterized in that the memory is used to store executable instructions of the processor, and the processor is configured to execute the PPM pulsed laser communication method based on the serial port protocol as described in claim 2 by executing the executable instructions.
4. A computer storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is run, the PPM pulse laser communication method based on the serial port protocol described in claim 2 is executed.
