Vehicle machine time synchronization simulation device and method, storage medium and electronic equipment
The vehicle-computer time synchronization simulation device facilitates efficient and cost-effective development and debugging of vehicle-computer systems by simulating time synchronization using a personal computer, overcoming resource limitations and reducing development cycles.
Patent Information
- Application Number
- CN202411184629.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-13
AI Technical Summary
The lack of complete development resources, such as hardware equipment and test bench locations, hinders efficient software development and debugging of vehicle-computer time synchronization functions, leading to low efficiency and prolonged development cycles.
A vehicle-computer time synchronization simulation device and method that enables simulation software to establish a connection, configure initial resources, check communication links, and generate time synchronization information, allowing developers to perform continuous development and debugging using a personal computer without a complete set of bench equipment.
Enhances development efficiency and shortens the development cycle by enabling simulation-based time synchronization on vehicle computers, even with limited resources, and reduces costs by using low-cost equipment like PCs and Ethernet adapters.
Smart Images

Figure CN119127393A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of vehicle computer systems, and in particular to a vehicle computer time synchronization simulation device, method, storage medium and electronic equipment. Background Art
[0002] At present, in vehicle computer applications, especially in intelligent driving systems, data from multiple sensors connected via Ethernet need to be synchronized before being transmitted to the intelligent driving domain controller for fusion processing to ensure the accuracy of the vehicle computer's perception of the environment. Therefore, existing vehicle computers have high requirements for the accuracy of time synchronization.
[0003] However, in the software development process of the existing vehicle-computer time synchronization function, corresponding counterparts are involved, but it is basically impossible for every developer to have a complete set of test bench equipment. The lack of corresponding development resources (development resources at least include hardware equipment and test bench storage location) directly leads to the difficulty for developers to carry out continuous development and debugging on a complete controller test bench (a complete controller test bench at least includes T-BOX, VDC, vehicle-computer and other hardware), which seriously affects the development efficiency and prolongs the development cycle.
[0004] It should be noted that the aforementioned T-BOX is the abbreviation of Telematics BOX, which is also called Telematics Control Unit (TCU); the aforementioned VDC is the abbreviation of Vehicle Dynamics Control, which is translated as vehicle dynamic control system. Summary of the invention
[0005] The embodiments of the present invention provide a vehicle-computer time synchronization simulation device, method, storage medium and electronic device to at least solve the technical problems of low development efficiency and long development cycle caused by the lack of corresponding development resources by developers in the existing software development process of the vehicle-computer time synchronization function, thereby improving development efficiency and shortening the development cycle.
[0006] In a first aspect, an embodiment of the present invention provides a vehicle-computer time synchronization simulation device, including a simulation end and a synchronization end for establishing a connection;
[0007] The simulation end is at least used for, after controlled startup, opening the simulation software in response to the user's software start operation; and, in response to the opening of the simulation software, automatically enabling the simulation main service to build a simulation environment and configure initial simulation resources; and, in response to the user's configuration test operation, checking whether the communication link between the simulation end and the end to be synchronized is reliable; and, after determining that the communication link is reliable, adjusting the initial simulation resources in response to the user's parameter setting operation; and, in response to the user's simulation start operation, generating time synchronization information based on the simulation environment and the adjusted initial simulation resources, and sending the time synchronization information to the end to be synchronized;
[0008] The end to be synchronized is at least used to start its own internal time synchronization analysis service after controlled startup, so as to perform a time synchronization action after parsing the time synchronization information.
[0009] Optionally, it also includes a first information transmission medium, a second information transmission medium and an information switching module;
[0010] The simulation end is connected to the first end of the information switching module through the first information transmission medium, and the second end of the information switching module is connected to the end to be synchronized through the second information transmission medium;
[0011] After being sent by the simulation end, the time synchronization information is successively transmitted through the first information transmission medium, the information switching module and the second information transmission medium, and then received by the end to be synchronized.
[0012] Optionally, the configuration test operation includes a network configuration operation and a network test operation;
[0013] The simulation software at least includes a network configuration module, a network test module, a parameter setting module and a simulation control module;
[0014] The network configuration module is at least used to, in response to the network configuration operation of the user, make the simulation end and the end to be synchronized both be in the same local area network segment;
[0015] The network test module is at least used to generate a network test instruction in response to the network test operation of the user, and send the network test instruction to the end to be synchronized, and to check whether the communication link between the simulation end and the end to be synchronized is reliable by judging whether the end to be synchronized has responded and counting the response time;
[0016] The parameter setting module is at least used for, after determining that the communication link is reliable, responding to the parameter setting operation of the user, transmitting the setting parameter name and the current setting parameter value to the simulation main service through a preset communication method, so that the simulation main service searches for the initial setting parameter value in the initial simulation resource according to the setting parameter name, and determines whether the initial setting parameter value is equal to the current setting parameter value; further,
[0017] If the initial setting parameter value is not equal to the current setting parameter value, the simulation master service modifies the initial setting parameter value to the current setting parameter value, and then replies to the simulation software through the preset communication method, and makes the interface of the simulation software display the current setting parameter value; if the initial setting parameter value is equal to the current setting parameter value, the simulation master service still keeps the configuration of the initial simulation resource unchanged;
[0018] The simulation control module is at least used to generate a simulation start instruction in response to the user's simulation start operation, and send the simulation start instruction to the simulation main service through the preset communication method, so that the simulation main service generates the time synchronization information based on the simulation environment and the adjusted initial simulation resources, and then the simulation end sends the time synchronization information to the end to be synchronized.
[0019] Optionally, the simulation main service includes at least a simulation configuration module, a configuration adjustment module and a configuration operation module;
[0020] The simulation configuration module is at least used to install a simulation program package after the simulation main service is enabled to build the simulation environment and configure the initial simulation resources;
[0021] The configuration adjustment module is at least used for, after receiving the setting parameter name and the current setting parameter value transmitted by the parameter setting module through the preset communication method, searching for the initial setting parameter value in the initial simulation resource according to the setting parameter name, and judging whether the initial setting parameter value is equal to the current setting parameter value; and, if the initial setting parameter value is not equal to the current setting parameter value, modifying the initial setting parameter value to the current setting parameter value, and then replying to the simulation software through the preset communication method, and making the interface of the simulation software display the current setting parameter value; and, if the initial setting parameter value is equal to the current setting parameter value, keeping the configuration of the initial simulation resource unchanged;
[0022] The configuration and operation module is at least used to, after identifying the simulation start instruction, generate the time synchronization information based on the simulation environment and the adjusted initial simulation resources, so that the simulation end sends the time synchronization information to the end to be synchronized.
[0023] Optionally, the end to be synchronized includes at least an in-vehicle infotainment system and an instrument module;
[0024] The in-vehicle infotainment system is at least used to, after the end to be synchronized is controlled to be powered on, start the time synchronization parsing service to obtain the master clock timestamp by parsing the time synchronization information; and, through the hardware abstraction layer, correct the entertainment system time according to the master clock timestamp; and, through the internal upper layer application, call the corrected entertainment system time and display it; and, by setting a communication method, send the corrected entertainment system time to the instrument module;
[0025] The instrument module is at least used to receive the corrected entertainment system time sent by the in-vehicle infotainment system through the instrument bottom layer service, and correct the instrument system time according to the corrected entertainment system time, and then display the corrected instrument system time.
[0026] Optionally, the setting parameters include at least a master clock parameter, a sending cycle parameter of the time synchronization information, and a retransmission time parameter after a sending timeout of the time synchronization information.
[0027] In a second aspect, an embodiment of the present invention further provides a vehicle-computer time synchronization simulation method, which is executed by using the vehicle-computer time synchronization simulation device described in the first aspect, and the method at least includes:
[0028] After the simulation end is powered on in a controlled manner, the simulation end opens the simulation software in response to a software start-up operation by the user;
[0029] In response to the opening of the simulation software, the simulation end automatically enables the simulation main service to build a simulation environment and configure initial simulation resources;
[0030] The simulation end checks whether the communication link between the simulation end and the end to be synchronized is reliable in response to the configuration test operation of the user;
[0031] After determining that the communication link is reliable, the simulation end adjusts the initial simulation resources in response to the parameter setting operation of the user;
[0032] The simulation end generates time synchronization information based on the simulation environment and the adjusted initial simulation resources in response to the simulation start operation of the user, and sends the time synchronization information to the end to be synchronized;
[0033] After the controlled startup, the terminal to be synchronized starts its own internal time synchronization analysis service to analyze the time synchronization information and then execute the time synchronization action.
[0034] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, which, when executed by a processor, implements the vehicle-computer time synchronization simulation method described in the second aspect.
[0035] In a fourth aspect, an embodiment of the present invention further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle-computer time synchronization simulation method described in the second aspect.
[0036] In summary, the embodiments of the present invention provide a vehicle-computer time synchronization simulation device, method, storage medium and electronic device. First, the simulation end and the end to be synchronized are connected to each other; second, after the simulation end is controlled to start up, in response to the user's software start operation, the simulation software is opened; third, in response to the opening of the simulation software, the simulation end automatically enables the simulation main service to build a simulation environment and configure initial simulation resources; then, in response to the user's configuration test operation, the simulation end verifies whether the communication link between the simulation end and the end to be synchronized is reliable; third, after determining that the communication link is reliable, the simulation end adjusts the initial simulation resources in response to the user's parameter setting operation; thereafter, the simulation end generates time synchronization information based on the simulation environment and the adjusted initial simulation resources in response to the user's simulation start operation, and sends the time synchronization information to the end to be synchronized; finally, after the end to be synchronized is controlled to start up, the time synchronization parsing service within itself is started to parse the time synchronization information and then perform the time synchronization action.
[0037] In the time synchronization process of the above device, the simulation end can be the developer's personal computer (PC), and the end to be synchronized can be the vehicle computer. Therefore, based on the technical solution provided by the embodiment of the present invention, even if the developer does not have a complete set of bench equipment or lacks other development resources, continuous development and debugging can be performed on the vehicle computer through the PC, which overcomes the technical problems of low development efficiency and long development cycle caused by the lack of corresponding development resources by the developers in the existing software development process of the vehicle computer time synchronization function, improves development efficiency, and is conducive to shortening the development cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is a schematic diagram of a framework of a vehicle-computer time synchronization simulation device provided by an embodiment of the present invention;
[0040] Figure 2 This is a schematic diagram of equipment connection of a vehicle-computer time synchronization simulation device provided by an embodiment of the present invention;
[0041] Figure 3 It is an implementation flow chart of a vehicle-computer time synchronization simulation device provided by an embodiment of the present invention;
[0042] Figure 4 The present invention provides a flow chart of a vehicle computer time synchronization simulation method. DETAILED DESCRIPTION
[0043] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0044] Figure 1 is a schematic diagram of a framework of a vehicle-computer time synchronization simulation device provided by an embodiment of the present invention, such as Figure 1 As shown, the vehicle-computer time synchronization simulation device includes a simulation end for establishing a connection and an end to be synchronized.
[0045] The simulation end is at least used for, after controlled startup, opening the simulation software in response to the user's software start operation; and, in response to the opening of the simulation software, automatically enabling the simulation main service to build a simulation environment and configure initial simulation resources; and, in response to the user's configuration test operation, checking whether the communication link between the simulation end and the end to be synchronized is reliable; and, after determining that the communication link is reliable, adjusting the initial simulation resources in response to the user's parameter setting operation; and, in response to the user's simulation start operation, generating time synchronization information based on the simulation environment and the adjusted initial simulation resources, and sending the time synchronization information to the end to be synchronized.
[0046] The synchronization terminal is at least used to start its own internal time synchronization analysis service after controlled startup, so as to parse the time synchronization information and then execute the time synchronization action.
[0047] The simulation end may refer to a mobile terminal such as a PC, an industrial computer, a single-chip microcomputer, or a mobile phone, the end to be synchronized may refer to a vehicle computer, and the user may refer to a developer of the vehicle computer, for example.
[0048] It can be known that the simulation software can adopt any software that can realize the vehicle-computer time synchronization simulation function, such as TSYNC Simulation; the simulation main service can refer to any background service process that is compatible with the simulation software and can build the required simulation environment for the simulation software and configure simulation resources. Adaptively, the simulation environment can refer to the basic environment that can ensure the smooth operation of the simulation software-related programs. The simulation environment can, for example, meet the environmental requirements of the simulation software such as compatibility, fluency (no jamming, no crashes), and efficiency. Configuring the initial simulation resources can at least mean that after the simulation main service has built the simulation environment, it executes the default configuration of the relevant files, texts, parameters, etc. involved in the simulation process to realize the initialization of the simulation resources.
[0049] Further, in response to the configuration test operation of the user, checking whether the communication link between the simulation end and the end to be synchronized is reliable may mean that after the developer inputs (for example, inputs through the human-computer interaction interface of the simulation software) the protocol (Internet Protocol, IP) address of the network interconnection between the simulation end to be checked at the simulation end, the simulation end sends a test data packet of any protocol with network communication test function such as Internet Control Message Protocol (Internet Control Message Protocol, ICMP) to the end to be synchronized according to the IP address, so as to check whether the simulation end and the end to be synchronized can communicate normally. Accordingly, if the test data message generated by the end to be synchronized based on the aforementioned test data packet and fed back to the simulation end does not have timeout, data packet loss and other abnormal conditions, the simulation end can determine that the communication link between the simulation end and the end to be synchronized is reliable; on the contrary, if the test data message generated by the end to be synchronized based on the aforementioned test data packet and fed back to the simulation end has timeout, data packet loss and other abnormal conditions, the simulation end adaptively determines that the communication link between the simulation end and the end to be synchronized is unreliable.
[0050] In addition, in response to the user's parameter setting operation, adjusting the initial simulation resources may mean that when the developer changes the parameters, texts, files, etc. involved in the simulation process on the simulation end through touch screen click input, voice recognition input, gesture recognition input, etc. according to the vehicle-computer time synchronization simulation requirements (for example, the relevant changes can be achieved through the human-computer interaction interface of the simulation software), the simulation end will adaptively adjust the parameters, texts, files, etc. in the initial simulation resources based on the aforementioned configured initial simulation resources.
[0051] Generating time synchronization information based on the simulation environment and the adjusted initial simulation resources may mean that after completing the changes to the parameters, texts, files, etc. involved in the simulation process according to the actual simulation needs of the developer, the simulation end generates time synchronization information based on the simulation environment and the changed parameters, texts, files, etc. The time synchronization information may be, for example, any data packet that can carry timestamp data, specifically a Generalized Precision Time Protocol (gPTP) message carrying PC timestamp data. Sending the time synchronization information to the end to be synchronized may mean that the PC encapsulates the timestamp data in a data packet, and sends the data packet carrying the timestamp data to the vehicle computer via the Ethernet protocol.
[0052] It can be understood that gPTP is an Ethernet-based time synchronization protocol defined by the IEEE 802.1AS standard, which is used to maintain time synchronization between nodes in a local area network with time-sensitive applications. gPTP sends the initial reference clock by specifying a node as the master clock in the system. Other nodes form a tree structure with the master clock as the root. Other nodes receive clock signals and align with the master clock to achieve the goal of time synchronization. Since it works in the second layer of the seven-layer network model of the International Organization for Standardization (ISO), that is, the data link layer (specifically, it can be a sublayer under the data link layer, that is, the MAC layer), the nodes in the network can mark timestamps through hardware, thereby avoiding problems such as software scheduling time, protocol stack processing speed, and cache that affect the accuracy of timestamps, which is conducive to improving the effect of time synchronization between the simulation end and the end to be synchronized. Obviously, the aforementioned MAC is an abbreviation of Medium Access Control, which is also called media access control.
[0053] The time synchronization parsing service may refer to any service or process that can parse and obtain timestamp data from a data packet carrying timestamp data, such as Autosar AP tsync slave. The time synchronization action may refer to that after the vehicle computer or any device that needs time synchronization parses the timestamp data, the master clock timestamp of the device that needs to execute the time synchronization service is synchronized to the parsed timestamp data.
[0054] For example, the workflow of the vehicle-computer time synchronization simulation device in an actual vehicle-computer development scenario may be as follows:
[0055] After the developer physically connects the PC with the Ubuntu system installed and the vehicle computer, he presses the vehicle computer power button to turn on the vehicle computer. After the vehicle computer is turned on, it will enable its own internal time synchronization and resolution service and can put the time synchronization and resolution service to run in the background; further, the developer presses the PC power button to turn on the PC. After the developer opens the simulation software on the PC, the simulation main service on the PC is automatically enabled as the simulation software is opened, thereby completing the construction of the simulation environment and the configuration of the initial simulation resources; further, the developer configures and tests the communication link between the PC and the vehicle computer to ensure that the PC and the vehicle computer can communicate normally; further, after the developer manually enters the parameters, texts, files, etc. involved in the subsequent simulation process based on the human-computer interaction interface of the simulation software, the simulation end will adaptively adjust the parameters, texts, files, etc. in the initial simulation resources, such as changing the numerical size of certain parameters, adding or deleting files, etc. At this point, the simulation environment that is compatible with the actual vehicle computer development scenario has been built and the corresponding simulation resources have been prepared. Developers can officially start the simulation by clicking the "Simulation Start" button on the human-computer interaction interface of the simulation software. At this time, the PC generates a gPTP message carrying PC timestamp data based on the simulation environment and the changed parameters, texts, files, etc., and then sends the gPTP message to the vehicle computer. After receiving the gPTP message, the vehicle computer parses the gPTP message through the time synchronization parsing service running in the background to obtain the PC timestamp data. Finally, the vehicle computer sets the master clock timestamp of the system and process that needs to be time synchronized in the vehicle computer to the parsed PC timestamp data to realize the vehicle computer time synchronization simulation.
[0056] Based on the technical solution provided by this embodiment, on the one hand, even if the developer does not have a complete set of bench equipment or lacks other development resources, he can perform continuous development and debugging on the vehicle computer through the PC, overcoming the technical problems of low development efficiency and long development cycle caused by the lack of corresponding development resources by developers in the existing software development process of vehicle computer time synchronization function, improving development efficiency and shortening the development cycle. On the other hand, the simulation operation involved in this embodiment is simple and convenient, and the developer can also make the vehicle computer time synchronization simulation device adapt to various vehicle-mounted projects through different parameter setting operations, and the project adaptability is good.
[0057] It should be noted that, in addition to the vehicle computer, the synchronization end can also be other devices that require time synchronization services, such as instruments, etc. In other words, the simulation end provided in this embodiment can also be applied to other technical fields to meet the time synchronization simulation requirements of corresponding devices, which will not be repeated.
[0058] On the basis of the above-mentioned embodiments or implementation modes, this embodiment supplements and refines the above-mentioned vehicle-computer time synchronization simulation device, but does not constitute a limitation to the present invention. Figure 2 This is a schematic diagram of the equipment connection of a vehicle-computer time synchronization simulation device provided by an embodiment of the present invention, see Figure 2 Optionally, the vehicle-computer time synchronization simulation device also includes a first information transmission medium 130 , a second information transmission medium 140 and an information switching module 110 .
[0059] The simulation end 100 is connected to the first end of the information transfer module 110 through the first information transmission medium 130, and the other end of the information transfer module 110 is connected to the synchronization end 120 through the second information transmission medium 140; after being sent by the simulated end 100, the time synchronization information is transmitted successively through the first information transmission medium 130, the information transfer module 110 and the second information transmission medium 140, and then received by the synchronization end 120.
[0060] Among them, the first information transmission medium 130 can be any common network cable, such as fiber optic cable, twisted pair cable, coaxial cable; the second information transmission medium 140 can be any vehicle-mounted Ethernet cable. It can be seen that the solution adopted in this embodiment is essentially a PC simulating network communication between the master and the slave of the vehicle computer. Therefore, an Ethernet switching device is required to connect the two to achieve the purpose of communication. Specifically, the information transfer module 110 can be any Ethernet transfer box or Ethernet adapter to realize point-to-point bidirectional data conversion and transmission between ordinary Ethernet and vehicle-mounted Ethernet, which is convenient for developers to debug functions during the project development stage.
[0061] It can be understood that, unlike the gPTP communication method based on CANoe (CAN open environment) simulation in the existing vehicle computer development process (i.e., sending gPTP messages to the vehicle computer through the CANoe simulation master node to debug the vehicle computer time synchronization function; the CANoe hardware and software costs involved in this method are generally between 100,000 and 200,000, and it is basically impossible to ensure that every developer has a set), this embodiment only involves network cables, Ethernet adapter boxes, PCs and simulation software, which are low-cost and simple to operate, and can be provided to any developer. In comparison, the application of the technical solution provided in this embodiment can greatly save development costs and improve development efficiency.
[0062] In a specific embodiment, see Figure 1 Optionally, the configuration test operation includes a network configuration operation and a network test operation; the simulation software includes at least a network configuration module 210, a network test module 220, a parameter setting module 230 and a simulation control module 240;
[0063] The network configuration module 210 is at least used to respond to the user's network configuration operation so that the simulation end and the end to be synchronized are in the same local area network segment;
[0064] The network test module 220 is at least used to generate a network test instruction in response to a network test operation of a user, and send the network test instruction to the end to be synchronized, and to check whether the communication link between the simulation end and the end to be synchronized is reliable by judging whether the end to be synchronized has responded and counting the response time;
[0065] The parameter setting module 230 is at least used to, after determining that the communication link is reliable, respond to the user's parameter setting operation, transmit the setting parameter name and the current setting parameter value to the simulation main service through a preset communication method, so that the simulation main service searches for the initial setting parameter value in the initial simulation resource according to the setting parameter name, and determines whether the initial setting parameter value is equal to the current setting parameter value; further,
[0066] If the initial setting parameter value is not equal to the current setting parameter value, the simulation master service will modify the initial setting parameter value to the current setting parameter value, and then reply to the simulation software through the preset communication method, and make the interface of the simulation software display the current setting parameter value; if the initial setting parameter value is equal to the current setting parameter value, the simulation master service will still keep the initial simulation resource configuration unchanged;
[0067] The simulation control module 240 is at least used to generate a simulation start instruction in response to the user's simulation start operation, and send the simulation start instruction to the simulation main service through a preset communication method, so that the simulation main service generates time synchronization information based on the simulation environment and the adjusted initial simulation resources, and then the simulation end sends the time synchronization information to the end to be synchronized.
[0068] Among them, responding to the user's network configuration operation can refer to the developer setting the network configuration information between the PC and the vehicle computer through any method such as touch screen click input, voice or gesture recognition input, keyboard and mouse input, etc. The simulation end and the end to be synchronized are both in the same local area network segment, which means that the PC and the vehicle computer are in the same broadcast domain. Only in this way can the gPTP message sent by the PC carrying the PC master clock timestamp data be received normally by the vehicle computer.
[0069] Exemplarily, the specific workflow of the network configuration module 210 may be as follows:
[0070] Assuming that the developer sees that the IP address of the vehicle computer is 10.1.10.1 / 24, and sets the IP address of the PC to 10.1.10.2 / 24 on the PC by keyboard and mouse input (that is, the user's network configuration operation), then after receiving the IP address entered by the developer, the network configuration module 210 can create a virtual local area network (VLAN) between the PC and the vehicle computer. At this time, the PC and the vehicle computer belong to the same local area network segment.
[0071] After the VLAN configuration between the PC and the vehicle is completed, the communication reliability of the VLAN needs to be judged. Specifically, the network test operation may refer to the developer inputting the IP address of the vehicle on the human-computer interaction interface of the simulation software and clicking the "Network Test" button. The network test instruction may refer to the Internet Packet Explorer (PING) command (the PING command is generally used to detect the network speed of the local area network and whether the network signal can be sent and received normally) in the ICMP protocol generated by the network test module 220 according to the IP address of the vehicle; whether there is a response may refer to whether the vehicle replies to the corresponding response data message after the PC sends the ICMP test data message; the statistical response time may refer to the total time from the PC sending the ICMP test data message to receiving the response data message from the vehicle.
[0072] It is known that the preset communication mode can adopt any mode that can communicate across processes, such as Desktop Bus (dbus). In a specific implementation, optionally, the setting parameters at least include the master clock parameter, the sending cycle parameter of the time synchronization information, and the retransmission time parameter after the time synchronization information is sent overdue. Therefore, the user's parameter setting operation can refer to the developer inputting the specific value of the master clock parameter, the sending cycle parameter of the time synchronization information, and the retransmission time parameter after the time synchronization information is sent overdue on the human-computer interaction interface of the simulation software (the specific value is also the current setting parameter value, for example, the current setting parameter value of the sending cycle parameter of the time synchronization information can be specifically 500 milliseconds); the setting parameter name can refer to the specific name, number, etc. of each of the above-mentioned setting parameters, for example, the setting parameter name of the master clock parameter can be "master clock", "master clock parameter", etc., or it can be the number corresponding to the master clock parameter pre-set by the user (for example, "001").
[0073] Continuing with the example of the setting parameter being the sending cycle parameter of the time synchronization information, the simulation master service searches for the initial setting parameter value in the initial simulation resource according to the setting parameter name, which may mean that the simulation master service searches for the default configuration value corresponding to the setting parameter with the same name or number in the initial simulation resource according to the aforementioned names or numbers such as "sending cycle", "sending cycle parameter", and "002".
[0074] Assuming that the initial setting parameter value corresponding to the sending cycle parameter of the time synchronization information is 1000ms, and the current setting parameter value corresponding to the sending cycle parameter of the time synchronization information is 500ms, the parameter setting module can determine that the initial setting parameter value corresponding to the setting parameter is not equal to the current setting parameter value. At this time, the simulation main service modifies the initial setting parameter value (1000ms) to the current setting parameter value (500ms).
[0075] Replying to the simulation software through a preset communication method and making the interface of the simulation software display the current parameter setting value can mean that the simulation master service sends the current parameter setting value after modification to the simulation software through dbus, and after receiving the current parameter setting value sent by the simulation master service, the simulation software displays the received current parameter setting value through the human-computer interaction interface and prompts "parameter modification successful" in the window. Making the simulation master service generate time synchronization information based on the simulation environment and the adjusted initial simulation resources can mean that the simulation master service generates a gPTP message carrying the PC master clock timestamp based on the initial simulation resources after adjustment.
[0076] In another specific implementation, optionally, the simulation main service includes at least a simulation configuration module 250, a configuration adjustment module 260, and a configuration operation module 270;
[0077] The simulation configuration module 250 is at least used to install the simulation program package after the simulation main service is enabled to build a simulation environment and configure initial simulation resources;
[0078] The configuration adjustment module 260 is at least used to, after receiving the setting parameter name and the current setting parameter value transmitted by the parameter setting module through the preset communication method, search for the initial setting parameter value in the initial simulation resource according to the setting parameter name, and determine whether the initial setting parameter value is equal to the current setting parameter value; and, if the initial setting parameter value is not equal to the current setting parameter value, modify the initial setting parameter value to the current setting parameter value, and then reply to the simulation software through the preset communication method, and make the interface of the simulation software display the current setting parameter value; and, if the initial setting parameter value is equal to the current setting parameter value, the configuration of the initial simulation resource remains unchanged;
[0079] The configuration operation module 270 is at least used to generate time synchronization information based on the simulation environment and the adjusted initial simulation resources after identifying the simulation start instruction, so that the simulation end sends the time synchronization information to the end to be synchronized.
[0080] The simulation program package may refer to a program package that is compatible with the simulation software and can provide services for the simulation software to generate and send time synchronization information, for example, it may be an Autosar AP component deb package.
[0081] In another specific implementation, optionally, the end to be synchronized includes at least an in-vehicle infotainment system 280 and an instrument module 290;
[0082] The in-vehicle infotainment system 280 is at least used to, after the end to be synchronized is controlled to be powered on, start the time synchronization parsing service to obtain the master clock timestamp by parsing the time synchronization information; and, through the hardware abstraction layer, correct the entertainment system time according to the master clock timestamp; and, through the internal upper layer application, call the corrected entertainment system time and display it; and, through the set communication mode, send the corrected entertainment system time to the instrument module;
[0083] The instrument module 290 is at least used to receive the corrected entertainment system time sent by the in-vehicle infotainment system through the instrument bottom layer service, and correct the instrument system time according to the corrected entertainment system time, and then display the corrected instrument system time.
[0084] Among them, the in-vehicle infotainment system 280 may refer to the in-vehicle integrated information processing system (In-Vehicle Infotainment, IVI); the internal upper-layer application calling the corrected entertainment system time and displaying it may refer to the in-vehicle voice assistant, navigation, Kugou Music and other applications obtaining the corrected IVI master clock timestamp, and displaying the corrected IVI master clock timestamp in the upper-layer application time bar.
[0085] In addition, displaying the corrected instrument system time may mean that the instrument module 290 displays the main clock timestamp information of the instrument system on the instrument display screen of the vehicle; sending the corrected entertainment system time to the instrument module 290 by setting the communication method may mean that the IVI sends the corrected IVI main clock timestamp to the instrument module 290 via the high-speed distributed bus (Fast Distributed Bus, fdbus); correcting the instrument system time according to the corrected entertainment system time may mean that the instrument module 290 determines whether the instrument system time is the same as the corrected entertainment system time, and if different, uses the corrected entertainment system time as the instrument system time.
[0086] Based on the above implementation, Figure 3 is an implementation flow chart of a time synchronization simulation device provided by an embodiment of the present invention, see Figure 1 and Figure 3 Before starting the simulation, the developer needs to establish a physical connection between the PC with the Ubuntu system and TSYNCSimulation installed and the vehicle computer, that is, connect the PC to the ordinary network cable interface of the Ethernet adapter box through an ordinary network cable, and connect the vehicle computer to the vehicle Ethernet interface of the Ethernet adapter box through the vehicle Ethernet cable. Furthermore, the developer presses the power button of the PC and the vehicle computer to turn on the PC and the vehicle computer respectively. After the vehicle computer is turned on, the Autosar APtsync slave related services and configuration files are started and put into the background to run.
[0087] Furthermore, the developer opens TSYNC Simulation on the PC, and the Master service on the PC is automatically enabled when TSYNC Simulation is opened. When the Master service is started, the Autosar AP component deb package is installed (this package contains the tsync binary program and gptp-related lib libraries and the default tsync_config.json script file). Furthermore, the developer checks the IP address of the vehicle computer and finds it is 10.1.10.11 / 24. To ensure normal communication between the PC and the vehicle computer, the developer manually enters the IP address of the PC as 10.1.10.12 / 24. After receiving the IP address entered by the developer, the PC creates a virtual local area network VLAN 10 between the PC and the vehicle computer (equivalent to Figure 3 Step A1 in the TSYNC Simulation test column). Furthermore, the developer enters the vehicle computer's IP address 10.1.10.11 in the TSYNC Simulation test column and clicks the "Network Test" button. The PC uses the PING command in the ICMP protocol to detect whether the link between the PC and the vehicle computer is reliable. After testing, it is found that all ICMP packets sent by the PC receive replies and the reply time is less than 1ms (equivalent to Figure 3 Step A2) in the figure indicates that the communication link between the PC and the vehicle is reliable.
[0088] Furthermore, the developer saw the time synchronization parameters and values on the TSYNC Simulation interactive interface as the master clock time January 1, 2025 08:00:00, the message sending cycle 250 milliseconds, and the message sending timeout retransmission time 500 milliseconds (i.e., the initial setting parameter values). Furthermore, the developer manually modified the message sending cycle to 500 milliseconds and the message sending timeout retransmission time to 1000 milliseconds (equivalent to Figure 3Step A3 in the above). Further, after the developer completes the above manual modification, he clicks the "Modify" button, and TSYNC Simulation sends the current parameter value and parameter name to the Master service through dbus. Further, the Master service searches the tsync_config.json configuration file for the corresponding parameter message sending cycle and message sending timeout retransmission time according to the parameter name and modifies them to 500 milliseconds and 1000 milliseconds as modified by the developer.
[0089] Furthermore, the Master service sends the modified current setting parameter value to TSYNCSimulation via dbus (i.e., the Master service replies to TSYNC Simulation via dbus to indicate whether the modification is completed). After receiving the modified current setting parameter value, TSYNC Simulation will display the current setting parameter value on the display screen and prompt "Modification successful" (equivalent to Figure 3 Step A4 in the figure). Further, the developer clicks the "Simulation Start" button to start synchronizing the vehicle time, and TSYNC Simulation sends a simulation start instruction to the Master service through dbus. Further, after receiving the simulation start instruction, the Master service triggers the running of the tsync_config.json configuration file and the tsync binary file. Further, the Master service sends the content of the tsync_config.json configuration file as input to the tsync binary file, and runs the tsync binary file in the background. Further, the PC uses the Ethernet driver to send gPTP messages carrying the PC master clock timestamp to the vehicle through the tsync binary file at a period of 500ms (equivalent to Figure 3 Further, if the PC fails to send a message due to fluctuations in the network between the PC and the vehicle computer, the PC will resend the gPTP message carrying the PC master clock timestamp to the vehicle computer after 1000 milliseconds.
[0090] Furthermore, when the vehicle receives the gPTP message carrying the PC master clock timestamp through the Ethernet chip, the Autosar AP tsync slave related services and configuration files begin to parse the gPTP message. Furthermore, the vehicle parses and obtains the master clock timestamp of January 1, 2025 08:00:00 (equivalent to Figure 3 Step A6 in step A6 can be Figure 1Further, the vehicle computer calls Hal service:get System Time service to obtain the aforementioned master clock timestamp and corrects the central control entertainment system time to 08:00:00 on January 1, 2025 (equivalent to Figure 3 Step A7 in step A7 can be Figure 1 Furthermore, Baidu Maps, Kugou Music and other upper-layer applications obtain the central control entertainment system time and correct their own master clock timestamp to 08:00:00 on January 1, 2025, and then display the corrected master clock timestamp on the main interface of the central control screen (equivalent to Figure 3 Step A8 in step A8 can be Figure 1 The central control entertainment system periodically sends the central control entertainment system time to the instrument domain bottom layer service through fdbus. The instrument domain bottom layer service obtains the main clock timestamp of the central control entertainment system, which is 08:00:00 on January 1, 2025, through the qisi_time_service:get System Time service. The instrument domain bottom layer service corrects the main clock timestamp of the instrument domain to 08:00:00 on January 1, 2025 (equivalent to 08:00:00 on January 1, 2025) according to the obtained main clock timestamp of the central control entertainment system. Figure 3 Step A9 in step A9 can be Figure 1 After the calibration of the underlying service master clock of the meter domain is completed, the meter domain will display the calibrated system time on the meter display screen (equivalent to Figure 3 In step A10, step A10 can be Figure 1 The display time module 320 executes).
[0091] In summary, this embodiment can perform continuous development and debugging on the vehicle computer through the PC during the development process of the developer, overcoming the technical problems of low development efficiency and long development cycle caused by the lack of corresponding development resources by the developers in the existing vehicle computer time synchronization function software development process, improving the development efficiency and shortening the development cycle. In addition, this embodiment only involves the PC, Ethernet adapter box and vehicle computer, which effectively reduces the development cost; at the same time, the connection method is simple and can be provided to any developer, and the developer can also make the vehicle computer time synchronization simulation device adapt to various different vehicle-mounted projects by inputting different parameter settings, and the project adaptability is good.
[0092] It should be noted that the aforementioned Hal service refers to the hardware abstraction layer service, and the specific English description is Hardware Abstraction Layer.
[0093] The embodiment of the present invention also provides a vehicle computer time synchronization simulation method, Figure 4 This is a flow chart of a vehicle-machine time synchronization simulation method provided by an embodiment of the present invention. This embodiment is applicable to vehicle-machine time synchronization scenarios in various types of vehicles, such as fuel vehicles, pure electric vehicles, oil-electric hybrid vehicles, plug-in hybrid vehicles, extended-range electric vehicles, driverless vehicles, etc. The vehicle-machine time synchronization simulation method can be, but is not limited to, executed by the vehicle-machine time synchronization simulation device in the embodiment of the present invention as the execution subject, and the execution subject can be implemented in software and / or hardware. Figure 4 As shown, the vehicle-computer time synchronization simulation method includes at least the following steps:
[0094] After the simulation end is powered on in a controlled manner, the simulation end responds to the user's software start operation and opens the simulation software;
[0095] In response to the opening of the simulation software, the simulation end automatically enables the simulation master service to build a simulation environment and configure initial simulation resources;
[0096] The simulation end responds to the configuration test operation of the user to check whether the communication link between the simulation end and the end to be synchronized is reliable;
[0097] After determining that the communication link is reliable, the simulation end adjusts the initial simulation resources in response to the user's parameter setting operation;
[0098] The simulation end generates time synchronization information based on the simulation environment and the adjusted initial simulation resources in response to the simulation start operation of the user, and sends the time synchronization information to the end to be synchronized;
[0099] After the synchronization end is powered on in a controlled manner, it starts its own internal time synchronization parsing service to parse the time synchronization information and then execute the time synchronization action.
[0100] Optionally, it also includes a first information transmission medium, a second information transmission medium and an information switching module;
[0101] The simulation end is connected to the first end of the information switching module through the first information transmission medium, and the second end of the information switching module is connected to the end to be synchronized through the second information transmission medium;
[0102] After being sent out by the simulated end, the time synchronization information is transmitted successively through the first information transmission medium, the information switching module and the second information transmission medium, and then is received by the end to be synchronized.
[0103] Optionally, the configuration test operation includes a network configuration operation and a network test operation;
[0104] The simulation software at least includes a network configuration module, a network test module, a parameter setting module and a simulation control module;
[0105] The network configuration module is at least used to respond to the user's network configuration operation so that the simulation end and the end to be synchronized are both in the same local area network segment;
[0106] The network test module is at least used to generate a network test instruction in response to a network test operation of a user, and send the network test instruction to the end to be synchronized, and to check whether the communication link between the simulation end and the end to be synchronized is reliable by judging whether the end to be synchronized has responded and counting the response time;
[0107] The parameter setting module is at least used for, after determining that the communication link is reliable, responding to the user's parameter setting operation, transmitting the setting parameter name and the current setting parameter value to the simulation main service through a preset communication method, so that the simulation main service searches for the initial setting parameter value in the initial simulation resource according to the setting parameter name, and determines whether the initial setting parameter value is equal to the current setting parameter value; further,
[0108] If the initial setting parameter value is not equal to the current setting parameter value, the simulation master service will modify the initial setting parameter value to the current setting parameter value, and then reply to the simulation software through the preset communication method, and make the interface of the simulation software display the current setting parameter value; if the initial setting parameter value is equal to the current setting parameter value, the simulation master service will still keep the initial simulation resource configuration unchanged;
[0109] The simulation control module is at least used to generate a simulation start instruction in response to the user's simulation start operation, and send the simulation start instruction to the simulation main service through a preset communication method, so that the simulation main service generates time synchronization information based on the simulation environment and the adjusted initial simulation resources, and then the simulation end sends the time synchronization information to the end to be synchronized.
[0110] Optionally, the simulation main service includes at least a simulation configuration module, a configuration adjustment module and a configuration operation module;
[0111] The simulation configuration module is at least used to install the simulation program package after the simulation main service is enabled to build a simulation environment and configure initial simulation resources;
[0112] The configuration adjustment module is at least used for, after receiving the setting parameter name and the current setting parameter value transmitted by the parameter setting module through the preset communication method, searching for the initial setting parameter value in the initial simulation resource according to the setting parameter name, and judging whether the initial setting parameter value is equal to the current setting parameter value; and, if the initial setting parameter value is not equal to the current setting parameter value, modifying the initial setting parameter value to the current setting parameter value, and then replying to the simulation software through the preset communication method, and making the interface of the simulation software display the current setting parameter value; and, if the initial setting parameter value is equal to the current setting parameter value, keeping the configuration of the initial simulation resource unchanged;
[0113] The configuration operation module is at least used to, after identifying the simulation start instruction, generate time synchronization information based on the simulation environment and the adjusted initial simulation resources, so that the simulation end sends the time synchronization information to the end to be synchronized.
[0114] Optionally, the end to be synchronized includes at least an in-vehicle infotainment system and an instrument module;
[0115] After the synchronization end is powered on in a controlled manner, it starts its own internal time synchronization parsing service to parse the time synchronization information and then execute the time synchronization action, which at least includes:
[0116] After the in-vehicle infotainment system is powered on under control at the end to be synchronized, the time synchronization parsing service is started to obtain the master clock timestamp by parsing the time synchronization information;
[0117] The in-vehicle infotainment system corrects the entertainment system time based on the master clock timestamp through the hardware abstraction layer;
[0118] The in-vehicle infotainment system calls the corrected entertainment system time through the internal upper-layer application and displays it;
[0119] The in-vehicle infotainment system sends the corrected entertainment system time to the instrument module through a set communication method;
[0120] The instrument module receives the corrected entertainment system time sent by the vehicle infotainment system through the instrument bottom layer service, corrects the instrument system time according to the corrected entertainment system time, and then displays the corrected instrument system time.
[0121] Optionally, the setting parameters include at least a master clock parameter, a sending cycle parameter of the time synchronization information, and a retransmission time parameter after a timeout for sending the time synchronization information.
[0122] The technical solution provided in this embodiment is that after the simulation end and the end to be synchronized are connected to each other, the simulation end opens the simulation software in response to the user's software start operation after being controlled to start; the simulation end automatically enables the simulation main service in response to the opening of the simulation software to build a simulation environment and configure initial simulation resources; the simulation end responds to the user's configuration test operation to check whether the communication link between the simulation end and the end to be synchronized is reliable; after determining that the communication link is reliable, the simulation end adjusts the initial simulation resources in response to the user's parameter setting operation; the simulation end generates time synchronization information based on the simulation environment and the adjusted initial simulation resources in response to the user's simulation start operation, and sends the time synchronization information to the end to be synchronized; after being controlled to start, the end to be synchronized starts its own internal time synchronization parsing service to parse the time synchronization information and then execute the time synchronization action.
[0123] Based on the technical solution provided in the above embodiments, even if the developer does not have a complete set of bench equipment or lacks other development resources, he can perform continuous development and debugging on the vehicle computer through the PC, thereby overcoming the technical problems of low development efficiency and long development cycle caused by the lack of corresponding development resources by developers in the existing software development process of the vehicle computer time synchronization function, thereby improving development efficiency and shortening the development cycle.
[0124] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the vehicle-computer time synchronization simulation method.
[0125] An embodiment of the present invention also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a time synchronization simulation method.
[0126] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A vehicle computer time synchronization simulation device, characterized in that: It includes the simulation end and the end to be synchronized for establishing the connection; The simulation end is at least used to, after the controlled startup, open the simulation software in response to the user's software start operation; and, in response to the opening of the simulation software, automatically enabling the simulation master service to build a simulation environment and configure initial simulation resources; and, in response to the configuration test operation of the user, verifying whether the communication link between the simulation end and the end to be synchronized is reliable; and, after determining that the communication link is reliable, adjusting the initial simulation resources in response to the parameter setting operation of the user; And, in response to the simulation start operation of the user, generating time synchronization information based on the simulation environment and the adjusted initial simulation resources, and sending the time synchronization information to the end to be synchronized; The end to be synchronized is at least used to start its own internal time synchronization analysis service after controlled startup, so as to perform a time synchronization action after parsing the time synchronization information.
2. The vehicle-computer time synchronization simulation device according to claim 1, characterized in that: It also includes a first information transmission medium, a second information transmission medium and an information switching module; The simulation end is connected to the first end of the information switching module through the first information transmission medium, and the second end of the information switching module is connected to the end to be synchronized through the second information transmission medium; After being sent by the simulation end, the time synchronization information is successively transmitted through the first information transmission medium, the information switching module and the second information transmission medium, and then received by the end to be synchronized.
3. The vehicle-computer time synchronization simulation device according to claim 1, characterized in that: The configuration test operation includes a network configuration operation and a network test operation; The simulation software at least includes a network configuration module, a network test module, a parameter setting module and a simulation control module; The network configuration module is at least used to respond to the network configuration operation of the user so that the simulation end and the end to be synchronized are both in the same local area network segment; The network test module is at least used to generate a network test instruction in response to the network test operation of the user, and send the network test instruction to the end to be synchronized, and to check whether the communication link between the simulation end and the end to be synchronized is reliable by judging whether the end to be synchronized has responded and counting the response time; The parameter setting module is at least used for, after determining that the communication link is reliable, responding to the parameter setting operation of the user, transmitting the setting parameter name and the current setting parameter value to the simulation main service through a preset communication method, so that the simulation main service searches for the initial setting parameter value in the initial simulation resource according to the setting parameter name, and determines whether the initial setting parameter value is equal to the current setting parameter value; further, If the initial setting parameter value is not equal to the current setting parameter value, the simulation master service modifies the initial setting parameter value to the current setting parameter value, and then replies to the simulation software through the preset communication method, and makes the interface of the simulation software display the current setting parameter value; if the initial setting parameter value is equal to the current setting parameter value, the simulation master service still keeps the configuration of the initial simulation resource unchanged; The simulation control module is at least used to generate a simulation start instruction in response to the user's simulation start operation, and send the simulation start instruction to the simulation main service through the preset communication method, so that the simulation main service generates the time synchronization information based on the simulation environment and the adjusted initial simulation resources, and then the simulation end sends the time synchronization information to the end to be synchronized.
4. The vehicle-computer time synchronization simulation device according to claim 3, characterized in that: The simulation main service at least includes a simulation configuration module, a configuration adjustment module and a configuration operation module; The simulation configuration module is at least used to install a simulation program package after the simulation main service is enabled to build the simulation environment and configure the initial simulation resources; The configuration adjustment module is at least used for, after receiving the setting parameter name and the current setting parameter value transmitted by the parameter setting module through the preset communication method, searching for the initial setting parameter value in the initial simulation resource according to the setting parameter name, and judging whether the initial setting parameter value is equal to the current setting parameter value; and, if the initial setting parameter value is not equal to the current setting parameter value, modifying the initial setting parameter value to the current setting parameter value, and then replying to the simulation software through the preset communication method, and making the interface of the simulation software display the current setting parameter value; and, if the initial setting parameter value is equal to the current setting parameter value, keeping the configuration of the initial simulation resource unchanged; The configuration and operation module is at least used to, after identifying the simulation start instruction, generate the time synchronization information based on the simulation environment and the adjusted initial simulation resources, so that the simulation end sends the time synchronization information to the end to be synchronized.
5. The vehicle-computer time synchronization simulation device according to any one of claims 1 to 4, characterized in that: The end to be synchronized includes at least an in-vehicle infotainment system and an instrument module; The in-vehicle infotainment system is at least used to start the time synchronization parsing service after the end to be synchronized is controlled to be powered on, so as to obtain the master clock timestamp by parsing the time synchronization information; and, correcting the entertainment system time according to the master clock timestamp through the hardware abstraction layer; and, calling and displaying the corrected entertainment system time through the internal upper layer application; and, sending the corrected entertainment system time to the instrument module through a set communication mode; The instrument module is at least used to receive the corrected entertainment system time sent by the in-vehicle infotainment system through the instrument bottom layer service, and correct the instrument system time according to the corrected entertainment system time, and then display the corrected instrument system time.
6. The vehicle-computer time synchronization simulation device according to claim 3 or 4, characterized in that: The setting parameters at least include a master clock parameter, a sending cycle parameter of the time synchronization information, and a retransmission time parameter after the time synchronization information is sent overdue.
7. A vehicle-computer time synchronization simulation method, characterized in that: The method is executed by using the vehicle-computer time synchronization simulation device according to claim 1, and the method at least comprises: After the simulation end is powered on in a controlled manner, the simulation end opens the simulation software in response to a software start-up operation by the user; In response to the opening of the simulation software, the simulation end automatically enables the simulation main service to build a simulation environment and configure initial simulation resources; The simulation end checks whether the communication link between the simulation end and the end to be synchronized is reliable in response to the configuration test operation of the user; After determining that the communication link is reliable, the simulation end adjusts the initial simulation resources in response to the parameter setting operation of the user; The simulation end generates time synchronization information based on the simulation environment and the adjusted initial simulation resources in response to the simulation start operation of the user, and sends the time synchronization information to the end to be synchronized; After the controlled startup, the terminal to be synchronized starts its own internal time synchronization analysis service to analyze the time synchronization information and then execute the time synchronization action.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle-computer time synchronization simulation method described in claim 7 is implemented.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle-computer time synchronization simulation method described in claim 7.
