Time synchronization method, device, movable platform and storage medium

文档序号:621574 发布日期:2021-05-07 浏览:6次 中文

阅读说明:本技术 时间同步方法、装置、可移动平台及存储介质 (Time synchronization method, device, movable platform and storage medium ) 是由 王童 林涛 于 2020-05-06 设计创作,主要内容包括:一种可移动平台的多系统的时间同步方法、装置、可移动平台及存储介质,其中,可移动平台的多系统经信号处理装置连接同一时钟源,以采用该时钟源发送的时钟脉冲信号使多系统时钟同步,该方法包括:第一系统向至少一个第二系统发送授时信号,至少一个第二系统根据授时信号中包含的时间信息,进行至少一个第二系统的时间设置;其中,第一系统为时间基准系统,至少一个第二系统为多系统中待时间同步的系统(S101);第一系统发送同步脉冲信号至至少一个第二系统,至少一个第二系统根据同步脉冲信号,对至少一个第二系统设置的时间进行校准,以实现至少一个第二系统时间同步,至少一个第二系统基于同步的时间协同处理高实时性任务(S102)。(A time synchronization method, device, mobile platform and storage medium of multiple systems of a mobile platform, wherein the multiple systems of the mobile platform are connected with the same clock source through a signal processing device, so as to adopt a clock pulse signal sent by the clock source to synchronize the clocks of the multiple systems, the method comprises the following steps: the first system sends a time service signal to at least one second system, and the at least one second system carries out time setting of the at least one second system according to time information contained in the time service signal; wherein, the first system is a time reference system, and at least one second system is a system (S101) waiting for time synchronization in the multiple systems; the first system sends a synchronization pulse signal to at least one second system, the at least one second system calibrates time set by the at least one second system according to the synchronization pulse signal to realize time synchronization of the at least one second system, and the at least one second system cooperatively processes the high-real-time task based on the synchronized time (S102).)

1. A time synchronization method for multiple systems of a movable platform is characterized in that the multiple systems are connected with the same clock source through a signal processing device so as to synchronize clocks of the multiple systems by adopting clock pulse signals sent by the clock source, and the method comprises the following steps:

the method comprises the steps that a first system sends a time service signal to at least one second system, so that the at least one second system can set time of the at least one second system according to time information contained in the time service signal; the first system is a time reference system, and the at least one second system is a system to be synchronized in time in the multiple systems;

and the first system sends a synchronization pulse signal to the at least one second system so that the at least one second system can calibrate the time set by the at least one second system according to the synchronization pulse signal to realize time synchronization of the at least one second system, and the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

2. The method according to claim 1, wherein the first system and the second system comprise a controller, the controller is provided with a first communication interface, and the first system sends a time service signal to at least one second system, and the method comprises:

and the first system sends the time service signal to the at least one second system through the controller based on the first communication interface.

3. The method of claim 2, wherein the first communication interface comprises at least one of a UART interface, a USB interface, a PCIE interface, and a CAN interface.

4. The method of claim 2, wherein the controller further comprises a second communication interface, and the first system sends the synchronization pulse signal to the at least one second system, comprising:

the first system sends the synchronization pulse signal to the at least one second system through a controller based on a second communication interface.

5. The method of claim 4, wherein the second communication interface comprises a GPIO interface, and wherein the synchronization pulse signal is a SYNC signal.

6. The method according to claim 1, wherein the clock source is connected to an input of the signal processing apparatus, and an output of the signal processing apparatus is connected to the multiple systems;

and the clock source sends a clock pulse signal to the signal processing device, and the signal processing device outputs the clock pulse signal to the multiple systems in a multipath manner.

7. The method of claim 1, wherein the signal processing device comprises at least one of a buffer chip and a phase-locked loop chip.

8. The method of claim 4, wherein the controller comprises an SOC chip, and wherein the first communication interface and the second communication interface are disposed on the SOC chip.

9. The method of any one of claims 1 to 8, wherein the first system is one of the multiple systems, or the first system is a system other than the multiple systems.

10. A time synchronization method for multiple systems of a movable platform is characterized in that the multiple systems are connected with the same clock source through a signal processing device so as to synchronize clocks of the multiple systems by adopting clock pulse signals sent by the clock source, and the method comprises the following steps:

at least one second system receives a time service signal sent by a first system; the first system is a time reference system, and the at least one second system is a system to be synchronized in time in the multiple systems;

extracting time information contained in the time service signal, and setting the time of the at least one second system according to the time information;

receiving a synchronous pulse signal sent by the first system;

and calibrating the time set by the at least one second system according to the synchronization pulse signal so as to realize time synchronization of the at least one second system, wherein the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

11. The method according to claim 10, wherein the first system and the second system comprise a controller, the controller is provided with a first communication interface, and the at least one second system receives the time service signal sent by the first system, and comprises:

and the at least one second system receives the time service signal sent by the first system through a first communication interface.

12. The method according to claim 11, wherein a second communication interface is further provided on the controller, and the receiving the synchronization pulse signal transmitted by the first system includes:

and the at least one second system receives the synchronous pulse signal sent by the first system through a second communication interface.

13. The method according to any one of claims 10 to 12, wherein said calibrating said time of said at least one second system setting based on said synchronization pulse signal comprises:

the at least one second system calibrates the set time according to a rising edge or a falling edge of the synchronization pulse signal.

14. A time synchronizer of multiple systems of the movable platform, characterized by that, the said multiple systems connect the same clock source through the signal processing unit, in order to adopt the clock pulse signal that the said clock source sends to make the said multiple system clock synchronize, the said apparatus includes memorizer and processor;

the memory is used for storing a computer program;

the processor is configured to execute the computer program and, when executing the computer program, implement the following steps:

sending a time service signal to at least one second system, so that the at least one second system can set the time of the at least one second system according to the time information contained in the time service signal; wherein the at least one second system is a system to be time-synchronized in the multiple systems;

and sending a synchronization pulse signal to the at least one second system, so that the at least one second system calibrates the time set by the at least one second system according to the synchronization pulse signal to realize time synchronization of the at least one second system, and the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

15. The device according to claim 14, wherein the device is provided with a first communication interface, and when the processor implements the sending of the time service signal to the at least one second system, the processor implements:

and sending the time service signal to the at least one second system based on the first communication interface.

16. The apparatus of claim 15, wherein the first communication interface comprises at least one of a UART interface, a USB interface, a PCIE interface, and a CAN interface.

17. The apparatus according to claim 15, wherein the apparatus is further provided with a second communication interface, and when the processor implements the sending of the synchronization pulse signal to the at least one second system, the processor implements:

transmitting the synchronization pulse signal to the at least one second system based on a second communication interface.

18. The apparatus of claim 17, wherein the second communication interface comprises a GPIO interface, and wherein the synchronization pulse signal is a SYNC signal.

19. The apparatus of claim 14, wherein the signal processing means comprises at least one of a buffer chip and a phase-locked loop chip.

20. The apparatus of claim 17, wherein the apparatus comprises an SOC chip, and wherein the first communication interface and the second communication interface are disposed on the SOC chip.

21. A time synchronizer of multiple systems of the movable platform, characterized by that, the said multiple systems connect the same clock source through the signal processing unit, in order to adopt the clock pulse signal that the said clock source sends to make the said multiple system clock synchronize, the said apparatus includes memorizer and processor;

the memory is used for storing a computer program;

the processor is configured to execute the computer program and, when executing the computer program, implement the following steps:

receiving a time service signal sent by a first system; wherein the first system is a time reference system;

extracting time information contained in the time service signal, and setting the time of at least one second system according to the time information; wherein the at least one second system is a system to be time-synchronized in the multiple systems;

receiving a synchronous pulse signal sent by the first system;

and calibrating the set time according to the synchronization pulse signal so as to realize the time synchronization of the at least one second system, wherein the at least one second system cooperatively processes the high-real-time task based on the synchronized time.

22. The apparatus of claim 21, wherein the processor, in implementing the calibrating the set time based on the synchronization pulse signal, implements:

calibrating the set time according to a rising edge or a falling edge of the synchronization pulse signal.

23. A movable platform comprising at least one second system, the at least one second system communicatively coupled to a first system; the first system is a time reference system, and the first system and the at least one second system are connected with the same clock source;

the first system is used for sending a time service signal to the at least one second system;

the at least one second system is used for setting the time of the at least one second system according to the time information contained in the time service signal;

the first system is further used for sending a synchronization pulse signal to the at least one second system;

the at least one second system is further configured to calibrate the time set by the at least one second system according to the synchronization pulse signal, so as to implement time synchronization of the at least one second system, and the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

24. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the method according to any one of claims 1 to 9; or to implement a method as claimed in any one of claims 10 to 13.

Technical Field

The present application relates to the field of time synchronization technologies, and in particular, to a time synchronization method, an apparatus, a mobile platform, and a storage medium.

Background

