Method and system for formation cluster flight based on PPS clock synchronization

Through the PPS clock synchronization method, the UTC time of an individual aircraft is calibrated by using the GPS module and PPS full-second pulse, which solves the problem of poor clock synchronization in formation flight, and achieves efficient synchronization and safety improvement of flight performances.

CN118938636APending Publication Date: 2024-11-12YIFEI INTELLIGENT CONTROL (HAINAN) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410977228.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing formation flight technology relies on GPS time and cannot achieve high-precision clock synchronization between individual aircraft, resulting in inconsistent flight performance effects and may cause flight accidents.

Method used

The PPS clock synchronization method is used to obtain UTC time through the GPS module, and the PPS full-second pulse interrupt is used to perform system time timing and calibration to ensure time alignment between individual aircraft.

Benefits of technology

It realizes high-precision clock synchronization between individual aircraft, improves the synchronization effect of flight performances, reduces the risk of flight accidents, and improves the viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938636A_ABST
    Figure CN118938636A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of unmanned aerial vehicles, and discloses a PPS-based clock synchronization method and system for formation cluster flight, and the method comprises the steps: completing the initialization of a GPS, and obtaining UTC time; reading PPS (pulse per second) interruption, and performing time service on UTC (universal time coordinated) time in an interruption service function; uTC time is read in the interrupt service function, system local time at the moment when the UTC time is sent is obtained, and relative time is calculated; adding the relative time to the obtained UTC time to obtain actual UTC time; the actual UTC time is converted and written into a system, the system time is updated, and a take-off instruction is waited; the ground station sends a take-off instruction, the formation aircrafts enter take-off waiting, and the whole aircraft group flies synchronously. According to the method, the UTC time of the individual airplanes of the fleet is calibrated by acquiring the GPS time and the local time and depending on the calibration of the PPS, so that the effect of time alignment among the individual airplanes is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of unmanned aerial vehicles, and in particular relates to a method and system for formation cluster flight based on PPS clock synchronization. Background Art

[0002] At present, during the formation flight performance, there are problems such as inconsistent lighting effects of the entire fleet, inconsistent flight points, and failure to perform ideal flights according to simulation tests. Because there are clock deviations between individual aircraft, they can only take off at a certain deviation after receiving the take-off command, resulting in inconsistency with the simulation effect during the flight process, and the individual lighting effects cannot be strongly synchronized, affecting the actual flight performance effect.

[0003] Therefore, designing a method and system for synchronizing the flight clocks of a formation fleet has become a technical problem that needs to be solved for formation flight.

[0004] Through the above analysis, the problems and defects of the prior art are as follows:

[0005] Today's formation flying relies on GPS time. The update and acquisition of GPS time is not a high-precision timestamp. It can only ensure that the difference between individual aircraft is within 1 second, and cannot ensure the clock synchronization between aircraft accurate to milliseconds. When it comes to performing some scenes or requirements that require high frequency synchronization, the formation performance screen will have problems such as screen tailing and disordered content. When flying at high speed, there is also a risk of aircraft scratching when the gap between aircraft is tight, causing serious flight accidents. Summary of the invention

[0006] In order to overcome the problems existing in the related art, the disclosed embodiments of the present invention provide a method and system for formation cluster flight based on PPS clock synchronization.

[0007] The technical solution is as follows:

[0008] A method for formation cluster flight based on PPS clock synchronization, characterized by comprising the following steps:

[0009] S1: Get UTC time;

[0010] Each aircraft in the fleet is powered on, GPS is initialized, and UTC time is obtained;

[0011] S2: UTC time;

[0012] Read the PPS full second pulse interrupt sent by GPS, and in the interrupt service function, synchronize the UTC time of the entire system;

[0013] S3: Calculate relative time;

[0014] Read the UTC time sent by the current GPS in the interrupt service function, and obtain the system local time at the moment when the UTC time is sent, then obtain the system time in the current interrupt service function, subtract the system local time at the moment when the UTC time is obtained from the current time, and obtain the relative time of the current system in the past;

[0015] S4: Calculate the actual UTC time;

