Data interaction method and device, vehicle controller and vehicle
By introducing data interaction methods into the smart cockpit system, the data interaction efficiency between the host and the client is improved, solving the problems of low data interaction efficiency and consistency in the smart cockpit system, ensuring the normal operation of the system.
Patent Information
- Application Number
- CN202411375418.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-10
AI Technical Summary
The data interaction between the host and the client in the intelligent cockpit system is inefficient, resulting in network delay and inconsistency, affecting the normal operation of the system.
By introducing data interaction methods in the smart cockpit system, the host obtains vehicle-related operation data and stores it in the target storage area. The client calls the preset application programming interface to access the target storage area, obtains data, and uses the virtual storage area and storage area to The association relationship realizes data access and ensures real-time and consistency of data.
It improves the data interaction efficiency between the host and the client, avoids data interaction failure caused by network abnormalities, ensures the real-time and consistency of the data of the smart cockpit system, and ensures the normal operation of the system.
Smart Images

Figure CN119283792A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a data interaction method, device, vehicle controller and vehicle. Background Art
[0002] With the development of automobile intelligence and integration, intelligent cockpits that integrate a variety of Internet technologies and artificial intelligence technologies have also emerged. The intelligent cockpit system can effectively control and enhance the connection and communication between the in-vehicle infotainment system, the instrument panel system, the Internet of Vehicles system and the driver assistance system, thereby providing the driver with an intelligent experience and promoting driving safety. At present, some intelligent cockpit systems will adopt a host-client architecture model based on virtualization technology to meet the diverse system operation and management needs. However, since the host and the client usually need to rely on network communication technology for data interaction, it is easy to cause network delay problems due to factors such as network jitter and excessive network traffic, which affects the data interaction efficiency between the host and the client at the intelligent cockpit system, and cannot guarantee the real-time and consistency of the vehicle-related operation data at the host and the client at the intelligent cockpit system, thereby affecting the normal operation of the intelligent cockpit system. Summary of the invention
[0003] Based on this, the present invention provides a data interaction method, device, vehicle controller and vehicle. By adopting this data interaction method, the data interaction efficiency between the host machine and the client machine of the smart cockpit system can be improved, which is beneficial to ensuring the real-time and consistency of vehicle-related operating data at the host machine and the client machine of the smart cockpit system, so as to ensure the normal operation of the smart cockpit system.
[0004] In one aspect, the present invention provides a data interaction method, which can be applied to a smart cockpit system at a vehicle, wherein the smart cockpit system includes a host machine and at least one client machine, and the method includes:
[0005] Using the host machine to obtain vehicle-related operating data of a target type;
[0006] storing the vehicle-related operating data in a target storage area at the host machine;
[0007] The client calls a preset application programming interface to access the target storage area to obtain the vehicle-related operating data.
[0008] Further, in some embodiments, the client stores a target association relationship between the target virtual storage area at the client and the target storage area at the host;
[0009] The method of using the client to call a preset application programming interface to access the target storage area and obtain the vehicle-related operation data includes:
[0010] Using the client to generate an interface call request for a preset application programming interface; the interface call request is used to request access to the target virtual storage area;
[0011] In response to the interface call request, generating a data access request for the target storage area based on the target association relationship;
[0012] Based on the data access request, at least a portion of the vehicle-related operating data stored in the target storage area is obtained.
[0013] Further, in some embodiments, the client stores device tree data, and the device tree corresponding to the device tree data includes a target device node corresponding to the target virtual storage area at the client; the target association relationship is an association relationship between the target device node and the address information of the target storage area;
[0014] The step of using the client to generate an interface call request for a preset application programming interface comprises:
[0015] generating, by the client, the interface call request for accessing the target device node;
[0016] The step of generating, in response to the interface call request and based on the target association relationship, a data access request for the target storage area includes:
[0017] In response to the interface call request, determining address information of the target storage area based on the target association relationship;
[0018] Based on the address information of the target storage area, a data access request for the target storage area is generated.
[0019] Furthermore, in some implementations, the client stores first permission information reflecting access rights of a preset application installed on the client to the target device node; the method further includes:
[0020] After receiving the interface call request for accessing the target device node generated by the target application carried by the client, judging whether the target application has access rights to the target device node according to the first permission information, and obtaining a judgment result;
[0021] The generating a data access request for the target storage area includes:
[0022] If the determination result indicates that the target application has access rights to the target device node, a data access request to the target storage area is generated.
[0023] Further, in some embodiments, the target storage area is a storage area for which a virtual machine monitor at the smart cockpit system has management authority; the virtual machine monitor stores second permission information reflecting whether each of the clients has access rights to the target storage area;
[0024] The acquiring, based on the data access request, at least part of the vehicle-related operating data stored in the target storage area, comprises:
[0025] Using the client to send the data access request to the virtual machine monitor;
[0026] If the virtual machine monitor determines that the client has access rights to the target storage area based on the second permission information, at least part of the vehicle-related operating data stored in the target storage area is sent to the client.
[0027] Furthermore, in some embodiments, the obtaining of target type of vehicle-related operation data using the host machine includes:
[0028] Using the host machine to obtain a time synchronization message from a master clock device;
[0029] Determining at least one of a target generalized precision time protocol message and current time information in a preset format at the host machine based on the time synchronization message;
[0030] The storing of the vehicle-related operation data to a target storage area at the host machine includes:
[0031] storing the target generalized precision time protocol message in a first preset storage area at the host machine; and / or,
[0032] The current time information in a preset format at the host machine is stored in a second preset storage area at the host machine.
[0033] Further, in some implementations, the using the client to call a preset application programming interface to access the target storage area to obtain the vehicle-related operating data includes:
[0034] Using the client to call a preset application programming interface to access the second preset storage area to obtain the current time information in a preset format at the host; and / or,
[0035] The client calls a preset application programming interface to access the first preset storage area and the second preset storage area to obtain the clock synchronization state information in the target generalized precision time protocol message and the current time information in a preset format at the host machine.
[0036] Furthermore, in some embodiments, the above method further comprises:
[0037] The first preset storage area is a storage area in a random access memory at the host machine;
[0038] The second preset storage area is a storage area in a clock register at the host machine.
[0039] Furthermore, in some embodiments, the obtaining of target type of vehicle-related operation data using the host machine includes:
[0040] Using the host machine to obtain original vehicle-related operation data collected by a data collection device mounted on the vehicle;
[0041] Processing the original vehicle-related operating data to obtain vehicle-related operating data required for the advanced driver assistance system at the vehicle to operate;
[0042] The storing of the vehicle-related operation data to a target storage area at the host machine includes:
[0043] The vehicle-related operation data required when the advanced driver assistance system is running is stored in a third preset storage area of the host machine.
[0044] Furthermore, in some embodiments, the obtaining the target type of vehicle-related operation data by using the host machine further includes:
[0045] Determining generation time information of the vehicle-related operation data based on current time information in a preset format at the host machine;
[0046] The storing of the vehicle-related operation data to a target storage area at the host machine specifically includes:
[0047] The vehicle-related operating data carrying the generation time information is stored in a third preset storage area of the host machine.
[0048] Furthermore, in some embodiments, before the client calls a preset application programming interface to access the target storage area to obtain the vehicle-related operating data, the method further includes:
[0049] For any of the clients, determining target vehicle-related operating data required for use by the client from the vehicle-related operating data required for the advanced driver assistance system to operate;
[0050] Sending an interrupt request message for reflecting a target storage address of the target vehicle-related operation data to the client;
[0051] The method of using the client to call a preset application programming interface to access the target storage area and obtain the vehicle-related operation data includes:
[0052] The client calls a preset application programming interface and obtains the target vehicle related operating data by accessing the data stored in the storage area corresponding to the target storage address in the target storage area.
[0053] Furthermore, in some embodiments, the above method further comprises:
[0054] Determining, using the client based on network time protocol data, current time information in a specified format at the client;
[0055] Using the client to call a specified application programming interface to store the current time information in a specified format at the client to a target storage area at the host;
[0056] The host machine is used to perform time synchronization processing based on current time information in a specified format at the client machine.
[0057] On the other hand, the present invention further provides a data interaction device, which is applied to a smart cockpit system in a vehicle, wherein the smart cockpit system includes a host machine and at least one client machine, and the device includes:
[0058] An acquisition module, used to acquire the vehicle-related operation data of the target type by using the host machine;
[0059] A storage module, used for storing the vehicle-related operation data in a target storage area at the host machine;
[0060] The data interaction module is used to use the client to call a preset application programming interface to access the target storage area and obtain the vehicle-related operating data.
[0061] On the other hand, the present invention also provides a vehicle controller, which is a controller of an intelligent cockpit system at a vehicle, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and the computer-readable instructions are suitable for being loaded by the processor and executing the steps of the above method.
[0062] On the other hand, the present invention further provides a vehicle, comprising the data interaction device or vehicle controller as described above.
[0063] According to the data interaction method provided by the present invention, the smart cockpit system at the vehicle may include a host machine and at least one client machine. When the host machine obtains the vehicle-related operating data of the target type, the vehicle-related operating data may be stored in the target storage area at the host machine, and the client machine may call a preset application programming interface to obtain the vehicle-related operating data by accessing the target storage area. This can not only improve the data interaction efficiency between the host machine and the client machine, but also avoid the problem of data interaction failure caused by network abnormalities, thereby also being beneficial to improving the data interaction reliability between the host machine and the client machine, ensuring the real-time and consistency of the vehicle-related operating data at the host machine and the client machine of the smart cockpit system, and thus ensuring the normal operation of the smart cockpit system.
[0064] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A flow chart of a data interaction method provided by an embodiment of the present invention;
[0066] Figure 2 A schematic diagram of the architecture of an intelligent cockpit system provided by an embodiment of the present invention;
[0067] Figure 3 A schematic diagram of the structure of a data interaction device provided by an embodiment of the present invention;
[0068] Figure 4 A schematic structural diagram of a vehicle controller provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0070] In the description of one or more embodiments of the present invention, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0071] Since the application ecosystem of the in-vehicle infotainment system is rich and emphasizes interactive experience, Android or Linux can be used as the operating system. However, the instrument panel system and driving assistance system have high requirements for operational reliability and real-time performance, so the RTOS system (Real Time Operate System) is usually considered as the operating system. On this basis, the smart cockpit system often adopts a host-client architecture model based on virtualization technology to meet the diverse operating needs of the above-mentioned systems it controls.
[0072] At present, the host machine of the smart cockpit system needs to use Scalable service-oriented middleware over IP (SOME / IP), TCP / IP protocol stack and virtual network card (virtio-net), etc. to send time data, control instructions and other related vehicle operation data to the client, so that the client can perform time synchronization based on the above data received, and control the operation of related vehicle functions.
[0073] However, affected by the jitter of the middleware and network stack, the system CPU load, packet loss and retransmission, etc., the data transmission path between the host and the client often has uncontrollable data transmission delay problems. In addition, because a thread is created for each CPU core under the QNX io-pkt network architecture, and only one thread is usually allowed to obtain the "stack context" to process upper-layer data packets at any time, when the host uses the io-pkt network architecture for data interaction, it is also easy to generate additional data transmission delays due to the busy state of the io-pkt network, making it impossible to ensure the real-time and consistency of vehicle-related operating data at the host and client of the smart cockpit system, thereby affecting the normal operation of the smart cockpit system.
[0074] Based on this, how to improve the data interaction efficiency between the host and client in the smart cockpit system and ensure the real-time and consistency of vehicle-related operation data between the host and client in the smart cockpit system has become a technical problem that needs to be solved urgently.
[0075] Based on this, the present invention proposes a data interaction method. Figure 1 , which is a flow chart of a data interaction method provided by an embodiment of the present invention. From a program perspective, the execution subject of the process may be a smart cockpit system at a vehicle, or may be an application program of a host machine and at least one client machine included in the smart cockpit system, without specific limitation.
[0076] The following is for Figure 1 The process shown is described in detail, and the data interaction method may specifically include the following steps:
[0077] Step S102, using the host machine to obtain vehicle-related operating data of the target type.
[0078] In the embodiment of the present invention, virtualization technology is a technology that combines or partitions existing computer resources (for example, CPU, memory, disk space, etc.) so that these resources appear as one or more operating environments, thereby providing an access method that is superior to the original resource configuration.
[0079] In virtualization technology, a client (Guest) can also be called a virtual machine (Virtual Machine), which can refer to a computer system that can provide the same functions as a physical computer through software simulation. Each client can run the operating system and application programs independently without interfering with each other, so that the client can be used to meet diverse service needs.
[0080] In virtualization technology, the host can refer to a physical computer or virtualization host that carries the client's operating system and application programs. The host can provide the client with computing resources, storage space, network connections and other infrastructure, so that the client can be created and managed through virtualization technology, and then a variety of services can be provided through the client.
[0081] In the embodiment of the present invention, the intelligent cockpit system may refer to a system that integrates intelligent and networked technologies, software and hardware, and can realize intelligent perception and intelligent decision-making of the cockpit space. The intelligent cockpit system may include but is not limited to: in-vehicle infotainment system, instrument panel system, vehicle networking system and advanced driver assistance system.
[0082] In order to facilitate the management of various functional systems in the smart cockpit system, the smart cockpit system can deploy a host machine and at least one client machine based on virtualization technology. Among them, the host machine can obtain or generate the target type of vehicle-related operation data required to control the operation of various functional systems in the smart cockpit system. And each client machine can obtain the vehicle-related operation data from the host machine, so as to realize the operation of one or more functional systems based on the vehicle-related operation data obtained. In actual applications, the client machine can run the application required to control the corresponding functional system to work, and the number and type of functional systems that any client machine needs to control can be based on the actual needs of the equipment, and there is no specific limitation on this.
[0083] In a virtualized environment, ensuring time synchronization between the host and client machines in the smart cockpit system is crucial to maintaining system stability, security, and data consistency; and the host machine in the smart cockpit system is responsible for providing the client with the data required to control the operation of the corresponding functional systems. Therefore, the target types of vehicle-related operating data that the host machine needs to interact with the client may include but are not limited to: time data, data that the functional systems within the smart cockpit system need to display, and instruction data required to control the functional systems within the smart cockpit system.
[0084] In actual applications, the target type of vehicle-related operating data can be the vehicle-related operating data directly acquired by the host machine at the smart cockpit system from other systems and data acquisition devices at the vehicle, or it can be the data obtained by processing the above-mentioned vehicle-related operating data using the application at the host machine, and there is no specific limitation on this.
[0085] Step S104, storing the vehicle-related operating data in a target storage area at the host machine.
[0086] In an embodiment of the present invention, the host machine at the smart cockpit system is usually equipped with a storage space that it has permission to use, and a target storage area that can be shared with the client for access can be pre-divided from the storage space that it has permission to use, so that the vehicle-related operating data of the target type that the host machine needs to provide to the client can be stored in the target storage area.
[0087] In actual applications, since the target type of vehicle-related operation data that needs to be interacted between the host and the client in the smart cockpit system is usually highly real-time and is temporary data involved in the vehicle operation process, the target storage area can be a hardware storage area where the stored information will be lost after power failure. Of course, the target storage area can also be a hardware storage area where the stored information will not be lost after power failure, and there is no specific limitation on this.
[0088] Step S106, using the client to call a preset application programming interface to access the target storage area to obtain the vehicle-related operating data.
[0089] In the embodiments of the present invention, the role and function of the Application Programming Interface (API) is mainly to serve as a communication bridge between different software components, providing the ability to access specific functions without accessing the source code or understanding the details of the internal working mechanism, so that different software components can be easily integrated and used based on the Application Programming Interface to achieve functional expansion and integration.
[0090] Based on this, a preset application programming interface for realizing the data interaction process between the client and the host can be deployed in advance at the client of the smart cockpit system. Specifically, after being called by the client, the preset application programming interface can access the target storage area at the host to obtain at least part of the vehicle-related operating data stored in the target storage area, so that the client can control the function system in the smart cockpit system to work based on the vehicle-related operating data it obtains.
[0091] Figure 1 According to the method, the smart cockpit system at the vehicle may include a host and at least one client. When the host obtains the target type of vehicle-related operating data, the vehicle-related operating data may be stored in the target storage area at the host, and the client may call a preset application programming interface to obtain the vehicle-related operating data by accessing the target storage area. This can not only improve the data interaction efficiency between the host and the client, but also avoid the problem of data interaction failure caused by network anomalies, thereby also helping to improve the data interaction reliability between the host and the client, and ensure the real-time and consistency of the vehicle-related operating data at the host and the client at the smart cockpit system, thereby ensuring the normal operation of the smart cockpit system. In addition, since the host and the client do not need to rely on the io-pkt network architecture for data interaction, it can also reduce the resources consumed by the io-pkt network architecture, reduce the data interaction cost, and have good practicality.
[0092] In a feasible implementation manner, the client stores a target association relationship between the target virtual storage area at the client and the target storage area at the host.
[0093] Correspondingly, the using the client to call a preset application programming interface to access the target storage area to obtain the vehicle-related operating data may include:
[0094] The client is used to generate an interface call request for a preset application programming interface; the interface call request is used to request access to the target virtual storage area.
[0095] In response to the interface call request, a data access request for the target storage area is generated based on the target association relationship.
[0096] Based on the data access request, at least a portion of the vehicle-related operating data stored in the target storage area is obtained.
[0097] In the embodiment of the present invention, in order to ensure isolation and security between clients, virtual machines are generally not allowed to directly access the hardware resources of the host machine, such as network, storage and computing resources. Therefore, the client is generally unable to directly access the target storage area of the host machine to directly obtain the vehicle-related operation data in the target storage area at the host machine. In addition, since virtualization technology generally abstracts physical resources into virtual resources and allocates virtual resources to clients to achieve resource sharing, allocation and management, the client can be equipped with a virtual storage area. During operation, the client generally regards the virtual storage area allocated to it as a hardware storage area to access and manage the virtual storage area.
[0098] Based on this, a target association relationship between the target virtual storage area at the client and the target storage area at the host can be established in advance, and the target association relationship can be stored at the client. When the client needs to obtain the vehicle-related operation data in the target storage area at the host, the client can first access the target virtual storage area by calling a preset application programming interface, and then based on the target association relationship, the target storage area at the host that the client actually needs to access can be clearly identified, so that at least part of the vehicle-related operation data in the target storage area at the host can be obtained by generating and sending a data access request for the target storage area to the host, which is convenient and quick.
[0099] Furthermore, in a feasible implementation, device tree data may be stored at the client, and the device tree corresponding to the device tree data may include a target device node corresponding to the target virtual storage area at the client; the target association relationship may be an association relationship between the target device node and the address information of the target storage area.
[0100] Based on this, the step of using the client to generate an interface call request for a preset application programming interface may include:
[0101] The client is used to generate the interface call request for accessing the target device node.
[0102] Correspondingly, in response to the interface call request, generating a data access request for the target storage area based on the target association relationship may include:
[0103] In response to the interface call request, address information of the target storage area is determined based on the target association relationship.
[0104] Based on the address information of the target storage area, a data access request for the target storage area is generated.
[0105] In an embodiment of the present invention, a device tree is a data structure that represents device information in a system in the form of a tree structure. Specifically, during the booting phase of the operating system, the operating system can establish a device tree containing various device nodes by using information obtained from drivers and other components, and can update this tree when adding or deleting devices. Each device node (devnode) can contain a device object of a device driver and internal information retained by the operating system, so as to facilitate sharing and reuse of these device resources through the device tree.
[0106] Based on this, in order to facilitate the client to access the target storage area at the host by accessing the target virtual storage area, the target virtual storage area at the client can be set as the target device node in the device tree. At this time, the device tree data at the client can include the node unique identification information of the target device node corresponding to each target virtual storage area. And the target association relationship between the target virtual storage area stored at the client and the target storage area can specifically be: the association relationship between the node unique identification information of the target device node and the address information of the target storage area.
[0107] Subsequently, when the target application at the client needs to access the target storage area, the target application is usually able to know the target device node in the device tree corresponding to the target storage area, and the preset application programming interface that has the ability to access the target device node in the device tree. Thus, the target application can generate and send an interface call request for accessing the target device node to the preset application programming interface, so as to access the target device node using the capability of the preset application programming interface.
[0108] In addition, a preset application programming interface or other related programs at the client can be used to respond to the interface call request to determine the address information of the target storage area having a target association relationship with the target device node being accessed. Therefore, according to the address information of the target storage area, a data access request for the target storage area can be generated and sent to the host machine or virtual machine monitor, so as to obtain at least part of the vehicle-related operation data stored in the target storage area, which is convenient and fast.
[0109] In actual applications, there may be multiple target storage areas at the host machine. In order to enable the client to accurately access each target storage area, each target device node corresponding to each target storage area can usually be created in the device tree at the client, and different target device nodes correspond to different target virtual storage areas at the client. At this time, the target storage area, the target device node, and the target virtual storage area can all be in a one-to-one relationship. Of course, the target storage area, the target device node, and the target virtual storage area can also include a one-to-many relationship. For example, one target storage area can also correspond to multiple target device nodes, so that multiple applications at the client can access the same target storage area in parallel by accessing the above-mentioned multiple target device nodes respectively, and no specific limitation is made to this.
[0110] Further, in a feasible implementation manner, the client may store first permission information for reflecting the access rights of a preset application installed on the client to the target device node; Figure 1 The method may also include:
[0111] After receiving the interface call request for accessing the target device node generated by the target application carried by the client, it is determined whether the target application has access rights to the target device node according to the first permission information to obtain a determination result.
[0112] The generating of the data access request for the target storage area may include:
[0113] If the determination result indicates that the target application has access rights to the target device node, a data access request to the target storage area is generated.
[0114] In an embodiment of the present invention, in order to prevent applications at the client from maliciously accessing the target storage area at the host, which would waste resources and affect the normal operation of the smart cockpit system, the target storage area that each preset application can access can be pre-determined based on the actual demand of the preset application on the client for the vehicle-related operating data in the target storage area. Then, based on the target association relationship between the target device node and the address information of the target storage area, the designated target device node that each preset application is allowed to access can be determined, so that the first permission information reflecting the access rights of the preset application on the client to the target device node can be stored at the client.
[0115] Subsequently, when the target application carried by the client generates an interface call request for accessing the target device node, the preset application programming interface or other applications at the client can verify whether the target application has the access rights to the target device node that it currently needs to access based on the first permission information; if so, it is allowed to continue to respond to the interface call request and generate a data access request for the corresponding target storage area; if not, it is prohibited to continue to respond to the interface call request and jump to the end, so that the corresponding target storage area will not continue to be accessed, which is beneficial to saving resources and ensuring the normal operation of the smart cockpit system.
[0116] Furthermore, in a feasible implementation, the target storage area may be a storage area to which the virtual machine monitor at the smart cockpit system has management authority; the virtual machine monitor may store second permission information reflecting whether each of the clients has access rights to the target storage area.
[0117] Based on this, acquiring at least part of the vehicle-related operating data stored in the target storage area based on the data access request may include:
[0118] The client sends the data access request to the virtual machine monitor.
[0119] If the virtual machine monitor determines that the client has access rights to the target storage area based on the second permission information, at least part of the vehicle-related operating data stored in the target storage area is sent to the client.
[0120] In the embodiment of the present invention, a virtual machine monitor (Hypervisor) may be deployed at the host machine, which may be responsible for managing and allocating host resources to the client machine and providing isolation and management functions for the virtual machine. In practical applications, the target storage area at the host machine may be a storage area for which the virtual machine monitor at the smart cockpit system has management authority, so that the virtual machine monitor may be used to manage the data access requests of the client machine to each target storage area.
[0121] Specifically, in order to avoid the client maliciously accessing the target storage area at the host machine, which would cause waste of resources and affect the normal operation of the smart cockpit system, the target storage area that each client is allowed to access can be pre-determined based on the actual demand for vehicle-related operating data in the target storage area during the operation of the client, so as to pre-determine the designated part of the target storage area that each client is allowed to access. This allows the virtual machine monitor to store second permission information that reflects whether each client has access rights to the target storage area.
[0122] Subsequently, after receiving a data access request for a target storage area sent by a client, the virtual machine monitor can verify, based on the second permission information, whether the client has access rights to the target storage area that it currently needs to access; if so, the client is allowed to continue reading the vehicle-related operating data in the target storage area; if not, the client is prohibited from reading the vehicle-related operating data in the target storage area, and the process jumps to the end, thereby helping to save resources and ensure the normal operation of the smart cockpit system.
[0123] In combination with the contents in the above embodiments, it can be seen that by pre-setting the first permission information and the second permission information, accurate control of the ability of a preset application at the client to obtain vehicle-related operating data in a target storage area at the host can be achieved, which is convenient, fast and flexible.
[0124] In a feasible implementation manner, the obtaining of target type of vehicle-related operation data by using the host machine may include:
[0125] The host machine is used to obtain a time synchronization message from a master clock device.
[0126] Based on the time synchronization message, at least one of a target generalized precision time protocol message and current time information in a preset format at the host machine is determined.
[0127] Correspondingly, storing the vehicle-related operating data in a target storage area at the host machine may include:
[0128] storing the target generalized precision time protocol message in a first preset storage area at the host machine; and / or,
[0129] The current time information in a preset format at the host machine is stored in a second preset storage area at the host machine.
[0130] In an embodiment of the present invention, the Generalized Precision Time Protocol (GPTP) is an Ethernet-based time synchronization protocol, which can generally be used to meet the need for maintaining time synchronization between nodes with time-sensitive applications in a local area network (LAN), and has been widely used in the fields of automobiles, industrial automation control, etc.
[0131] The vehicle usually has a master clock device (Grandmaster), and the host machine of the smart cockpit system can be used as a slave clock device; the time information of the master clock device can be used as the time reference of the whole vehicle, and the master clock device can periodically issue time synchronization messages so that the slave clock device can synchronize its own local clock based on the generalized precision time protocol and time synchronization messages. Based on this, the host machine of the smart cockpit system can obtain the time synchronization message from the master clock device, and process the time synchronization message to correct the link delay and residence time, so as to obtain the current time information of the preset format with good accuracy at the host machine, and obtain the target generalized precision time protocol message required for the client to perform time synchronization.
[0132] Among them, the preset format of the current time information at the host machine may include but is not limited to: ISO8601 format (for example, 2023-04-13T15:30:00.000Z), RFC 3339 format (for example, 2023-04-13T15:30:00Z), digital format (for example, 20230413153000), year-month-day-hour-minute-second format (2023-04-13 15:30:00), etc., without specific limitation.
[0133] In actual applications, since the client can complete the time synchronization between the two based only on the current time information in a preset format at the host, and can also complete global precise time synchronization in combination with the current time information in a preset format at the host and the target generalized precision time protocol message, the types of data required to be used by the client when using different time synchronization methods may be different.
[0134] In order to enable the client to accurately obtain the required vehicle-related operation data and complete the time synchronization process, the target generalized precision time protocol message can be stored in the first preset storage area of the host; and the current time information of the preset format of the host is stored in the second preset storage area of the host. The first preset storage area and the second preset storage area can usually be different storage areas in the target storage area, so that the above two types of vehicle-related operation data are stored separately by using different storage areas, so that the client can accurately obtain the required type of vehicle-related operation data from the corresponding storage area.
[0135] Further, in a feasible implementation manner, the using the client to call a preset application programming interface to access the target storage area to obtain the vehicle-related operating data may include:
[0136] Using the client to call a preset application programming interface to access the second preset storage area to obtain the current time information in a preset format at the host; and / or,
[0137] The client calls a preset application programming interface to access the first preset storage area and the second preset storage area to obtain the clock synchronization state information in the target generalized precision time protocol message and the current time information in a preset format at the host machine.
[0138] In the embodiment of the present invention, the device tree at the client may include a first device node corresponding to the first preset storage area and a second device node corresponding to the second preset storage area.
[0139] If the client only needs to synchronize time with the host, the client can call the preset application programming interface to access the second device node, and then generate and send a data access request for the second preset storage area to the virtual machine monitor according to the association between the second device node and the second preset storage area, so as to obtain the current time information of the host in the preset format stored in the second preset storage area. Subsequently, the client can also synchronize its own time information according to the current time information of the host in the preset format, which will not be described in detail.
[0140] If the client needs to achieve global time synchronization, the client can call the preset application programming interface to access the first device node and the second device node respectively, and then according to the association between the first device node and the first preset storage area, generate and send a data access request for the first preset storage area to the virtual machine monitor to obtain the clock synchronization status information (for example, sync_status parameter) in the target generalized precision time protocol message stored in the first preset storage area; and according to the association between the second device node and the second preset storage area, generate and send a data access request for the second preset storage area to the virtual machine monitor to obtain the current time information of the preset format at the host stored in the second preset storage area. Subsequently, the client can synchronize its own time information according to the current time information of the preset format at the host and the clock synchronization status information, which will not be described in detail.
[0141] Furthermore, in a feasible implementation, the first preset storage area may be a storage area in a random access memory (RAM) of the host machine; the second preset storage area may be a storage area in a clock register (Clock Register) of the host machine. Of course, the first preset storage area and the second preset storage area may also be storage areas in other types of hardware storage devices, which are not specifically limited.
[0142] In a feasible implementation manner, the obtaining of target type of vehicle-related operation data by using the host machine may include:
[0143] The host machine is used to obtain original vehicle-related operation data collected by a data collection device installed in the vehicle.
[0144] The original vehicle-related operating data is processed to obtain vehicle-related operating data required when an advanced driver assistance system at the vehicle is running.
[0145] Correspondingly, storing the vehicle-related operating data in a target storage area at the host machine may include:
[0146] The vehicle-related operation data required when the advanced driver assistance system is running is stored in a third preset storage area of the host machine.
[0147] In an embodiment of the present invention, the Advanced Driving Assistance System (ADAS) of the intelligent cockpit system can collect data on the vehicle's surrounding environment in real time through data acquisition equipment installed on the vehicle body, and perform systematic calculations and analysis to actively or passively intervene in dangerous situations that may occur in the vehicle, thereby improving the comfort and safety of car driving.
[0148] Specifically, the host machine at the intelligent cockpit system can be used to obtain original vehicle-related operation data such as vehicle surrounding environment data, vehicle status data related to light, heat, pressure, speed, etc. from the data acquisition equipment at the vehicle (for example, millimeter wave radar, laser radar, single / binocular camera, satellite navigation, various types of automobile sensors) and other vehicle systems. The host machine can also use the application program for realizing the advanced driving assistance function to perform data fusion, decision and planning, execution and other logical processing on the above-mentioned original vehicle-related operation data to obtain the vehicle-related operation data required for the operation of the advanced driving assistance system at the vehicle. In actual applications, the vehicle-related operation data required for the operation of the advanced driving assistance system can include data required to be displayed by the data display device at the vehicle, such as navigation information, alarm information, etc.; it can also include control instruction data required to be executed by the client; of course, it can also include other types of data, which are not specifically limited.
[0149] In order to enable the client to conveniently and accurately obtain the vehicle-related operating data required for the operation of the advanced driving assistance system, this part of the vehicle-related operating data can be stored in a third preset storage area in the target storage area at the host. The third preset storage area can be a storage area different from the first / second preset storage area mentioned above. In addition, a third device node corresponding to the third preset storage area can be set in the device tree at the client, so that the client can obtain the data stored in the third preset storage area at the host by accessing the third device node, which will not be elaborated.
[0150] Furthermore, in a feasible implementation manner, the obtaining the target type of vehicle-related operation data by using the host machine may also include:
[0151] Based on the current time information in a preset format at the host machine, the generation time information of the vehicle-related operation data is determined.
[0152] Correspondingly, storing the vehicle-related operating data in a target storage area at the host machine may specifically include:
[0153] The vehicle-related operating data carrying the generation time information is stored in a third preset storage area of the host machine.
[0154] In an embodiment of the present invention, since the host machine may periodically generate the same type of vehicle-related operating data and store them in the same third preset storage area, in order to facilitate the client to obtain the latest vehicle-related operating data actually required for use, the host machine can also associate and store the vehicle-related operating data generated by the host machine and its corresponding generation time information to the third preset storage area, which is beneficial to ensure the normal operation of the smart cockpit system.
[0155] Furthermore, in a feasible implementation manner, before the client calls a preset application programming interface to access the target storage area to obtain the vehicle-related operation data, the following may also be included:
[0156] For any of the clients, target vehicle-related operating data required for use by the client is determined from the vehicle-related operating data required when the advanced driver assistance system is running.
[0157] An interrupt request message for reflecting a target storage address of the target vehicle-related operating data is sent to the client.
[0158] Correspondingly, the using the client to call a preset application programming interface to access the target storage area to obtain the vehicle-related operating data may include:
[0159] The client calls a preset application programming interface and obtains the target vehicle related operating data by accessing the data stored in the storage area corresponding to the target storage address in the target storage area.
[0160] In the embodiment of the present invention, the client needs to obtain the vehicle-related operation data related to the advanced driving assistance system generated by the host in real time, so as to ensure the accuracy and reliability of the operation results of the advanced driving assistance system. Based on this, after the host stores the latest vehicle-related operation data generated by it in the third preset storage area, it can determine the target vehicle-related operation data required by each client from the latest vehicle-related operation data currently generated according to the actual needs of each client for the vehicle-related operation data, and then determine the target storage address of the target vehicle-related operation data.
[0161] The host sends the interrupt request information (Interrupt ReQuest) of the target storage address carrying the target vehicle-related operating data to the corresponding client, which can efficiently and real-time notify the client to obtain the target vehicle-related operating data from the host. This not only enables the client to accurately obtain the latest target vehicle-related operating data to avoid transmitting useless historical data and reduce waste of resources. It can also improve the data interaction efficiency between the host and the client, ensure the consistency and real-time performance of the vehicle-related operating data of both, and thus avoid the problems of large deviations and significant jumps in the navigation path, surrounding environment display and actual driving results of the vehicle caused by the poor efficiency of traditional data interaction, which is conducive to improving the experience of drivers and passengers.
[0162] In one possible implementation, Figure 1 The method may also include:
[0163] The client determines, based on the network time protocol data, current time information in a specified format at the client.
[0164] The client calls a specified application programming interface to store the current time information in a specified format at the client into a target storage area at the host.
[0165] The host machine is used to perform time synchronization processing based on current time information in a specified format at the client machine.
[0166] In an embodiment of the present invention, the Network Time Protocol (NTP) may refer to a network protocol for clock synchronization between computer systems through a variable-delay data network that exchanges data packets. If the host and / or the client do not support time synchronization using the generalized precision time protocol, but both support time synchronization using the network time protocol, and the client can communicate with the clock source, the client can determine the current time information of the specified format at the client based on the network time protocol data. In addition, the client can also call a specified application programming interface to store the current time information of the specified format at the client to a target storage area at the host, so that the host can access the target storage area and obtain the current time information of the specified format at the client, and then synchronize the time information of the host itself according to the current time information of the specified format at the client, which has good flexibility.
[0167] In actual applications, the specified application programming interface at the client for writing data to the target storage area at the host and the preset application programming interface for reading data from the target storage area at the host can be the same interface or different interfaces; and the target storage area for storing the current time information in a specified format at the client and the second preset storage area for storing the current time information in a preset format at the host can be the same area or different areas; there are no specific limitations on this.
[0168] For ease of understanding, Figure 2 A schematic diagram of the architecture of an intelligent cockpit system provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the intelligent cockpit system may be deployed with a host machine 21, a virtual machine monitor 22, and a client machine 23. Figure 2 Only one client 23 is shown in the figure, but it can be understood that there may be multiple clients in actual applications, which will not be described in detail.
[0169] The host machine 21 may be deployed with a first application module 201 for time synchronization and a second application module 202 for processing ADAS data. The first application module 201 may be configured to receive the time from the master clock device ( Figure 2 204; and storing the target generalized precision time protocol message determined based on the time synchronization message in the first preset storage area 203 of the virtual machine monitor 22, and storing the current time information of the preset format of the host machine determined based on the time synchronization message in the second preset storage area 204 of the virtual machine monitor 22. The second application module 202 can obtain the time synchronization message from the data acquisition device ( Figure 2 The method further comprises: obtaining the original vehicle-related operating data collected by the vehicle at a place other than the vehicle (not shown); processing the original vehicle-related operating data to obtain the vehicle-related operating data required for the operation of the advanced driving assistance system at the vehicle, so as to store the vehicle-related operating data required for the operation of the advanced driving assistance system in a third preset storage area 205 at the virtual machine monitor 22.
[0170] By pre-establishing the correspondence between the first virtual storage area, the second virtual storage area and the third virtual storage area in the target virtual storage area 210 at the client 23 and the first preset storage area 203, the second preset storage area 204 and the third preset storage area 205, respectively, and establishing the first device node, the second device node and the first device node corresponding to the first virtual storage area, the second virtual storage area and the third virtual storage area in the device tree 209 at the client 23, respectively. The first application 206 for time synchronization carried by the client 23 can call the preset application programming interface 208 to generate an interface call request for accessing the first / second device node in the device tree 209. In response to the interface call request, the address information of the first / second preset storage area can be determined based on the above correspondence; by generating and sending a data access request for the first / second preset storage area to the virtual machine monitor 22, the client 23 can obtain the vehicle-related operation data for time synchronization stored in the first / second preset storage area, thereby realizing high-precision data synchronization between the client and the host.
[0171] Furthermore, after receiving the interrupt request information sent by the host machine 21 to reflect that the latest target vehicle-related operation data required for the operation of the ADAS system is stored in the third preset storage area, the second application 207 carried by the client machine 23 for implementing the advanced driving assistance function can call the preset application programming interface 208 to generate an interface call request for accessing the third device node in the device tree 209. In response to the interface call request, the address information of the third preset storage area can be determined based on the above correspondence; by generating and sending a data access request for the third preset storage area to the virtual machine monitor 22, the client machine 23 can obtain the target vehicle-related operation data stored in the third preset storage area, and then the second application 207 at the client machine can ensure the accurate operation of the advanced driving assistance function based on the obtained target vehicle-related operation data.
[0172] The above-mentioned data interaction scheme can meet the real-time interaction of vehicle-related operating data required for the operation of advanced driving assistance functions and time synchronization functions between the host machine 21 and the client machine 23 in the smart cockpit system, and can at least ensure the realization of nanosecond time synchronization accuracy, as well as avoid the problem of large deviations in the operating results of advanced driving assistance functions caused by link transmission delays and network jitter factors in traditional data interaction methods. It is conducive to improving the driving experience of the vehicle and has good practicality.
[0173] See also Figure 3 , is a schematic diagram of the structure of a data interaction device provided by an embodiment of the present invention. Figure 3As shown, the data interaction device 03 can be applied to the smart cockpit system of the vehicle, and the smart cockpit system can include a host and at least one client, and the data interaction device 03 can be implemented as all or part of the controller of the smart cockpit system through software, hardware or a combination of both. According to some embodiments, the data interaction device 03 may include an acquisition module 31, a storage module 32, and a data interaction module 33, which may specifically include:
[0174] The acquisition module 31 is used to use the host machine to acquire the vehicle-related operation data of the target type.
[0175] The storage module 32 is used to store the vehicle-related operating data in a target storage area at the host machine.
[0176] The data interaction module 33 is used to use the client to call a preset application programming interface to access the target storage area and obtain the vehicle-related operating data.
[0177] Optionally, the client may store a target association relationship between the target virtual storage area at the client and the target storage area at the host.
[0178] The data interaction module 33 may include:
[0179] The first generating unit is used to generate an interface calling request for a preset application programming interface using the client; the interface calling request is used to request access to the target virtual storage area.
[0180] The second generating unit is used to generate a data access request for the target storage area based on the target association relationship in response to the interface call request.
[0181] The first acquisition unit is used to acquire at least part of the vehicle-related operating data stored in the target storage area based on the data access request.
[0182] Optionally, device tree data may be stored at the client, and the device tree corresponding to the device tree data may include a target device node corresponding to the target virtual storage area at the client; the target association relationship may be an association relationship between the target device node and address information of the target storage area.
[0183] The first generating unit may be specifically configured to: utilize the client to generate the interface calling request for accessing the target device node.
[0184] The second generating unit may be specifically configured to: determine address information of the target storage area based on the target association relationship in response to the interface call request; and generate a data access request for the target storage area based on the address information of the target storage area.
[0185] Optionally, the client may store first permission information reflecting the access rights of a preset application installed on the client to the target device node.
[0186] Figure 3 The device described in may also include:
[0187] The judgment module is used to determine whether the target application has access rights to the target device node based on the first permission information after receiving the interface call request for accessing the target device node generated by the target application carried by the client, and obtain a judgment result.
[0188] The second generating unit may be specifically configured to generate a data access request for the target storage area if the judgment result indicates that the target application has access rights to the target device node.
[0189] Optionally, the target storage area may be a storage area to which the virtual machine monitor of the smart cockpit system has management authority; the virtual machine monitor may store second permission information reflecting whether each of the clients has access rights to the target storage area.
[0190] The acquisition unit may be specifically used for:
[0191] The client sends the data access request to the virtual machine monitor.
[0192] If the virtual machine monitor determines that the client has access rights to the target storage area based on the second permission information, at least part of the vehicle-related operating data stored in the target storage area is sent to the client.
[0193] Optionally, the acquisition module 31 may include:
[0194] The second acquisition unit is used to acquire a time synchronization message from a master clock device using the host machine.
[0195] A determination unit is used to determine at least one of a target generalized precision time protocol message and current time information in a preset format at the host machine based on the time synchronization message.
[0196] The storage module 32 may include:
[0197] A first storage unit is configured to store the target GPTP message in a first preset storage area of the host machine; and / or,
[0198] The second storage unit is used to store the current time information of the host machine in a preset format in a second preset storage area of the host machine.
[0199] Optionally, the data interaction module 33 may include:
[0200] A first calling unit is used to use the client to call a preset application programming interface to access the second preset storage area to obtain the current time information in a preset format at the host machine; and / or,
[0201] The second calling unit is used to use the client to call a preset application programming interface to access the first preset storage area and the second preset storage area to obtain the clock synchronization status information in the target generalized precision time protocol message and the current time information in a preset format at the host machine.
[0202] Optional, Figure 3 In the device, the first preset storage area may be a storage area in a random access memory at the host machine; the second preset storage area may be a storage area in a clock register at the host machine.
[0203] Optionally, the acquisition module 31 may further include:
[0204] The third acquisition unit is used to use the host machine to acquire original vehicle-related operation data collected by the data acquisition device installed in the vehicle.
[0205] A data processing unit, configured to process the original vehicle-related operation data to obtain vehicle-related operation data required for operation of an advanced driver assistance system at the vehicle;
[0206] The storage module 32 may include:
[0207] The third storage unit is used to store the vehicle-related operation data required when the advanced driving assistance system is running in a third preset storage area of the host machine.
[0208] Optionally, the acquisition module 31 may further include:
[0209] A generation time determination unit is used to determine the generation time information of the vehicle-related operation data based on the current time information in a preset format at the host machine.
[0210] The third storage unit can be specifically used for:
[0211] The vehicle-related operating data carrying the generation time information is stored in a third preset storage area of the host machine.
[0212] Optional, Figure 3 The device may also include:
[0213] The target data determination module is used to determine, for any of the clients, target vehicle-related operating data required by the client from the vehicle-related operating data required when the advanced driver assistance system is running.
[0214] The generating module is used to send an interrupt request message for reflecting the target storage address of the target vehicle related operation data to the client.
[0215] The data interaction module 33 may specifically include:
[0216] The client calls a preset application programming interface and obtains the target vehicle related operating data by accessing the data stored in the storage area corresponding to the target storage address in the target storage area.
[0217] Optional, Figure 3 The device may further include:
[0218] The current time determination module is used to determine the current time information of the client in a specified format based on the network time protocol data using the client.
[0219] The designated interface calling module is used to use the client to call a designated application programming interface to store the current time information in a designated format at the client to a target storage area at the host.
[0220] The time synchronization module is used to perform time synchronization processing based on the current time information in a specified format at the client using the host machine.
[0221] The above device embodiments correspond to the method embodiments. For specific descriptions, please refer to the description of the method embodiments, which will not be repeated here. The device embodiments are obtained based on the corresponding method embodiments and have the same technical effects as the corresponding method embodiments. For specific descriptions, please refer to the corresponding method embodiments.
[0222] In one embodiment, the present invention also provides Figure 4 The structural diagram of the vehicle controller is shown in FIG. Figure 4At the hardware level, the vehicle controller may be a controller of the intelligent cockpit system in the vehicle, and the vehicle controller may include a processor 41 and a memory 45, and may also include an internal bus 42, a network interface 43, a memory 44, and other hardware required for other services. The vehicle controller may be arranged in the vehicle, wherein the processor 41 may read the corresponding computer-readable instructions from the memory 45 into the memory and then run them to implement the above-mentioned data interaction method. The specific execution process may refer to the specific descriptions in the above-mentioned embodiments, and will not be described in detail here.
[0223] In one embodiment, the present invention also provides a vehicle, which may include a data interaction device or a vehicle controller as described above, so as to execute the steps of the data interaction method through the data interaction device or the vehicle controller. The specific execution process can be referred to the specific descriptions in the above embodiments, which will not be repeated here.
[0224] Finally, the various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the vehicle controller and vehicle embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0225] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A data interaction method, applied to a smart cockpit system at a vehicle, wherein the smart cockpit system comprises a host machine and at least one client machine, and the method comprises: Using the host machine to obtain vehicle-related operating data of a target type; storing the vehicle-related operating data in a target storage area at the host machine; The client calls a preset application programming interface to access the target storage area to obtain the vehicle-related operating data.
2. The method according to claim 1, wherein the client stores a target association relationship between the target virtual storage area at the client and the target storage area at the host; The method of using the client to call a preset application programming interface to access the target storage area and obtain the vehicle-related operation data includes: Using the client to generate an interface call request for a preset application programming interface; the interface call request is used to request access to the target virtual storage area; In response to the interface call request, generating a data access request for the target storage area based on the target association relationship; Based on the data access request, at least a portion of the vehicle-related operating data stored in the target storage area is obtained.
3. The method according to claim 2, wherein the client stores device tree data, and the device tree corresponding to the device tree data contains a target device node corresponding to the target virtual storage area at the client; the target association relationship is an association relationship between the target device node and the address information of the target storage area; The step of using the client to generate an interface call request for a preset application programming interface comprises: generating, by the client, the interface call request for accessing the target device node; The step of generating, in response to the interface call request and based on the target association relationship, a data access request for the target storage area includes: In response to the interface call request, determining address information of the target storage area based on the target association relationship; Based on the address information of the target storage area, a data access request for the target storage area is generated.
4. The method according to claim 3, wherein the client stores first permission information for reflecting the access rights of a preset application installed on the client to the target device node; The method further comprises: After receiving the interface call request for accessing the target device node generated by the target application carried by the client, judging whether the target application has access rights to the target device node according to the first permission information, and obtaining a judgment result; The generating a data access request for the target storage area includes: If the determination result indicates that the target application has access rights to the target device node, a data access request to the target storage area is generated.
5. The method according to claim 2, wherein the target storage area is a storage area for which the virtual machine monitor of the smart cockpit system has management authority; The virtual machine monitor stores second permission information reflecting whether each of the clients has access rights to the target storage area; The acquiring, based on the data access request, at least part of the vehicle-related operating data stored in the target storage area, comprises: Using the client to send the data access request to the virtual machine monitor; If the virtual machine monitor determines that the client has access rights to the target storage area based on the second permission information, at least part of the vehicle-related operating data stored in the target storage area is sent to the client.
6. The method according to claim 1, wherein the step of obtaining the target type of vehicle-related operation data by using the host computer comprises: Using the host machine to obtain a time synchronization message from a master clock device; Determining at least one of a target generalized precision time protocol message and current time information in a preset format at the host machine based on the time synchronization message; The storing of the vehicle-related operation data to a target storage area at the host machine includes: Storing the target generalized precision time protocol message in a first preset storage area at the host machine; and / or, The current time information in a preset format at the host machine is stored in a second preset storage area at the host machine.
7. The method according to claim 6, wherein the step of using the client to call a preset application programming interface to access the target storage area and obtain the vehicle-related operating data comprises: Using the client to call a preset application programming interface to access the second preset storage area, and obtain the current time information in a preset format at the host machine; and / or, The client calls a preset application programming interface to access the first preset storage area and the second preset storage area to obtain the clock synchronization state information in the target generalized precision time protocol message and the current time information in a preset format at the host machine.
8. The method according to claim 6, further comprising: The first preset storage area is a storage area in a random access memory at the host machine; The second preset storage area is a storage area in a clock register at the host machine.
9. The method according to claim 1, wherein the step of obtaining the target type of vehicle-related operation data by using the host computer comprises: Using the host machine to obtain original vehicle-related operation data collected by a data collection device mounted on the vehicle; Processing the original vehicle-related operating data to obtain vehicle-related operating data required for the advanced driver assistance system at the vehicle to operate; The storing of the vehicle-related operation data to a target storage area at the host machine includes: The vehicle-related operation data required when the advanced driver assistance system is running is stored in a third preset storage area of the host machine.
10. The method according to claim 9, wherein the step of obtaining the target type of vehicle-related operation data by using the host computer further comprises: Determining generation time information of the vehicle-related operation data based on current time information in a preset format at the host machine; The storing of the vehicle-related operation data to a target storage area at the host machine specifically includes: The vehicle-related operating data carrying the generation time information is stored in a third preset storage area of the host machine.
11. The method according to claim 9, before using the client to call a preset application programming interface to access the target storage area to obtain the vehicle-related operating data, further comprising: For any of the clients, determining target vehicle-related operating data required for use by the client from the vehicle-related operating data required for the advanced driver assistance system to operate; Sending an interrupt request message for reflecting a target storage address of the target vehicle-related operation data to the client; The method of using the client to call a preset application programming interface to access the target storage area and obtain the vehicle-related operation data includes: The client calls a preset application programming interface and obtains the target vehicle related operating data by accessing the data stored in the storage area corresponding to the target storage address in the target storage area.
12. The method according to claim 1, further comprising: Determining, using the client based on network time protocol data, current time information in a specified format at the client; Using the client to call a specified application programming interface to store the current time information in a specified format at the client to a target storage area at the host; The host machine is used to perform time synchronization processing based on current time information in a specified format at the client machine.
13. A data interaction device, applied to a smart cockpit system at a vehicle, the smart cockpit system comprising a host machine and at least one client machine, the device comprising: An acquisition module, used to acquire the vehicle-related operation data of the target type by using the host machine; A storage module, used for storing the vehicle-related operation data in a target storage area at the host machine; The data interaction module is used to use the client to call a preset application programming interface to access the target storage area and obtain the vehicle-related operating data.
14. A vehicle controller, the vehicle controller being a controller of a smart cockpit system of a vehicle, comprising: A processor and a memory; wherein the memory stores computer-readable instructions, and the computer-readable instructions are suitable for being loaded by the processor and executing the steps of the method as claimed in any one of claims 1 to 12.
15. A vehicle, comprising the data interaction device according to claim 13 or the vehicle controller according to claim 14.