The time synchronization is to provide a uniform time scale for the distributed system, and under the condition of uniform time scale, all events of each system have uniform time scale, and have definite time precedence relationship, so that unmanned aerial vehicles, radars, other communication network equipment and the like have higher requirements on the time synchronization. Taking an unmanned aerial vehicle as an example, at present, the clock design of each subsystem such as unmanned aerial vehicle flight control, sensing, image transmission and the like generally means that each subsystem uses its own local crystal oscillator as a clock source, and as small differences exist in frequency offset, clock jitter and the like of different crystal oscillators, the accumulated local time of each subsystem will have larger and larger deviations as time goes on. To eliminate the offset, the respective local times of the subsystems are typically calibrated at intervals.

However, since different crystal oscillator phase differences exist all the time, it is obvious that the local time of each subsystem cannot be completely synchronized, so that the unmanned aerial vehicle cannot complete high-real-time tasks such as dual flight control backup, dual perception visual coordination and the like.

Disclosure of Invention

Based on the above, the application provides a time synchronization method, a time synchronization device, a movable platform and a storage medium, and aims to realize accurate time synchronization of multiple systems of the movable platform so as to complete a high-real-time task.

In a first aspect, the present application provides a method for time synchronization of multiple systems of a mobile platform, where the multiple systems are connected to a same clock source through a signal processing device, so as to use a clock pulse signal sent by the clock source to synchronize clocks of the multiple systems, and the method includes:

the method comprises the steps that a first system sends a time service signal to at least one second system, so that the at least one second system can set time of the at least one second system according to time information contained in the time service signal; the first system is a time reference system, and the at least one second system is a system to be synchronized in time in the multiple systems;

and the first system sends a synchronization pulse signal to the at least one second system so that the at least one second system can calibrate the time set by the at least one second system according to the synchronization pulse signal to realize time synchronization of the at least one second system, and the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

In a second aspect, the present application further provides a method for time synchronization of multiple systems of a mobile platform, where the multiple systems are connected to a same clock source through a signal processing device, so as to use a clock pulse signal sent by the clock source to synchronize clocks of the multiple systems, and the method includes:

at least one second system receives a time service signal sent by a first system; the first system is a time reference system, and the at least one second system is a system to be synchronized in time in the multiple systems;

extracting time information contained in the time service signal, and setting the time of the at least one second system according to the time information;

receiving a synchronous pulse signal sent by the first system;

and calibrating the time set by the at least one second system according to the synchronization pulse signal so as to realize time synchronization of the at least one second system, wherein the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

In a third aspect, the present application further provides a multi-system time synchronization apparatus for a mobile platform, where the multi-systems are connected to a same clock source through a signal processing apparatus, so as to synchronize clocks of the multi-systems by using clock pulse signals sent by the clock source, and the apparatus includes a memory and a processor;

the memory is used for storing a computer program;

the processor is configured to execute the computer program and, when executing the computer program, implement the following steps:

sending a time service signal to at least one second system, so that the at least one second system can set the time of the at least one second system according to the time information contained in the time service signal; wherein the at least one second system is a system to be time-synchronized in the multiple systems;

and sending a synchronization pulse signal to the at least one second system, so that the at least one second system calibrates the time set by the at least one second system according to the synchronization pulse signal to realize time synchronization of the at least one second system, and the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

In a fourth aspect, the present application further provides a multi-system time synchronization apparatus for a mobile platform, where the multi-systems are connected to a same clock source through a signal processing apparatus, so as to synchronize clocks of the multi-systems by using clock pulse signals sent by the clock source, and the apparatus includes a memory and a processor;

the memory is used for storing a computer program;

the processor is configured to execute the computer program and, when executing the computer program, implement the following steps:

receiving a time service signal sent by a first system; wherein the first system is a time reference system;

extracting time information contained in the time service signal, and setting the time of at least one second system according to the time information; wherein the at least one second system is a system to be time-synchronized in the multiple systems;

receiving a synchronous pulse signal sent by the first system;

and calibrating the set time according to the synchronization pulse signal so as to realize the time synchronization of the at least one second system, wherein the at least one second system cooperatively processes the high-real-time task based on the synchronized time.

In a fifth aspect, the present application further provides a movable platform comprising at least one second system communicatively coupled to a first system; the first system is a time reference system, and the first system and the at least one second system are connected with the same clock source;

the first system is used for sending a time service signal to the at least one second system;

the at least one second system is used for setting the time of the at least one second system according to the time information contained in the time service signal;