[0016] Add the acquired UTC time to the relative time calculated in step S3 to obtain the current actual UTC time;

[0017] S5: Update system time;

[0018] The actual UTC time is converted and written into the system, the system time is updated, and the take-off instruction is waited for;

[0019] S6: Waiting for instructions to synchronize flight;

[0020] After the ground station issues the take-off command, the formation aircraft enter the take-off waiting period and the entire fleet flies synchronously.

[0021] Further, in step S2, the PPS whole second pulse interrupt sent by the GPS is read through the flight control IO pin.

[0022] Further, in step S5, the actual UTC time is converted into the format of seconds and nanoseconds, the nanosecond information is cleared, and the whole second is incremented by one.

[0023] Another object of the present invention is to provide a method for forming a cluster of UAVs based on PPS clock synchronization.

[0024] Another object of the present invention is to provide a formation cluster flight based on PPS clock synchronization system, and implement the formation cluster flight based on PPS clock synchronization method, the system comprising:

[0025] GPS module, used to obtain UTC time information and generate PPS whole second pulse signal;

[0026] A PPS interrupt processing module is used to process the PPS full second pulse interrupt from the GPS module (1) and trigger an interrupt service function when a PPS signal is received;

[0027] A UTC time synchronization module is used to read and process the UTC time obtained from the GPS module (1) in the interrupt service function, and pass it to the system time update module;

[0028] The time difference calculation module is used to calculate the time difference between the current system local time and the UTC time, obtain the relative time of the current system in the past, and pass it to the system time update module;

[0029] The system time update module is used to update the UTC time in the system by combining the UTC time in the UTC time synchronization module and the time difference calculated in the time difference calculation module.

[0030] Furthermore, the formation cluster flight is based on the application of the PPS clock synchronization system carried by formation cluster aircraft in flight performances.

[0031] Furthermore, the formation cluster flight based on PPS clock synchronization system is carried on a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, and when the processor executes the computer program, the functions of the above-mentioned formation cluster flight based on PPS clock synchronization method system are implemented.

[0032] Furthermore, the formation cluster flight based on PPS clock synchronization system is carried on a computer-readable storage medium, and the computer-readable storage medium stores a computer program. When the computer program is executed by the processor, the functions of the above-mentioned formation cluster flight based on PPS clock synchronization method system can be realized.

[0033] Furthermore, the formation cluster flight based on PPS clock synchronization system is installed on a server, and the server is used to provide a user input interface to implement the functions of the formation cluster flight based on PPS clock synchronization method system as described above when executed on an electronic device.

[0034] In combination with all the above technical solutions, the beneficial effects of the present invention are as follows:

[0035] A method for formation cluster flying based on PPS clock synchronization obtains GPS time and local time, relies on the calibration of PPS second pulse, calibrates the UTC time of individual aircraft in the fleet, and achieves the effect of time alignment between individual aircraft.

[0036] During the actual takeoff process, the clocks of the fleet are aligned during the takeoff phase to achieve the technical effect of full synchronization of the formation flight performance, solving the problem of poor viewing experience caused by poor time alignment of the overall picture of formation flight. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure;

[0038] Figure 1 It is a flow chart of a method for formation cluster flight based on PPS clock synchronization provided by an embodiment of the present invention;

[0039] Figure 2 It is a schematic diagram of a method for formation cluster flight based on PPS clock synchronization provided by an embodiment of the present invention;

[0040] Figure 3 It is a schematic diagram of a PPS clock synchronization system for formation cluster flight provided by an embodiment of the present invention;

[0041] Figure 4 It is a synchronous schematic diagram of the actual flight effect of the formation cluster;

[0042] In the figure:

[0043] 1-GPS module; 2-PPS interrupt processing module; 3-UTC time synchronization module; 4-time difference calculation module; 5-system time update module. DETAILED DESCRIPTION

[0044] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific implementation disclosed below.

[0045] Embodiment 1:

[0046] like Figure 1 As shown, a method for formation cluster flight based on PPS clock synchronization is characterized by comprising the following steps:

[0047] S1: Get UTC time;

[0048] Each aircraft in the fleet is powered on, GPS is initialized, and UTC time is obtained;

