V2X communication method and device and vehicle
By dividing the application processor of the V2X communication device into a V2X domain and a normal domain, and using container technology and Cgroup methods to limit resource usage, the resource occupation problem caused by message storms is solved, and the isolation and systemization of V2X services and non-V2X services are realized. Resource reliability.
Patent Information
- Application Number
- CN202310268980.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-20
AI Technical Summary
When existing V2X communication devices receive a large number of messages, it is easy for message storms to occupy excessive application processor resources, affecting the operation of other non-V2X services.
By dividing the application processor into two independent domains: V2X domain and common domain, the resource usage of V2X business is restricted to ensure the isolation of V2X business and non-V2X business. Container technology and Cgroup method are used to configure resource restrictions to prevent V2X business occupation. Excessive CPU and memory resources.
It effectively prevents V2X services from affecting the operation of other services due to message storms, ensures the resource reliability and continuity of the application processor, and reduces system design complexity and cost.
Smart Images

Figure CN118678324A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a V2X communication method, device and vehicle. Background Art
[0002] With the development of network technology and intelligent vehicle technology, the Internet of Vehicles has received more and more widespread attention. Existing vehicles use vehicle to everything (V2X) technology to achieve intelligent information interaction between V (vehicle) and X (vehicles, people, roadside infrastructure and networks).
[0003] Vehicles conduct V2X communications with other devices based on the broadcast communication mechanism, which is easily affected by message storms. For example, if the vehicle's V2X communication device receives a large number of V2X messages in a short period of time, the application processor of the V2X communication device will occupy a large amount of resources to perform security verification and message decoding on the V2X messages. In serious cases, the application processor's resources may be fully occupied. At this time, the application processor of the V2X communication device cannot handle other services (such as WiFi communication), affecting the operation of other non-V2X services of the V2X communication device. Summary of the invention
[0004] In view of the above, it is necessary to provide a V2X communication method, device and vehicle, by dividing the application processor of the V2X communication device into two independent domains, so as to isolate the operation of the application program of the V2X service from the operation of the application program of other services in the application processor, and by limiting the resources required for the operation of the application program of the V2X service, so as to avoid the V2X service affecting the operation of other services.
[0005] In a first aspect, an embodiment of the present application provides a V2X communication method, which is applied to a V2X communication device, wherein the V2X communication device includes an application processor, the application processor includes a V2X domain and a common domain, the application processor implements a V2X service through the V2X domain and limits resources used to implement the V2X service, and implements other services except the V2X service through the common domain, the application corresponding to the V2X service is located in the V2X domain, and the V2X communication method includes: the application processor calls a V2X application in the V2X domain to process a V2X message.
[0006] By adopting the above technical solution, the application processor of the V2X communication device is divided into two independent domains, and the two domains are used for the operation of the application corresponding to the V2X service and the operation of the application of the non-V2X service respectively. The V2X service and the non-V2X service are respectively realized through the two independent domains, and the resources required for the V2X service are limited, so as to reduce the impact of the V2X service and the non-V2X service in the application processor.
[0007] In a possible implementation of the first aspect above, the V2X domain has limited CPU resources, and the limited CPU resources are the maximum CPU resources that all V2X applications in the V2X domain are configured to use.
[0008] By adopting the above technical solution, by limiting the maximum CPU resources that can be used by the application corresponding to the V2X service in the V2X domain in the application processor, it is ensured that when the V2X communication device receives too many V2X messages, the V2X application in the V2X domain will not occupy too many CPU resources due to the generation of a V2X message storm, thereby affecting other non-V2X services. Since the maximum CPU resources that can be used by the V2X application are limited, the V2X service in the application processor is prevented from affecting the operation of other services due to competition for CPU resources.
[0009] In a possible implementation of the first aspect above, the V2X domain has limited memory resources, and the limited memory resources are the maximum memory resources that can be used by applications corresponding to all V2X services in the V2X domain.
[0010] By adopting the above technical solution, by limiting the maximum memory resources that can be used by the application program corresponding to the V2X service in the V2X domain in the application processor, it is ensured that when the V2X communication device receives too many V2X messages, the application program corresponding to the V2X service in the V2X domain will not occupy too many memory resources due to the generation of a V2X message storm, thereby affecting other non-V2X services. Since the maximum memory resources that can be used by the application program corresponding to the V2X service are limited, the V2X service in the application processor is prevented from affecting the operation of other services due to competition for memory resources.
[0011] In a possible implementation of the first aspect above, the application processor also includes a domain monitoring process, and the V2X communication method further includes: the domain monitoring process detects that the V2X domain is stopped, and restarts the V2X domain so that the V2X application in the V2X domain can reprocess the received V2X message.
[0012] With the above technical solution, when the V2X application in the V2X domain is stopped due to occupying too many memory resources or other reasons, the domain monitoring process restarts the V2X domain to ensure the reliability and continuity of the V2X service in the application processor.
[0013] In a possible implementation of the first aspect above, a V2X application in the V2X domain is configured to correspond to a first path set, and other applications except the V2X application in the common domain are configured to correspond to a second target file, the first path set and the second path set have no intersection, the first path set is the path where resources required for the application corresponding to the V2X service implementation in the V2X domain are located, and the second path set is the path where resources required for the application corresponding to the services other than the V2X service in the common domain are located.
[0014] By adopting the above technical solution, the V2X domain and the ordinary domain in the application processor are configured so that the V2X domain and the ordinary domain correspond to different path sets respectively, and the resources required for the operation of the application programs in the V2X domain and the ordinary domain are respectively in different path sets, so as to further improve the isolation of the V2X domain and the ordinary domain and avoid mutual influence between the application programs in the V2X domain and the ordinary domain.
[0015] Furthermore, the first path set is located in the V2X domain, and the second path set is located in the normal domain.
[0016] In a possible implementation of the first aspect above, the V2X domain and the normal domain are two containers in an application processor generated based on container technology.
[0017] By adopting the above technical solution, two independent domains are generated through container technology to ensure the isolation and independence of application services corresponding to the two domains in the AP processor and reduce the mutual influence of services in the two domains.
[0018] In a possible implementation of the first aspect above, a Linux system is built into the V2X communication device, and the V2X communication device uses a Cgroup method to configure restricted CPU resources of the V2X domain.
[0019] By adopting the above technical solution, the Cgroup method is used to limit the CPU resources in the V2X domain through the functions of the Linux system itself, which is easy to implement.
[0020] In a second aspect, a V2X communication device is provided. The V2X communication device includes an application processor, the application processor includes a V2X domain and a common domain, the application processor runs a V2X service in the V2X domain and limits resources used to implement the V2X service, and implements other services except the V2X service in the common domain, the application corresponding to the V2X service is located in the V2X domain, and the application processor is used to call the V2X application in the V2X domain to process V2X messages.
[0021] In a possible implementation of the second aspect above, the V2X domain has limited CPU resources, and the limited CPU resources are the maximum CPU resources that can be used for all V2X services in the V2X domain.
[0022] In a possible implementation of the second aspect above, the V2X domain has limited memory resources, and the limited memory resources are the maximum memory resources that can be used for all V2X services in the V2X domain.
[0023] In a possible implementation of the second aspect above, the application processor further includes a domain monitoring process, and the domain monitoring process is used to restart the V2X domain when it is detected that the V2X application in the V2X domain is stopped, so that the V2X application can reprocess the received V2X message.
[0024] In a possible implementation of the second aspect, a V2X application in the V2X domain is configured to correspond to a first path set, and other applications except the V2X application in the common domain are configured to correspond to a second path set, and the first path set and the second path set have no intersection. The first path set is a path where resources required for implementing the V2X service in the V2X domain are located, and the second path set is a path where resources required for implementing services other than the V2X service are located in the common domain.
[0025] In a possible implementation of the second aspect above, the V2X domain and the normal domain are two containers in an application processor generated based on container technology.
[0026] In a possible implementation of the second aspect, a Linux system is built into the V2X communication device, and the V2X communication device uses a Cgroup method to configure restricted CPU resources of the V2X domain.
[0027] In a third aspect, a vehicle is provided, comprising a V2X communication device as described in any one of the second aspects.
[0028] It should be understood that the technical effects brought about by any design in the second aspect and the third aspect can refer to the beneficial effects in the corresponding method provided in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of a V2X protocol stack.
[0030] Figure 2 It is a structural schematic diagram of a V2X communication device.
[0031] Figure 3 A schematic diagram of the structure of a V2X communication device provided in an embodiment of the present application.
[0032] Figure 4A schematic diagram of an application scenario of a vehicle provided in an embodiment of the present application.
[0033] Figure 5 A flowchart of a V2X communication method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to identify examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.
[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art in the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that in the present application, unless otherwise specified, "a plurality of" refers to two or more than two, and "and / or" includes any and all combinations of one or more of the associated listed items.
[0036] The following first introduces relevant terms and concepts that may be involved in the embodiments of the present application.
[0037] 1. Container
[0038] Containers are a type of resource virtualization at the operating system level that isolates processes and resources. Depending on the application to be run, services are run separately on each container, allowing the application to run as if on a separate machine. Container technology effectively divides resources managed by a single operating system into isolated groups to better balance conflicting resource usage requirements between isolated groups. Common container technologies include Solaris Zones, BSD Jails, and container technology on Linux operating systems.
[0039] To facilitate understanding, the technical solutions in the embodiments of the present application are described below in conjunction with the accompanying drawings.
[0040] It can be understood that V2X technology is used in application scenarios of vehicle-to-network communications. For example, in order to communicate, a V2X communication device can be set on the vehicle. The vehicle can use the V2X communication device to communicate with other vehicles (vehicle to vehicle, V2V), communicate with other pedestrians (vehicle to pedestrian, V2P), communicate with other roadside infrastructure equipment (vehicle to infrastructure, V2I), or communicate with the communication network (vehicle to network, V2N).
[0041] Figure 1 The figure is a schematic diagram of a V2X protocol stack, which includes a V2X physical layer, a V2X MAC layer, a V2X access layer, a V2X network layer, a V2X security layer and a V2X message layer. The V2X physical layer, the V2X MAC layer and the V2X access layer are implemented by a V2X modem, and the V2X network layer, the V2X security layer and the V2X message layer are implemented by an application (AP) processor.
[0042] When the V2X service and other services (such as WiFi communication service) of the V2X communication device are implemented by the same application processor, when the V2X communication device receives a large number of V2X messages, a V2X message storm is generated, and the V2X service occupies a large amount of application processor resources, causing other services to fail to operate normally, affecting the ability of the V2X service to coexist with other services.
[0043] In other technologies, different application processors can be set in the V2X communication device so that the V2X application and other applications run in different application processors, thereby achieving physical isolation between the V2X application and other applications.
[0044] For example, Figure 2 is a schematic diagram of the structure of another V2X communication device, such as Figure 2 As shown, the V2X communication device is provided with two application processors: a V2X application processor and an MBB processor, and is also provided with a cellular modem and a V2X modem;
[0045] The V2X communication device performs V2X communication through a V2X modem, and the V2X application performing V2X communication runs in a V2X application processor; other types of communication (such as cellular communication) are implemented through another modem (such as a cellular modem), and other types of applications run in another application processor. Figure 2The communication device can isolate the processing logic and operation status of V2X services and other services from other non-V2X services, thereby avoiding mutual influence between the two. Figure 2 The V2X in the system isolates V2X from other services by adding modems and application processors, which increases costs, increases design complexity, and reduces the utilization of system resources. Furthermore, most of the computing power added by adding new devices cannot be fully utilized, resulting in a waste of computing power.
[0046] In summary, it is a technical problem that urgently needs to be solved in this field to isolate V2X services from other non-V2X services without increasing the cost of V2X communication devices and to prevent the impact of V2X services on other non-V2X services during V2X message storms.
[0047] Therefore, in order to solve the above technical problems, the present application provides a V2X communication method and device to solve the technical problem in the prior art that when a V2X communication device generates a V2X message storm, the V2X service affects other non-V2X services.
[0048] The following specific embodiments are combined with the accompanying drawings to describe the technical solution of the present application in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0049] Figure 3 A schematic diagram of the structure of a V2X communication device provided in an embodiment of the present application. The V2X communication device provided in an embodiment of the present application can be arranged on a vehicle, and the vehicle can perform V2X communication through the V2X communication device.
[0050] Figure 3 The operating system of the V2X communication device is Linux. It can be understood that in other embodiments, the V2X communication device may adopt other types of operating systems.
[0051] Figure 3 The V2X communication device includes an application processor and a modem processor.
[0052] Among them, the modem processor is a processor that supports V2X standard 3GPP physical layer protocol format transceiver processing. The modem processor includes a baseband chip, a radio frequency chip, and corresponding DSP and computing circuits, such as Figure 3 The C-V2X in it is used to implement the processing of the V2X physical layer, V2X MAC layer, and V2X access layer related to V2X services, and the cellular is used to implement the processing related to cellular Internet access.
[0053] The application processor is used to process V2X upper layer services, such as the processing of V2X messages by the V2X network layer, V2X security layer and V2X message layer. The application processor is also used to process other non-V2X services, such as GUI display, cellular Internet access, and WIFI data communication. The V2X security layer can perform message signature verification and signature, certificate management, etc. for V2X service-related messages, and the V2X message layer can perform ASN.1 encoding and decoding of V2X service-related messages.
[0054] The application processor includes two domains: the V2X domain and the common domain. The application processor implements V2X services through the V2X domain. The applications corresponding to the V2X services are located in the V2X domain and are performed in the V2X domain. All applications corresponding to non-V2X services are performed in the common domain. In this way, the V2X applications in the V2X domain process messages related to V2X services, while the applications in the common domain process messages related to other non-V2X services.
[0055] After a V2X communication device receives a V2X message sent by another V2X communication device (such as a mobile terminal, a vehicle or a base station, etc.), the modem processor of the V2X communication device processes the V2X message and then sends the processed message to the application processor. The application processor calls the V2X application in the V2X domain to process the received V2X message.
[0056] By placing V2X services and all non-V2X services in two different domains, V2X applications in the V2X domain process V2X service-related messages; applications in the common domain process other non-V2X service-related messages, so as to achieve isolation of V2X services and reduce the mutual impact of V2X services and all non-V2X services.
[0057] Figure 3 The V2X domain in the protocol includes multiple V2X processes, such as V2X process#1 and V2X process#2, and multiple V2X processes are implemented through V2X applications. The common domain includes multiple other processes, such as other process#1 and otherprocess#2, and other processes are implemented through other applications in the common domain.
[0058] In some embodiments, the V2X domain and the common domain are two containers generated based on container technology. The running of V2X applications and the running of all non-V2X applications are respectively run in their respective corresponding containers. The resources of the application processor are divided into isolated groups through container technology to reduce the mutual influence between the groups, so as to better balance the conflicting resource usage requirements between the isolated groups.
[0059] Exemplarily, two isolated domains are defined in the user space of the application layer using kernel virtualization technology (Linux Container, LXC): V2X container and common container, and all V2X service processes are mounted in the V2X container by modifying the configuration file of the V2X container. All other processes not related to V2X services are mounted in the common container.
[0060] It is understood that in other embodiments, other technologies may be used to isolate the V2X application and all non-V2X applications in the application processor of the V2X communication device, such as using virtual machine technology to divide the V2X application and all non-V2X applications into two virtual machines in the application processor, and isolate the V2X service and all non-V2X services through virtual machine technology. Of course, other technologies may also be used, such as two domains corresponding to two processes respectively. As long as the V2X service and all non-V2X services in the application processor can be isolated.
[0061] Figure 3 The two domains of the application processor (V2X domain and common domain) share the CPU, memory and other resources of the application processor. In order to further reduce the mutual impact of V2X services and all non-V2X services, the resources used by the V2X domain to implement V2X services are limited to avoid the V2X domain occupying too many resources to implement V2X services and affect the implementation of other non-V2X services.
[0062] Furthermore, the mobile terminal also limits the resources occupied by the implementation of non-V2X services in the common domain, so as to further reduce the mutual influence between V2X services and non-V2X services.
[0063] Figure 3 The operating system of the V2X communication device is Linux. Therefore, the mechanism provided by the Linux kernel to limit, record, and isolate the physical resources (such as CPU, memory, disk IO, etc.) used by the process group can be adopted: Control Groups (Cgroup) to limit the maximum resources occupied by the V2X domain, so as to further reduce the impact of V2X services in the V2X domain on services in other domains.
[0064] Specifically, the Cgroup method is used to configure the restricted CPU resources of the V2X domain and the common domain, wherein the restricted CPU resources corresponding to the V2X domain are the maximum resources occupied when the V2X application in the V2X domain is running.
[0065] Exemplarily, the configuration files of the V2X domain and the common domain are modified as follows:
[0066] #lxc-cgroup-n v2xlxc cpu.shares 400;
[0067] #lxc-cgroup-n appxc1 cpu.shares 600.
[0068] Through the above modifications, the V2X domain running V2X applications can use 40% of the CPU resources of the application processor, and the ordinary domain running other non-V2X applications can use 60% of the CPU resources of the application processor.
[0069] It can be understood that in other embodiments, if the V2X communication device uses a non-Linux operating system, the resources occupied by the operation of the V2X application in the V2X domain can be restricted through the configuration module of the corresponding operating system.
[0070] Furthermore, before configuring the restricted CPU resources of the V2X domain, it is also used to determine the maximum CPU resources required for the normal operation of the V2X application in the V2X domain. The restricted CPU resources of the V2X domain are configured according to the CPU resources required for the normal operation of the V2X application to ensure that the allocated resources can ensure the normal operation of the V2X application in the V2X domain. When the V2X communication device receives too many V2X messages, it is limited by the configured restricted CPU resources to reduce the impact of the V2X domain on services in other domains.
[0071] In this way, when the V2X communication device receives too many V2X messages, a large amount of CPU resources are occupied. Since the V2X domain has been configured with limited CPU resources, which limits the maximum CPU resources that can be used by the V2X domain, the system will prevent the V2X domain from being allocated CPU resources that exceed its limited CPU resources to ensure the availability of CPU resources for other non-V2X services during the V2X message storm, and ensure the normal operation of other non-V2X services.
[0072] In some embodiments, by configuring restricted memory resources of the V2X domain and the normal domain, the restricted memory resources are the maximum memory resources that can be used when the application in the V2X domain or the normal domain is running.
[0073] This is to reduce the impact of the V2X domain and the normal domain on each other's normal operation due to the competition for memory resources when implementing services.
[0074] For example, Figure 3 The Cgroup method can be used to configure the maximum usage of memory resources in the V2X domain and the common domain:
[0075] #lxc-cgroup-n v2xlxc memroy.limit_in_bytes 300000000;
[0076] #lxc-cgroup-n v2xlxc memory.memsw.limit_in_bytes=300000000;
[0077] By configuring the limit_in_bytes attribute of the Croup mechanism in the V2X domain configuration file, the memory resources used by the V2X application in the V2X domain should be limited to no more than 300M. At the same time, the SWAP memory in the Linux system should be turned off.
[0078] Furthermore, before configuring the RAM allocation rate of the V2X domain, it is also used to determine the maximum memory resources required for the normal operation of the V2X application in the V2X domain, and configure the memory resources of the V2X domain through the memory resources required for normal operation to ensure that the allocated resources can ensure the normal operation of the V2X application in the V2X domain.
[0079] Further, Figure 3 The memory resources required for running the V2X applications in the V2X domain exceed the configured maximum memory resources, and all V2X applications in the V2X domain stop running.
[0080] like Figure 3 As shown, Figure 3 The application processor also includes a kernel, that is, an operating system kernel. The operating system kernel is isolated from the user state. As the basic component of the output software operating system, the kernel can stop the operation of all V2X applications in the V2X domain when the memory resources required for the operation of V2X applications in the V2X domain exceed the configured maximum memory resources.
[0081] In some embodiments, the application processor further includes a domain monitoring process, which is used to detect the operation of the V2X domain and the common domain. In the V2X domain or the common domain, the application in the domain will be stopped because the memory resources required for the operation of the application in the domain exceeds the configured maximum memory resources; the domain monitoring process monitors that the V2X domain or the common domain is stopped, and restarts the corresponding domain to ensure that after the V2X service in the V2X domain is stopped due to the V2X message storm, the V2X domain can be restarted so that the V2X application can reprocess the V2X message to ensure the sustainable operation of the V2X service.
[0082] Of course, when the domain monitoring process detects that the V2X domain or the common domain cannot report the heartbeat information in time, the V2X domain or the common domain is restarted through the domain monitoring process to ensure the reliability of the V2X domain or the common domain.
[0083] like Figure 3 The V2X application in the V2X domain in the application processor of the V2X terminal shown in the figure has a V2X message storm, which causes the memory resources required for the V2X application to run to exceed the configured maximum memory resources, and the kernel stops the running of all V2X applications in the V2X domain. The domain monitoring process detects the cessation of all V2X applications in the V2X domain, and the domain monitoring process uses a system call to restart the V2X application in the V2X domain, thereby ensuring the reliability requirements of the V2X service operation.
[0084] Furthermore, when starting the applications in the V2X domain and the common domain in the application processor, it is also necessary to start the domain management process in the application processor, such as the domain monitoring process. The above startup method can be achieved by modifying the startup sequence and script model of the system of the V2X communication device.
[0085] In some embodiments, in order to further reduce the mutual impact between applications in the V2X domain and the ordinary domain, the paths required by the V2X applications running in the V2X domain and the paths required by the applications running in the ordinary domain may be configured in different path sets, i.e., two non-intersecting path sets, so that the V2X services implemented in the V2X domain and the non-V2X services implemented in the ordinary domain can be independently mounted and mapped. The path set is the path where the resources required for the service implementation in the V2X domain or the ordinary domain are located.
[0086] In some embodiments, the path may be libs, directories, or Device nodes in the application processor.
[0087] For example, Figure 3 In the Cgroup method, configure the mount points of the V2X container configuration file:
[0088] lxc.mount.entry = / sys sys none rw, bind 0 0; Configure the path required for the V2X application to run in the V2X container.
[0089] In some embodiments, the path set includes the directory address and library corresponding to the application. Of course, in other embodiments, since the V2X communication device uses different operating systems, the path set corresponding to the application may have different names.
[0090] like Figure 3 As shown, the V2X communication device also includes a random access memory (RAM), which is an internal memory that directly exchanges data with the CPU. The RAM serves as a temporary data storage medium for the operating system or other running programs to support the program running RAM.
[0091] Furthermore, the V2X communication device also includes a flash memory processor FLASH, and FLASH is used to support program storage.
[0092] Understandably, Figure 3 The V2X communication device is only an example provided in the embodiment of the present application. In other embodiments, the V2X communication device may include Figure 3 The V2X communication device shown may include more or more modules.
[0093] See also Figure 4 , Figure 4 A schematic diagram of an application scenario of a vehicle provided in an embodiment of the present application, the vehicle may include Figure 3 The V2X communication device shown is used by the vehicle to communicate with other vehicles, pedestrian terminals on the road, communication equipment (such as base station equipment), wireless networks, the Internet, etc.
[0094] See also Figure 5 , which is a flow chart of a V2X communication method provided in an embodiment of the present application. Figure 4 The V2X communication method shown is applied to a V2X communication device, the V2X communication device includes an application processor and a modem processor, the application processor includes a V2X domain and a common domain, the V2X application runs in the V2X domain, and other applications except the V2X application run in the common domain, and the V2X communication method includes:
[0095] S501: The AP processor receives a V2X message sent by the Modem processor;
[0096] S502. The AP processor calls a V2X application in the V2X domain to process a V2X message.
[0097] The application processor of the V2X communication device is divided into two independent domains, which are used for the operation of V2X applications and non-V2X applications respectively. V2X services and non-V2X services are respectively implemented through the two independent domains to reduce the impact of V2X services and non-V2X services in the application processor.
[0098] In some embodiments, the V2X domain has limited CPU resources, where the limited CPU resources are the maximum CPU resources that all V2X applications in the V2X domain are configured to use.
[0099] By limiting the maximum CPU resources that can be used by the V2X application running in the V2X domain in the application processor, it is ensured that when the V2X communication device receives too many V2X messages, the V2X application running in the V2X domain will not occupy too many CPU resources due to the generation of V2X message storms, thereby affecting other non-V2X services. Since the maximum CPU resources that can be used by the V2X application running are limited, the V2X service in the application processor is prevented from affecting the operation of other services due to competition for CPU resources.
[0100] In some embodiments, the V2X domain has limited memory resources, where the limited memory resources are the maximum memory resources that all V2X applications in the V2X domain are configured to use.
[0101] By limiting the maximum memory resources that can be used by the V2X application running in the V2X domain in the application processor, it is ensured that when the V2X communication device receives too many V2X messages, the V2X application running in the V2X domain will not occupy too many memory resources due to the generation of V2X message storms, thereby affecting other non-V2X services. Since the maximum memory resources that can be used by the V2X application running are limited, the V2X service in the application processor is prevented from affecting the operation of other services due to competition for memory resources.
[0102] In some embodiments, the application processor further includes a domain monitoring process, and the V2X communication method further includes: the domain monitoring process detects that a V2X application in the V2X domain is stopped, and restarts the V2X application in the V2X domain.
[0103] When a V2X application in the V2X domain is stopped due to occupying too many memory resources or other reasons, the domain monitoring process restarts the V2X application in the V2X domain to ensure the reliability and continuity of the V2X service in the application processor.
[0104] In some embodiments, the V2X application in the V2X domain is configured to correspond to a first path set, and other applications in the common domain except the V2X application are configured to correspond to a second target file. The first path set is different from the second path set. The first path set is the directory where the resources required for the running of the V2X application in the V2X domain are located, and the second path set is the directory where the resources required for the running of other applications in the common domain except the V2X application are located.
[0105] By configuring the V2X domain and the normal domain in the application processor so that the V2X domain and the normal domain correspond to different path sets respectively, the isolation between the V2X domain and the normal domain can be further improved to avoid mutual impact between the services in the V2X domain and the normal domain.
[0106] In some embodiments, the V2X domain and the normal domain are two containers within an application processor generated based on container technology.
[0107] Two independent domains are generated through container technology to ensure the isolation and independence of the services corresponding to the two domains in the AP processor and reduce the mutual impact of the services in the two domains.
[0108] In some embodiments, the V2X communication device is a Linux system, and the V2X communication device uses a Cgroup method to configure limited CPU resources of the V2X domain.
[0109] Through the functions of the Linux system itself, the Cgroup method can limit the CPU resources in the V2X domain, which is easy to implement.
[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program codes. These computer program codes may be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a particular manner.
[0111] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the V2X communication device, the V2X communication device executes the above-mentioned related method steps to implement the V2X communication method in the above-mentioned embodiment.
[0112] This embodiment also provides a computer program product. When the computer program product is run on a V2X communication device, the V2X communication device executes the above-mentioned related steps to implement the V2X communication method in the above-mentioned embodiment.
[0113] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the chip executes the V2X communication method in the above-mentioned method embodiments.
[0114] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0115] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the module or the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0116] The modules described as separate components may or may not be physically separated, and the components shown as modules may be one physical module or multiple physical modules, that is, they may be located in one place or distributed in multiple different places. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0117] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0118] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0119] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle-to-everything (V2X) communication method, characterized in that: Applied to a V2X communication device, the V2X communication device includes an application processor, the application processor includes a V2X domain and a common domain, the application processor implements a V2X service through the V2X domain and limits resources used to implement the V2X service, and implements other services except the V2X service through the common domain, the application corresponding to the V2X service is located in the V2X domain, and the V2X communication method includes: The application processor calls the V2X application in the V2X domain to process the received V2X message.
2. The V2X communication method according to claim 1, characterized in that: The V2X domain has limited CPU resources, and the limited CPU resources are the maximum CPU resources that can be used by the V2X domain to implement the V2X service.
3. The V2X communication method according to claim 1 or 2, characterized in that: The V2X domain has limited memory resources, and the limited memory resources are the maximum memory resources that can be used by the V2X domain to implement the V2X service.
4. The V2X communication method according to claim 2 or 3, characterized in that: The application processor further includes a domain monitoring process, and the V2X communication method further includes: The domain monitoring process detects that the V2X domain is stopped, and restarts the V2X domain so that the V2X application in the V2X domain can reprocess the received V2X message.
5. The V2X communication method according to any one of claims 1 to 4, characterized in that: The V2X service in the V2X domain is configured to correspond to a first path set, and other services in the common domain except the V2X service are configured to correspond to a second path set, the first path set and the second path set have no intersection, the first path set is the path where the resources required for the implementation of the V2X service in the V2X domain are located, and the second path set is the path where the resources required for other services in the common domain except the V2X service are located.
6. The V2X communication method according to any one of claims 1 to 5, characterized in that: The V2X domain and the common domain are two containers within the application processor generated based on container technology.
7. The V2X communication method according to claim 2 or 3, characterized in that: The V2X communication device has a built-in Linux system, and the V2X communication device uses a Cgroup method to configure the restricted CPU resources of the V2X domain.
8. A V2X communication device, characterized in that: The V2X communication device includes an application processor, which includes a V2X domain and a common domain. The application processor runs a V2X service in the V2X domain and limits resources used to implement the V2X service, and implements other services except the V2X service through the common domain. The application corresponding to the V2X service is located in the V2X domain, and the application processor is used to call the V2X application in the V2X domain to process a received V2X message.
9. The V2X communication device according to claim 8, characterized in that: The V2X domain has limited CPU resources, and the limited CPU resources are the maximum CPU resources that can be used by the V2X domain to implement the V2X service.
10. The V2X communication device according to claim 8 or 9, characterized in that: The V2X domain has limited memory resources, and the limited memory resources are the maximum memory resources that can be used by the V2X domain to implement the V2X service.
11. The V2X communication device according to claim 9 or 10, characterized in that: The application processor further includes a domain monitoring process, and when the domain monitoring process detects that the V2X domain is stopped, the domain monitoring process is used to restart the V2X domain so that the V2X application can reprocess the received V2X message.
12. The V2X communication device according to any one of claims 8 to 11, characterized in that: The V2X service in the V2X domain is configured to correspond to a first path set, and other services in the common domain except the V2X service are configured to correspond to a second path set, the first path set and the second path set have no intersection, the first path set is the path where the resources required for the implementation of the V2X service in the V2X domain are located, and the second path set is the path where the resources required for the implementation of other services except the V2X service in the common domain are located.
13. The V2X communication device according to any one of claims 8 to 12, characterized in that: The V2X domain and the common domain are two containers within the application processor generated based on container technology.
14. The V2X communication device according to claim 9 or 10, characterized in that: The V2X communication device has a built-in Linux system, and the V2X communication device uses a Cgroup method to configure the restricted CPU resources of the V2X domain.
15. A vehicle, characterized in that: Comprising a V2X communication device as described in any one of claims 8 to 14.