the first system is further used for sending a synchronization pulse signal to the at least one second system;

the at least one second system is further configured to calibrate the time set by the at least one second system according to the synchronization pulse signal, so as to implement time synchronization of the at least one second system, and the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

In a sixth aspect, the present application further provides a computer-readable storage medium storing a computer program, which when executed by a processor causes the processor to implement the time synchronization method of any one of the aspects provided herein.

The embodiment of the application provides a time synchronization method, a time synchronization device, a movable platform and a storage medium, wherein multiple systems of the movable platform are connected with the same clock source through a signal processing device, a clock pulse signal sent by the clock source is output to the multiple systems in a multi-channel mode through the signal processing device, the multi-system clock synchronization is achieved, a first system serving as a time reference system sends a time service signal to at least one second system to be subjected to time synchronization in the multiple systems, and the at least one second system carries out time setting on the at least one second system according to time information contained in the time service signal; the first system sends a synchronous pulse signal to the at least one second system, the at least one second system calibrates the time set by the at least one second system according to the synchronous pulse signal so as to realize time synchronization of the at least one second system, and then time deviation does not occur along with the time lapse, so that accurate time synchronization is achieved, and further the movable platform can complete a high-real-time task.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a block schematic diagram of the structure of a prior art drone;

FIG. 2 is a block diagram schematically illustrating a structure of a movable platform provided in an embodiment of the present application;

FIG. 3 is a flowchart illustrating steps of a method for time synchronization of multiple systems of a mobile platform according to an embodiment of the present application;

FIG. 4 is a block diagram schematic diagram of a multi-system of a movable platform provided by an embodiment of the present application;

FIG. 5 is a flowchart illustrating steps of another method for time synchronization of multiple systems of a mobile platform according to an embodiment of the present application;

fig. 6 is a schematic block diagram of a structure of a multi-system time synchronization apparatus for a movable platform according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.

Unmanned aerial vehicles, radars, other communication network devices and the like have higher requirements on time synchronization, taking an unmanned aerial vehicle as an example, at present, the clock design of each subsystem of unmanned aerial vehicle flight control, sensing, image transmission and the like usually includes that each subsystem uses a respective local crystal oscillator as a clock source, as shown in fig. 1, each subsystem of the unmanned aerial vehicle is connected to the respective local crystal oscillator of each subsystem through a CLK port on an SOC (System-on-a-Chip) Chip of the subsystem, uses the respective local crystal oscillator as a clock source, and realizes time synchronization through a PPS (Pulse Per Second) signal which is multiplexed-output to each SOC Chip by a Buffer cache Chip.

Due to slight differences of frequency deviation, clock jitter and the like of different crystal oscillators, the accumulated local time of each subsystem has larger and larger deviation along with the time. To eliminate the offset, the respective local times of the subsystems are typically calibrated at intervals. However, since different crystal oscillator phase differences exist all the time, it is obvious that the local time of each subsystem cannot be completely synchronized, so that the unmanned aerial vehicle cannot complete high-real-time tasks such as dual flight control backup, dual perception visual coordination and the like.

Based on the above problems, embodiments of the present application provide a time synchronization method, apparatus, mobile platform and storage medium, which aim to achieve accurate time synchronization of multiple systems of mobile platforms such as unmanned aerial vehicles, so as to complete a high real-time task.

Referring to fig. 2, fig. 2 is a schematic block diagram of a structure of a movable platform according to an embodiment of the present disclosure, as shown in fig. 2, the movable platform 100 includes a body 10, and at least one second system 20 disposed in the body 10, where the at least one second system 20 is configured to cooperatively complete high real-time tasks such as dual flight control backup, dual perception vision cooperation, and the like.

The second system 20 is communicatively connected to the first system 30, wherein the first system 30 is a time reference system, the first system 30 may be one of the systems of the movable platform 100, and the first system 30 may be another system other than the movable platform 100.

Second system 20 and first system 30 are connected to the same clock source 40, where clock source 40 may be a clock source of mobile platform 100, and clock source 40 may also be another clock source besides mobile platform 100. Clock source 40 may be selected as a crystal oscillator. Clock source 40 sends clock pulse signals to first system 30 and at least one second system 20 to clock first system 30 and at least one second system 20.

Illustratively, at least one second system 20 is coupled to the first system 30 via a signal processing device 50 to a clock source 40. The clock source 40 sends a clock signal to the signal processing apparatus 50, and the signal processing apparatus 50 multiplexes the clock signal to the first system 30 and the at least one second system 20. The signal processing device 50 includes, but is not limited to, a buffer chip, a phase-locked loop chip, and the like.