[0049] S2: UTC time;

[0050] Read the PPS full second pulse interrupt sent by GPS, and in the interrupt service function, synchronize the UTC time of the entire system;

[0051] S3: Calculate relative time;

[0052] Read the UTC time sent by the current GPS in the interrupt service function, and obtain the system local time at the moment when the UTC time is sent, then obtain the system time in the current interrupt service function, subtract the system local time at the moment when the UTC time is obtained from the current time, and obtain the relative time of the current system in the past;

[0053] S4: Calculate the actual UTC time;

[0054] Add the acquired UTC time to the relative time calculated in step S3 to obtain the current actual UTC time;

[0055] S5: Update system time;

[0056] The actual UTC time is converted and written into the system, the system time is updated, and the take-off instruction is waited for;

[0057] S6: Waiting for instructions to synchronize flight;

[0058] After the ground station issues the take-off command, the formation aircraft enter the take-off waiting period and the entire fleet flies synchronously.

[0059] In this embodiment, the timing is calculated by combining the time obtained by GPS with the time of PPS interruption to obtain the actual time. PPS is a full second pulse, that is, the time when the pulse is obtained, regardless of the current system time and the time read by GPS (there is acquisition delay, transmission delay, etc.), the PPS time is considered to be the standard.

[0060] The interrupt service function refers to the interrupt class function of the embedded microcontroller. It is an interrupt automatically generated when the microcontroller timer expires, and there is a corresponding function interface to automatically handle it.

[0061] In step S2, the PPS whole second pulse interrupt sent by the GPS is read through the flight control IO pin.

[0062] The flight control IO pin is an open MCU interrupt service function. After the IO interrupt is configured, it will be automatically called when the level of the IO pin changes.

[0063] In step S5, the actual UTC time is converted into the format of seconds and nanoseconds, the nanosecond information is cleared, and the whole second is incremented by one.

[0064] Figure 2 Shown is a schematic diagram of a method for formation cluster flight based on PPS clock synchronization provided by an embodiment of the present invention.

[0065] Embodiment 2:

[0066] like Figure 3 As shown, the formation cluster flight provided by the embodiment of the present invention is based on the PPS clock synchronization system, including:

[0067] GPS module 1, used to obtain UTC time information and generate PPS whole second pulse signal;

[0068] PPS interrupt processing module 2 is used to process the PPS full second pulse interrupt from GPS module 1, and trigger the interrupt service function when receiving the PPS signal;

[0069] The UTC time synchronization module 3 is used to read and process the UTC time obtained from the GPS module 1 in the interrupt service function, and pass it to the system time update module 5;

[0070] The time difference calculation module 4 is used to calculate the time difference between the current system local time and the UTC time, obtain the relative time of the current system in the past, and pass it to the system time update module 5.

[0071] The system time updating module 5 is used to update the UTC time in the system by combining the UTC time in the UTC time synchronization module 3 and the time difference calculated in the time difference calculation module 4 .

[0072] Working principle:

[0073] The GPS module 1 provides highly accurate time information, namely UTC time (Coordinated Universal Time), and the GPS module 1 generates a PPS (Pulse Second) signal for accurate time synchronization;

[0074] The PPS interrupt processing module 2 is responsible for receiving the full second pulse (PPS signal) from the GPS module 1. When the PPS signal is received, it triggers the interrupt service function. In the interrupt service function, the PPS interrupt processing module reads and processes the UTC time information obtained from the GPS module 1;

[0075] The UTC time synchronization module 3 is integrated into the interrupt service function of the PPS interrupt processing module 2. It is responsible for obtaining the latest UTC time from the GPS module 1. When the PPS interrupt processing module 2 receives the PPS signal, the UTC time synchronization module 3 performs a read operation to obtain the current UTC time and passes it to the system time update module 5;

[0076] When the time difference calculation module 4 is started, it obtains the current local time of the system and the acquired UTC time, and by comparing the two times, calculates the difference between the current UTC time of the system and the real UTC time, that is, the relative time, and passes it to the system time update module 5;

