Electronic control unit time synchronization method, device and equipment and storage medium
By using the time synchronization message transmission mechanism in the automotive electronic control unit, time synchronization of the slave node electronic control unit is achieved, which solves the cost problem of adding hardware or software modules to obtain accurate time in the existing technology, and improves the efficiency of time synchronization. Accuracy and efficiency.
Patent Information
- Application Number
- CN202410874670.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, obtaining accurate time in an automotive electronic control unit requires the addition of hardware or software time synchronization modules, resulting in increased costs.
Through the time synchronization message transmission between the master node electronic control unit and the slave node electronic control unit, the slave node electronic control unit obtains the initial absolute time value in the initial state and replaces it with the current value sent by the master node within the preset time period. Absolute time value to achieve time synchronization and avoid adding additional hardware or software modules.
It achieves time synchronization of the vehicle electronic control unit, improves the accuracy and efficiency of time synchronization, and reduces hardware and software costs.
Smart Images

Figure CN118740306A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automotive electronic control units, and in particular to an electronic control unit time synchronization method, device, equipment and storage medium. Background Art
[0002] With the increasing number of electronic control units (ECUs) used in modern vehicles, the demand for obtaining the current absolute time is becoming stronger and stronger. With absolute time, the controller can accurately record the timestamp of events, which is convenient for problem analysis and troubleshooting.
[0003] In the related art, there are two main ways for the current electronic controller to obtain accurate time in the vehicle. One is to add a real-time clock hardware chip (Real-Time Clock, RTC) to the hardware to generate absolute time, which requires additional chips and increases hardware costs.
[0004] Another way is to obtain absolute time through the bus according to the corresponding standard protocol, which requires the purchase of dedicated modules (for example, the Software Timer Bus (StbM) module in the AUTomotive Open System Architecture (AUTOSAR) protocol), which increases the software procurement cost. Summary of the invention
[0005] In view of this, the present application provides an electronic control unit time synchronization method, device, equipment and storage medium, aiming to achieve time synchronization of the entire vehicle electronic control unit without adding additional hardware or software time synchronization modules.
[0006] In a first aspect, the present application provides a method for time synchronization of an electronic control unit, wherein the electronic control unit includes a master node electronic control unit and a slave node electronic control unit, and the method includes:
[0007] When the slave node electronic control unit is in an initial state, obtaining an initial absolute time value from a memory;
[0008] Within a first preset time period, the slave node electronic control unit receives a time synchronization message sent by the master node electronic control unit, wherein the time message includes a current absolute time value;
[0009] If the current absolute time value is within the preset effective time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, and switches from the initial state to the synchronization completion state.
[0010] Optionally, after the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, the method further comprises:
[0011] The slave node electronic control unit starts an internal timer;
[0012] The slave node electronic control unit determines a reference time value according to the current absolute time value and the time value of the internal timer.
[0013] Optionally, after the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, the method further comprises:
[0014] Within a second preset time period, if the current absolute time value and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than a preset error, the slave node electronic control unit switches from the synchronization completion state to the synchronization adjustment state, and replaces the current absolute time value with the latest absolute time value.
[0015] Optionally, after the slave node electronic control unit switches from the synchronization completion state to the synchronization adjustment state and replaces the current absolute time value with the latest absolute time value, the method further includes:
[0016] The slave node electronic control unit re-transforms from the synchronization adjustment state to the synchronization completion state.
[0017] Optionally, the method further comprises:
[0018] The slave node electronic control unit stores the current absolute time value in the memory before being in a sleep state.
[0019] In a second aspect, the present application provides an electronic control unit time synchronization device, the electronic control unit time synchronization device comprising a master node electronic control unit and a slave node electronic control unit;
[0020] The slave node electronic control unit is used to obtain an initial absolute time value from a memory when in an initial state;
[0021] In a first preset time period, the slave node electronic control unit is used to receive a time synchronization message sent by the master node electronic control unit, wherein the time message includes a current absolute time value;
[0022] If the current absolute time value is within a preset valid time range, the slave node electronic control unit is further configured to replace the initial absolute time value with the current absolute time value, and convert from the initial state to a synchronization completion state.
[0023] After the slave node electronic control unit replaces the initial absolute time value with the current absolute time value;
[0024] The slave node electronic control unit is also used to start an internal timer; and determine a reference time value according to the current absolute time value and the time value of the internal timer.
[0025] After the slave node electronic control unit replaces the initial absolute time value with the current absolute time value;
[0026] The slave node electronic control unit is also used to convert from the synchronization completion state to the synchronization adjustment state within a second preset time period, and replace the current absolute time value with the latest absolute time value if the current absolute time value and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than a preset error.
[0027] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising:
[0028] A memory for storing one or more programs;
[0029] Processor; when the one or more programs are executed by the processor, the electronic control unit time synchronization method described in any one of the first aspects above is implemented.
[0030] In a fourth aspect, an embodiment of the present application provides a computer storage medium, in which a program is stored. When the program is executed by a processor, the electronic control unit time synchronization method described in any one of the first aspects is implemented.
[0031] The above technical solution has the following beneficial effects:
[0032] The present application provides a method, device, equipment and storage medium for synchronizing the time of an electronic control unit, wherein the electronic control unit includes a master node electronic control unit and a slave node electronic control unit. When executing the method, the slave node electronic control unit obtains an initial absolute time value from a memory when in an initial state, and within a first preset time period, the slave node electronic control unit receives a time synchronization message sent by the master node electronic control unit, the time message including the current absolute time value, and if the current absolute time value is within a preset valid time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, and converts from the initial state to the synchronization completion state.
[0033] It can be seen that the present application periodically obtains the current absolute time value in the time synchronization message sent by the master node electronic control unit from the node electronic control unit. If the current absolute time value is within the preset valid time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time to complete the time synchronization. It can realize the time synchronization of the entire vehicle electronic control unit without adding additional hardware or software time synchronization modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 An architectural diagram of a vehicle electronic control unit provided in an embodiment of the present application.
[0036] Figure 2 A method flow chart of a time synchronization method for an electronic control unit provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of a state transition of a slave node electronic control unit provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of the structure of an electronic control unit time synchronization device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0040] In order to facilitate further understanding of the technical solution provided by this application, the background technology involved in this application will be explained below.
[0041] With the increasing number of electronic control units (ECUs) used in modern vehicles, the demand for obtaining the current absolute time is becoming stronger and stronger. With absolute time, the controller can accurately record the timestamp of events, which is convenient for problem analysis and troubleshooting.
[0042] In the related art, there are two main ways for the current electronic controller to obtain accurate time in the vehicle. One is to add a real-time clock hardware chip (Real-Time Clock, RTC) to the hardware to generate absolute time, which requires additional chips and increases hardware costs.
[0043] Another way is to obtain absolute time through the bus according to the corresponding standard protocol, which requires the purchase of dedicated modules (for example, the Software Timer Bus (StbM) module in the AUTomotive Open System Architecture (AUTOSAR) protocol), which increases the software procurement cost.
[0044] In order to overcome the above-mentioned technical problems, an embodiment of the present application provides a time synchronization method for an electronic control unit, wherein the electronic control unit includes a master node electronic control unit and a slave node electronic control unit; in an initial state, the slave node electronic control unit obtains an initial absolute time value from a memory, and within a first preset time period, the slave node electronic control unit receives a time synchronization message sent by the master node electronic control unit; if the current absolute time value is within a preset valid time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, and converts from the initial state to a synchronization completion state.
[0045] It can be seen that the present application periodically obtains the current absolute time value in the time synchronization message from the node electronic control unit. If the current absolute time value is within the preset valid time range, the node electronic control unit replaces the initial absolute time value with the current absolute time, thereby realizing the time synchronization of the entire vehicle electronic control unit without adding additional hardware or software time synchronization modules.
[0046] See also Figure 1 , is an architecture diagram of the vehicle electronic control unit provided by the embodiment of the present application. As shown in the figure, the master node electronic control unit (MasterEcu) with time and date in the vehicle needs to establish communication with the slave node electronic control unit (SlaveECU) that needs to obtain time and date through a bus (CAN / LIN BUS), and sends the current time and date (accurate to seconds) to the slave node electronic control unit SlaveEcu by applying a message signal, wherein the slave node electronic control unit includes multiple, such as Figure 1 The slave node electronic control unit 1, the slave node electronic control unit 2 and the slave node electronic control unit 3 in the.
[0047] See also Figure 2 , Figure 2 A method flow chart of a time synchronization method for an electronic control unit provided in an embodiment of the present application.
[0048] The method may include:
[0049] Step S201: when the slave node electronic control unit is in an initial state, an initial absolute time value is obtained from a memory.
[0050] Specifically, after each power-on / wake-up of the slave node electronic control unit, the initial absolute time value stored last time in the memory is read. The memory may be a non-volatile memory NVM.
[0051] Step S202: within a first preset time period, the slave node electronic control unit receives a time synchronization message sent by the master node electronic control unit, wherein the time message includes a current absolute time value.
[0052] Specifically, within a first preset time period, the slave node electronic control unit receives a time synchronization message sent by the master node electronic control unit, where the time synchronization message includes a current absolute time value.
[0053] It should be noted that the first preset time period can be set according to actual needs, and this application does not limit this.
[0054] Step S203: If the current absolute time value is within the preset effective time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, and converts from the initial state to the synchronization completion state.
[0055] In this embodiment, if the current absolute time value is within the preset effective time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time value and converts from the initial state to the synchronization completion state. The preset effective time range can be set according to actual needs, and this application does not limit this.
[0056] It can be understood that the embodiment of the present application only requires the master node electronic control unit to send the absolute time value to the bus, and the slave node electronic control unit can obtain the precise time and date, and can achieve time synchronization of the entire vehicle electronic control unit without adding additional hardware or software time synchronization modules.
[0057] In a possible implementation, the method further includes:
[0058] The slave node electronic control unit stores the current absolute time value in the memory before being in a sleep state.
[0059] Before the slave node electronic control unit is in a sleep state, the internal absolute time value before sleep is stored in a memory for use when the slave node electronic control unit is in an initial state next time.
[0060] It can be seen from the above technical scheme that an embodiment of the present application provides a method for time synchronization of an electronic control unit, wherein the electronic control unit includes a master node electronic control unit and a slave node electronic control unit; in an initial state, the slave node electronic control unit obtains an initial absolute time value from a memory, and within a first preset time period, the slave node electronic control unit receives a time synchronization message sent by the master node electronic control unit. If the current absolute time value is within a preset valid time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, and converts from the initial state to a synchronization completion state.
[0061] It can be seen that the present application periodically obtains the current absolute time value in the time synchronization message from the node electronic control unit. If the current absolute time value is within the preset valid time range, the node electronic control unit replaces the initial absolute time value with the current absolute time, thereby realizing the time synchronization of the entire vehicle electronic control unit without adding additional hardware or software time synchronization modules.
[0062] Furthermore, since the slave node electronic control unit periodically receives the time synchronization message sent by the master node electronic control unit, there may be errors in the absolute time inside the slave node electronic control unit.
[0063] Therefore, in a possible implementation, after the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, the method may include:
[0064] The slave node electronic control unit starts an internal timer, and the slave node electronic control unit determines a reference time value according to the current absolute time value and the time value of the internal timer.
[0065] Specifically, the slave node electronic control unit starts an internal timer, and the slave node electronic control unit determines an internal reference time value of the slave node electronic control unit based on the time value of the internal timer and the current absolute time value, so that the absolute time value of the slave node electronic control unit is more accurate, and the slave node electronic control unit can periodically send it to other internal software modules for applications such as timestamps.
[0066] Furthermore, considering the accumulated error caused by inaccurate clock timing in the slave node electronic control unit, or the absolute time in the master node electronic control unit has been readjusted, the error between the current absolute time value of the slave node electronic control unit and the latest absolute time value in the time synchronization message sent by the master node electronic control unit is too large.
[0067] Therefore, in a possible implementation, after the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, the method further includes:
[0068] Within a second preset time period, if the current absolute time value and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than a preset error, the slave node electronic control unit switches from the synchronization completion state to the synchronization adjustment state, and replaces the current absolute time value with the latest absolute time value.
[0069] In this embodiment, within the second preset time period, when the current absolute time value and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than the preset error, the slave node electronic control unit is converted from the synchronization completion state to the synchronization adjustment state, and the current absolute time value is replaced by the latest absolute time value. Among them, the second preset time period can be set according to actual needs, and this application does not limit this.
[0070] It can be understood that when the embodiment of the present application checks whether the periodic current absolute time value of the slave node electronic control unit and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than a preset error, if the current absolute time value and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than the preset error, the current absolute time value is replaced with the latest absolute time value, thereby improving the accuracy of the absolute time value of the slave node electronic control unit.
[0071] In a possible implementation, after the slave node electronic control unit switches from the synchronization completion state to the synchronization adjustment state and replaces the current absolute time value with the latest absolute time value, the method may include:
[0072] The slave node electronic control unit re-transforms from the synchronization adjustment state to the synchronization completion state.
[0073] Specifically, after the slave node electronic control unit replaces the current absolute time value with the latest absolute time value, the slave node electronic control unit re-transforms from the synchronization adjustment state to the synchronization completion state.
[0074] Next, a scenario example is used to specifically illustrate the state transition of the slave node electronic control unit.
[0075] See also Figure 3 , which is a schematic diagram of the state transition of the slave node electronic control unit provided in an embodiment of the present application.
[0076] Initial state:
[0077] In the initial state of the slave node electronic control unit powering on, the initial absolute time value is obtained from the memory. In this state, if the time synchronization message of the master node electronic control unit is received and the current absolute time value is within the preset effective time range, it jumps to the synchronization completion state.
[0078] Synchronization completion status:
[0079] This status indicates that time synchronization has been established with the master node electronic control unit, and the initial absolute time value is replaced by the current absolute time value.
[0080] At the same time, in the synchronization completion state, the slave node electronic control unit needs to periodically determine whether the current absolute time value recorded internally and the latest absolute time value sent by the master node electronic control unit are out of the valid range (for example, the difference exceeds 5S). If it is out of the range, it will immediately jump to the synchronization adjustment state. Otherwise, no processing will be performed.
[0081] Synchronous adjustment status:
[0082] This state indicates that the timing in the slave node ECU does not match the latest absolute time value in the time synchronization message sent by the master node ECU. In the synchronization adjustment state, the slave node ECU needs to immediately replace the current absolute time value with the latest absolute time value, and then jump back to the synchronization completion state.
[0083] For the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, because according to the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0084] The above are some specific implementations of the rule base construction method provided in the embodiment of the present application. Based on this, the present application also provides a corresponding device. The device provided in the embodiment of the present application will be introduced from the perspective of functional modularization.
[0085] See also Figure 4 , is a structural schematic diagram of a rule base construction device provided in an embodiment of the present application, the device includes a master node electronic control unit 100 and a slave node electronic control unit 200.
[0086] The slave node electronic control unit 200 is used to obtain an initial absolute time value from the memory when in an initial state;
[0087] In a first preset time period, the slave node electronic control unit 200 is used to receive a time synchronization message sent by the master node electronic control unit 100, wherein the time message includes a current absolute time value;
[0088] If the current absolute time value is within the preset effective time range, the slave node electronic control unit 200 is further configured to replace the initial absolute time value with the current absolute time value, and convert from the initial state to the synchronization completion state.
[0089] Optionally, after the slave node electronic control unit replaces the initial absolute time value with the current absolute time value;
[0090] The slave node electronic control unit 200 is further used to start an internal timer; and determine a reference time value according to the current absolute time value and the time value of the internal timer.
[0091] Optionally, after the slave node electronic control unit replaces the initial absolute time value with the current absolute time value;
[0092] The slave node electronic control unit 200 is also used to convert from the synchronization completion state to the synchronization adjustment state within a second preset time period, and replace the current absolute time value with the latest absolute time value if the current absolute time value and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than a preset error.
[0093] It can be seen from the above technical solution that in the embodiment of the present application, the slave node electronic control unit obtains an initial absolute time value from the memory in the initial state, and within a first preset time period, the slave node electronic control unit receives a time synchronization message sent by the master node electronic control unit. If the current absolute time value is within the preset valid time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, and converts from the initial state to the synchronization completion state.
[0094] It can be seen that the present application periodically obtains the current absolute time value in the time synchronization message from the node electronic control unit. If the current absolute time value is within the preset valid time range, the node electronic control unit replaces the initial absolute time value with the current absolute time, thereby realizing the time synchronization of the entire vehicle electronic control unit without adding additional hardware or software time synchronization modules.
[0095] An embodiment of the present application further provides an electronic device, comprising: a memory for storing one or more programs;
[0096] Processor; when the one or more programs are executed by the processor, the electronic control unit time synchronization method described in the above embodiment is implemented.
[0097] An embodiment of the present application further provides a computer storage medium, in which a program is stored. When the program is executed by a processor, the electronic control unit time synchronization method described in the above embodiment is implemented.
[0098] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0099] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0100] Those skilled in the art can understand that the flowchart shown in the figure is only an example in which the embodiments of the present application can be implemented, and the scope of application of the embodiments of the present application is not limited by any aspect of the flowchart.
[0101] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and equipment can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0102] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0103] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0104] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A time synchronization method for an electronic control unit, characterized in that: The electronic control unit comprises a master node electronic control unit and a slave node electronic control unit, and the method comprises: When the slave node electronic control unit is in an initial state, obtaining an initial absolute time value from a memory; Within a first preset time period, the slave node electronic control unit receives a time synchronization message sent by the master node electronic control unit, wherein the time message includes a current absolute time value; If the current absolute time value is within the preset effective time range, the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, and switches from the initial state to the synchronization completion state.
2. The method according to claim 1, characterized in that: After the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, the method further includes: The slave node electronic control unit starts an internal timer; The slave node electronic control unit determines a reference time value according to the current absolute time value and the time value of the internal timer.
3. The method according to claim 1, characterized in that After the slave node electronic control unit replaces the initial absolute time value with the current absolute time value, the method further includes: Within a second preset time period, if the current absolute time value and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than a preset error, the slave node electronic control unit switches from the synchronization completion state to the synchronization adjustment state, and replaces the current absolute time value with the latest absolute time value.
4. The method according to claim 3, characterized in that After the slave node electronic control unit switches from the synchronization completion state to the synchronization adjustment state and replaces the current absolute time value with the latest absolute time value, the method further includes: The slave node electronic control unit re-transforms from the synchronization adjustment state to the synchronization completion state.
5. The method according to claim 1, characterized in that The method further comprises: The slave node electronic control unit stores the current absolute time value in the memory before being in a sleep state.
6. An electronic control unit time synchronization device, characterized in that: The electronic control unit time synchronization device comprises a master node electronic control unit and a slave node electronic control unit; The slave node electronic control unit is used to obtain an initial absolute time value from a memory when in an initial state; In a first preset time period, the slave node electronic control unit is used to receive a time synchronization message sent by the master node electronic control unit, wherein the time message includes a current absolute time value; If the current absolute time value is within a preset valid time range, the slave node electronic control unit is further configured to replace the initial absolute time value with the current absolute time value, and convert from the initial state to a synchronization completion state.
7. The device according to claim 6, characterized in that After the slave node electronic control unit replaces the initial absolute time value with the current absolute time value; The slave node electronic control unit is also used to start an internal timer; and determine a reference time value according to the current absolute time value and the time value of the internal timer.
8. The device according to claim 6, characterized in that After the slave node electronic control unit replaces the initial absolute time value with the current absolute time value; The slave node electronic control unit is also used to convert from the synchronization completion state to the synchronization adjustment state within a second preset time period, and replace the current absolute time value with the latest absolute time value if the current absolute time value and the latest absolute time value in the time synchronization message sent by the master node electronic control unit are greater than a preset error.
9. An electronic device, characterized in that: include: A memory for storing one or more programs; The processor implements the electronic control unit time synchronization method according to any one of claims 1 to 5 when the one or more programs are executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the electronic control unit time synchronization method according to any one of claims 1 to 5 is implemented.