Illustratively, the second System 20 and the first System 30 include SOC (System-on-a-Chip) chips. The SOC chip is provided with a first communication interface and a second communication interface, the first communication interface includes, but is not limited to, a UART (Universal Asynchronous Receiver/Transmitter) interface, a USB (Universal Serial Bus) interface, a PCIE (peripheral component interconnect express) interface, a CAN (Controller Area Network) interface, and the like, based on the first communication interface, the first system 30 sends a time signal to the second system 20, and the second system 20 sets the time of the second system 20 according to time information included in the time signal. The second communication interface includes, but is not limited to, a GPIO (General-purpose input/output) interface, and the like, based on the second communication interface, the first system 30 sends a synchronization pulse signal to the second system 20, and the second system 20 calibrates the set time according to the synchronization pulse signal, so as to implement time synchronization of the second system 20.

The movable platform 100 may be a rotary wing type drone, and of course, the movable platform 100 may also be another type of drone or a movable device, and the embodiment of the present application is not limited thereto.

Taking the movable platform 100 as an drone, the drone may have one or more propulsion units to allow the drone to fly in the air. The one or more propulsion units may move the drone at one or more, two or more, three or more, four or more, five or more, six or more free angles. In some cases, the drone may rotate about one, two, three, or more axes of rotation. The axes of rotation may be perpendicular to each other. The axes of rotation may be maintained perpendicular to each other throughout the flight of the drone. The axis of rotation may include a pitch axis, a roll axis, and/or a yaw axis. The drone may be movable in one or more dimensions. For example, the drone can move upward due to the lift generated by one or more rotors. In some cases, the drone may be movable along a Z-axis (which may be upward with respect to the drone direction), an X-axis, and/or a Y-axis (which may be lateral). The drone is movable along one, two or three axes perpendicular to each other.

The drone may have a plurality of rotors. The rotor may be connected to the body of the drone, which may contain a control unit, an Inertial Measurement Unit (IMU), a processor, a battery, a power source, and/or other sensors. The rotor may be connected to the body by one or more arms or extensions that branch off from a central portion of the body. For example, one or more arms may extend radially from the central body of the drone and may have rotors at or near the ends of the arms.

It will be appreciated that the above-described nomenclature for the components of the movable platform 100 is for identification purposes only, and does not limit the embodiments of the present application accordingly.

Hereinafter, the time synchronization method provided by the embodiment of the present application will be described in detail based on the movable platform 100, the second system 20 in the movable platform 100, and the first system 30. It should be noted that the movable platform 100 in fig. 2 is only used to explain the time synchronization method provided in the embodiment of the present application, but does not constitute a limitation to an application scenario of the time synchronization method.

Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a method for time synchronization of multiple systems of a mobile platform according to an embodiment of the present application. The method can be used in the first system provided by the embodiment to realize accurate time synchronization of multiple systems of the movable platform so as to complete a high-real-time task.

As shown in fig. 3, the method for time synchronization of multiple systems of a movable platform specifically includes step S101 and step S102.

S101, a first system sends a time service signal to at least one second system, so that the at least one second system can set time of the at least one second system according to time information contained in the time service signal; the first system is a time reference system, and the at least one second system is a system waiting for time synchronization in the multiple systems.

The first system may be one of the multiple systems of the movable platform, or the first system may be another system than the multiple systems of the movable platform. The second system is a system for waiting time synchronization in the multiple systems of the movable platform. The second system and the first system are connected with the same clock source through the signal processing device. Alternatively, the signal processing device includes, but is not limited to, a buffer chip, a phase-locked loop chip, and the like, and the clock source includes, but is not limited to, a crystal oscillator, and the like.

The clock source sends a clock pulse signal to the signal processing device, and the signal processing device outputs the clock pulse signal to the first system and the at least one second system in a multi-path mode. The first system and the at least one second system achieve clock synchronization according to the clock pulse signal.

The first system is used as a time reference system and sends a time service signal to at least one second system in multiple systems of the movable platform, and the time service signal comprises time information. For example, the time information includes information such as year, month, day, hour, minute, and second.

In some embodiments, the first system and the second system both include a controller, the controller is provided with a first communication interface, the first system sends a time signal containing time information to at least one second system through the controller based on the first communication interface, and the at least one second system receives the time signal sent by the first system based on the first communication interface. Optionally, the first communication interface includes at least one of a UART interface, a USB interface, a PCIE interface, and a CAN interface.