[0077] The system time update module 5 receives the time difference as input, calculates the real UTC time by combining the current system UTC time and the time difference, updates the system time, ensures that the system time is synchronized with the real world, and waits for the take-off instruction.

[0078] To further illustrate the effects of the embodiments of the present invention, Figure 4 The figure shows the synchronization diagram of the actual flight effect of a fleet of aircraft. A single aircraft cannot achieve the synchronization effect.

[0079] Since the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present invention, their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0080] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment.

[0081] An embodiment of the present invention further provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0082] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0083] An embodiment of the present invention further provides an information data processing terminal, which, when executed on an electronic device, provides a user input interface to implement the steps in the above method embodiments. The information data processing terminal is not limited to mobile phones, computers, and switches.

[0084] An embodiment of the present invention further provides a server, which is used to provide a user input interface to implement the steps in the above method embodiments when executed on an electronic device.

[0085] An embodiment of the present invention provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0086] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0087] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principles of the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for formation cluster flight based on PPS clock synchronization, characterized in that: The following steps are involved: S1: Get UTC time; Each aircraft in the fleet is powered on, GPS is initialized, and UTC time is obtained; S2: UTC time; Read the PPS full second pulse interrupt sent by GPS, and in the interrupt service function, synchronize the UTC time of the entire system; S3: Calculate relative time; Read the UTC time sent by the current GPS in the interrupt service function, and obtain the system local time at the moment when the UTC time is sent, then obtain the system time in the current interrupt service function, subtract the system local time at the moment when the UTC time is obtained from the current time, and obtain the relative time of the current system in the past; S4: Calculate the actual UTC time; Add the acquired UTC time to the relative time calculated in step S3 to obtain the current actual UTC time; S5: Update system time; The actual UTC time is converted and written into the system, the system time is updated, and the take-off instruction is waited for; S6: Waiting for instructions to synchronize flight; After the ground station issues the take-off command, the formation aircraft enter the take-off waiting period and the entire fleet flies synchronously.

2. The method for formation cluster flight based on PPS clock synchronization according to claim 1, characterized in that: In step S2, the PPS whole second pulse interrupt sent by the GPS is read through the flight control IO pin.

3. The method for formation cluster flight based on PPS clock synchronization according to claim 1, characterized in that: In step S5, the actual UTC time is converted into the format of seconds and nanoseconds, the nanosecond information is cleared, and the whole second is incremented by one.

4. An unmanned aerial vehicle using the formation cluster flight method based on PPS clock synchronization as described in any one of claims 1 to 3.

5. A formation cluster flight based on PPS clock synchronization system, characterized in that: The method for implementing the formation cluster flight based on PPS clock synchronization as described in any one of claims 1 to 3 comprises: GPS module (1): used to obtain UTC time information and generate PPS whole second pulse signal; The PPS interrupt processing module (2) is used to process the PPS full second pulse interrupt from the GPS module (1) and trigger the interrupt service function when receiving the PPS signal; A UTC time synchronization module (3) is used to read and process the UTC time obtained from the GPS module (1) in the interrupt service function, and pass it to the system time update module (5); A time difference calculation module (4) is used to calculate the time difference between the current system local time and the UTC time, obtain the relative time of the current system in the past, and pass it to the system time update module (5); The system time updating module (5) is used to update the UTC time in the system by combining the UTC time in the UTC time synchronization module (3) and the time difference calculated in the time difference calculation module (4).

6. The formation cluster flight based on PPS clock synchronization system according to claim 5 is characterized in that: The formation cluster flight is based on the application of the PPS clock synchronization system carried by a group of drones in flight performances.

7. The formation cluster flight based on PPS clock synchronization system according to claim 5, characterized in that: The system is mounted on a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, and the processor implements the functions of the above-mentioned method when executing the computer program.

8. The formation cluster flight based on PPS clock synchronization system according to claim 5, characterized in that: The system is mounted on a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the functions of the method described above can be realized.

9. The formation cluster flight based on PPS clock synchronization system according to claim 5, characterized in that: The formation cluster flight is based on a PPS clock synchronization system mounted on a server, and the server is used to provide a user input interface to implement the functions of the formation synchronization system as described above when executed on an electronic device.