Clock monitoring system and aircraft
By monitoring the aircraft component clocks through the SPI bus and watchdog chip, the safety hazards caused by clock asynchrony in the aircraft are resolved, component clock synchronization and communication reliability are achieved, and the safety of the aircraft is improved.
Patent Information
- Application Number
- CN202210836824.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-15
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-07-15
AI Technical Summary
If the clocks of various components of an aircraft are out of sync during flight, the aircraft may crash, causing unpredictable losses. Existing technologies have not been able to effectively solve the clock synchronization problem.
The first and second components, connected via an SPI bus, transmit the SPI chip select signal using the chip select signal line. The target unit determines whether the clock to be monitored is synchronized with the clock built into the first component, simplifying the clock monitoring system structure and improving monitoring reliability through a watchdog chip.
It enables effective monitoring of the built-in clocks of aircraft components, ensuring clock synchronization, improving the safety and communication reliability of the aircraft, and simplifying the structure of the clock monitoring system.
Smart Images

Figure CN117435373B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of aircraft technology, and more specifically, to a clock monitoring system and an aircraft. Background Technology
[0002] With the development of technology and the progress of society, the application of unmanned aerial vehicles (UAVs) is becoming increasingly widespread. For example, quadcopters are small aircraft capable of vertical takeoff and landing. They have attracted attention due to their compact size, high flexibility, low cost, and ease of maintenance. They can operate in various restricted environments, such as jungles, underground, or indoor environments. They have wide applications in areas such as urban express delivery, fire safety, power grid security inspection, and land resource surveying.
[0003] For aircraft (such as airplanes and quadcopters), safe and reliable flight is inseparable from the safe and reliable operation of its various components. Furthermore, multiple components need to work together during flight. If the clocks of the various components are out of sync during flight, it will affect the coordinated operation of the components, and in severe cases, it may lead to a crash, causing unpredictable losses to ground personnel and equipment as well as the aircraft itself. Summary of the Invention
[0004] The purpose of this disclosure is to provide a clock monitoring system and an aircraft to address problems existing in the related art.
[0005] To achieve the above objectives, the first aspect of this disclosure provides a clock monitoring system, the clock monitoring system comprising: a first component, a second component, and an SPI bus, wherein the first component and the second component each have a built-in clock;
[0006] The first component is connected to the second component via the SPI bus, and the chip select signal line in the SPI bus is connected to the target unit corresponding to the clock to be monitored in the second component, for transmitting the SPI chip select signal to the second component via the chip select signal line, wherein the clock to be monitored is any clock built into the second component;
[0007] The target unit is used to receive the SPI chip select signal and determine whether the clock to be monitored is synchronized with the clock built into the first component based on the SPI chip select signal.
[0008] Optionally, the target unit is used to determine the communication period and effective communication duration of the first component and the second component according to the SPI chip select signal. If the communication period is consistent with the preset communication period and the effective communication duration is consistent with the preset effective communication duration, then the clock to be monitored is determined to be synchronized with the clock built into the first component.
[0009] Optionally, when there are multiple clocks to be monitored in the second component, the chip select signal line in the SPI bus is connected to the target unit corresponding to each of the multiple clocks to be monitored in the second component.
[0010] Optionally, the clock built into the second component is a clock tree structure, and the clock to be monitored is the last level clock in the clock tree structure.
[0011] Optionally, the clock built into the first component has higher security than the clock built into the second component.
[0012] Optionally, the number of the second components may be multiple.
[0013] Optionally, both the first component and the second component are microcontroller units.
[0014] Optionally, the clock monitoring system further includes a watchdog chip, wherein the watchdog chip has a built-in clock, and the security of the clock built into the watchdog chip is higher than that of the clock built into the first component.
[0015] The watchdog chip is connected to the first component and is used to monitor whether the clock built into the first component is synchronized with the clock built into the watchdog chip.
[0016] The first component is used to transmit the SPI chip select signal to the second component via the chip select signal line when the clock built into the first component is synchronized with the clock built into the watchdog chip.
[0017] Optionally, if it is determined that the clock to be monitored is synchronized with the clock built into the first component, the first component communicates with the second component through the MOSI signal line and the MISO signal line, and determines whether the communication with the second component is normal according to the preset SPI communication protocol.
[0018] A second aspect of this disclosure provides an aircraft that includes a clock monitoring system as described in the first aspect of this disclosure.
[0019] Through the above technical solution, the first component is connected to the second component via an SPI bus, and the chip select signal line in the SPI bus is connected to the target unit in the second component corresponding to the clock to be monitored. Thus, the first component transmits the SPI chip select signal to the second component via the chip select signal line. The target unit in the second component can determine whether the clock to be monitored is synchronized with the clock built into the first component based on the received SPI chip select signal. In this way, the purpose of monitoring the clock built into the second component can be achieved using the first component, simplifying the structure of the clock monitoring system.
[0020] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0021] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings:
[0022] Figure 1 This is a schematic diagram illustrating a clock monitoring system according to an exemplary embodiment.
[0023] Figure 2 This is a schematic diagram illustrating an SPI chip select signal according to an exemplary embodiment.
[0024] Figure 3 This is a schematic diagram of another clock monitoring system according to an exemplary embodiment. Detailed Implementation
[0025] The specific embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit this disclosure.
[0026] It should be noted that all actions involving the acquisition of signals or data in this disclosure are carried out in accordance with the relevant data protection laws and policies of the country where the location is situated, and with the authorization granted by the owner of the relevant device.
[0027] As mentioned in the background art, if the clocks of various components of an aircraft are out of sync during flight, it will lead to an aircraft crash, causing unpredictable losses to ground personnel and equipment as well as the aircraft itself. In other words, ensuring the synchronization of the clocks of various components during flight is crucial for the safe flight of an aircraft. Therefore, it is necessary to monitor the clocks within the components of the aircraft.
[0028] In view of this, the present disclosure provides a clock monitoring system and an aircraft for the purpose of monitoring the clock built into the components.
[0029] Figure 1 This is a schematic diagram illustrating a clock monitoring system according to an exemplary embodiment. Figure 1As shown, the clock monitoring system 100 may include a first component 101, a second component 102, and an SPI (Serial Peripheral Interface) bus. The first component 101 is connected to the second component 102 via the SPI bus, and both the first component 101 and the second component 102 have built-in clocks. For example, the first component 101 and the second component 102 may be microcontroller units (MCUs).
[0030] The SPI bus includes MISO (Master Input Slave Output) signal lines, MOSI (Master Output Slave Input) signal lines, SCLK (Serial Clock) line, and CS (Chip Select) line. Figure 1 As shown, one end of the SPI bus is connected to the SPI_B interface in the first component 101, and the other end is connected to the SPI interface in the second component 102. The chip select signal line of the SPI bus is connected to a pin in the SPI_B interface of the second component 102, and also to the target cell corresponding to the clock to be monitored in the second component 102. The first component 101 is used to transmit the SPI chip select signal to the second component 102 via the chip select signal line. It should be understood that when the second component has multiple built-in clocks, the clock to be monitored can be any clock built into the second component.
[0031] For example, when there are multiple clocks to be monitored in the second component 102, the chip select signal line in the SPI bus is connected to the target unit corresponding to each of the multiple clocks to be monitored in the second component 102. For example, if the clocks to be monitored are a first clock and a second clock, and the target unit corresponding to the first clock is the first target unit, and the target unit corresponding to the second clock is the second target unit, then the chip select signal line in the SPI bus is connected to one pin of the SPI interface in the second component 102, as well as to the first target unit and the second target unit respectively, so as to monitor the first clock and the second clock simultaneously. It should be understood that connecting the chip select signal line in the SPI bus to one pin of the SPI interface in the second component 102 can achieve the purpose of the first component 101 monitoring the SPI clocks in the second component 102.
[0032] For example, the clock built into the second component 102 is a clock tree structure. It should first be understood that in a clock tree structure, multiple levels of frequency division of the clock source can yield different levels of clocks. For instance, a first-level frequency division of the clock source SYSCLK yields the first-level clock HCLK, a further division of HCLK yields the second-level clock PCLK1, and a final-level clock is obtained by dividing PCLK1. The unit corresponding to the final-level clock is the time input module (TIM). If the clock to be monitored is the final-level clock in the clock tree structure, the target unit is the time input module TIM of the second component 102. Thus, the chip select signal line is connected not only to a pin in the SPI_B interface of the second component 102 but also to the input clock module TIM in the second component 102, to achieve the purpose of monitoring the final-level clock in the clock tree structure.
[0033] Secondly, it should be understood that if the monitored last-level clock is synchronized with the clock built into the first component 101, then it can be determined that the clocks preceding the last-level clock are also synchronized with the clock built into the first component 101. For example, if the monitored last-level clock is synchronized with the clock built into the first component 101, then it can be determined that the second-level clock PCLK1, the first-level clock HCLK, and the clock source SYSCLK are all synchronized with the clock built into the first component.
[0034] In this example, simply connecting the chip select signal line in the SPI bus to the target unit corresponding to the last stage clock is sufficient to monitor the last stage clock and the clocks preceding it. This eliminates the need to connect the chip select signal line to the target units corresponding to each of the preceding clock stages individually, reducing the amount of wiring and simplifying the structure of the clock monitoring system.
[0035] The target unit receives the SPI chip select signal transmitted by the first component 101 and determines whether the clock to be monitored is synchronized with the clock built into the first component based on the SPI chip select signal. In a possible implementation, the target unit in the second component 102 determines the communication period and effective communication duration of the first component 101 and the second component 102 based on the SPI chip select signal. If the communication period is consistent with the preset communication period and the effective communication duration is consistent with the preset effective communication duration, then it is determined that the clock to be monitored is synchronized with the clock built into the first component 101.
[0036] The SPI chip select signal is used to indicate whether the second component 102 is selected for communication by the first component 101. For example, when the SPI chip select signal is a predefined enable signal (e.g., the enable signal can be a high level or a low level), the first component 101 and the second component 102 communicate; that is, the operation of the first component 101 on the second component 102 is valid. Therefore, in this embodiment, the effective communication duration of the SPI chip select signal or the enable chip select duration (i.e., the duration of the SPI chip select signal being a predefined enable signal) can be determined as the effective communication duration of the first component 101 and the second component 102.
[0037] Figure 2 This is a schematic diagram illustrating an SPI chip select signal according to an exemplary embodiment. For example... Figure 2 As shown, the communication period in this SPI chip select signal is 150ms, and the effective communication duration is 10ms. If the preset communication period is 150ms and the preset effective communication duration is 10ms, then the clock to be monitored is determined to be synchronized with the clock built into the first component 101.
[0038] With a preset communication period of 150ms, the first component 101 and the second component 102 communicate once every 150ms. In one possible manner, the heartbeat counters in the first component 101 and the second component 102 are initially reset to 0, and incremented by 1 every preset duration (in ms). When the heartbeat counter reaches N (N = 150 / preset duration), it is reset to 0 again. It should be understood that when setting the preset duration, N must be an integer.
[0039] Using the above technical solution, the first component is connected to the second component via an SPI bus, and the chip select signal line in the SPI bus is connected to the target unit in the second component corresponding to the clock to be monitored. Thus, the first component transmits the SPI chip select signal to the second component via the chip select signal line. The target unit in the second component can determine whether the clock to be monitored is synchronized with the clock built into the first component based on the received SPI chip select signal. In this way, the first component can be used to monitor the clock built into the second component, simplifying the structure of the clock monitoring system.
[0040] Considering that if the clock built into the first component 101 malfunctions, the clock built into the second component 102 cannot be reliably monitored, in one embodiment, to improve the reliability of monitoring the clock built into the second component 102, the security of the clock built into the first component 101 is higher than that of the clock built into the second component 102. This improves the reliability of monitoring the clock built into the second component.
[0041] In practical applications, aircraft often require clock monitoring of numerous components. To further simplify the clock monitoring system structure, the first component 101 can monitor the clocks built into multiple second components 102. For example, there are multiple second components 102, and the first component 101 is connected to each second component 102 via an SPI bus, monitoring the clock of each second component 102 as described above. Thus, a single first component 101 can monitor the clocks of multiple second components 102, further simplifying the clock monitoring system structure.
[0042] Figure 3 This is a schematic diagram illustrating another clock monitoring system according to an exemplary embodiment. For example... Figure 3 As shown, the clock monitoring system 100 may further include a watchdog chip 103, and the watchdog chip 103 has a built-in clock. The watchdog chip 103 is connected to the first component 101 and is used to monitor whether the clock built into the first component 101 is synchronized with the clock built into the watchdog chip 103. Figure 3 As shown, the watchdog chip 103 is connected to the first component 101 via an SPI bus. For example, the four lines of the SPI bus are connected to the first component 101 via four pins of the SPI_A interface in the first component 101. The first component 101 is used to transmit the SPI chip select signal to the second component 102 via the chip select signal line when the clock built into the first component 101 is synchronized with the clock built into the watchdog chip 103. It should be understood that the chip select signal line here refers to the chip select signal line connecting the first component 101 and the second component 102.
[0043] Furthermore, if the clock built into the first component 101 is not synchronized with the clock built into the watchdog chip 103, in order to prevent the first component 101 from erroneously monitoring the clock built into the second component 102, in this disclosure, when the clock built into the first component 101 is not synchronized with the clock built into the watchdog chip 103, the first component 101 can be controlled to stop working. For example, such as... Figure 3 As shown, when the clock built into the first component 101 is out of sync with the clock built into the watchdog chip 103, the watchdog chip 103 sends a reset signal to the first component 101. Thus, the first component 101 stops working after receiving the reset signal sent by the watchdog chip 103.
[0044] In this disclosure, the clock built into the watchdog chip 103 and the clock built into the first component 101 are independent of each other, and the security of the clock built into the watchdog chip 103 is higher than that of the clock built into the first component 101. That is, the clock with higher security and reliability is used to monitor the clock built into the first component, thereby improving the reliability of monitoring the clock built into the first component 101. Furthermore, when it is determined that the clock built into the first component 101 is synchronized with the clock built into the watchdog chip 103, the first component 101 is then used to monitor the clock built into the second component 102, thus further improving the reliability of monitoring the clock built into the second component.
[0045] In addition, if it is determined that the clock to be monitored is synchronized with the clock built into the first component 101, the first component 101 can also communicate with the second component 102 through the MOSI signal line and the MISO signal line, and determine whether the communication with the second component is normal according to the preset SPI communication protocol.
[0046] For example, if it is determined that the clock to be monitored is synchronized with the clock built into the first component 101, firstly, the first component 101 sends a command to the second component 102 through the MOSI signal line. Then, after receiving the command, the second component 102 sends feedback data to the first component 101 in response to the command. Finally, the first component 101 determines whether the communication with the second component 102 is normal based on the received feedback data and the preset SPI communication protocol.
[0047] For example, Table 1 shows the preset SPI communication protocol. In Table 1, QUESTION represents the question number corresponding to the instruction, and RESP0, RESP1, RESP2, and RESP3 represent the calculation methods corresponding to the instructions. Assuming that the question number corresponding to the instruction sent by the first component 101 to the second component 102 is 1, after the first component 101 sends the instruction, the first component 101 and the second component 102 calculate the result data corresponding to the instruction according to the calculation method corresponding to the instruction in the SPI communication protocol shown in Table 1. Then, the second component 102 sends its calculated result data to the first component 101 (called feedback data). Finally, the first component 101 determines whether the received feedback data is consistent with the result data calculated by the first component 101. If they are consistent, it indicates that the calculation logic of the first component 101 and the second component 102 is accurate, that is, the communication between the two is normal.
[0048] Table 1 lists the preset SPI communication protocols.
[0049] QUESTION RESP3 RESP2 RESP1 RESP0 0 FF 0E E0 00 1 B0 40 BF 3F 2 E9 19 28 39 3 99 21 D8 48 4 DD DE E0 20 5 A0 49 2F 6F 6 AA C4 28 39 7 23 65 89 33 8 E4 29 2A 79 9 CC 21 D2 4D A DD 3E D0 98 B A0 49 2F 6F C AA C4 28 39 D CA F9 77 00 E EC D1 32 7D F DA AE DA A8
[0050] By adopting the above technical solution, the first component and the second component communicate using the SPI protocol. This not only allows monitoring of the clock built into the second component, but also monitoring of whether the communication between the first component and the second component is normal, thus improving the reliability of the communication between the first component and the second component.
[0051] Based on the same inventive concept, this disclosure also provides an aircraft that includes the clock monitoring system provided in this disclosure.
[0052] The preferred embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. However, this disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this disclosure, various simple modifications can be made to the technical solutions of this disclosure, and these simple modifications all fall within the protection scope of this disclosure.
[0053] It should also be noted that the various specific technical features described in the above embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this disclosure will not describe the various possible combinations separately.
[0054] Furthermore, various different embodiments of this disclosure can be combined in any way, as long as they do not violate the spirit of this disclosure, they should also be regarded as the content disclosed in this disclosure.
Claims
1. A clock monitoring system, characterized in that, The clock monitoring system includes: a first component, a second component, and an SPI bus, wherein both the first component and the second component have built-in clocks; The first component is connected to the second component via the SPI bus, and the chip select signal line in the SPI bus is connected to the target unit corresponding to the clock to be monitored in the second component, for transmitting the SPI chip select signal to the second component via the chip select signal line, wherein the clock to be monitored is any clock built into the second component; The target unit is used to receive the SPI chip select signal and determine whether the clock to be monitored is synchronized with the clock built into the first component based on the SPI chip select signal. The target unit is further configured to determine the communication cycle and effective communication duration of the first component and the second component based on the SPI chip select signal. If the communication cycle is consistent with the preset communication cycle and the effective communication duration is consistent with the preset effective communication duration, then the clock to be monitored is determined to be synchronized with the clock built into the first component.
2. The clock monitoring system according to claim 1, characterized in that, When there are multiple clocks to be monitored in the second component, the chip select signal line in the SPI bus is connected to the target unit corresponding to each of the multiple clocks to be monitored in the second component.
3. The clock monitoring system according to claim 1, characterized in that, The clock built into the second component is a clock tree structure, and the clock to be monitored is the last level clock in the clock tree structure.
4. The clock monitoring system according to claim 1, characterized in that, The clock built into the first component is more secure than the clock built into the second component.
5. The clock monitoring system according to claim 1, characterized in that, The number of the second component is multiple.
6. The clock monitoring system according to claim 1, characterized in that, Both the first component and the second component are microcontroller units.
7. The clock monitoring system according to any one of claims 1-6, characterized in that, The clock monitoring system further includes a watchdog chip, which has a built-in clock, and the security of the clock built into the watchdog chip is higher than that of the clock built into the first component. The watchdog chip is connected to the first component and is used to monitor whether the clock built into the first component is synchronized with the clock built into the watchdog chip. The first component is used to transmit the SPI chip select signal to the second component via the chip select signal line when the clock built into the first component is synchronized with the clock built into the watchdog chip.
8. The clock monitoring system according to any one of claims 1-6, characterized in that, If it is determined that the clock to be monitored is synchronized with the clock built into the first component, the first component communicates with the second component through the MOSI signal line and the MISO signal line, and determines whether the communication with the second component is normal according to the preset SPI communication protocol.
9. An aircraft, characterized in that, The aircraft includes a clock monitoring system as described in any one of claims 1-8.
Citation Information
Patent Citations
Clock signal monitor for slave device on a master-slave bus
CN111949593A