In some embodiments, the controller includes an SOC chip on which the first communication interface is disposed. For example, the first system sends a data frame containing time information of year, month, day, hour, minute, second and the like to at least one second system in the multiple systems of the movable platform through a UART interface arranged on the SOC chip, and the at least one second system receives the data frame containing time information of year, month, day, hour, minute, second and the like sent by the first system based on the UART interface.

After the at least one second system receives the time service signal containing the time information sent by the first system, each second system obtains the time information contained in the time service signal and sets the time of the second system according to the time information.

S102, the first system sends a synchronization pulse signal to the at least one second system, so that the at least one second system can calibrate the time set by the at least one second system according to the synchronization pulse signal to achieve time synchronization of the at least one second system, and the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

Because certain transmission delay exists in signal transmission, the time set by each second system for time setting according to the time information has slight difference, and in order to realize accurate time synchronization, the first system sends a synchronization pulse signal to the at least one second system. Optionally, the synchronization Pulse signal sent by the first system is a SYNC signal, and the SYNC signal is a Pulse signal, and the format of the Pulse signal may refer to a PPS (Pulse Per Second) signal.

In some embodiments, the controllers of the first system and the second system are further provided with a second communication interface, the first system sends the synchronization pulse signal to at least one second system through the controller based on the second communication interface, and the at least one second system receives the synchronization pulse signal sent by the first system based on the second communication interface. Optionally, the second communication interface comprises a GPIO interface.

In some embodiments, the controller includes an SOC chip on which the second communication interface is disposed. For example, the first system sends a SYNC signal to at least one second system in multiple systems of the movable platform through a GPIO interface arranged on the SOC chip, and the at least one second system receives the SYNC signal sent by the first system based on the GPIO interface.

And after each second system receives the synchronous pulse signal sent by the first system, calibrating the time set by the second system according to the synchronous pulse signal. Specifically, the second system calibrates the set time according to a rising edge or a falling edge of the synchronization pulse signal, thereby achieving the at least one second system time synchronization.

For example, as shown in fig. 4, the crystal oscillator outputs a clock signal (clock signal) to the Buffer chip (Buffer), and the clock signal is multiplexed by the Buffer to the SOC chips of the first system and the at least one second system. The first system and the at least one second system receive a clock signal through a clock interface (CLK interface) on the SOC chips of the first system and the at least one second system, and clock synchronization is achieved according to the clock signal.

The first system serving as a time reference system sends data frames containing time information of year, month, day, hour, minute, second and the like to at least one second system in the multiple systems of the movable platform through a UART interface on an SOC chip, and the at least one second system receives the data frames containing the time information of year, month, day, hour, minute, second and the like sent by the first system based on the UART interface and carries out time setting according to the time information of year, month, day, hour, minute, second and the like.

The first system sends SYNC signals to at least one second system in multiple systems of the movable platform through a GPIO interface on the SOC chip of the first system, and the at least one second system receives the SYNC signals sent by the first system based on the GPIO interface and calibrates set time according to the SYNC signals, so that time synchronization of the at least one second system is achieved.

Through one time of time synchronization operation, time deviation does not occur in the at least one second system along with the time, and accurate time synchronization is achieved. Thus, the movable platform can cooperatively process high real-time tasks based on the at least one second system. Moreover, after the time synchronization operation is performed once, periodic calibration operation is not required to be performed on the local time of each of the multiple systems of the movable platform every time in order to eliminate the deviation, so that the resource occupation of the system is reduced.

Referring to fig. 5, fig. 5 is a flowchart illustrating steps of a method for time synchronization of multiple systems of a mobile platform according to an embodiment of the present application. The method for time synchronization of multiple systems of the movable platform is applied to the second system provided by the embodiment, so that accurate time synchronization of the multiple systems of the movable platform is realized, and a high-real-time task is completed.

As shown in fig. 5, the multi-system time synchronization method for a movable platform includes steps S201 to S204.

S201, at least one second system receives a time service signal sent by a first system; the first system is a time reference system, and the at least one second system is a system waiting for time synchronization in the multiple systems.

The first system may be one of the multiple systems of the movable platform, or the first system may be another system than the multiple systems of the movable platform. The second system is a system for waiting time synchronization in the multiple systems of the movable platform. The second system and the first system are connected with the same clock source through the signal processing device. Alternatively, the signal processing device includes, but is not limited to, a buffer chip, a phase-locked loop chip, and the like, and the clock source includes, but is not limited to, a crystal oscillator, and the like.

The clock source sends a clock pulse signal to the signal processing device, and the signal processing device outputs the clock pulse signal to the first system and the at least one second system in a multi-path mode. The first system and the at least one second system achieve clock synchronization according to the clock pulse signal.

The first system is used as a time reference system and sends a time service signal to at least one second system in multiple systems of the movable platform, and the time service signal comprises time information. For example, the time information includes information such as year, month, day, hour, minute, and second. At least one second system in the multiple systems of the movable platform receives the time service signal sent by the first system.

In some embodiments, the first system and the second system both include a controller, the controller is provided with a first communication interface, the first system sends a time signal containing time information to at least one second system through the controller based on the first communication interface, and the at least one second system receives the time signal sent by the first system based on the first communication interface. Optionally, the first communication interface includes at least one of a UART interface, a USB interface, a PCIE interface, and a CAN interface.

In some embodiments, the controller includes an SOC chip on which the first communication interface is disposed. For example, the first system sends a data frame containing time information of year, month, day, hour, minute, second and the like to at least one second system in the multiple systems of the movable platform through a UART interface arranged on the SOC chip, and the at least one second system receives the data frame containing time information of year, month, day, hour, minute, second and the like sent by the first system based on the UART interface.

S202, extracting time information contained in the time service signal, and setting the time of the at least one second system according to the time information.

After the at least one second system receives the time service signal which is sent by the first system and contains the time information, each second system extracts the time information contained in the time service signal and carries out time setting of the second system according to the time information. For example, the local time setting of the second system is performed based on information such as year, month, day, hour, minute, and second included in the time information.

And S203, receiving the synchronous pulse signal sent by the first system.

S204, calibrating the time set by the at least one second system according to the synchronous pulse signal to realize time synchronization of the at least one second system, wherein the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

Because certain transmission delay exists in signal transmission, the time set by each second system according to the time information has slight difference, and in order to realize accurate time synchronization of at least one second system, the first system sends a synchronization pulse signal to the at least one second system. Optionally, the synchronization pulse signal sent by the first system is a SYNC signal, and the SYNC signal is a pulse signal, and the format of the pulse signal may refer to the PPS signal.

In some embodiments, the controllers of the first system and the second system are further provided with a second communication interface, the first system sends the synchronization pulse signal to at least one second system through the controller based on the second communication interface, and the at least one second system receives the synchronization pulse signal sent by the first system based on the second communication interface. Optionally, the second communication interface comprises a GPIO interface.

In some embodiments, the controller includes an SOC chip on which the second communication interface is disposed. For example, the first system sends a SYNC signal to at least one second system in multiple systems of the movable platform through a GPIO interface arranged on the SOC chip, and the at least one second system receives the SYNC signal sent by the first system based on the GPIO interface.

And after each second system receives the synchronous pulse signal sent by the first system, calibrating the time set by the second system according to the synchronous pulse signal. Specifically, the second system calibrates the set time according to a rising edge or a falling edge of the synchronization pulse signal, thereby achieving the at least one second system time synchronization. Thus, the movable platform can cooperatively process high real-time tasks based on the at least one second system.

In the method for synchronizing time of multiple systems of a mobile platform provided in the above embodiment, multiple systems of the mobile platform are connected to a same clock source through a signal processing device, a clock pulse signal sent by the clock source is multiplexed and output to multiple systems through the signal processing device, so that synchronization of multiple systems clocks is achieved, a first system serving as a time reference system sends a time service signal to at least one second system to be time-synchronized in the multiple systems, and the at least one second system performs time setting of the at least one second system according to time information included in the time service signal; the first system sends a synchronous pulse signal to the at least one second system, the at least one second system calibrates the time set by the at least one second system according to the synchronous pulse signal so as to realize time synchronization of the at least one second system, and then time deviation does not occur along with the time lapse, so that accurate time synchronization is achieved, and further the movable platform can finish high real-time performance.

Referring to fig. 6, fig. 6 is a schematic block diagram illustrating a structure of a multi-system time synchronization apparatus for a mobile platform according to an embodiment of the present disclosure. The multi-system time synchronization device of the movable platform can be applied to a first system outside the movable platform or applied to a first system in the multi-system of the movable platform.

