CN117097428A - Time synchronization method, device, equipment and storage medium - Google Patents
Time synchronization method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN117097428A CN117097428A CN202311059429.3A CN202311059429A CN117097428A CN 117097428 A CN117097428 A CN 117097428A CN 202311059429 A CN202311059429 A CN 202311059429A CN 117097428 A CN117097428 A CN 117097428A
- Authority
- CN
- China
- Prior art keywords
- time
- vehicle
- mounted intelligent
- body controller
- cabin system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000004891 communication Methods 0.000 claims abstract description 72
- 239000013078 crystal Substances 0.000 claims description 10
- 230000004044 response Effects 0.000 abstract description 12
- 230000000694 effects Effects 0.000 abstract description 7
- 238000005516 engineering process Methods 0.000 abstract description 6
- 230000002452 interceptive effect Effects 0.000 abstract description 3
- 230000001360 synchronised effect Effects 0.000 abstract description 3
- 238000013461 design Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 10
- 230000003993 interaction Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 239000000446 fuel Substances 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000036962 time dependent Effects 0.000 description 2
- UFHFLCQGNIYNRP-UHFFFAOYSA-N Hydrogen Chemical compound [H][H] UFHFLCQGNIYNRP-UHFFFAOYSA-N 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 229910052739 hydrogen Inorganic materials 0.000 description 1
- 239000001257 hydrogen Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000003208 petroleum Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0685—Clock or time synchronisation in a node; Intranode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The application provides a time synchronization method, a device, equipment and a storage medium, which are applied to a virtualization platform in a vehicle-mounted intelligent cabin system, wherein the virtualization platform is respectively in communication connection with a vehicle body controller and virtual machines of all service domains in the vehicle-mounted intelligent cabin system through a communication bus. After the vehicle-mounted intelligent cabin system finishes operation initialization, the received first time issued by the characteristic service domain virtual machine in the vehicle-mounted intelligent cabin system is issued to each subordinate electronic control unit of the vehicle body controller, and the first time is reported to other service domain virtual machines in the vehicle-mounted intelligent cabin system in response to a first subscription signal on the communication bus. Based on the virtualization technology, time is converted into interactive signal circulation so as to be synchronized to other service domain virtual machines and electronic control units subordinate to the vehicle body controller in the vehicle-mounted intelligent cabin system, the interactive synchronization time among the service domains is not relied on, the problem of cross-domain time synchronization of different service domains is solved, and the cross-domain decoupling effect is achieved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a time synchronization method, apparatus, device, and storage medium.
Background
With the continuous improvement of the intelligent degree of automobiles, the vehicle-mounted intelligent cabin system is accompanied with more and more complexity.
How to unify service time stamps of different service domains (such as a vehicle control domain, an information entertainment domain and other subsystems responsible for providing different service capabilities) in a vehicle-mounted intelligent cabin system, so as to ensure that time-dependent cross-domain services in the vehicle-mounted intelligent cabin system can normally run is a problem to be solved urgently.
However, most of the current solutions are to perform time synchronization between service domains, so that time sources are difficult to manage and control, and interdependence between multiple service domains occurs, which results in great difficulty in development and maintenance.
Disclosure of Invention
The application provides a time synchronization method, a device, equipment and a storage medium, which are used for solving the problem of cross-domain time synchronization among different service domains in a vehicle-mounted intelligent cabin system.
In a first aspect, the application provides a time synchronization method, which is applied to a virtualization platform in a vehicle-mounted intelligent cabin system, wherein the virtualization platform is respectively in communication connection with a vehicle body controller and each service domain virtual machine in the vehicle-mounted intelligent cabin system through a communication bus; the method comprises the following steps:
after the vehicle-mounted intelligent cabin system finishes operation initialization, receiving a first time issued by a feature service domain virtual machine in the vehicle-mounted intelligent cabin system, wherein the first time is obtained according to the whole vehicle calibration time acquired by the feature service domain virtual machine;
issuing the first time to each electronic control unit subordinate to the vehicle body controller; and
and responding to a first subscription signal on the communication bus, and reporting the first time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
In one possible design, if the feature service domain virtual machine is running in an infotainment domain in the vehicle-mounted intelligent cockpit system;
the whole vehicle calibration time is obtained according to the network time and/or the navigation time acquired by the information entertainment domain virtual machine, or;
the whole vehicle calibration time is obtained according to manual setting operation detected by the virtual machine of the infotainment domain.
In one possible design, the issuing the first time to each electronic control unit subordinate to the body controller includes:
and issuing the first time to the vehicle body controller, so that the vehicle body controller distributes the first time to each electronic control unit subordinate to the vehicle body controller.
In one possible design, if the on-board intelligent cockpit system is powered down and powered back up, the method further comprises:
receiving a second time reported by the vehicle body controller, wherein the second time is reported to the vehicle body controller by a characteristic electronic control unit, and the characteristic electronic control unit is an electronic control unit with a time crystal oscillator subordinate to the vehicle body controller;
and responding to the first subscription signal on the communication bus, and reporting the second time to the corresponding service domain virtual machine in the vehicle-mounted intelligent cabin system.
In one possible design, the further electronic control unit subordinate to the body controller distributes the second time through the body controller to synchronize to the second time, the further electronic control unit comprising an electronic control unit subordinate to the body controller other than the characteristic control unit.
In one possible design, if the vehicle-mounted intelligent cabin system is initialized after factory shipment, the method further includes:
receiving initialization time issued by the feature service domain virtual machine, wherein the initialization time is obtained according to factory initialization operation detected by the feature service domain virtual machine;
issuing the initialization time to each subordinate electronic control unit of the vehicle body controller; and
and responding to a second subscription signal on the communication bus, and reporting the initialization time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
In one possible design, the other service domain virtual machines in the on-board intelligent cockpit system include virtual machines running in any one or more of a car control domain, a game domain, and an expansion domain in the on-board intelligent cockpit system.
In a second aspect, the application provides a time synchronization device, which is applied to a virtualization platform in a vehicle-mounted intelligent cabin system, wherein the virtualization platform is respectively in communication connection with a vehicle body controller and each service domain virtual machine in the vehicle-mounted intelligent cabin system through a communication bus; the device comprises:
the receiving module is used for receiving a first time issued by the feature service domain virtual machine in the vehicle-mounted intelligent cabin system after the vehicle-mounted intelligent cabin system finishes operation initialization, wherein the first time is obtained according to the whole vehicle calibration time acquired by the feature service domain virtual machine;
the issuing module is used for issuing the first time to each electronic control unit subordinate to the vehicle body controller; and
and the reporting module is used for responding to the first subscription signal on the communication bus and reporting the first time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
In one possible design, if the feature service domain virtual machine is running in an infotainment domain in the vehicle-mounted intelligent cockpit system;
the whole vehicle calibration time is obtained according to the network time and/or the navigation time acquired by the information entertainment domain virtual machine, or;
the whole vehicle calibration time is obtained according to manual setting operation detected by the virtual machine of the infotainment domain.
In one possible design, the issuing module is specifically configured to:
and issuing the first time to the vehicle body controller, so that the vehicle body controller distributes the first time to each electronic control unit subordinate to the vehicle body controller.
In one possible design, if the on-board intelligent cockpit system is powered down and powered back up;
the receiving module is used for receiving a second time reported by the vehicle body controller, wherein the second time is reported to the vehicle body controller by the characteristic electronic control unit, and the characteristic electronic control unit is an electronic control unit with a time crystal oscillator subordinate to the vehicle body controller;
and the reporting module is used for responding to the first subscription signal on the communication bus and reporting the second time to the corresponding service domain virtual machine in the vehicle-mounted intelligent cabin system.
In one possible design, the further electronic control unit subordinate to the body controller distributes the second time through the body controller to synchronize to the second time, the further electronic control unit comprising an electronic control unit subordinate to the body controller other than the characteristic control unit.
In one possible design, if the vehicle-mounted intelligent cabin system is factory initialized;
the receiving module is used for receiving the initialization time issued by the feature service domain virtual machine, wherein the initialization time is obtained according to the factory initialization operation detected by the feature service domain virtual machine;
the issuing module is further used for issuing the initialization time to each electronic control unit subordinate to the vehicle body controller; and
and the reporting module is further used for reporting the initialization time to other service domain virtual machines in the vehicle-mounted intelligent cabin system in response to a second subscription signal on the communication bus.
In one possible design, the other service domain virtual machines in the on-board intelligent cockpit system include virtual machines running in any one or more of a car control domain, a game domain, and an expansion domain in the on-board intelligent cockpit system.
In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement any one of the possible time synchronization methods provided in the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out any one of the possible time synchronisation methods provided in the first aspect.
In a fifth aspect, the application provides a computer program product comprising computer-executable instructions for implementing any one of the possible time synchronization methods provided in the first aspect when executed by a processor.
The application provides a time synchronization method, a device, equipment and a storage medium, wherein the time synchronization method can be applied to a virtualization platform in an on-board intelligent cabin system, and the virtualization platform is respectively in communication connection with a vehicle body controller and each service domain virtual machine in the on-board intelligent cabin system through a communication bus. After the vehicle-mounted intelligent cabin system finishes operation initialization, first receiving first time issued by a characteristic service domain virtual machine in the vehicle-mounted intelligent cabin system, wherein the first time is obtained according to the whole vehicle calibration time acquired by the characteristic service domain virtual machine, then issuing the first time to each electronic control unit subordinate to the vehicle body controller, and reporting the first time to other service domain virtual machines in the vehicle-mounted intelligent cabin system in response to a first subscription signal on a communication bus. Based on a virtualization technology, time is converted into interaction signal flow to a communication bus, and then the interaction signal flow is synchronized to other service domain virtual machines in a vehicle-mounted intelligent cabin system and each electronic control unit subordinate to a vehicle body controller through the communication bus, so that the time synchronization of each service domain is realized without depending on interaction among each service domain, the problem of cross-domain time synchronization of different service domains in the vehicle-mounted intelligent cabin system is solved, and the cross-domain decoupling effect is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a time synchronization method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a system architecture of the time synchronization method shown in FIG. 2;
FIG. 4 is a flowchart of another time synchronization method according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a system architecture of the time synchronization method shown in FIG. 4;
FIG. 6 is a flowchart of another time synchronization method according to an embodiment of the present application;
FIG. 7 is a flow chart of the time synchronization method shown in FIG. 6 in a system architecture;
fig. 8 is a schematic structural diagram of a time synchronization device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of methods and apparatus consistent with aspects of the application as detailed in the accompanying claims.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Along with the increasing complexity of the vehicle-mounted intelligent cabin system, how to unify service timestamps of different service domains (such as a vehicle control domain, an information entertainment domain and other subsystems responsible for providing different service capabilities) in the vehicle-mounted intelligent cabin system, so as to ensure that time-dependent cross-domain services in the vehicle-mounted intelligent cabin system can normally run, and the vehicle-mounted intelligent cabin system is a problem to be solved urgently. However, most of the current solutions are to perform time synchronization between service domains, so that time sources are difficult to manage and control, and interdependence between multiple service domains occurs, which results in great difficulty in development and maintenance.
The present application provides a time synchronization method, apparatus, device and storage medium for solving the above problems in the prior art. The application provides a time synchronization method, which comprises the following steps: the vehicle-mounted intelligent cabin system emphasizes complex service scenes such as one-core multi-screen by adopting the minimum hardware, so that the virtualized base of the vehicle-mounted intelligent cabin is rapidly developed, wherein the virtualized base is used for providing a solution for supporting the base by using a virtualized platform, namely, different virtualized operating systems are supported on one set of hardware by using the virtualized solution so as to support the operation of different service domains. In view of this, based on the virtualization platform of on-vehicle intelligent cabin system, because the virtualization platform passes through communication bus and is connected with the virtual machine communication that runs in each service domain in automobile body controller and the on-vehicle intelligent cabin system respectively, consequently turn into interactive signal flow to communication bus with the time, again because service domain in the on-vehicle intelligent cabin system can subscribe to communication bus, the virtualization platform can respond the subscription signal on the communication bus and report the time to the service domain in the on-vehicle intelligent cabin system. On the other hand, the virtualization platform can issue time to each subordinate electronic control unit of the vehicle body controller, so that the problem of cross-domain time synchronization of different service domains in the vehicle-mounted intelligent cabin system is solved, and the cross-domain decoupling effect is achieved. Compared with the prior art, the time synchronization of each service domain can be realized without depending on interaction among the service domains, and the situation that time sources are difficult to manage and control and interdependence among multiple service domains is avoided, so that development difficulty is high.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application. As shown in fig. 1, the service domains of the vehicle-mounted intelligent cabin system 10 may be, for example, an infotainment domain 101, a vehicle control domain 102, a game domain 103, and an extension domain 104, where each service domain is responsible for different service emphasis and has different service capabilities through a virtual machine running respectively, for example, the infotainment domain 101 has an inherent network communication capability and has a network time synchronization capability, so that accurate time can be obtained, and thus, in some embodiments, the infotainment domain 101 may be used as a feature service domain to provide a time source of time synchronization for the vehicle-mounted intelligent cabin system, so as to facilitate time source management and control. Accordingly, one or more service domains of the vehicle-mounted intelligent cockpit system 10 other than the feature service domain and subscribed to the communication bus are other service domains, for example, if the infotainment domain 101 is the feature service domain, the service domains of the vehicle control domain 102, the game domain 103, the expansion domain 104 and the like in fig. 1 are all other service domains of the vehicle-mounted intelligent cockpit system 10 in the embodiment of the present application if they are subscribed to the communication bus.
The virtualization platform 200 serves as a virtualization base of the vehicle-mounted intelligent cabin system 10, and is respectively in communication connection with virtual machines running in service domains and a hardware layer including a vehicle body controller 300 and electronic control units (Electronic Control Unit, ECU) subordinate to the vehicle body controller 300, such as an ECU 301, an ECU 302, an ECU303, an ECU304, an ECU305, an ECU 306, and the like, through a cross-domain communication bus.
Optionally, the hardware layer further includes a memory, a hard disk, a chip such as a graphics card, and a plurality of different communication interfaces. The hardware layer is responsible for data operations and decisions of the whole vehicle.
In the operation of the vehicle-mounted intelligent cabin system 10, the feature service domain virtual machine in the vehicle-mounted intelligent cabin system 10, for example, the virtual machine operated in the infotainment domain 101, namely, the infotainment domain virtual machine, issues a first time to the virtualization platform 200, and then the virtualization platform 200 reports the first time to the virtual machine operated in other service domains, namely, the other service domain virtual machine, in response to the first subscription signal of the other service domain subscription communication bus, on the one hand, and issues the first time to the vehicle body controller 300 and each ECU subordinate thereto, on the other hand, so as to realize cross-domain time synchronization in each service domain of the vehicle-mounted intelligent cabin system 10.
Alternatively, the body controller 300 may be, for example, a micro control unit (Microcontroller Unit; MCU). The business domains shown in fig. 1 are only for illustration and not limitation, and may include, for example, intelligent driving domains, chassis domains, power domains, and the like.
It should be appreciated that the in-vehicle intelligent cockpit system 10 may be configured in vehicles, various boats, ships' vessels, aircraft, and the like. In fig. 1, the in-vehicle intelligent cockpit system 10 is shown as being disposed in a vehicle 20. In addition, the vehicle 20 may include a hybrid vehicle, an electric vehicle, a plug-in hybrid electric vehicle, a hydrogen powered vehicle, and other alternative fuel vehicles (e.g., fuels derived from non-petroleum energy sources), and embodiments of the present application are not limited to a particular type of vehicle 20.
It should be noted that the above application scenario is merely illustrative, and the time synchronization method, apparatus, device and storage medium provided in the embodiments of the present application include, but are not limited to, application to the above application scenario.
Fig. 2 is a schematic flow chart of a time synchronization method provided by the embodiment of the application, wherein the time synchronization method is applied to a virtualization platform in a vehicle-mounted intelligent cabin system, and the virtualization platform is respectively in communication connection with a vehicle body controller and each service domain virtual machine in the vehicle-mounted intelligent cabin system through a communication bus. As shown in fig. 2, the time synchronization method provided by the embodiment of the present application includes:
s201: after the vehicle-mounted intelligent cabin system finishes operation initialization, the virtualization platform receives the first time issued by the feature service domain virtual machine in the vehicle-mounted intelligent cabin system.
The first time is obtained according to the whole vehicle calibration time obtained by the feature service domain virtual machine.
And the vehicle-mounted intelligent cabin system completes the operation initialization so as to be in a normal operation process, and the characteristic service domain virtual machine in the vehicle-mounted intelligent cabin system transmits the first time to the virtualization platform, namely the virtualization platform receives the first time transmitted by the characteristic service domain virtual machine. The virtual machines running in the feature service domain are called feature service domain virtual machines, and correspondingly, the virtual machines running in other service domains in the vehicle-mounted intelligent cabin system are called other service domain virtual machines.
Therefore, in the running process of the vehicle-mounted intelligent cabin system, the first time comes from the characteristic service domain, wherein the first time can be obtained according to the whole vehicle calibration time acquired by the virtual machine of the characteristic service domain.
In one possible design, if the feature service domain virtual machine is operated in an infotainment domain in the vehicle-mounted intelligent cabin system, that is, the feature service domain is the infotainment domain, the whole vehicle calibration time may be obtained according to the network time and/or the navigation time acquired by the infotainment domain virtual machine, or the whole vehicle calibration time may be obtained according to a manual setting operation detected by the infotainment domain virtual machine. The virtual machine of the infotainment domain is a virtual machine running in the infotainment domain.
For example, if the owner user starts network synchronization, the infotainment domain virtual machine may perform whole vehicle time calibration according to the network time, so as to obtain whole vehicle calibration time. Or the whole vehicle time calibration can be carried out according to the navigation time of the navigation system under the condition that the navigation (GPS) signal is normal, so as to obtain the whole vehicle calibration time. In some embodiments, the infotainment domain virtual machine may also perform the whole vehicle time calibration according to the network time and the navigation time to obtain the whole vehicle calibration time, so the whole vehicle calibration time may be obtained according to the network time and/or the navigation time acquired by the infotainment domain virtual machine. Optionally, if the owner user selects the manual setting time, for example, the owner user performs the manual setting operation through a setting panel on the infotainment domain, and performs the whole vehicle time calibration through the manual setting operation, so that the infotainment domain virtual machine can detect the manual setting operation of the owner user, and further obtain the whole vehicle calibration time according to the detected manual setting operation.
It can be seen through information description that the feature service domain can be, for example, an infotainment domain, based on the network communication capability of the infotainment domain, so that the feature service domain has network time and/or navigation time synchronization capability, or can receive manual setting operation of a vehicle owner user, so that accurate time can be obtained, and in the running process of the system, the whole vehicle calibration time obtained by carrying out whole vehicle time calibration on the infotainment domain is unified as a time source, so that the management of the time source is facilitated. It can be understood that the whole vehicle calibration time is the reference time for whole vehicle time calibration, and the first time is the time obtained by timing after the whole vehicle time calibration is performed by the reference time.
S102: the virtualization platform issues a first time to each electronic control unit subordinate to the vehicle body controller.
S103: and the virtualization platform responds to a first subscription signal on the communication bus to report the first time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
In step S101, the virtualization platform receives the first time, and the virtualization platform is respectively in communication connection with the vehicle body controller and each service domain virtual machine in the vehicle-mounted intelligent cabin system through a communication bus. Therefore, further, the virtualization platform firstly transmits the first time to each ECU subordinate to the vehicle body controller, and secondly responds to the first subscription signal on the communication bus to report the first time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
On the one hand, the virtualization platform issues the first time to each ECU subordinate to the vehicle body controller, for example, the virtualization platform issues the first time to the vehicle body controller, and the vehicle body controller subdivides the first time to each ECU subordinate to the vehicle body controller so as to complete the first time synchronization.
In the normal operation of the vehicle-mounted intelligent cabin system, if the service domains in the vehicle-mounted intelligent cabin system subscribe to the cross-domain communication bus, corresponding subscription signals, namely first subscription signals on the communication bus, are generated, so that the virtualization platform can synchronize the first time to other service domain virtual machines subscribing to the communication bus in response to the first subscription signals, and cross-domain time synchronization of each service domain in the vehicle-mounted intelligent cabin system is realized. The other service domain virtual machines may include virtual machines in any one or more of a car control domain, a game domain and an expansion domain running in the vehicle-mounted intelligent cabin system, and specifically, other service domains except the characteristic service domain in the vehicle-mounted intelligent cabin system are subscribed to the communication bus. It should be noted that, in fig. 3, fig. 5, and fig. 7, the embodiment of the present application is shown by using the communication buses subscribed to the infotainment domain 101, the control domain 102, the game domain 103, and the extension domain 104.
Fig. 3 is a schematic flow diagram of the time synchronization method shown in fig. 2 in a system architecture. As shown in fig. 3, the infotainment domain may be a feature service domain, and provide a time source for time synchronization, where the time source may be obtained by using network time and/or navigation time or by a manual setting operation, for example, performing whole vehicle time calibration by using the network time and/or the navigation time as whole vehicle calibration time, or performing whole vehicle time calibration by using the manual setting operation, so as to obtain the first time based on the whole vehicle calibration time. And further, the information entertainment domain virtual machine transmits the first time to a virtualization platform, and the virtualization platform transmits the first time to each ECU subordinate to the vehicle body controller and reports the first time to other service domains in the vehicle-mounted intelligent cabin system. Based on the virtualization technology, the first time is used as an interaction signal to circulate, so that the time synchronization of each service domain can be realized independently of the interaction between each service domain, the problem of cross-domain time synchronization of different service domains in the vehicle-mounted intelligent cabin system is solved, the cross-domain decoupling effect is achieved, and the time source management is facilitated. The dashed arrow in fig. 3 then represents the direction of flow in the vehicle-mounted intelligent cockpit system architecture at the first time.
Fig. 2 and 3 depict a method for time synchronization during normal operation of the vehicle-mounted intelligent cockpit system, and optionally, the embodiment shown in fig. 4 is a method for time synchronization after power-off and power-up of the vehicle-mounted intelligent cockpit system. As shown in fig. 4, fig. 4 is a flowchart of another time synchronization method according to an embodiment of the present application, where the embodiment of the present application includes:
s201: and the characteristic electronic control unit reports the second time to the vehicle body controller.
S202: the vehicle body controller reports the second time to the virtualization platform, and the vehicle body controller distributes the second time to other electronic control units subordinate to the vehicle body controller.
In the virtualization scheme, all virtual machines are closed after power-off, so that normal counting of time cannot be guaranteed for each service domain on a virtualization base. However, the ECU with the clock crystal oscillator in the ECU subordinate to the vehicle body controller can rely on the hardware characteristics of the ECU to perform timing, so that the ECU with the clock crystal oscillator can be used as a time source for time synchronization when the vehicle-mounted intelligent cabin system is powered on again after power is off. The ECU with time crystal such as ECU303 is defined as a characteristic electronic control unit.
Specifically, after the power is turned off, the characteristic electronic control unit reports the time of normal timing, namely the second time, to the vehicle body controller, and then the vehicle body controller reports the second time to the virtualization platform, and accordingly the virtualization platform receives the second time reported by the vehicle body controller, and the vehicle body controller distributes the second time to other ECUs subordinate to the vehicle body controller, so that the other ECUs are synchronized to the second time, wherein the other ECUs are ECUs except the characteristic ECU in each ECU subordinate to the vehicle body controller, such as the ECU303 is the characteristic ECU, and the other ECUs are the ECUs 301, 302, 304, 305 and the like.
Further, S203: and the virtualization platform responds to the first subscription signal on the communication bus to report the second time to the corresponding service domain virtual machine in the vehicle-mounted intelligent cabin system.
Similar to step S103, if the service domain in the vehicle-mounted intelligent cabin system subscribes to the cross-domain communication bus, a corresponding subscription signal, that is, a first subscription signal on the communication bus is generated, so that the virtualization platform can synchronize the second time to the corresponding service domain virtual machine subscribing to the communication bus in response to the first subscription signal, thereby realizing cross-domain time synchronization of each service domain in the vehicle-mounted intelligent cabin system. The corresponding service domain virtual machine is a virtual machine running in one or more service domains subscribed to the communication bus.
Fig. 5 is a schematic flow diagram of the time synchronization method shown in fig. 4 in a system architecture. As shown in fig. 5, after the vehicle-mounted intelligent cockpit system is powered off, the service domain is isolated from the hardware by the virtualized base, so that the characteristic service domain, such as the infotainment domain, has no power supply, and the first time of the characteristic service domain is stopped. The ECU with the time crystal oscillator can still normally count time, so that the ECU can be used as a time source, the second time counted normally is reported to the vehicle body controller, the vehicle body controller reports the second time to the virtualization platform and distributes the second time to other ECUs, and the virtualization platform reports the second time to corresponding service domains in the vehicle-mounted intelligent cabin system in response to the first subscription signal on the communication bus. Based on the virtualization technology, the ECU with the time crystal oscillator provides a time source to obtain second time, and the second time is used as an interaction signal to circulate, so that the time synchronization of each service domain can be realized without depending on the interaction between each service domain, the problem of cross-domain time synchronization of different service domains in the vehicle-mounted intelligent cabin system is solved, the cross-domain decoupling effect is achieved, and the time source management is convenient. The solid arrows in fig. 5 then represent the direction of flow of the second time in the vehicle-mounted intelligent cockpit system architecture.
Further, considering that the clock crystal may be disturbed by the magnetic field, only coarse time (there may be a second step difference) can be guaranteed, so that the time source can be used for time synchronization in an extreme environment without a network and a GPS signal after power is cut off and the power is turned on again. After normal operation, the whole vehicle calibration time is obtained through the obtained network time and/or navigation time or manual setting operation, and then the time synchronization is carried out according to the whole vehicle calibration time, and each ECU and each service domain subordinate to the vehicle body controller can carry out time update, for example, the second time is updated to be more accurate first time.
Based on the above embodiments, the embodiment shown in fig. 6 is a time synchronization method after factory initialization, that is, after first power-up, of the vehicle-mounted intelligent cabin system. As shown in fig. 6, fig. 6 is a flowchart of another time synchronization method according to an embodiment of the present application, where the embodiment of the present application includes:
s301: the feature service domain virtual machine issues initialization time to the virtualization platform.
Correspondingly, the virtualization platform receives the initialization time issued by the feature service domain virtual machine.
After the vehicle-mounted intelligent cabin system is powered on for the first time, namely when the vehicle-mounted intelligent cabin system is initialized in a factory, the feature service domain virtual machine detects the initialization operation to obtain the initialization time, for example, the initialization time is set in the infotainment domain to enable the infotainment domain virtual machine to obtain the initialization time, and the initialization time can be generally fixed time. And then the feature service domain virtual machine issues the initialization platform to the virtualization platform.
S302: the virtualization platform issues initialization time to each subordinate electronic control unit of the vehicle body controller.
S303: and the virtualization platform responds to a second subscription signal on the communication bus to report the initialization time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
In step S301, the virtualization platform receives the initialization time, and the virtualization platform is respectively in communication connection with the vehicle body controller and each service domain virtual machine in the vehicle-mounted intelligent cabin system through a communication bus. Therefore, further, the virtualization platform transmits the initialization time to each ECU subordinate to the vehicle body controller on one hand, and reports the initialization time to other service domain virtual machines in the vehicle-mounted intelligent cabin system in response to the second subscription signal on the communication bus on the other hand.
On the one hand, the virtualization platform issues the initialization time to each ECU subordinate to the vehicle body controller, for example, the virtualization platform may issue the initialization time to the vehicle body controller, and the vehicle body controller issues the initialization time to each ECU subordinate to the vehicle body controller again, so as to complete initialization time synchronization.
In factory initialization, if a service domain in the vehicle-mounted intelligent cabin system subscribes to the cross-domain communication bus, a corresponding second subscription signal is generated, so that the virtualization platform can synchronize initialization time to other service domain virtual machines subscribing to the communication bus in response to the second subscription signal, and cross-domain time synchronization of each service domain in the vehicle-mounted intelligent cabin system is realized. The other service domain virtual machines may include virtual machines in any one or more of a car control domain, a game domain and an expansion domain running in the vehicle-mounted intelligent cabin system, and specifically, other service domains except the characteristic service domain in the vehicle-mounted intelligent cabin system are subscribed to the communication bus.
Alternatively, the first subscription signal may be the same as or different from the second subscription signal, in particular determined by the subscription rights of the communication bus. For example, the first subscription signal may be generated according to a service domain of a subscription communication bus in factory initialization of the vehicle-mounted intelligent cabin system, and the second subscription signal may be generated according to a service domain of a subscription communication bus in operation initialization of the vehicle-mounted intelligent cabin system.
Fig. 7 is a schematic flow diagram of the time synchronization method shown in fig. 6 in a system architecture. As shown in fig. 7, the infotainment domain may set an initialization time for the feature service domain to provide a time source for time synchronization. The information entertainment domain virtual machine transmits the initialization time to the virtualization platform, and the virtualization platform transmits the initialization time to each ECU subordinate to the vehicle body controller and reports the initialization time to other service domains in the vehicle-mounted intelligent cabin system. Based on the virtualization technology, the initialization time is used as an interaction signal to circulate, so that the time synchronization of each service domain can be realized independently of the interaction between each service domain, the problem of cross-domain time synchronization of different service domains in the vehicle-mounted intelligent cabin system is solved, the cross-domain decoupling effect is achieved, and the time source management is facilitated. The thick solid arrows in fig. 7 then represent the direction of flow of the initialization time in the vehicle-mounted intelligent cabin system architecture.
Fig. 8 is a schematic structural diagram of a time synchronization device provided by the embodiment of the application, where the time synchronization device can be applied to a virtualization platform in a vehicle-mounted intelligent cabin system, and the virtualization platform is respectively in communication connection with a vehicle body controller and each service domain virtual machine in the vehicle-mounted intelligent cabin system through a communication bus. As shown in fig. 8, a time synchronization apparatus 400 provided in an embodiment of the present application includes:
the receiving module 401 is configured to receive a first time issued by a feature service domain virtual machine in the vehicle-mounted intelligent cabin system after the vehicle-mounted intelligent cabin system completes operation initialization, where the first time is obtained according to a whole vehicle calibration time acquired by the feature service domain virtual machine;
a issuing module 402, configured to issue a first time to each electronic control unit subordinate to the vehicle body controller; and
and the reporting module 403 is configured to report the first time to other service domain virtual machines in the vehicle-mounted intelligent cabin system in response to the first subscription signal on the communication bus.
In one possible design, if the feature service domain virtual machine is running in an infotainment domain in the vehicle-mounted intelligent cockpit system;
the whole vehicle calibration time is obtained according to the network time and/or the navigation time acquired by the virtual machine of the infotainment domain, or;
the whole vehicle calibration time is obtained according to manual setting operation detected by the virtual machine of the infotainment domain.
In one possible design, the issuing module 402 is specifically configured to:
and issuing the first time to the vehicle body controller, so that the vehicle body controller distributes the first time to each electronic control unit subordinate to the vehicle body controller.
In one possible design, if the on-board intelligent cabin system is powered down and powered back up;
the receiving module 401 is configured to receive a second time reported by the vehicle body controller, where the second time is reported to the vehicle body controller by the characteristic electronic control unit, and the characteristic electronic control unit is an electronic control unit with a time crystal oscillator subordinate to the vehicle body controller;
and the reporting module 403 is configured to report the second time to the corresponding service domain virtual machine in the vehicle-mounted intelligent cabin system in response to the first subscription signal on the communication bus.
In one possible design, the other electronic control units subordinate to the body controller distribute the second time through the body controller to synchronize to the second time, the other electronic control units including electronic control units subordinate to the body controller other than the feature control unit.
In one possible design, if the vehicle-mounted intelligent cabin system is factory initialized;
the receiving module 401 is configured to receive an initialization time issued by the feature service domain virtual machine, where the initialization time is obtained according to a factory initialization operation detected by the feature service domain virtual machine;
the issuing module 402 is further configured to issue an initialization time to each electronic control unit subordinate to the vehicle body controller; and
the reporting module 403 is further configured to report the initialization time to other service domain virtual machines in the vehicle-mounted intelligent cabin system in response to a second subscription signal on the communication bus.
In one possible design, the other business domain virtual machines in the in-vehicle intelligent cockpit system include virtual machines in any one or more of a car control domain, a game domain, and an expansion domain that run in the in-vehicle intelligent cockpit system.
The time synchronization device provided by the embodiment of the application can execute the corresponding steps of the time synchronization method of the virtualized platform side in the method embodiment, and the implementation principle and the technical effect are similar, and are not repeated here.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 9, the electronic device 500 may include: a processor 501, and a memory 502 communicatively coupled to the processor 501.
A memory 502 for storing a program. In particular, the program may include program code including computer-executable instructions.
The memory 502 may comprise high-speed RAM memory or may further comprise non-volatile memory (NoN-volatile memory), such as at least one disk memory.
The processor 501 is configured to execute computer-executable instructions stored in the memory 502 to implement the above-described time synchronization method.
The processor 501 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement embodiments of the present application.
Alternatively, the memory 502 may be separate or integrated with the processor 501. When the memory 502 is a device separate from the processor 501, the electronic device 500 may further include:
a bus 503 for connecting the processor 501 and the memory 502. The bus may be an industry standard architecture (industry standard architecture, abbreviated ISA) bus, an external device interconnect (peripheral component, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. Buses may be divided into address buses, data buses, control buses, etc., but do not represent only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 502 and the processor 501 are integrated on a chip, the memory 502 and the processor 501 may complete communication through an internal interface.
The present application also provides a computer-readable storage medium, which may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random AccessMemory), a magnetic disk, or an optical disk, etc., in which program codes may be stored, and specifically, a computer-readable storage medium having stored therein computer-executable instructions for use in the methods in the above-described embodiments.
The application also provides a computer program product comprising computer-executable instructions which, when executed by a processor, implement the method of the above embodiments.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (10)
1. The time synchronization method is characterized by being applied to a virtualization platform in a vehicle-mounted intelligent cabin system, wherein the virtualization platform is respectively in communication connection with a vehicle body controller and each service domain virtual machine in the vehicle-mounted intelligent cabin system through a communication bus; the method comprises the following steps:
after the vehicle-mounted intelligent cabin system finishes operation initialization, receiving a first time issued by a feature service domain virtual machine in the vehicle-mounted intelligent cabin system, wherein the first time is obtained according to the whole vehicle calibration time acquired by the feature service domain virtual machine;
issuing the first time to each electronic control unit subordinate to the vehicle body controller; and
and responding to a first subscription signal on the communication bus, and reporting the first time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
2. The time synchronization method of claim 1, wherein if the feature service domain virtual machine is running in an infotainment domain in the vehicle-mounted intelligent cockpit system;
the whole vehicle calibration time is obtained according to the network time and/or the navigation time acquired by the information entertainment domain virtual machine, or;
the whole vehicle calibration time is obtained according to manual setting operation detected by the virtual machine of the infotainment domain.
3. The time synchronization method according to claim 1, wherein said issuing the first time to each electronic control unit subordinate to the body controller includes:
and issuing the first time to the vehicle body controller, so that the vehicle body controller distributes the first time to each electronic control unit subordinate to the vehicle body controller.
4. A method of time synchronization according to any one of claims 1-3, wherein if the on-board smart cockpit system is powered down and powered back up, the method further comprises:
receiving a second time reported by the vehicle body controller, wherein the second time is reported to the vehicle body controller by a characteristic electronic control unit, and the characteristic electronic control unit is an electronic control unit with a time crystal oscillator subordinate to the vehicle body controller;
and responding to the first subscription signal on the communication bus, and reporting the second time to the corresponding service domain virtual machine in the vehicle-mounted intelligent cabin system.
5. The time synchronization method according to claim 4, wherein other electronic control units subordinate to the vehicle body controller including an electronic control unit subordinate to the vehicle body controller other than the characteristic control unit distribute the second time through the vehicle body controller to synchronize to the second time.
6. The time synchronization method according to claim 1, wherein if the vehicle-mounted intelligent cabin system is factory initialized, the method further comprises:
receiving initialization time issued by the feature service domain virtual machine, wherein the initialization time is obtained according to factory initialization operation detected by the feature service domain virtual machine;
issuing the initialization time to each subordinate electronic control unit of the vehicle body controller; and
and responding to a second subscription signal on the communication bus, and reporting the initialization time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
7. The time synchronization method of claim 2, wherein the other service domain virtual machines in the vehicle-mounted intelligent cockpit system include virtual machines running in any one or more of a car control domain, a game domain, and an expansion domain in the vehicle-mounted intelligent cockpit system.
8. The time synchronization device is characterized by being applied to a virtualization platform in a vehicle-mounted intelligent cabin system, wherein the virtualization platform is respectively in communication connection with a vehicle body controller and each service domain virtual machine in the vehicle-mounted intelligent cabin system through a communication bus; the device comprises:
the receiving module is used for receiving a first time issued by the feature service domain virtual machine in the vehicle-mounted intelligent cabin system after the vehicle-mounted intelligent cabin system finishes operation initialization, wherein the first time is obtained according to the whole vehicle calibration time acquired by the feature service domain virtual machine;
the issuing module is used for issuing the first time to each electronic control unit subordinate to the vehicle body controller; and
and the reporting module is used for responding to the first subscription signal on the communication bus and reporting the first time to other service domain virtual machines in the vehicle-mounted intelligent cabin system.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the time synchronization method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to implement the time synchronization method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311059429.3A CN117097428A (en) | 2023-08-22 | 2023-08-22 | Time synchronization method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311059429.3A CN117097428A (en) | 2023-08-22 | 2023-08-22 | Time synchronization method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117097428A true CN117097428A (en) | 2023-11-21 |
Family
ID=88769320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311059429.3A Pending CN117097428A (en) | 2023-08-22 | 2023-08-22 | Time synchronization method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117097428A (en) |
-
2023
- 2023-08-22 CN CN202311059429.3A patent/CN117097428A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6434459B2 (en) | Automobile information system | |
Reinhardt et al. | Domain controlled architecture | |
Prasad et al. | Scanning advances in aerospace & automobile software technology | |
CN106485807A (en) | Vehicle and the traveling total kilometrage storage method for which and system | |
Broström et al. | Towards the next generation intelligent driver information system (IDIS): The Volvo car interaction manager concept | |
CN106564452B (en) | Power supply control device, vehicle having the same, and vehicle control method | |
WO2024139733A1 (en) | Input event distribution method for intelligent cockpit, system, and vehicle | |
CN113302599A (en) | Scalable vehicle computing method and apparatus | |
CN117097428A (en) | Time synchronization method, device, equipment and storage medium | |
CN110955399A (en) | In-vehicle display system, image display method, storage medium, and host | |
US20220171613A1 (en) | Electronic control unit, software update method, software update program product and electronic control system | |
US11948409B2 (en) | System and method for processing diagnostic message of vehicle | |
US9275502B2 (en) | Driving information restoration system and method for vehicle | |
Miyashita et al. | On-vehicle compact and lightweight multi-channel central gateway unit | |
CN108016381B (en) | Automobile electronic system and program updating method thereof | |
CN114030439B (en) | Configuration method and device of air bag controller and computer storage medium | |
JP7517259B2 (en) | Information processing device, vehicle system, information processing method, and program | |
CN118259939A (en) | Electronic control unit upgrading method and device, vehicle terminal and storage medium | |
CN116980253A (en) | Signal processing method and device, vehicle and storage medium | |
CN117075834A (en) | Multisystem fusion display method applied to automobile | |
Berdich et al. | Antares-anonymous transfer of vehicle access rights from external cloud services | |
CN114996692A (en) | Vehicle-mounted software control method and system | |
CN116760711A (en) | Virtual network card configuration method and device based on hardware isolation | |
CN117261792A (en) | Method, apparatus, device, storage medium and program product for controlling power supply of vehicle | |
CN116431391A (en) | Data backup method, device, vehicle and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |