Time synchronization system, method, apparatus, vehicle, medium and program product
By having the auxiliary control unit take over the time synchronization task when the main control unit malfunctions, redundant backup of the time synchronization function is achieved, which solves the problem of time synchronization anomalies between nodes in the functional domain subsystem and the host domain subsystem, and improves the operational security and stability of the equipment.
Patent Information
- Application Number
- CN202510677769.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2026-11-24
AI Technical Summary
An malfunction in the time synchronization function of the microcontroller unit in the functional domain subsystem causes the nodes within the functional domain subsystem to lose time synchronization with the host domain subsystem, affecting the operation of important upper-layer services and even threatening the operational security of the equipment.
When the time synchronization function of the main control unit malfunctions, the auxiliary control unit takes over the time synchronization task of the main control unit and performs time synchronization with the system functional units to achieve redundant backup of the time synchronization function.
Ensuring that nodes within the functional domain subsystem are synchronized with the host domain subsystem reduces the probability of time synchronization anomalies and improves the operational security and stability of the equipment.
Smart Images

Figure CN123163759A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of time synchronization technology, and more particularly to a time synchronization system, method, apparatus, vehicle, medium, and program product. Background Technology
[0002] Ethernet time synchronization (Generalized Precision Time Protocol, gPTP) is widely used in the networks of vehicles and other equipment to achieve time synchronization accuracy at the sub-microsecond or even nanosecond level, meeting the business requirements for high-precision time synchronization.
[0003] Currently, time synchronization between the functional domain subsystem and the host domain subsystem of the device is achieved by synchronizing the control unit of the host domain subsystem with the control unit of the functional domain, and then synchronizing the time of other nodes within the functional domain by the control unit. If the time synchronization function of the control unit of the functional domain subsystem malfunctions, the nodes within the functional domain subsystem will be unable to synchronize with the nodes within the host domain subsystem, affecting the operation of critical upper-layer services and even threatening the operational security of the device. Summary of the Invention
[0004] This invention provides a time synchronization system, method, apparatus, vehicle, medium, and program product to solve the problem that when the time synchronization function of the microcontroller unit of the functional domain subsystem malfunctions, the time of the nodes within the functional domain subsystem cannot be synchronized with that of the host domain subsystem, affecting the operation of important upper-layer services and even threatening the operational safety of equipment.
[0005] In a first aspect, embodiments of the present invention provide a time synchronization system, comprising:
[0006] The system comprises a functional domain subsystem and a host domain subsystem; the functional domain subsystem includes a main control unit, an auxiliary control unit, and a system functional unit connected to a first switch, the main control unit and the auxiliary control unit being connected; the host domain subsystem includes a host control unit connected to a second switch; the first switch and the second switch are connected.
[0007] The auxiliary control unit synchronizes its time with the host control unit, and synchronizes its time with the system functional unit if the host control unit's time synchronization function is detected to be malfunctioning.
[0008] Secondly, embodiments of the present invention provide a time synchronization method, applied to an auxiliary control unit of a functional domain subsystem in a time synchronization system according to any embodiment of the present invention; the method includes:
[0009] Synchronize time with the host control unit of the host domain subsystem;
[0010] If an abnormality is detected in the time synchronization function of the master control unit in the functional domain subsystem, time synchronization is performed with the system functional units in the functional domain subsystem.
[0011] Thirdly, embodiments of the present invention provide a time synchronization method, applied to the main control unit of a functional domain subsystem in a time synchronization system according to any embodiment of the present invention; the method includes:
[0012] If the time synchronization function malfunctions, disable its own time synchronization function.
[0013] An abnormal status notification message is sent to the auxiliary control unit in the functional domain subsystem. The abnormal status notification message is used to notify the auxiliary control unit to synchronize its time with the system functional unit in the functional domain subsystem.
[0014] Fourthly, embodiments of the present invention provide a time synchronization device applied to an auxiliary control unit of a functional domain subsystem in a time synchronization system according to any embodiment of the present invention; the device includes:
[0015] The first time synchronization module is used to synchronize time with the host control unit of the host domain subsystem;
[0016] The second time synchronization module is used to synchronize time with the system functional units in the functional domain subsystem when an abnormality in the time synchronization function of the master control unit in the functional domain subsystem is detected.
[0017] Fifthly, embodiments of the present invention provide a time synchronization device applied to an auxiliary control unit of a functional domain subsystem in a time synchronization system according to any embodiment of the present invention; the device includes:
[0018] The time synchronization shutdown module is used to disable its own time synchronization function in case of time synchronization failure.
[0019] The synchronization anomaly notification module is used to send an anomaly status notification message to the auxiliary control unit in the functional domain subsystem. The anomaly status notification message is used to notify the auxiliary control unit to synchronize time with the system functional unit in the functional domain subsystem.
[0020] Sixthly, embodiments of the present invention provide a vehicle, the vehicle comprising:
[0021] At least one processor;
[0022] and a memory communicatively connected to the at least one processor;
[0023] The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the time synchronization method described in any embodiment of the present invention.
[0024] In a seventh aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the time synchronization method described in any embodiment of the present invention.
[0025] Eighthly, embodiments of the present invention provide a computer program product including a computer program that, when executed by a processor, implements the time synchronization method described in any embodiment of the present invention.
[0026] The technical solution of this invention provides a time synchronization system, including: a functional domain subsystem and a host domain subsystem; the functional domain subsystem includes a main control unit, an auxiliary control unit, and a system function unit connected to a first switch, with the main control unit and the auxiliary control unit connected; the host domain subsystem includes a host control unit connected to a second switch; the first switch and the second switch are connected; when the auxiliary control unit detects an anomaly in the time synchronization function of the main control unit, it performs time synchronization with the system function unit. Based on the concept of redundant backup of the time synchronization function, when the auxiliary control unit in the host domain detects an anomaly in the time synchronization function of the main control unit, it immediately takes over the time synchronization task of the main control unit and performs time synchronization with the system chip of the functional domain. This ensures that even when the time synchronization function of the main control unit is abnormal, the nodes in the functional domain subsystem can still synchronize normally with the host domain, solving the problem that an anomaly in the time synchronization function of the main control unit of the functional domain subsystem may lead to a loss of time synchronization between the nodes in the functional domain subsystem and the host domain subsystem, reducing the probability of time synchronization anomalies between the functional domain subsystem and the host domain subsystem, and improving the security and stability of equipment operation.
[0027] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1This is a schematic diagram of the structure of a traditional time synchronization system;
[0030] Figure 2 This is a schematic diagram of the traditional time synchronization message sending and receiving path;
[0031] Figure 3 This is a schematic diagram of a time synchronization system provided in Embodiment 1 of the present invention;
[0032] Figure 4 A schematic diagram of a communication link in a time synchronization system provided in an embodiment of the present invention;
[0033] Figure 5 This is a schematic diagram of the time synchronization message transmission and reception path of a time synchronization system provided in Embodiment 1 of the present invention;
[0034] Figure 6 A flowchart of a time synchronization method provided in Embodiment 2 of the present invention;
[0035] Figure 7 A flowchart of a time synchronization method provided in Embodiment 3 of the present invention;
[0036] Figure 8 This is a schematic diagram of a vehicle time synchronization device provided in Embodiment 4 of the present invention;
[0037] Figure 9 This is a schematic diagram of a time synchronization device provided in Embodiment 5 of the present invention;
[0038] Figure 10 A schematic diagram of the vehicle structure for implementing the time synchronization method of this invention. Detailed Implementation
[0039] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0040] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0041] Figure 1 This is a schematic diagram of the structure of a traditional time synchronization system, such as... Figure 1 As shown, a traditional time synchronization system includes a functional domain subsystem 10 and a host domain subsystem 20. Functional domain subsystem 10 includes a main control unit 11, an auxiliary control unit 12, and system functional units 13 connected to a first switch 14. Host domain subsystem 20 includes a host control unit 21 connected to a second switch 22. Within a first virtual local area network (VLAN), the host control unit 21 of host domain subsystem 20 communicates with the main control unit 11 of functional domain subsystem 10 through the second switch 22 and the first switch 14. Within a second VLAN, the main control unit 11, auxiliary control unit 12, and each system functional unit 13 of the functional domain subsystem communicate with each other through the first switch 14. Figure 1 In the diagram, the message transmission path of the first virtual local area network is represented by a solid line; the message transmission path of the second virtual local area network is represented by a dashed line.
[0042] The host control unit 21 of the host domain subsystem 20 acts as the master node for time synchronization, and the master control unit 11 of the functional domain subsystem 10 acts as the slave node for time synchronization. Within the first virtual local area network (VLAN), the master control unit 11 of the functional domain subsystem 10 performs time synchronization with the host control unit 21 of the host domain subsystem. The master control unit 11 of the functional domain subsystem 10 acts as the master node for time synchronization, while the auxiliary control unit 12 and each system functional unit 13 act as slave nodes. After completing time synchronization, the master control unit 11 of the functional domain subsystem 10 performs time synchronization with each node of the host domain subsystem within the second VLAN.
[0043] Figure 2 This is a schematic diagram of a traditional time-synchronization message sending and receiving path. For example... Figure 2As shown, the main control unit 11 acts as an intermediate node between the host domain subsystem 20 and the functional domain subsystem 10. If the main control unit 11 malfunctions (network failure, abnormal acquisition of network card timestamp, system crash, etc.), the time of the host domain subsystem 20 cannot be synchronized with the time of the functional domain subsystem 10. As the running time accumulates, the time deviation between each node in the functional domain subsystem 10 and the time of the host domain subsystem 20 becomes larger and larger, which will affect the operation of time-sensitive services at the upper layer, such as the inability of the functional domain subsystem to function properly.
[0044] In view of the above problems, this embodiment proposes a time synchronization method to ensure that the nodes in the functional domain subsystem 10 are synchronized with the host domain subsystem 20 when the time synchronization function of the main control unit 11 in the functional domain subsystem 10 is abnormal, thereby ensuring that services that depend on time synchronization can operate normally.
[0045] Example 1
[0046] Figure 3 This is a schematic diagram of a time synchronization system provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where time synchronization is performed between nodes within a functional domain subsystem and a host domain subsystem. Figure 3 As shown, the time synchronization system includes a functional domain subsystem 10 and a host domain subsystem 20. The functional domain subsystem includes a main control unit 11, an auxiliary control unit 12, and a system functional unit 13 connected to the first switch 14. The main control unit 11 and the auxiliary control unit 12 are connected. The host domain subsystem 20 includes a host control unit 21 connected to the second switch 22. The first switch 11 and the second switch 22 are connected. The auxiliary control unit 12 synchronizes time with the host control unit 21, and synchronizes time with the system functional unit 13 when a time synchronization malfunction of the main control unit 11 is detected.
[0047] The functional domain subsystem 10 can be understood as a subsystem with relatively independent functions, divided according to specific functional domains within a complex system. The functional domain subsystem 10 includes: a main control unit 11, an auxiliary control unit 12, a system functional unit 13, and a first switch 14. The main control unit 11 and the auxiliary control unit 12 are two control units within the functional domain subsystem 10. During time synchronization, the main control unit 11 serves as the primary unit, and the auxiliary control unit 12 serves as the secondary unit. The system functional unit 13 can be understood as the unit that implements the various functions of the functional domain subsystem. The first switch 14 is used to realize data exchange between the functional domain subsystem 10 and external systems.
[0048] The host domain subsystem 20 can be understood as a key subsystem responsible for core computing, control, decision-making, and system management within a complex system. The host domain subsystem 20 includes: a host control unit 21 and a second switch 22. The host control unit 21 can be understood as the control unit of the host domain subsystem. The second switch 22 is used to implement internal and external data exchange within the host domain subsystem 20.
[0049] For example, the main control unit 11, auxiliary control unit 12, and host control unit 21 can be implemented using a microcontroller unit (MCU). The system functional unit 13 can be implemented using a system-on-a-chip (SoC). The number of system functional units 13 can be one or more, and this embodiment of the invention does not impose any limitation on this. The number of auxiliary control units 12 serving as redundant backups of the main control unit 11 can also be one, two, or more. If multiple auxiliary control units 12 exist, they can take over the time synchronization task of the main control unit 11 according to a preset priority, or the priority of taking over the main control unit 11 can be determined based on the location information and status information of the auxiliary control units 12. This embodiment does not limit the communication methods between the main control unit 11, auxiliary control unit 12, and system functional unit 13 in the functional domain subsystem 10 and the first switch 14, nor the communication method between the main control unit 11 and the auxiliary control unit 12. The communication method between the second switch 22 and the host control unit 21 in the host domain subsystem 20 is also not limited. Similarly, the communication method between the first switch 14 and the second switch 22 is also not limited. In this embodiment, as Figure 3 As shown, the time synchronization system includes a functional domain subsystem 10 and a host domain subsystem 20. The functional domain subsystem 10 includes a first switch 14, and a main control unit 11, an auxiliary control unit 12, and a system functional unit 13, all connected to the first switch 14. The main control unit 11 and the auxiliary control unit 12 are connected and can communicate with each other. The main control unit 11 and the auxiliary control unit 12 can communicate with the system functional unit 13 through the first switch 14. The host domain subsystem 20 includes a second switch 22, and a host control unit 21 connected to the second switch. The host control unit 21 in the host domain subsystem 20 can communicate with the main control unit 11, the auxiliary control unit 12, and the system functional unit 13 in the functional domain subsystem 10 through the second switch 22 and the first switch 14, respectively. The auxiliary control unit 12 in the functional domain subsystem 10 maintains time synchronization with the host control unit 21 in the host domain subsystem 20 through the first switch 14 and the second switch 22. In the event of a time synchronization malfunction in the main control unit 11 of the functional domain subsystem 10, the auxiliary control unit 12 takes over the time synchronization task of the main control unit 11 and performs time synchronization with the system functional unit 13.
[0050] In one alternative embodiment, Figure 4 This is a schematic diagram of a communication link in a time synchronization system provided by an embodiment of the present invention. Figure 4 As shown, a first virtual local area network (VLAN) can exist between the functional domain subsystem 10 and the host domain subsystem 20. Figure 4 (The interaction message transmission path of the first virtual LAN is represented by a solid line). Within the first virtual LAN, the host control unit 13 in the host domain subsystem 20 communicates with the main control unit 11 and auxiliary control unit 12 in the functional domain subsystem 10 through the second switch 22 and the first switch 14 in the functional domain subsystem 10. A second virtual LAN may exist within the functional domain subsystem 10 (in...). Figure 4 The interactive message transmission path of the second virtual local area network (VLAN) is represented by a dashed line. In the second VLAN, the main control unit 11, auxiliary control unit 12, and system functional unit 13 communicate with each other based on the first switch 14. Additionally, the main control unit 11 and auxiliary control unit 12 in the functional domain subsystem 10 can communicate via a serial communication link. Figure 4 The communication link between the main control unit 11 and the auxiliary control unit 12 is represented by a dashed line. For example, the first virtual local area network and the second virtual local area network can be different Ethernet communication links, such as VLAN 93 and VLAN 92.
[0051] Figure 5 This is a schematic diagram of the time synchronization message transmission and reception path in a time synchronization system provided in Embodiment 1 of the present invention. Figure 5 As shown, during the time synchronization process between the functional domain subsystem 10 and the host domain subsystem 20 in the time synchronization system, when both the master control unit 11 and the auxiliary control unit 12 in the functional domain subsystem 10 are operating normally, the host control unit 21 in the host domain subsystem 20 acts as the master node, and the master control unit 11 and the auxiliary control unit 12 in the functional domain subsystem 10 act as slave nodes respectively. The master node synchronizes time with each slave node based on the second switch 22 and the first switch 14 respectively, so that the master control unit 11 and the auxiliary control unit 12 in the functional domain subsystem 10 are synchronized with the host control unit 21 in the host domain subsystem 20.
[0052] When the time synchronization function of the master control unit 11 is normal, the master control unit 11 in the functional domain subsystem 10 can act as the master node for time synchronization, and each system functional unit 13 in the functional domain subsystem 10 acts as a slave node. The master node synchronizes time with each slave node based on the first switch, thereby achieving time synchronization between the master control unit 11 and each system functional unit 13, and thus achieving time synchronization between each node in the functional domain subsystem 10 and the host control unit 21 in the host domain subsystem 20. If the auxiliary control unit 12 in the functional domain subsystem 10 detects an abnormality in the time synchronization function of the master control unit 11 through serial communication with the master control unit 11, it maintains time synchronization with the host domain subsystem 20 and acts as a backup master node to synchronize time with each slave node, thus still achieving time synchronization between each node in the functional domain subsystem 10 and the host control unit 21 in the host domain subsystem 20 even when the time synchronization function of the master control unit 11 is abnormal.
[0053] For example, the time synchronization process between the master node and the slave node can be as follows: In a gPTP network, the master node sends a Sync message to the slave node. The Sync message contains the master node's message transmission timestamp t1. The slave node receives the Sync message and records the message reception timestamp t2. The master node sends a Follow-Up message carrying the message transmission timestamp t1 to correct the transmission delay of the Sync message. At time t3, the slave node sends a Delay_Req message, requesting the master node to confirm the reception time. The master node receives the Delay_Req message at time t4 and records the timestamp t4. The master node sends a Delay_Resp message carrying the timestamp t4 to inform the slave node of the time it received the Delay_Req message. The slave node calculates the path transmission delay and time deviation based on t1, t2, t3, and t4 to achieve time synchronization between the slave node and the master node.
[0054] It is understandable that the time synchronization process between the main control unit 11 in functional domain subsystem 10 and the host control unit 21 in host domain subsystem 20 is two independent processes from the time synchronization process between the auxiliary control unit 12 in functional domain subsystem 10 and the host control unit 21 in host domain subsystem 20. Whether the main control unit 11 is operating normally or not does not affect the time synchronization process between the auxiliary control unit 12 and the host control unit 21.
[0055] It should be noted that when the time synchronization function of the main control unit 11 is normal, the auxiliary control unit 12 in the functional domain subsystem 10 does not receive or send time synchronization messages within the second virtual local area network, but only performs time synchronization calibration with the host control unit 21 in the host domain subsystem 20. In the event of a time synchronization malfunction in the main control unit 11, the auxiliary control unit 12 immediately takes over from the main control unit 11 and sends time synchronization messages to each system functional unit 13 for time synchronization.
[0056] This embodiment is based on the idea of redundant backup of time synchronization function. The main control unit 11 and the auxiliary control unit 12 achieve mutual redundancy backup. Both the main control unit 11 and the auxiliary control unit 12 perform time synchronization with the host control unit 21 in the host domain subsystem 20. When the auxiliary control unit 12 detects that the time synchronization function of the main control unit 11 is abnormal, it immediately takes over the time synchronization task of the main control unit 11 and performs time synchronization with the system function unit 13 in the functional domain subsystem 10. This ensures that when the time synchronization function of the main control unit 11 is abnormal, the nodes in the functional domain subsystem 10 can still perform time synchronization with the host domain subsystem 20 normally.
[0057] This invention provides a time synchronization system, comprising: a functional domain subsystem and a host domain subsystem; the functional domain subsystem includes a main control unit, an auxiliary control unit, and a system function unit connected to a first switch, with the main control unit and the auxiliary control unit connected; the host domain subsystem includes a host control unit connected to a second switch; the first switch and the second switch are connected; the auxiliary control unit performs time synchronization with the host control unit, and, upon detecting a time synchronization malfunction in the main control unit, performs time synchronization with the system function unit. Based on the concept of time synchronization function redundancy backup, when the auxiliary control unit detects a time synchronization malfunction in the main control unit, it immediately takes over the time synchronization task of the main control unit and performs time synchronization with the system function unit within the functional domain subsystem. This ensures that even when the main control unit's time synchronization function malfunctions, nodes within the functional domain subsystem can still normally synchronize with the host control unit of the host domain subsystem, reducing the probability of time synchronization malfunctions between the functional domain subsystem and the host domain subsystem, and improving the security and stability of equipment operation.
[0058] As an optional implementation of this embodiment, the main control unit 11 synchronizes time with the host control unit 21 and the system function unit 13 when the time synchronization function is normal.
[0059] In this embodiment, when the time synchronization function of the master control unit 11 is normal, the host control unit 21 in the host domain subsystem 20 can act as the master node for time synchronization. It maintains time synchronization with the master control unit 11 in the functional domain subsystem 10 through the second switch 22 and the first switch 14, thus achieving inter-domain time synchronization. Within the functional domain subsystem 10, the master control unit 11 can act as the master node for time synchronization, and each system functional unit within the functional domain subsystem 10 can act as a slave node. The master node maintains time synchronization with each slave node based on the first switch 14, achieving intra-domain time synchronization, thereby ensuring that each node in the functional domain subsystem 10 maintains time synchronization with the host control unit 21 in the host domain subsystem 20.
[0060] This embodiment achieves time synchronization between each node in the functional domain subsystem and the host control unit in the host domain subsystem through the master control unit in the functional domain subsystem.
[0061] As an optional implementation of this embodiment, the main control unit 11 sends a normal status notification message to the auxiliary control unit 12 when the local time synchronization function is detected to be normal.
[0062] When the main control unit 11 detects an abnormality in the local time synchronization function, it sends an abnormal status notification message to the auxiliary control unit 12.
[0063] In this context, a normal status notification message can be understood as a status notification message sent when the time synchronization function is working properly, while an abnormal status notification message can be understood as a status notification message sent when the time synchronization function is malfunctioning. A status notification message can be understood as a message sent by the sender to notify the receiver whether its time synchronization function is working properly.
[0064] Specifically, the main control unit 11 and the auxiliary control unit 12 can communicate via a serial communication link. The main control unit 11 is used to notify the auxiliary control unit 12 whether its own time synchronization function is in a normal or abnormal state. When the main control unit 11 detects that the local time synchronization function is normal, it sends a normal state notification message to the auxiliary control unit 12 at a fixed frequency. When the auxiliary control unit 12 receives the normal state notification message, it maintains time synchronization with the host control unit 21 of the host domain subsystem 20, and does not send time synchronization messages to the system function units 13 within the functional domain subsystem 10.
[0065] When the main control unit 11 detects an abnormality in the local time synchronization function, such as a time stamp function abnormality or a network abnormality, it sends an abnormal status notification message to the auxiliary control unit 12. Upon receiving the abnormal status notification message, the auxiliary control unit 12 immediately takes over the time synchronization task of the main control unit 11 and acts as the master node for time synchronization with the system functional units 13 in the functional domain subsystem 10.
[0066] In this embodiment, when the time synchronization function of the main control unit is abnormal, the auxiliary control unit 12 is notified to take over the time synchronization task of the main control unit 11 in a timely manner and synchronize the time with the system functional units in the functional domain subsystem 10. Thus, even when the time synchronization function of the main control unit 11 is abnormal, the time synchronization between each node in the functional domain subsystem 10 and the host domain subsystem 20 can still be achieved.
[0067] As an optional implementation of this embodiment, the auxiliary control unit 12 enables the time synchronization function in the functional domain subsystem 10 when it receives the abnormal status notification message.
[0068] Specifically, under certain abnormal circumstances, the main control unit 11 can send an abnormal status notification message to the auxiliary control unit 12, enabling the auxiliary control unit 12 to detect any abnormalities in the time synchronization function of the main control unit 11. In other abnormal circumstances, such as network anomalies, it may be unable to send the abnormal status notification message to the auxiliary control unit 12 normally. However, under normal circumstances, the main control unit 11 will send normal status notification messages to the auxiliary control unit 12 at a fixed frequency and send a first time synchronization message to the system functional unit 13 through the first switch 14. Since the first time synchronization message is a multicast message, the auxiliary control unit 12 will also receive it. However, because the time synchronization function in the functional domain subsystem is not enabled, the auxiliary control unit 12 will discard the first time synchronization message without processing it. Each time the auxiliary control unit 12 receives a normal status notification message, it can record and update the message reception time of that message. When the auxiliary control unit 12 does not receive an abnormal status notification message from the main control unit 11, it periodically obtains the current time and the message reception time of the last received normal status notification message, and calculates the time interval between the current time and the message reception time. If the time interval is greater than the time threshold and the auxiliary control unit 12 does not receive the first time synchronization message sent by the main control unit 11, it indicates that the time synchronization function of the main control unit 11 is abnormal. Therefore, the auxiliary control unit 12 enables the time synchronization function in the functional domain subsystem and takes over the time synchronization task of the main control unit 11 to synchronize the time with the system functional unit 13 in the functional domain subsystem 10.
[0069] In this embodiment, the auxiliary control unit 12 detects the time when it last received the normal status notification message from the main control unit 11, and whether it has received the first time synchronization message sent by the main control unit 11, to determine in real time whether the time synchronization function of the main control unit 11 is abnormal. Even if the main control unit 11 malfunctions and cannot send messages normally, the abnormality of the main control unit 11 can still be detected in time, allowing the auxiliary control unit 12 to take over the time synchronization task of the main control unit 11 in a timely manner, thus achieving time synchronization between each node in the functional domain subsystem 10 and the host domain subsystem 20.
[0070] As an optional implementation of this embodiment, the main control unit 11 sends a first time synchronization message to the system functional unit 13 to synchronize time with the system functional unit 13;
[0071] The auxiliary control unit sends a second time synchronization message to the system functional unit 13 to synchronize time with the system functional unit 13.
[0072] The first time synchronization message and the second time synchronization message carry the common access address of the main control unit 11 and the auxiliary control unit 12.
[0073] The first time synchronization message can be understood as a message for time synchronization between the main control unit 11 and the system functional unit 13, and the second time synchronization message can be understood as a message for time synchronization between the auxiliary control unit 12 and the system functional unit 13. The first time synchronization message carries the access address of the main control unit 11, and the second time synchronization message carries the access address of the auxiliary control unit 12. During the time synchronization process between the functional domain subsystem 10 and the host domain subsystem 20, the main control unit 11 and the auxiliary control unit 12 are mutually redundant backup master nodes; therefore, the main control unit 11 and the auxiliary control unit 12 have the same access address. For example, the first and second time synchronization messages can be Sync messages, Follow-Up messages, and Delay_Resp messages, etc. The access addresses of the main control unit 11 and the auxiliary control unit 12 can be virtual media access control addresses (or virtual MAC addresses).
[0074] Specifically, when the time synchronization function of the master control unit 11 in the functional domain subsystem 10 is normal, after the master control unit 11 in the functional domain subsystem 10 and the host control unit 21 of the host domain subsystem 20 complete time synchronization, the master control unit 11 in the functional domain subsystem 10, as the master node of time synchronization, sends a first time synchronization message to the system functional unit 13, which is the slave node. After receiving the first time synchronization message, the system functional unit 13 can return a feedback message, such as a Pdelay request message, to the master control unit 11 according to the access address of the master control unit 11 carried in the first time synchronization message.
[0075] If the time synchronization function of the master control unit 11 in the functional domain subsystem 10 is abnormal and the time synchronization function of the auxiliary control unit 12 is normal, and the auxiliary control unit 12 has not enabled the time synchronization function in the functional domain subsystem 10, the auxiliary control unit 12 acts as the master node for time synchronization in the functional domain subsystem 10 and sends a second time synchronization message to the system functional unit 13 as the slave node to synchronize with the system functional unit 13. This allows the system functional unit 13 to return a feedback message, such as a Pdelay request message, to the auxiliary control unit 12 after receiving the second time synchronization message, based on the access address of the auxiliary control unit 12 carried in the second time synchronization message.
[0076] In this embodiment, when the master control unit 11 or the auxiliary control unit 12 in the functional domain subsystem 10 sends time synchronization messages to the system functional unit 13, which is a slave node, they both use the same access address. When the system functional unit 13 sends feedback messages to the master node, it does not need to pay attention to whether it is sent to the master control unit 11 or the auxiliary control unit 12. It uses the access address as the destination of the request. This ensures that in the event of an anomaly in the master control unit 11, the master node switching operation between the master control unit 11 and the auxiliary control unit 12 is imperceptible to the downstream slave node system functional unit 13 and will not affect the time synchronization process of the system functional unit 13.
[0077] Example 2
[0078] Figure 6 This is a flowchart of a time synchronization method provided in Embodiment 2 of the present invention. This embodiment is applicable to time synchronization between nodes within a functional domain subsystem and a host domain subsystem. The method can be executed by a time synchronization device, which can be implemented in hardware and / or software. The time synchronization device can be configured in the auxiliary control unit of the time synchronization system, which can be deployed in a vehicle. Figure 6 As shown, the method includes:
[0079] S210. Synchronize time with the host control unit of the host domain subsystem.
[0080] Specifically, regardless of whether the main control unit is operating normally, the auxiliary control unit synchronizes its time with the host control unit of the host domain subsystem so that the auxiliary control unit in the functional domain subsystem can keep time synchronized with the host domain subsystem in real time.
[0081] S220. If an abnormality is detected in the time synchronization function of the master control unit in the functional domain subsystem, time synchronization is performed with the system functional unit in the functional domain subsystem.
[0082] Specifically, within the functional domain subsystem, the master control unit and the auxiliary control unit can communicate to transmit status notification messages from the master control unit. These status notification messages can include normal status notification messages and / or abnormal status notification messages. If the auxiliary control unit determines, based on the status notification messages sent by the master control unit, that the master control unit's time synchronization function is malfunctioning, then within the functional domain subsystem, the auxiliary control unit acts as the master node for time synchronization, and the system functional units act as slave nodes. The auxiliary control unit takes over the master control unit's time synchronization task and synchronizes with the system functional units. Therefore, even when the master control unit's time synchronization function is malfunctioning, time synchronization between all nodes within the functional domain subsystem and the host domain subsystem can still be achieved.
[0083] The technical solution of this invention uses an auxiliary control unit within a functional domain subsystem to synchronize time with the host control unit of the host domain subsystem. Based on the concept of redundant backup for time synchronization functions, when the auxiliary control unit detects an anomaly in the time synchronization function of the main control unit, it immediately takes over the time synchronization task of the main control unit and synchronizes time with the system functional units within the functional domain subsystem. This ensures that even when the main control unit's time synchronization function malfunctions, the nodes within the functional domain subsystem can still synchronize time normally with the host control unit of the host domain subsystem, reducing the probability of time synchronization anomalies between the functional domain subsystem and the host domain subsystem, and improving the safety and stability of equipment operation.
[0084] As an optional embodiment of the present invention, S220, when an abnormality is detected in the time synchronization function of the main control unit in the functional domain subsystem, time synchronization is performed with the system functional units in the functional domain subsystem, including:
[0085] S221. Upon receiving an abnormal status notification message from the main control unit, the time synchronization function in the functional domain subsystem is activated to synchronize time with the system functional units in the functional domain subsystem.
[0086] Specifically, when the auxiliary control unit receives an abnormal status notification message from the main control unit, it indicates that the main control unit is in an abnormal state and cannot perform the time synchronization task normally. Therefore, the main control unit immediately takes over the time synchronization task of the main control unit, starts the time synchronization function in the functional domain subsystem, and performs time synchronization with the system functional units in the functional domain subsystem.
[0087] S222. If no abnormal status notification message is received from the main control unit, obtain the current time and the message reception time of the last received normal status notification message, and calculate the time interval between the current time and the message reception time; if the time interval is greater than the time threshold and the auxiliary control unit does not receive the first time synchronization message sent by the main control unit, enable the time synchronization function in the functional domain subsystem and synchronize the time with the system functional units in the functional domain subsystem.
[0088] Specifically, if the main control unit experiences network anomalies or other faults and is unable to send abnormal status notification messages to the auxiliary control unit, the auxiliary control unit can determine whether the main control unit's time synchronization function is functioning correctly based on the interval since it last received a normal status notification message from the main control unit and whether it has received the first time synchronization message from the main control unit. Specifically, when the auxiliary control unit receives a normal status notification message from the main control unit, it records and updates the message reception time, obtains the current time in real time, and calculates the time interval between the current time and the message reception time. If the time interval exceeds a time threshold and the auxiliary control unit has not received the first time synchronization message from the main control unit, it indicates that the main control unit's time synchronization function has malfunctioned. Therefore, the auxiliary control unit activates the time synchronization function in the functional domain subsystem, takes over the main control unit's time synchronization task, and synchronizes its time with the system functional units within the functional domain subsystem.
[0089] This embodiment uses the auxiliary control unit to detect the time when it last received the normal status notification message from the main control unit, and whether it received the first time synchronization message sent by the main control unit. It can determine in real time whether the time synchronization function of the main control unit is abnormal. Even if the main control unit fails and cannot send messages normally, it can still detect the abnormality of the main control unit in time, so that the auxiliary control unit can take over the time synchronization task of the main control unit in time, and realize the time synchronization between each node in the functional domain subsystem and the host domain subsystem.
[0090] As an optional embodiment of this application, the time synchronization with the system functional units in the functional domain subsystem includes:
[0091] A second time synchronization message is sent to the system functional unit to synchronize time with the system functional unit; wherein, the second time synchronization message carries the common access address of the main control unit and the auxiliary control unit.
[0092] Specifically, after the auxiliary control unit enables the time synchronization function in the functional domain subsystem, it sends a second time synchronization message to the system functional unit in the functional domain subsystem, so that the system functional unit adjusts its own time according to the content of the second time synchronization message to complete the synchronization, and sends a feedback message to the auxiliary control unit.
[0093] Regardless of whether the master control unit or the auxiliary control unit within the functional domain subsystem is acting as the master node for time synchronization, they all use the same access address when sending time synchronization messages to the system functional units acting as slave nodes. Therefore, when the system functional units send feedback messages to the master node, they do not need to pay attention to whether they are sent to the master control unit or the auxiliary control unit. They all use the access address as the destination of the request. This ensures that in the event of a master control unit failure, the master node switching operation between the master control unit and the auxiliary control unit is imperceptible to the downstream system functional units and will not affect the time synchronization process of the system functional units.
[0094] In some embodiments, the auxiliary control unit can enable the time synchronization function in the functional domain subsystem in the following ways: when the auxiliary control unit receives an abnormal status notification message sent by the main control unit, it sets the global status flag of the main control unit to an abnormal status. The auxiliary control unit reads the global status flag bit according to a preset period (e.g., 10ms). If it is in an abnormal state, it enables the auxiliary control unit to send and receive time synchronization messages within the functional domain subsystem. If it is in a normal state, it reads the time of the last received normal status notification message and the current time, calculates the time interval between the current time and the message reception time. If the time interval exceeds the time threshold (e.g., 3s), and the auxiliary control unit does not receive the first time synchronization message sent by the master control unit, it indicates that the master control unit's time synchronization function is abnormal. In this case, the auxiliary control unit enables the time synchronization function within the functional domain subsystem, that is, enables the sending and receiving of time synchronization messages, and sends a second time synchronization message to the system functional units within the functional domain subsystem. This allows the system functional units to adjust their own time according to the content of the second time synchronization message to complete time synchronization. The auxiliary control unit also sends a feedback message based on the second time synchronization message. Since the second time synchronization message carries the common access address of the master control unit and the auxiliary control unit, the system functional units are unaware of the switching of the time synchronization master node during the time synchronization process, reducing the impact of the switching of the time synchronization master node on downstream task nodes.
[0095] Example 3
[0096] Figure 7This is a flowchart of a time synchronization method provided in Embodiment 3 of the present invention. This embodiment is applicable to time synchronization between nodes in the functional domain subsystem of a vehicle and the host domain subsystem. The method can be executed by a time synchronization device, which can be implemented in hardware and / or software. The time synchronization device can be configured in the main control unit of the time synchronization system, and the time synchronization system can be deployed in the vehicle. Figure 7 As shown, the method includes:
[0097] S310. In the event of a time synchronization malfunction, disable the time synchronization function of itself in the functional domain subsystem.
[0098] Specifically, if the time synchronization function malfunctions, the main control unit will disable its own time synchronization function in the functional domain subsystem and will no longer receive or send time synchronization messages.
[0099] S320. Send an abnormal status notification message to the auxiliary control unit in the functional domain subsystem. The abnormal status notification message is used to notify the auxiliary control unit to synchronize time with the system functional unit.
[0100] Specifically, when the time synchronization function malfunctions, the master control unit sends an abnormal status notification message to the auxiliary control unit in the functional domain subsystem to notify the auxiliary control unit that its own time synchronization function is malfunctioning, so that the auxiliary control unit can take over the time synchronization task of the master control unit and synchronize time with the system functional units.
[0101] The technical solution of this invention disables its own time synchronization function in the event of a time synchronization failure. It then sends an abnormal status notification message to the auxiliary control unit in the functional domain subsystem. This message notifies the auxiliary control unit to synchronize time with the system functional units in the functional domain subsystem. Based on the concept of redundant backup for the time synchronization function, when the auxiliary control unit detects an abnormality in the main control unit's time synchronization function, it immediately takes over the main control unit's time synchronization task and synchronizes time with the system functional units in the functional domain subsystem. This ensures that even when the main control unit's time synchronization function fails, nodes in the functional domain subsystem can still synchronize time normally with the host control unit of the host domain subsystem, reducing the probability of time synchronization failures between the functional domain subsystem and the host domain subsystem, and improving the safety and stability of equipment operation.
[0102] As an optional implementation of this embodiment, the method further includes: when the time synchronization function is normal, performing time synchronization with the host control unit of the host domain subsystem and the system function unit of the functional domain subsystem, and sending a normal status notification message to the auxiliary control unit of the functional domain subsystem.
[0103] Specifically, when the time synchronization function is normal, the master control unit can act as the master node for time synchronization with the host control unit of the host domain subsystem, thus synchronizing the time between the master control unit and the host domain subsystem. Furthermore, the master control unit communicates with the auxiliary control unit, periodically sending normal status notification messages to the auxiliary control unit to inform it whether its time synchronization function is working properly.
[0104] As an optional embodiment of the present invention, the step of performing time synchronization with the system functional units in the functional domain subsystem when the time synchronization function is normal includes:
[0105] When the time synchronization function is normal, a first time synchronization message is sent to the system functional unit to synchronize time with the system functional unit.
[0106] The first time synchronization message carries the common access address of the main control unit and the auxiliary control unit.
[0107] Specifically, when the time synchronization function is normal, the main control unit sends a first time synchronization message to the system functional unit in the functional domain subsystem, so that the system functional unit adjusts its own time according to the content of the first time synchronization message to complete the synchronization, and sends a feedback message to the auxiliary control unit.
[0108] Regardless of whether the master control unit or the auxiliary control unit within the functional domain subsystem is acting as the master node for time synchronization, they all use the same access address when sending time synchronization messages to the system functional units acting as slave nodes. Therefore, when the system functional units send feedback messages to the master node, they do not need to pay attention to whether they are sent to the master control unit or the auxiliary control unit. They all use the access address as the destination of the request. This ensures that in the event of a master control unit failure, the master node switching operation between the master control unit and the auxiliary control unit is imperceptible to the downstream slave node system functional units and will not affect the time synchronization process of the system functional units.
[0109] Example 4
[0110] Figure 8 This is a schematic diagram of a time synchronization device provided in Embodiment 4 of the present invention. Figure 8 As shown, the device includes: a first time synchronization module 410 and a second time synchronization module 420;
[0111] The first time synchronization module 410 is used for time synchronization with the host control unit of the host domain subsystem;
[0112] The second time synchronization module 420 is used to synchronize time with the system functional units in the functional domain subsystem when an abnormality in the time synchronization function of the master control unit in the functional domain subsystem is detected.
[0113] This invention provides a time synchronization device that synchronizes time with the host control unit of the host domain subsystem through an auxiliary control unit within a functional domain subsystem of the time synchronization system. Based on the concept of redundant backup for time synchronization functions, when the auxiliary control unit detects an anomaly in the time synchronization function of the main control unit, it immediately takes over the time synchronization task of the main control unit and synchronizes time with the system functional units within the functional domain subsystem. This ensures that even when the main control unit's time synchronization function malfunctions, the nodes within the functional domain subsystem can still synchronize normally with the host control unit of the host domain subsystem, reducing the probability of time synchronization anomalies between the functional domain subsystem and the host domain subsystem, and improving the safety and stability of equipment operation.
[0114] Optionally, the second time synchronization module 420 includes:
[0115] The first-time synchronization activation unit is used to activate the time synchronization function in the functional domain subsystem when receiving an abnormal status notification message sent by the main control unit, and to synchronize the time with the system functional units in the functional domain subsystem.
[0116] The second time synchronization activation unit is used to obtain the current time and the message reception time of the last received normal status notification message when no abnormal status notification message is received from the main control unit, and to calculate the time interval between the current time and the message reception time; when the time interval is greater than a time threshold and the auxiliary control unit does not receive the first time synchronization message sent by the main control unit, the time synchronization function in the functional domain subsystem is activated to synchronize with the system functional units in the functional domain subsystem.
[0117] Optionally, the time synchronization with the system functional units in the functional domain subsystem includes:
[0118] Send a second time synchronization message to the system functional unit to synchronize time with the system functional unit;
[0119] The second time synchronization message carries the common access address of the main control unit and the auxiliary control unit.
[0120] The time synchronization device provided in the embodiments of the present invention can execute the time synchronization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0121] Example 5
[0122] Figure 9 This is a schematic diagram of a time synchronization device provided in Embodiment 5 of the present invention. Figure 9As shown, the device includes: a time synchronization shutdown module 510 and a synchronization error notification module 520;
[0123] The time synchronization shutdown module 510 is used to disable its own time synchronization function in the event of a time synchronization malfunction.
[0124] The synchronization anomaly notification module 520 is used to send an anomaly status notification message to the auxiliary control unit in the functional domain subsystem. The anomaly status notification message is used to notify the auxiliary control unit to synchronize time with the system functional unit in the functional domain subsystem.
[0125] This invention provides a time synchronization device that, in the event of a time synchronization malfunction, disables its own time synchronization function and sends an abnormal status notification message to the auxiliary control unit in the functional domain subsystem. This notification message instructs the auxiliary control unit to synchronize time with the system functional units in the functional domain subsystem. Based on the concept of redundant backup for time synchronization functions, when the auxiliary control unit detects an abnormality in the main control unit's time synchronization function, it immediately takes over the main control unit's time synchronization task and synchronizes time with the system functional units within the functional domain subsystem. This ensures that even when the main control unit's time synchronization function malfunctions, nodes within the functional domain subsystem can still synchronize time normally with the host control unit of the host domain subsystem, reducing the probability of time synchronization anomalies between the functional domain subsystem and the host domain subsystem, and improving the safety and stability of device operation.
[0126] The device also includes:
[0127] The normal synchronization notification module is used to synchronize time with the host control unit of the host domain subsystem and the system function unit of the functional domain subsystem when the time synchronization function is normal, and to send a normal status notification message to the auxiliary control unit of the functional domain subsystem.
[0128] Optionally, the synchronization normal notification module is specifically used for:
[0129] When the time synchronization function is normal, a first time synchronization message is sent to the system functional unit to synchronize time with the system functional unit.
[0130] The first time synchronization message carries the common access address of the main control unit and the auxiliary control unit.
[0131] The time synchronization device provided in the embodiments of the present invention can execute the time synchronization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.
[0132] Example 6
[0133] Figure 10A schematic diagram of a vehicle structure that can be used to implement embodiments of the present invention is shown. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0134] like Figure 10 As shown, vehicle 60 includes at least one processor 61 and a memory, such as read-only memory (ROM) 62 and random access memory (RAM) 63, communicatively connected to at least one processor 61. The memory stores computer programs executable by at least one processor. Processor 61 can perform various appropriate actions and processes based on the computer program stored in ROM 62 or loaded from storage unit 68 into RAM 63. RAM 63 can also store various programs and data required for the operation of vehicle 60. Processor 61, ROM 62, and RAM 63 are interconnected via bus 64. Input / output (I / O) interface 65 is also connected to bus 64.
[0135] Multiple components in vehicle 60 are connected to I / O interface 65, including: input unit 66, such as steering wheel, braking device, and sensors; output unit 67, such as various types of displays and speakers; storage unit 68, such as disk and optical disk; and communication unit 69, such as network card, modem, and wireless transceiver. Communication unit 69 allows vehicle 60 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0136] Processor 61 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 61 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 61 performs the various methods and processes described above, such as time synchronization methods.
[0137] In some embodiments, the time synchronization method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 68. In some embodiments, part or all of the computer program may be loaded and / or installed on vehicle 60 via ROM 62 and / or communication unit 69. When the computer program is loaded into RAM 63 and executed by processor 61, one or more steps of the time synchronization method described above may be performed. Alternatively, in other embodiments, processor 61 may be configured to perform the time synchronization method by any other suitable means (e.g., by means of firmware).
[0138] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0139] In some embodiments, the time synchronization method may be implemented as a computer program, which is implicitly included in a computer program product. When executed by a processor, the computer program implements the time synchronization method of the present invention. The computer program product can be understood as a software product that primarily implements its solution through a computer program. The computer program used to implement the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer program causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a standalone software package, or entirely on a remote machine or server.
[0140] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0141] To provide interaction with the user, the systems and technologies described herein can be implemented in a vehicle having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a sound acquisition device (e.g., a microphone) and a touch display screen through which the user can provide input to the vehicle. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0142] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0143] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0144] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0145] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A time synchronization system, characterized in that, include: The system comprises a functional domain subsystem and a host domain subsystem; the functional domain subsystem includes a main control unit, an auxiliary control unit, and a system functional unit connected to a first switch, the main control unit and the auxiliary control unit being connected; the host domain subsystem includes a host control unit connected to a second switch; the first switch and the second switch are connected. The auxiliary control unit synchronizes its time with the host control unit, and synchronizes its time with the system functional unit if the host control unit's time synchronization function is detected to be malfunctioning.
2. The system according to claim 1, characterized in that, When the time synchronization function is normal, the main control unit synchronizes time with the host control unit and the system functional unit.
3. The system according to any one of claims 1-2, characterized in that, When the main control unit detects that the local time synchronization function is normal, it sends a normal status notification message to the auxiliary control unit. When the main control unit detects an abnormality in the local time synchronization function, it sends an abnormal status notification message to the auxiliary control unit.
4. The system according to claim 3, characterized in that, Upon receiving the abnormal status notification message, the auxiliary control unit activates the time synchronization function in the functional domain subsystem. If the auxiliary control unit does not receive the abnormal status notification message, it obtains the current time and the message reception time of the last received normal status notification message, and calculates the time interval between the current time and the message reception time; if the time interval is greater than the time threshold and the auxiliary control unit does not receive the first time synchronization message sent by the main control unit, it enables the time synchronization function in the functional domain subsystem.
5. The system according to any one of claims 1-4, characterized in that, The main control unit sends a first time synchronization message to the system functional unit to synchronize time with the system functional unit; the auxiliary control unit sends a second time synchronization message to the system functional unit to synchronize time with the system functional unit. The first time synchronization message and the second time synchronization message carry the common access address of the main control unit and the auxiliary control unit.
6. A time synchronization method, characterized in that, An auxiliary control unit applied to a functional domain subsystem in the time synchronization system according to any one of claims 1-5; the method includes: Synchronize time with the host control unit of the host domain subsystem; if an abnormality is detected in the time synchronization function of the master control unit in the functional domain subsystem, synchronize time with the system functional unit in the functional domain subsystem.
7. The method according to claim 6, characterized in that, The step of synchronizing time with the system functional units in the functional domain subsystem when a time synchronization anomaly is detected in the master control unit of the functional domain subsystem includes: Upon receiving an abnormal status notification message from the main control unit, the time synchronization function in the functional domain subsystem is activated to synchronize time with the system functional units in the functional domain subsystem. If no abnormal status notification message is received from the main control unit, the current time and the message reception time of the last received normal status notification message are obtained, and the time interval between the current time and the message reception time is calculated. If the time interval is greater than a time threshold and the auxiliary control unit has not received a first time synchronization message from the main control unit, the time synchronization function in the functional domain subsystem is activated to synchronize time with the system functional units in the functional domain subsystem.
8. The method according to any one of claims 6-7, characterized in that, The time synchronization with system functional units in the functional domain subsystem includes: Send a second time synchronization message to the system functional unit to synchronize time with the system functional unit; The second time synchronization message carries the common access address of the main control unit and the auxiliary control unit.
9. A time synchronization method, characterized in that, A master control unit applied to a host domain subsystem in a time synchronization system according to any one of claims 1-5; the method includes: If the time synchronization function malfunctions, disable its own time synchronization function. An abnormal status notification message is sent to the auxiliary control unit in the functional domain subsystem. The abnormal status notification message is used to notify the auxiliary control unit to synchronize its time with the system functional unit in the functional domain subsystem.
10. The method according to claim 9, characterized in that, The method further includes: When the time synchronization function is normal, it synchronizes time with the host control unit of the host domain subsystem and the system function unit of the function domain subsystem, and sends a normal status notification message to the auxiliary control unit of the function domain subsystem.
11. The method according to claim 10, characterized in that, Under normal time synchronization conditions, time synchronization is performed with system functional units in the functional domain subsystem, including: When the time synchronization function is normal, a first time synchronization message is sent to the system functional unit to synchronize the time with the system functional unit. The first time synchronization message carries the common access address of the main control unit and the auxiliary control unit.
12. A time synchronization device, characterized in that, An auxiliary control unit applied to a functional domain subsystem in the time synchronization system according to any one of claims 1-5; the device comprises: The first time synchronization module is used to synchronize time with the host control unit of the host domain subsystem; The second time synchronization module is used to synchronize time with the system functional units in the functional domain subsystem when an abnormality in the time synchronization function of the master control unit in the functional domain subsystem is detected.
13. A time synchronization device, characterized in that, A master control unit applied to a host domain subsystem in a time synchronization system according to any one of claims 1-5; the device comprises: The time synchronization shutdown module is used to disable its own time synchronization function in case of time synchronization failure. The synchronization anomaly notification module is used to send an anomaly status notification message to the auxiliary control unit in the functional domain subsystem. The anomaly status notification message is used to notify the auxiliary control unit to synchronize time with the system functional unit in the functional domain subsystem.
14. A vehicle, characterized in that, The vehicles include: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the time synchronization method according to any one of claims 6-11.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the time synchronization method according to any one of claims 6-11.
16. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the time synchronization method according to any one of claims 6-11.