The multiple systems of the movable platform are connected with the same clock source through the signal processing device, so that the clock pulse signals sent by the clock source are adopted to synchronize the multiple system clocks of the movable platform. As shown in fig. 6, the multi-system time synchronizer 600 of the movable platform includes a processor 601 and a memory 602, and the processor 601 and the memory 602 are connected by a bus 603, such as an I2C (Inter-integrated Circuit) bus 603. The multi-system time synchronization device 600 for a mobile platform is applied to a first system outside the mobile platform or applied to a first system in the multi-system of the mobile platform, and is used for performing accurate time synchronization on at least one second system of the mobile platform.

Specifically, the Processor 601 may be a Micro-controller Unit (MCU), a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or the like.

Specifically, the Memory 602 may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk.

Wherein the processor 601 is configured to run a computer program stored in the memory 602, and when executing the computer program, implement the following steps:

sending a time service signal to at least one second system, so that the at least one second system can set the time of the at least one second system according to the time information contained in the time service signal; wherein the at least one second system is a system to be time-synchronized in the multiple systems;

and sending a synchronization pulse signal to the at least one second system, so that the at least one second system calibrates the time set by the at least one second system according to the synchronization pulse signal to realize time synchronization of the at least one second system, and the at least one second system cooperatively processes a high-real-time task based on the synchronized time.

In some embodiments, the apparatus is provided with a first communication interface, and when the processor implements sending the time service signal to the at least one second system, the processor implements:

and sending the time service signal to the at least one second system based on the first communication interface.

In some embodiments, the first communication interface includes at least one of a UART interface, a USB interface, a PCIE interface, and a CAN interface.

In some embodiments, the apparatus is further provided with a second communication interface, and when the processor implements sending the synchronization pulse signal to the at least one second system, the processor implements:

transmitting the synchronization pulse signal to the at least one second system based on a second communication interface.

In some embodiments, the second communication interface comprises a GPIO interface, and the synchronization pulse signal is a SYNC signal.

In some embodiments, the signal processing device includes at least one of a buffer chip and a phase-locked loop chip.

In some embodiments, the apparatus includes an SOC chip on which the first communication interface and the second communication interface are disposed.

It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working process of the multi-system time synchronization apparatus for a movable platform described above may refer to the corresponding process in the foregoing embodiment of the multi-system time synchronization method for a movable platform, and is not described herein again.

The embodiment of the application also provides another multi-system time synchronization device of the movable platform, and the multi-system time synchronization device of the movable platform can be applied to a second system in the multi-system of the movable platform.

The multiple systems of the movable platform are connected with the same clock source through the signal processing device, so that the clock pulse signals sent by the clock source are adopted to synchronize the multiple system clocks of the movable platform. The multi-system time synchronizer of the movable platform comprises a processor and a memory, wherein the processor and the memory are connected through a bus, such as an I2C (Inter-integrated Circuit) bus. The multi-system time synchronization device of the movable platform is applied to at least one second system in the multi-system of the movable platform and used for carrying out accurate time synchronization on the at least one second system of the movable platform.

Specifically, the Processor may be a Micro-controller Unit (MCU), a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or the like.

Specifically, the Memory may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk.

Wherein the processor is configured to run a computer program stored in the memory and to implement the following steps when executing the computer program:

receiving a time service signal sent by a first system; wherein the first system is a time reference system;

extracting time information contained in the time service signal, and setting the time of at least one second system according to the time information; wherein the at least one second system is a system to be time-synchronized in the multiple systems;

receiving a synchronous pulse signal sent by the first system;

and calibrating the set time according to the synchronization pulse signal so as to realize the time synchronization of the at least one second system, wherein the at least one second system cooperatively processes the high-real-time task based on the synchronized time.

In some embodiments, when the processor performs the calibration of the set time according to the synchronization pulse signal, the following is specifically performed:

calibrating the set time according to a rising edge or a falling edge of the synchronization pulse signal.

It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working process of the multi-system time synchronization apparatus for a movable platform described above may refer to the corresponding process in the foregoing embodiment of the multi-system time synchronization method for a movable platform, and is not described herein again.

In an embodiment of the present application, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and the processor executes the program instructions to implement the steps of the method for time synchronization of multiple systems of a movable platform provided in the foregoing embodiment.

The computer-readable storage medium may be an internal storage unit of the removable platform or the multi-system time synchronizer of the removable platform according to any of the foregoing embodiments, for example, a hard disk or a memory of the removable platform or the multi-system time synchronizer of the removable platform. The computer readable storage medium may also be an external storage device of the removable platform or the multi-system time synchronizer of the removable platform, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the removable platform or the multi-system time synchronizer of the removable platform.

It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种对光网络设备上行发光时隙的分配方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!