Deployment of vehicle communication system, communication method, vehicle and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING JINGWEI HIRAIN TECH CO INC
- Filing Date
- 2023-09-04
- Publication Date
- 2026-08-07
AI Technical Summary
[0003]有鉴于此,本发明提供了一种车辆通信系统的部署方法、通信方法、车辆及存储介质,以解决车辆通信系统的可靠性较低的问题
[0043]需要说明的是,本发明实施例提供的车辆以及计算机可读存储介质的相应有益效果,请参见上文车辆通信系统的部署方法或车辆通信方法的对应有益效果的描述,在此不再赘述。
Smart Images

Figure CN117061364B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle communication, and more specifically to a method for deploying a vehicle communication system, a communication method, a vehicle, and a storage medium. Background Technology
[0002] Currently, communication between vehicle components is often achieved using buses such as CAN / LIN / ETH, with simple modifications made to the vehicle communication network based on the number of terminal nodes. Specifically, communication between terminal nodes typically requires the assistance of network nodes, and the number of network nodes deployed is usually determined based on empirical values. However, different vehicles have different bandwidth requirements, and deploying all vehicle communication systems based on empirical values will lead to low reliability of the vehicle communication system. Summary of the Invention
[0003] In view of this, the present invention provides a deployment method, communication method, vehicle, and storage medium for a vehicle communication system to solve the problem of low reliability of vehicle communication systems.
[0004] In a first aspect, embodiments of the present invention provide a method for deploying a vehicle communication system, the method comprising:
[0005] The number of terminal nodes in the target vehicle and the traffic information of the terminal nodes are obtained, wherein the traffic information includes the type and magnitude of traffic.
[0006] The traffic attributes of the traffic are determined based on the traffic type, and the traffic attributes include continuous traffic and non-continuous traffic;
[0007] Based on the traffic attributes and the traffic volume, the actual traffic volume of the terminal node is determined to obtain the actual traffic demand of the target vehicle;
[0008] The number of network nodes is determined based on the actual required traffic volume and the bandwidth of the network nodes.
[0009] The vehicle communication system is determined based on the number of network nodes and the terminal nodes.
[0010] The vehicle communication system deployment method provided in this embodiment of the invention determines the actual traffic volume of the terminal node by combining the traffic attributes of each traffic flow of the target vehicle when determining the actual traffic demand of the target vehicle. Since non-continuous traffic is intermittent traffic, while continuous traffic is continuous traffic, determining the actual traffic volume of the terminal node by combining the traffic attributes ensures the accuracy of the obtained actual traffic volume, thereby improving the accuracy of the actual traffic demand. On this basis, it ensures the accuracy of the obtained number of network nodes. With the accurate number of network nodes, a vehicle communication system with high reliability can be obtained.
[0011] In some optional implementations, determining the actual traffic volume of the terminal node based on the traffic attributes and the traffic volume to obtain the actual traffic demand of the target vehicle includes:
[0012] The flow regulation item for the flow is obtained based on the flow attributes;
[0013] Based on the traffic adjustment item and the traffic volume, the actual traffic volume of the terminal node is determined;
[0014] Based on the number of terminal nodes and the actual traffic volume, the actual traffic demand of the target vehicle is obtained.
[0015] The vehicle communication system deployment method provided in this embodiment of the invention utilizes traffic attributes to obtain traffic adjustment items, applies the traffic adjustment items to the traffic volume, and obtains an accurate actual traffic volume. This improves the accuracy of the actual traffic demand of the target vehicle while simplifying data processing.
[0016] In some optional implementations, obtaining the flow adjustment term based on the flow attribute includes:
[0017] If the traffic attribute is non-continuous traffic, the traffic adjustment term of the non-continuous traffic is obtained by using the traffic priority of the non-continuous traffic, and the traffic adjustment term of the non-continuous traffic is less than 1.
[0018] If the flow attribute is continuous flow, the flow adjustment term for the continuous flow is set to 1.
[0019] The vehicle communication system deployment method provided in this embodiment of the invention improves the accuracy of the actual traffic volume by setting the traffic adjustment term for non-continuous traffic to less than 1, which is related to traffic priority. Since non-continuous traffic does not continuously occupy bandwidth compared to continuous traffic, and the higher the traffic priority of non-continuous traffic, the more bandwidth it occupies. For continuous traffic, the traffic adjustment term is 1, and its actual traffic volume is simply the traffic volume itself, without any adjustment, thus simplifying data processing.
[0020] In some optional implementations, determining the number of network nodes based on the actual required traffic and the bandwidth of the network nodes includes:
[0021] Find the minimum number of network nodes;
[0022] Based on the actual traffic demand and the bandwidth of the network nodes, determine the required number of network nodes;
[0023] The minimum value of the quantity and the maximum value of the required quantity are determined as the number of network nodes.
[0024] The vehicle communication system deployment method provided in this embodiment of the invention uses a minimum number of network nodes to constrain the number of network nodes, thereby ensuring the minimum number of network nodes required and improving the reliability of the vehicle communication network.
[0025] In some alternative implementations, determining the vehicle communication system based on the number of network nodes and the terminal nodes includes:
[0026] Based on the number of network nodes, all network nodes are formed into a ring topology;
[0027] The terminal node is connected to at least two of the network nodes to obtain the vehicle communication system.
[0028] The vehicle communication system deployment method provided in this embodiment of the invention forms a ring topology structure with network nodes and terminal nodes connected to at least two network nodes. Through the redundancy setting of communication links, the reliability of communication can be further improved.
[0029] In some optional implementations, both the network node and the terminal node are equipped with a monitoring center and a service center. The monitoring center is used to monitor the local resource status, and the service center is used to manage the registered services in the terminal node to schedule the registered services.
[0030] The vehicle communication system deployment method provided in this embodiment of the invention enables unified monitoring and management of registered services in terminal nodes through the establishment of a monitoring center and a service center, ensuring that the vehicle communication system can perform appropriate task scheduling as registered services change, and ensuring plug-and-play functionality of third-party services.
[0031] Secondly, embodiments of the present invention also provide a vehicle communication method applied in a terminal node of a vehicle communication system, wherein the vehicle communication system is obtained according to the method described in the first aspect or any embodiment of the first aspect, and the vehicle communication method includes:
[0032] The monitoring center in the terminal node obtains the local resource status;
[0033] If the local resources are insufficient, the monitoring center sends a first data distribution service message to the server of the service center;
[0034] The client of the service center in the terminal node receives a service degradation instruction issued by the server of the service center to schedule the registered services locally. The service degradation instruction is determined based on the traffic priority on the terminal node.
[0035] The vehicle communication method provided in this embodiment of the invention monitors the local resource status through a monitoring center. When local resources are insufficient, it schedules registered services through a first data distribution service message and a service degradation instruction, thereby solving the problem of insufficient resources caused by high load and ensuring low latency and reliability of communication.
[0036] In some optional implementations, the vehicle communication method further includes:
[0037] The client of the service center broadcasts a second data distribution service message for the registered services locally. The server of the service center stores the registered services for service scheduling.
[0038] The vehicle communication method provided in this embodiment of the invention allows the client of the service center to broadcast locally registered services through a second data distribution service message, enabling the server of the service center to promptly obtain information on all registered services and thereby achieve global allocation of registered services.
[0039] Thirdly, embodiments of the present invention also provide a vehicle, comprising:
[0040] Vehicle body;
[0041] A vehicle communication system, wherein the vehicle communication system is obtained by a deployment method of a vehicle communication system according to a first aspect or any corresponding embodiment thereof, and the vehicle communication system communicates according to a vehicle communication method according to a second aspect or any corresponding embodiment thereof.
[0042] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions, which are used to cause a computer to execute the deployment method of the vehicle communication system according to the first aspect or any corresponding embodiment thereof, or to execute the vehicle communication method according to the second aspect or any corresponding embodiment thereof.
[0043] It should be noted that the corresponding beneficial effects of the vehicle and computer-readable storage medium provided in the embodiments of the present invention can be found in the description of the corresponding beneficial effects of the vehicle communication system deployment method or vehicle communication method above, and will not be repeated here. Attached Figure Description
[0044] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0045] Figure 1 This is a flowchart illustrating a method for deploying a vehicle communication system according to an embodiment of the present invention;
[0046] Figure 2 This is a flowchart illustrating a deployment method for another vehicle communication system according to an embodiment of the present invention;
[0047] Figure 3 This is a flowchart illustrating a deployment method for another vehicle communication system according to an embodiment of the present invention;
[0048] Figure 4 This is a schematic diagram of the structure of a vehicle communication system according to an embodiment of the present invention;
[0049] Figure 5 This is a flowchart illustrating a vehicle communication method according to an embodiment of the present invention;
[0050] Figure 6 This is a schematic diagram illustrating an application scenario of the vehicle communication method according to an embodiment of the present invention;
[0051] Figure 7 This is a structural block diagram of a vehicle communication system deployment device according to an embodiment of the present invention;
[0052] Figure 8 This is a structural block diagram of a vehicle communication device according to an embodiment of the present invention. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0054] The vehicle communication system deployment method provided in this invention is used to deploy the vehicle communication system of a target vehicle. The number of network nodes is set according to the actual traffic requirements of the target vehicle to meet the vehicle communication needs and improve the reliability of vehicle communication. This method is applied to the deployment of communication systems in automobiles and other vehicles, ensuring reliable vehicle communication.
[0055] This invention also provides a vehicle communication method, which is applied to the vehicle communication system obtained by the above deployment method. By setting up a service center and a monitoring center, the registered services of the terminal nodes are managed and allocated in a unified manner, so as to reduce the latency of data communication and improve the reliability of communication.
[0056] According to embodiments of the present invention, a method for deploying a vehicle communication system and an embodiment of the vehicle communication method are provided. It should be noted that the steps shown in the flowcharts in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0057] This embodiment provides a method for deploying a vehicle communication system, which can be used with computer equipment such as computers, servers, etc. Figure 1 This is a flowchart of a vehicle communication system deployment method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0058] Step S101: Obtain the number of terminal nodes in the target vehicle and the traffic information of the terminal nodes.
[0059] The traffic information includes the type and size of the traffic.
[0060] Terminal nodes are terminals deployed in the target vehicle, such as power controllers, chassis controllers, air conditioning systems, cameras, lights, etc. The number of terminal nodes can be obtained from the target vehicle's design drawings, input interactively, or obtained from third-party devices via computer communication, etc.
[0061] The traffic information of the terminal node includes the type and magnitude of traffic. The type of traffic can also be understood as the signal type, such as network management signals, functional safety control signals, and functional safety data signals. The magnitude of each type of traffic can be obtained through testing or other methods.
[0062] For the same terminal node, there may be one or more types of traffic associated with it, depending on the application of the terminal node. Once the function of the terminal node is determined, the types of traffic associated with it are also determined. The traffic associated with the same terminal node is the sum of the traffic sizes of each traffic type. It should be noted that when calculating the sum of traffic sizes, the traffic sizes of each traffic type can be directly summed, or a weighted sum can be used, or other methods can be employed, as long as it is ensured that the traffic associated with the same terminal node is obtained by summing the traffic sizes of all traffic types.
[0063] Step S102: Determine the traffic attributes based on the traffic type.
[0064] The traffic attributes include continuous traffic and non-continuous traffic.
[0065] If a signal is present continuously while the vehicle is running, such as the speed signal from the main controller, then the flow attribute of that signal is continuous flow. If a signal is random or exists intermittently, such as a door opening / closing signal, then the flow attribute of that signal is non-continuous flow.
[0066] After obtaining the traffic types, the correspondence between traffic types and traffic attributes can be used to determine whether it is continuous or non-continuous traffic. Alternatively, it can be determined by parsing the names of the traffic types. For example, by collecting a large number of traffic type names and their corresponding target traffic attributes, these can be used as training samples to train a classification model. The input of this model is the name of the traffic type, and the output is the traffic attribute corresponding to the traffic type.
[0067] Of course, the above are only some optional implementation methods for determining traffic attributes, but do not limit the scope of protection of this invention.
[0068] Step S103: Based on the traffic attributes and traffic volume, determine the actual traffic volume of the terminal node to obtain the actual traffic demand of the target vehicle.
[0069] As mentioned above, the actual traffic volume of a terminal node is the sum of the traffic volumes corresponding to all traffic types. However, for non-persistent traffic, since this traffic is not always present, its actual traffic volume cannot be directly added to the total traffic volume. Instead, the traffic volume needs to be reduced before calculation. This reduction can be achieved by multiplying the traffic volume by a coefficient less than 1, or by using other methods, as long as the actual traffic volume of non-persistent traffic is less than its actual traffic volume.
[0070] The actual traffic volume of the terminal node is the sum of the actual traffic volume of non-persistent traffic and the traffic volume of persistent traffic. As mentioned above, the summation can be obtained by directly adding the two or by combining the various weighting coefficients. No restrictions are placed on this here.
[0071] For the target vehicle, the number of terminal nodes it includes is known. After the above processing steps, the actual traffic volume of each terminal node is obtained. Based on this, the actual traffic volumes of all terminal nodes are combined to obtain the actual traffic demand of the target vehicle.
[0072] Step S104: Determine the number of network nodes based on the actual required traffic and the bandwidth of the network nodes.
[0073] Network nodes are terminal nodes with routing capabilities. Communication between terminal nodes is forwarded through network nodes to ensure the availability of communication paths. If a terminal node itself has routing capabilities, it can be used as a network node; if a terminal node does not have routing capabilities, a distributed communication component can be deployed on the terminal node to enable routing. The distributed communication component consists of a service center, a monitoring center, a Data Distribution Service (DDS) protocol stack, and a Time Sensitive Networking (TSN) protocol stack.
[0074] The bandwidth of a network node is related to its performance. If a network node supports 100 Mbps Ethernet, its bandwidth is 100 Mbps; if it supports Gigabit Ethernet, its bandwidth is Gigabit.
[0075] After processing through the above steps, the actual traffic demand of the target vehicle is obtained. The bandwidth of a network node is the bandwidth that a single network node can support. Therefore, by using the actual traffic demand and the bandwidth of the network node, the number of network nodes can be obtained.
[0076] It should be noted that if the bandwidth of each network node is inconsistent, the average bandwidth of all network nodes can be used to calculate the number of network nodes. Of course, when the bandwidth of network nodes is inconsistent, other methods can be used to determine the bandwidth used to calculate the number of network nodes.
[0077] Step S105: Determine the vehicle communication system based on the number of network nodes and terminal nodes.
[0078] Terminal nodes communicate with network nodes; that is, terminal nodes need to connect to network nodes. To ensure redundancy in the communication path, each terminal node connects to at least two network nodes. Similarly, network nodes can also communicate with each other.
[0079] The connection between network nodes and terminal nodes can be achieved by using the locations of network nodes and terminal nodes, and determining the network node corresponding to each terminal node based on the shortest path.
[0080] Once the terminal node and network node are connected, the vehicle communication system can be established. Furthermore, after the connection is established, communication information can be configured for both the terminal node and the network node; for example, routing information can be configured for the network node.
[0081] The vehicle communication system deployment method provided in this embodiment determines the actual traffic volume of the terminal node by combining the traffic attributes of each traffic flow of the target vehicle when determining the actual traffic demand of the target vehicle. Since non-continuous traffic is intermittent traffic, while continuous traffic is continuous traffic, determining the actual traffic volume of the terminal node by combining the traffic attributes ensures the accuracy of the obtained actual traffic volume, thereby improving the accuracy of the actual traffic demand. On this basis, it ensures the accuracy of the obtained number of network nodes. With the accurate number of network nodes, a vehicle communication system with high reliability can be obtained.
[0082] This embodiment provides a method for deploying a vehicle communication system, which can be used with computer equipment such as computers, servers, etc. Figure 2 This is a flowchart of a vehicle communication system deployment method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0083] Step S201: Obtain the number of terminal nodes in the target vehicle and the traffic information of the terminal nodes.
[0084] The traffic information includes the type and amount of traffic. Please see [link / details] for more information. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0085] Step S202: Determine the traffic attributes based on the traffic type.
[0086] The traffic attributes include continuous traffic and non-continuous traffic. See details below. Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0087] Step S203: Based on the traffic attributes and traffic volume, determine the actual traffic volume of the terminal node to obtain the actual traffic demand of the target vehicle.
[0088] Specifically, step S203 includes:
[0089] Step S2031: Obtain the flow adjustment item based on the flow attributes.
[0090] As mentioned above, since non-continuous traffic is not always present, in order to ensure the accuracy of the actual required traffic in subsequent calculations, a traffic adjustment term is introduced here to adjust the traffic size, so as to ensure that the actual traffic size of non-continuous traffic is smaller than the obtained traffic size.
[0091] In some alternative implementations, step S2031 includes:
[0092] Step a1: If the traffic attribute is non-continuous traffic, obtain the traffic adjustment term for non-continuous traffic using the traffic priority of non-continuous traffic. The traffic adjustment term for non-continuous traffic is less than 1.
[0093] Step a2: If the flow attribute is continuous flow, determine the flow adjustment item for continuous flow to be 1.
[0094] Non-continuous traffic with higher priority consumes more bandwidth. Therefore, for non-continuous traffic, it is also necessary to differentiate the traffic adjustment parameters based on traffic priority. That is, the higher the traffic priority, the larger the traffic adjustment parameter should be and less than 1.
[0095] If the traffic attribute is continuous traffic, there is no need to adjust the traffic size; therefore, the traffic adjustment item for continuous traffic is 1.
[0096] For example, the flow regulation term can be represented by equation (1):
[0097]
[0098] In the formula, A is the flow regulation term; if the flow attribute is non-continuous flow, P is the flow priority of non-continuous flow; if the flow attribute is continuous flow, P is 1.
[0099] Since non-continuous traffic does not continuously occupy bandwidth compared to continuous traffic, and the higher the traffic priority of non-continuous traffic, the more bandwidth it occupies, the more accurate the obtained actual traffic size can be further improved by setting the traffic adjustment term for non-continuous traffic to less than 1 and ensuring that the adjustment term is related to traffic priority. For continuous traffic, the traffic adjustment term is 1, and its actual traffic size is simply the traffic size without any adjustment, simplifying data processing.
[0100] Step S2032: Determine the actual traffic volume of the terminal node based on the traffic adjustment item and the traffic volume.
[0101] If terminal node k contains K types of traffic, the actual traffic volume of the terminal node is represented by equation (2):
[0102]
[0103] In the formula, B k W represents the actual traffic volume of the k-th terminal node. kj P represents the magnitude of the j-th type of traffic in the k-th terminal node; if the j-th type of traffic in the k-th terminal node is continuous traffic, P kj P is 1; if the j-th type of traffic in the k-th terminal node is non-persistent traffic, P kj This represents the traffic priority of the j-th type of traffic in the k-th terminal node.
[0104] Step S2033: Based on the number of terminal nodes and the actual traffic volume, obtain the actual traffic demand of the target vehicle.
[0105] After obtaining the actual traffic volume of each terminal node, the traffic volume is aggregated based on the number of terminal nodes to obtain the actual traffic demand of the target vehicle.
[0106] For example, the actual demand flow of the target vehicle is expressed by equation (3):
[0107]
[0108] In the formula, F represents the actual demand flow, T represents the number of terminal nodes, C is a constant greater than 1, and B... k This represents the actual traffic volume of terminal node k.
[0109] By setting a constant C greater than 1, the actual demand flow obtained by equation (3) is not consistent with the actual scenario when a short-term high flow occurs, thus further ensuring the reliability of the vehicle communication system obtained later.
[0110] Step S204: Determine the number of network nodes based on the actual required traffic and the bandwidth of the network nodes.
[0111] Specifically, step S204 includes:
[0112] Step S2041: Obtain the minimum number of network nodes.
[0113] To ensure redundant design of network nodes, a minimum number of nodes is set to constrain the number of network nodes. The minimum number can be 2, 3, etc., depending on the actual needs.
[0114] Step S2042: Determine the required number of network nodes based on the actual traffic demand and the bandwidth of the network nodes.
[0115] The required number of network nodes is determined by the ratio of actual traffic demand to the bandwidth of the network nodes. If the calculated ratio is not an integer, it is rounded up to the nearest integer to arrive at the required number of network nodes. For example, if the calculated ratio is 4.3, then the required number of network nodes is 5.
[0116] Step S2043: Determine the number of network nodes from the minimum quantity and the maximum quantity required.
[0117] The minimum quantity is compared with the required quantity, and the larger of the two is taken as the number of network nodes.
[0118] Step S205: Based on the number of network nodes and terminal nodes, determine the vehicle communication system. For details, please refer to [link to relevant documentation]. Figure 1 Step S105 of the illustrated embodiment will not be described again here.
[0119] The vehicle communication system deployment method provided in this embodiment utilizes traffic attributes to obtain a traffic adjustment term, which is then applied to the traffic volume to obtain an accurate actual traffic volume. This improves the accuracy of the target vehicle's actual traffic demand while simplifying data processing. Furthermore, by using a minimum number of network nodes to constrain the number of network nodes, the minimum required number of network nodes is guaranteed, thereby improving the reliability of the vehicle communication network.
[0120] This embodiment provides a method for deploying a vehicle communication system, which can be used with computer equipment such as computers, servers, etc. Figure 3 This is a flowchart of a vehicle communication system deployment method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:
[0121] Step S301: Obtain the number of terminal nodes in the target vehicle and the traffic information of the terminal nodes.
[0122] The traffic information includes the type and amount of traffic. Please see [link / details] for more information. Figure 1Step S101 of the illustrated embodiment will not be described again here.
[0123] Step S302: Determine the traffic attributes based on the traffic type.
[0124] The traffic attributes include continuous traffic and non-continuous traffic. See details below. Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0125] Step S303: Based on traffic attributes and traffic volume, determine the actual traffic volume of the terminal node to obtain the actual traffic demand of the target vehicle. For details, please refer to [link to relevant documentation]. Figure 2 Step S203 of the illustrated embodiment will not be described again here.
[0126] Step S304: Determine the number of network nodes based on the actual traffic demand and the bandwidth of the network nodes. For details, please refer to [link to relevant documentation]. Figure 2 Step S204 of the illustrated embodiment will not be described again here.
[0127] Step S305: Determine the vehicle communication system based on the number of network nodes and terminal nodes.
[0128] Specifically, step S305 includes:
[0129] Step S3051: Based on the number of network nodes, form a ring topology structure with all network nodes.
[0130] Once the number of network nodes is determined, one of them is used as the starting point to connect all the network nodes sequentially, forming a ring topology. Specifically, the locations of the network nodes are first determined, and then the ring topology is formed. Using the location information of all terminal nodes, the center point of all terminal nodes is calculated, and this center point is then used as the center point of the network nodes, allowing for even distribution of network nodes.
[0131] For example, the center point of a network node is calculated using equation (4):
[0132]
[0133] In the formula, T represents the number of terminal nodes, (x k ,y k ,z k ) represents the coordinates of the terminal node k.
[0134] If the number of network nodes obtained in step S304 is N, after obtaining the center point of the network nodes, we can first query the terminal nodes with routing functions near the center point. If N terminal nodes with routing functions are found, these N terminal nodes are used as network nodes. If no N terminal nodes with routing functions are found, the terminal nodes with routing functions that are found are used as network nodes. Then, distributed communication components are deployed on the remaining terminal nodes without routing functions to enable them to have routing functions, thereby obtaining N network nodes.
[0135] Of course, the method for determining the location of N network nodes is not limited to the one described above; other methods can also be used, depending on the actual needs.
[0136] After determining the locations of N network nodes, one of them is used as the starting point to connect the network nodes sequentially, thus forming a ring topology.
[0137] Step S3052: Connect the terminal node to at least two network nodes to obtain the vehicle communication system.
[0138] After the network nodes form a ring topology, the terminal node is connected to at least two network nodes to ensure redundancy of the communication path, so as to obtain the vehicle communication system.
[0139] For example, Figure 4 This illustrates a specific application example of a vehicle communication system, which includes network nodes N1-N3 and terminal nodes T1-T3. Figure 4 In this network, a ring topology is formed between network nodes, with each terminal node connected to two network nodes.
[0140] In some alternative implementations, both network nodes and terminal nodes are equipped with a monitoring center and a service center. The monitoring center is used to monitor the local resource status, and the service center is used to manage the registered services in the terminal nodes and schedule the registered services.
[0141] The service center manages registered services on endpoint nodes. When an application starts on an endpoint node, it needs to register its services with the service center. Registration information includes the service name, service DDS topic, and service priority, among other things. It's important to note that registered services do not need to register again upon restarting. The service center consists of a server and an agent. Newly started services on endpoint nodes first register with the local service agent, which then informs the server. Network nodes use TSN to route bus signals to ensure real-time signal transmission.
[0142] The monitoring center monitors local resource status. If resources are insufficient, it reports the information to the service center server for allocation of local registered services. Specifically, the service center subscribes to the DDS monitoring center topic. When the service center receives a monitoring center message, if resources are insufficient, it stops services tier by tier according to traffic priority from high to low. When resources are sufficient, services are restored tier by tier. The service center publishes service stop and restore signals under the DDS service center topic. Applications need to subscribe to the service center DDS topic and perform function startup, stop, degradation, and restore as required.
[0143] It should be noted that, in Figure 4 The system only marks the service center and monitoring center in network nodes N1 to N3, but service centers and monitoring centers are also deployed in terminal nodes, only in... Figure 4 Not shown in the image.
[0144] By setting up a monitoring center and a service center, unified monitoring and management of registered services in terminal nodes can be achieved, ensuring that the vehicle communication system can perform appropriate task scheduling as registered services change, and ensuring plug-and-play functionality for third-party services.
[0145] The vehicle communication system deployment method provided in this embodiment forms a ring topology structure with network nodes and terminal nodes connected to at least two network nodes. Through the redundancy setting of communication links, the reliability of communication can be further improved.
[0146] This embodiment provides a vehicle communication method that can be used in the terminal node of a vehicle communication system. Figure 5 This is a flowchart of a vehicle communication method according to an embodiment of the present invention, such as... Figure 5 As shown, the process includes the following steps:
[0147] Step S501: The monitoring center in the terminal node obtains the local resource status.
[0148] In step S502, if local resources are insufficient, the monitoring center sends a first data distribution service message to the server of the service center.
[0149] The purpose of the monitoring center is to monitor local resource status and notify the service center of the current resource status by publishing a first DDS message with the subject "Monitoring Center". The data monitored by the monitoring center includes, but is not limited to, the CPU resources and bandwidth used by each app, the latency fluctuations of data at each priority level, the success rate of processes and tasks at each priority level, the total local CPU resources and bandwidth, etc.
[0150] In step S503, the client of the service center in the terminal node receives the service degradation instruction issued by the server of the service center to schedule the registered services locally.
[0151] The service degradation instruction is determined based on the traffic priority on the terminal node.
[0152] When a monitoring center detects insufficient local resources, potentially leading to task failure, it sends a first DDS message to the service center server. The service center server then issues a service degradation command to the service center agent deployed on the monitoring center hardware, rescheduling locally registered services. This service degradation command is determined based on traffic priority, and services are processed sequentially from highest to lowest priority. In this case, service degradation means stopping the service locally and rescheduling it to other endpoints. Once local resources recover, the stopped services are restored sequentially.
[0153] The vehicle communication method provided in this embodiment monitors the local resource status through a monitoring center. When local resources are insufficient, it schedules registered services through a first data distribution service message and a service degradation instruction, thereby solving the problem of insufficient resources caused by high load and ensuring low latency and reliability of communication.
[0154] In some optional implementations, the vehicle communication method further includes: a client of the service center broadcasting a second data distribution service message of the registered services locally, and a server of the service center storing the registered services for service scheduling of the registered services.
[0155] When the network starts up or services change, the service center server broadcasts the third DDS message of the currently registered services to the entire vehicle. The local service center agent receives the third DDS message and broadcasts the second DDS message of the locally registered services to the entire vehicle. The service center server stores the registered services in the service center agent and is responsible for scheduling all services registered in the vehicle in the future.
[0156] The client of the service center broadcasts the locally registered services through the second data distribution service message, so that the server of the service center can know all the registered services in a timely manner, thereby realizing the global allocation of registered services.
[0157] As a specific application example of the vehicle communication method in this embodiment of the invention, such as Figure 6 As shown, assuming a certain model of intelligent vehicle requires a functional safety communication system, with a single network node having a bandwidth of 100M, the terminal nodes of this vehicle are as follows:
[0158] 1. Power controller T1, B1 = 0.1 M / s, position x1 = 14, y1 = 6, z1 = 2.
[0159] 2. Chassis controller T2, B2 = 0.3 m / s, position x2 = 13, y2 = 3, z2 = 2.
[0160] 3. ADAS domain controller T3, B3 = 5M / s, position x3 = 2, y3 = 6, z3 = 2.
[0161] 4. Cockpit controller T4, B4 = 3M / a, position x4 = 12, y4 = 4, z4 = 3.
[0162] 5. TBOXT5, B5 = 10 M / s, position x5 = 12, y5 = 3, z5 = 3.
[0163] 6. Dashcam camera T6, B6 = 8M / s, position x6 = 13, y6 = 4, z6 = 4.
[0164] 7. Front left camera T7, B7 = 32M / s, position x7 = 15, y7 = 7, z7 = 3.
[0165] 8. Right front camera T8, B8 = 32M / s, position x8 = 15, y8 = 1, z8 = 3.
[0166] 9. Left rear camera T9, B9 = 32M / s, position x9 = 1, y9 = 7, z9 = 3.
[0167] 10. Right rear camera T 10 B 10 = 32M / s, position x 10 =1, y 10 =1,z 10 =3.
[0168] 11. Front camera T 11 B 11 = 32M / s, position x 11 =15, y 11 =4, z 11 =3.
[0169] 12. Rear camera T 12 B 12 = 32M / s, position x 12 =1, y 12 =4, z 12 =3.
[0170] 13. Ambient Light T 13 B 13 = 1M / s, position x 13 =13, y13 =2,z 13 =4.
[0171] In the above description, B1~B 13 Given the actual traffic volume of each terminal node, the actual traffic demand of the vehicle is obtained using equation (3). Combined with the fact that the bandwidth of a single network node is 100M, the number of network nodes that need to be deployed is 3.
[0172] Then, based on equation (4), the center point of the network node (8.8, 4, 2.9) is calculated, and the positions of the three network nodes are determined to be (9.2, 4, 2.9), (8.4, 3.8, 2.9), and (8.4, 4.2, 2.9), respectively. Figure 6 N1 to N3 are shown in the figure.
[0173] After the hardware deployment in the vehicle communication network is completed, the service center server and monitoring center are installed in the cockpit domain controller T4, and the service center agent and monitoring center are installed on the hardware platforms T1, T2, T3, and T5. DDS and TSN components are then deployed on T1, T2, T3, T4, and T5.
[0174] Register services T6 and T13 to the service center server T4, and register services T6, T7, T8, T9, T10, T11, and T12 to the service center agent T3.
[0175] When T3 simultaneously calls the T6 dashcam service and the ADAS services of T7 to T13, the monitoring center finds that T3 has insufficient resources (e.g., TSN task failure or DDS task timeout), and notifies the service center server. The service center server finds that the T6 service can be provided on T4, and then instructs the T3 service center agent to stop the T6 service and start the T6 service on T4.
[0176] This embodiment also provides a vehicle communication system deployment apparatus and a vehicle communication device, which are used to implement the above embodiments and preferred embodiments, and will not be repeated for details already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0177] This embodiment provides a deployment device for a vehicle communication system, such as... Figure 7 As shown, it includes:
[0178] The information acquisition module 701 is used to acquire the number of terminal nodes in the target vehicle and the traffic information of the terminal nodes, wherein the traffic information includes the type and magnitude of traffic.
[0179] The traffic attribute determination module 702 is used to determine the traffic attribute of the traffic based on the traffic type, wherein the traffic attribute includes continuous traffic and non-continuous traffic.
[0180] The traffic volume determination module 703 is used to determine the actual traffic volume of the terminal node based on the traffic attributes and the traffic volume, so as to obtain the actual traffic demand of the target vehicle.
[0181] The network node determination module 704 is used to determine the number of network nodes based on the actual demand traffic and the bandwidth of the network nodes.
[0182] The communication system determination module 705 is used to determine the vehicle communication system based on the number of network nodes and the terminal nodes.
[0183] In some alternative implementations, the flow rate determination module 703 includes:
[0184] The adjustment term unit is used to obtain the flow adjustment term of the flow based on the flow attribute.
[0185] The actual traffic determination unit is used to determine the actual traffic volume of the terminal node based on the traffic adjustment item and the traffic volume.
[0186] The actual demand flow determination unit is used to obtain the actual demand flow of the target vehicle based on the number of terminal nodes and the actual flow size.
[0187] In some alternative implementations, the adjustment unit includes:
[0188] The first adjustment term subunit is used to obtain a flow adjustment term for the non-continuous flow by utilizing the flow priority of the non-continuous flow if the flow attribute is non-continuous flow, wherein the flow adjustment term for the non-continuous flow is less than 1.
[0189] The second adjustment term subunit is used to determine the flow adjustment term of the continuous flow as 1 if the flow attribute is continuous flow.
[0190] In some alternative implementations, the network node determination module 704 includes:
[0191] The minimum value acquisition unit is used to acquire the minimum number of network nodes.
[0192] The demand quantity determination unit is used to determine the demand quantity of the network nodes based on the actual demand traffic and the bandwidth of the network nodes.
[0193] The network node quantity determination unit is used to determine the number of network nodes by taking the minimum value of the quantity and the maximum value of the required quantity.
[0194] In some alternative implementations, the communication system determination module 705 includes:
[0195] The topology determination unit is used to form a ring topology structure for all the network nodes based on the number of network nodes.
[0196] A connection unit is used to connect the terminal node to at least two of the network nodes to obtain the vehicle communication system.
[0197] In some optional implementations, both the network node and the terminal node are equipped with a monitoring center and a service center. The monitoring center is used to monitor the local resource status, and the service center is used to manage the registered services in the terminal node to schedule the registered services.
[0198] This embodiment provides a vehicle communication device applied in a terminal node of a vehicle communication system, which is based on the above... Figures 1 to 3 The vehicle communication system deployment method provided in any of the embodiments shown is obtained, such as Figure 8 As shown, the vehicle communication device includes:
[0199] The resource status acquisition module 801 is used by the monitoring center in the terminal node to obtain the local resource status.
[0200] The message sending module 802 is used to send the first data distribution service message from the monitoring center to the service center's server if local resources are insufficient.
[0201] The instruction receiving module 803 is used by the client of the service center in the terminal node to receive the service degradation instruction issued by the server of the service center, so as to schedule the registered services locally. The service degradation instruction is determined based on the traffic priority on the terminal node.
[0202] In some alternative implementations, the vehicle communication device further includes:
[0203] The broadcast module is used by the client of the service center to broadcast the second data distribution service message of the registered services locally. The server of the service center is used to store the registered services for service scheduling.
[0204] In this embodiment, the vehicle communication system deployment device and the vehicle communication device are presented in the form of functional units. Here, a unit refers to an ASIC circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0205] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0206] This invention also provides a vehicle, including a vehicle body and a vehicle communication system. The vehicle communication system is based on the above... Figures 1 to 3 The method for deploying the vehicle communication system in the illustrated embodiment is obtained, and is based on... Figure 5 The vehicle communication method of the illustrated embodiment is used for communication.
[0207] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0208] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for deploying a vehicle communication system, characterized in that, The method includes: The number of terminal nodes in the target vehicle and the traffic information of the terminal nodes are obtained, wherein the traffic information includes the type and magnitude of traffic. The traffic attributes of the traffic are determined based on the traffic type, and the traffic attributes include continuous traffic and non-continuous traffic; Based on the traffic attributes and the traffic volume, the actual traffic volume of the terminal node is determined to obtain the actual traffic demand of the target vehicle; The number of network nodes is determined based on the actual required traffic volume and the bandwidth of the network nodes. The vehicle communication system is determined based on the number of network nodes and the terminal nodes.
2. The method according to claim 1, characterized in that, The step of determining the actual traffic volume of the terminal node based on the traffic attributes and the traffic volume, so as to obtain the actual traffic demand of the target vehicle, includes: The flow regulation item for the flow is obtained based on the flow attributes; Based on the traffic adjustment item and the traffic volume, the actual traffic volume of the terminal node is determined; Based on the number of terminal nodes and the actual traffic volume, the actual traffic demand of the target vehicle is obtained.
3. The method according to claim 2, characterized in that, The flow adjustment item obtained based on the flow attribute includes: If the traffic attribute is non-continuous traffic, the traffic adjustment term of the non-continuous traffic is obtained by using the traffic priority of the non-continuous traffic, and the traffic adjustment term of the non-continuous traffic is less than 1. If the flow attribute is continuous flow, the flow adjustment term for the continuous flow is set to 1.
4. The method according to claim 1, characterized in that, Determining the number of network nodes based on the actual traffic demand and the bandwidth of the network nodes includes: Find the minimum number of network nodes; Based on the actual traffic demand and the bandwidth of the network nodes, determine the required number of network nodes; The minimum value of the quantity and the maximum value of the required quantity are determined as the number of network nodes.
5. The method according to claim 1, characterized in that, Determining the vehicle communication system based on the number of network nodes and the number of terminal nodes includes: Based on the number of network nodes, all network nodes are formed into a ring topology; The terminal node is connected to at least two of the network nodes to obtain the vehicle communication system.
6. The method according to any one of claims 1 to 5, characterized in that, Both the network nodes and the terminal nodes are equipped with a monitoring center and a service center. The monitoring center is used to monitor the local resource status, and the service center is used to manage the registered services in the terminal nodes and schedule the registered services.
7. A vehicle communication method, characterized in that, In a terminal node of a vehicle communication system, wherein the vehicle communication system is obtained by the method according to any one of claims 1 to 6, the vehicle communication method includes: The monitoring center in the terminal node obtains the local resource status; If the local resources are insufficient, the monitoring center sends a first data distribution service message to the server of the service center; The client of the service center in the terminal node receives a service degradation instruction issued by the server of the service center to schedule the registered services locally. The service degradation instruction is determined based on the traffic priority on the terminal node.
8. The method according to claim 7, characterized in that, The vehicle communication method further includes: The client of the service center broadcasts a second data distribution service message for the registered services locally. The server of the service center stores the registered services for service scheduling.
9. A vehicle, characterized in that, include: Vehicle body; A vehicle communication system, wherein the vehicle communication system is obtained by the deployment method of the vehicle communication system according to any one of claims 1 to 6, and the vehicle communication system communicates according to the vehicle communication method according to claim 7 or 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the deployment method of the vehicle communication system according to any one of claims 1 to 6, or to perform the vehicle communication method according to claim 7 or 8.
Citation Information
Patent Citations
Switch and configuration method thereof
CN101471857A
Automotive electronic system architecture
CN109116777A