Vehicle-mounted device, communication system, and data transmission method
By using the ant colony algorithm to optimize the transmission path in the vehicle's on-board equipment and constructing a wired distributed network, the problem of single data transmission path and limited bandwidth in the vehicle-mounted equipment communication system in the existing technology has been solved, and more efficient data transmission and more efficient data transmission have been achieved. The low computational load of the electronic control unit improves the safety and responsiveness of the system.
Patent Information
- Application Number
- CN202010200289.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-03-20
AI Technical Summary
The communication system of the existing motor vehicle on-board equipment uses a star network structure, which causes the electronic control unit to process a large amount of data. The data transmission path is single and the bandwidth is limited. This may lead to data packet loss and reduced throughput, affect the abnormal interruption time processing performance, and even cause security problems. Hidden danger.
The ant colony algorithm is used to determine the optimal transmission path between on-board equipment, and a wired distributed network structure is constructed. The ant colony algorithm is used to optimize the data transmission path, reduce the computational load of the electronic control unit, bypass the electronic control unit for some data transmission, and improve the data transmission rate. transmission efficiency.
It optimizes the data transmission path between vehicle-mounted devices, reduces the computational load of the electronic control unit, improves data transmission efficiency, reduces data packet loss and delay, enhances the system's response capability, and ensures security.
Smart Images

Figure CN113497761B
Abstract
Description
Technical Field
[0001] The invention relates to a data transmission method for a communication system of a plurality of on-board devices on a motor vehicle, and a corresponding communication system and an on-board device. Background Art
[0002] It is known that on-board devices on motor vehicles communicate with each other through on-board Ethernet. The existing on-board device communication systems are mostly star network structures. Usually, with one or more electronic control units as the center, other on-board devices are interconnected with the electronic control unit to achieve data transmission. This results in the electronic control unit needing to process a large amount of data. In addition, the data transmission path between on-board devices is relatively simple.
[0003] As the number of safety, auxiliary and entertainment devices in vehicle communication systems continues to increase, the data transmission between vehicle devices is becoming more and more numerous and complex. Vehicle communication systems need to provide a variety of data transmission services, and different data transmission services have different requirements for service quality.
[0004] The bandwidth resources of automotive Ethernet are very limited, and the unreasonable planning of data transmission paths between vehicle devices, coupled with the limited processing performance of electronic control units, may lead to packet loss and reduced throughput. This also has a negative impact on the performance of abnormal interrupt time processing, and even leads to safety issues due to untimely response. Summary of the invention
[0005] The object of the present invention is to provide a data transmission method for a communication system of multiple on-board devices on a motor vehicle, as well as a communication system and an on-board device, so as to better meet the data transmission requirements between the on-board devices.
[0006] According to a first aspect of the present invention, a data transmission method for a communication system of multiple on-board devices on a motor vehicle is provided, wherein the communication system has a wired distributed network structure, and the data transmission method comprises the following steps:
[0007] - using an ant colony algorithm to determine at least one optimized transmission path from at least one first vehicle-mounted device among the plurality of vehicle-mounted devices to at least one second vehicle-mounted device among the plurality of vehicle-mounted devices;
[0008] -Perform corresponding data transmission services according to the determined optimized transmission path.
[0009] According to a second aspect of the present invention, a communication system for a plurality of on-board devices in a motor vehicle is provided, wherein the communication system is capable of executing the data transmission method according to the present invention.
[0010] According to a third aspect of the present invention, there is provided a vehicle-mounted device for executing the data transmission method according to the present invention.
[0011] The positive effects of the present invention are: optimizing the data transmission path between the on-board devices on the motor vehicle and reducing the computational complexity of the electronic control unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The present invention will be described in more detail below with reference to the accompanying drawings, so that the principles, features and advantages of the present invention can be better understood. The accompanying drawings include:
[0013] Figure 1 A schematic diagram showing a structure of a communication system of multiple on-board devices on a motor vehicle according to an exemplary embodiment of the present invention is shown;
[0014] Figure 2 Two data transmission paths in an exemplary embodiment according to the present invention are exemplarily shown. DETAILED DESCRIPTION
[0015] In order to make the technical problems, technical solutions and beneficial technical effects to be solved by the present invention more clearly understood, the present invention will be further described in detail below in conjunction with the accompanying drawings and multiple exemplary embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the scope of protection of the present invention.
[0016] Figure 1 A schematic diagram of the structure of a communication system of multiple on-board devices on a motor vehicle according to an exemplary embodiment of the present invention is shown. The communication system has a distributed network structure with wired connections. This means that among the multiple on-board devices, each on-board device is directly connected to at least two other on-board devices via a data line capable of transmitting data. The communication system is based on the Ethernet communication protocol, for example. Figure 1 In the diagram, each node represents an on-board device on a motor vehicle, and the lines between the nodes represent wired connections between the on-board devices. Figure 1 17 nodes are shown as an example. However, the communication system according to the present invention may include more or fewer vehicle-mounted devices.
[0017] The multiple vehicle-mounted devices may include at least one of the following devices: an electronic control unit, a sensor, and an actuator. The electronic control unit may include a VCU and / or an ECU. The sensor may have certain computing and storage functions. The multiple vehicle-mounted devices may include, for example, an intelligent sensor with a microprocessor, and may include, in particular, multiple intelligent sensors. For example, the multiple vehicle-mounted devices may include an electronic control unit, a rain sensor, a wiper, a window lift controller, and an intelligent voice player, etc.
[0018] The motor vehicle may also be equipped with other on-board devices connected to one of the plurality of on-board devices in a wired or wireless manner.
[0019] A data transmission method for a communication system of a plurality of on-board devices in a motor vehicle may include the following steps:
[0020] - using an ant colony algorithm to determine at least one optimized transmission path from at least one first vehicle-mounted device among the plurality of vehicle-mounted devices to at least one second vehicle-mounted device among the plurality of vehicle-mounted devices;
[0021] -Perform corresponding data transmission services according to the determined optimized transmission path.
[0022] Thus, the data transmission path between the onboard devices on the motor vehicle can be optimized and at the same time, the amount of calculation of the electronic control unit on the motor vehicle can be reduced.
[0023] For example, when the rain sensor detects rainfall, data can be transmitted from the rain sensor to the wipers, window lift controller, and smart voice player, respectively, so as to turn on the wipers, raise the windows, and play voice reminder information. Figure 1 In FIG, it is assumed that node 1 represents a rain sensor and node 7 represents a windshield wiper. An optimized transmission path from the rain sensor to the windshield wiper determined by using the ant colony algorithm passes through the following nodes in sequence: node 1, node 3, node 4, and node 7.
[0024] According to an exemplary embodiment of the present invention, at least one of the optimized transmission paths may not need to pass through the electronic control unit. Figure 1 The node 16 in the figure may represent an electronic control unit, and the data transmission service from the rain sensor to the wiper does not need to pass through the electronic control unit. In a specific application environment such as a communication system on a motor vehicle, bypassing the transmission path of the electronic control unit can reduce the amount of calculation of the electronic control unit. For some data transmission services, when determining the optimized transmission path, the optimized transmission path can be made to bypass the electronic control unit in a targeted manner.
[0025] According to an exemplary embodiment of the present invention, different objective functions are used in the ant colony algorithm according to different service quality requirements of the data transmission service to be performed. Different data transmission services between vehicle-mounted devices have different requirements for service quality. For example, some audio and video streaming services require high bandwidth consumption, low node computing power consumption, and low latency; alarm services require low latency, but the requirements for bandwidth consumption and node computing power consumption are not strict. Node computing power consumption can be characterized, for example, by means of the number of occupied threads of the node. Therefore, according to the different service quality requirements of the data transmission service to be performed, different objective functions are used in the ant colony algorithm, so as to optimize the transmission paths of various data in a targeted manner while ensuring the quality of service.
[0026] According to an exemplary embodiment of the present invention, the bandwidth consumption ω1 of the path, the node computing power consumption ω2, and the delay ω3 are used as variables of the objective function. Corresponding weight coefficients k1, k2, and k3 are set for these three variables, thereby constructing the objective function of ant colony optimization.
[0027] The objective function is expressed, for example, by the following formula:
[0028] S=k1g1(ω1)+k2 g2(ω2)+k3 g3(ω3)
[0029] Among them, g i (ω i ) indicates that the independent variable is ω i function of, integer i∈{1, 2, 3}.
[0030] According to different service quality requirements, by adjusting the corresponding weight coefficients k1, k2 and k3, different targeted objective functions can be obtained.
[0031] When the ant colony algorithm is used to determine the optimized transmission path, the plurality of vehicle-mounted devices may be used as nodes. The optimization purpose of the ant colony algorithm may be simplified to finding a path from one node to another node that minimizes the value of S.
[0032] According to an exemplary embodiment of the present invention, the bandwidth consumption ω1, the node computing power consumption ω2, and the delay ω3 are normalized. For example, the corresponding Z-score normalization algorithm is used to obtain
[0033] g i (ω i ) For example, it can be set as follows:
[0034]
[0035] According to an exemplary embodiment of the present invention, the objective function of the ant colony algorithm may be related to the type of vehicle-mounted device to be used for data transmission services. For example, the video data stream sent from the dashcam does not require high node computing power consumption and latency, while the video data stream sent from the vehicle-mounted radar camera has high bandwidth consumption and latency requirements.
[0036] In each iteration of the ant colony algorithm, after all ants have found a path, the pheromone concentration of the road sections between nodes is updated. For example, in the θth iteration, all the paths found by the ant colony are sorted according to the optimization effect represented by the objective function, and different amounts of pheromone concentration are added to the road sections in each path according to the sorting. For example, the paths can be sorted by the size of the S value. The smaller the S value, the greater the pheromone concentration increment. This can guide the ants to eventually find the optimized path based on the pheromone concentration.
[0037] According to an exemplary embodiment of the present invention, in the θth iteration, a part of the preferred paths with the best optimization effect represented by the objective function is selected, and the pheromone concentration on all sections in the preferred paths is additionally increased. For example, according to the golden section, among the paths sorted from small to large according to the S value, the paths ranked in the top 61.8% (the number of paths is rounded) are selected as the preferred paths. This can speed up the convergence speed of the ant colony algorithm and avoid falling into a local solution due to a sharp increase in the pheromone concentration.
[0038] According to an exemplary embodiment of the present invention, if the pheromone concentration on a road section is greater than a set pheromone concentration threshold, the pheromone concentration on the road section is additionally increased. For example, in the θth iteration, the pheromone concentration threshold is set to τ on (θ). Pheromone concentration threshold τ on (θ) can be, for example, a function of the pheromone concentration on the road segment after the last iteration, such as a constant coefficient continuous function. The pheromone concentration of the road segment between the nodes is compared with the pheromone concentration threshold τ on (θ) is compared. If the pheromone concentration τ on the road section from node i to node j i,j (θ) is greater than the pheromone concentration threshold τ on (θ), then the pheromone concentration on the section from node i to node j is additionally increased.
[0039] In order to overcome the defect that the parameters of the ant colony algorithm are too dependent on human experience, according to an exemplary embodiment of the present invention, before using the ant colony algorithm to determine the optimized transmission path, a differential evolution algorithm is used to determine at least one of the following parameters of the ant colony algorithm: pheromone importance factor α, heuristic factor β, and pheromone volatility coefficient ρ. The ant colony algorithm optimized by the differential evolution algorithm can have a faster convergence speed.
[0040] According to an exemplary embodiment of the present invention, for a certain data transmission service from one of the first in-vehicle devices to one of the second in-vehicle devices, the determined optimized transmission path includes an optimal transmission path and at least one suboptimal transmission path. Figure 2Two paths from node 1 to node 7 are shown as examples, wherein the optimal transmission path passes through node 1, node 3, node 4 and node 7 in sequence, and the suboptimal transmission path passes through node 1, node 2, node 9 and node 7 in sequence. During vehicle operation, the corresponding on-board equipment can perform data transmission services along the optimal transmission path or the suboptimal transmission path according to actual working conditions.
[0041] According to an exemplary embodiment of the present invention, the step of determining the optimized transmission path by using the ant colony algorithm may be executed in an electronic control unit in the communication system or in a computing device outside the communication system.
[0042] According to an exemplary embodiment of the present invention, information about the optimized transmission path is stored in an onboard device in the communication system that is associated with the corresponding optimized transmission path. This is particularly beneficial for achieving reliable communication during vehicle operation.
[0043] According to an exemplary embodiment of the present invention, information about an optimized transmission path that does not need to pass through the electronic control unit may be stored in an electronic control unit in a communication system. The information about the optimized transmission path stored in the electronic control unit may be sent to another on-board device in the communication system and stored in the other on-board device. This step may be performed, for example, during the assembly of the vehicle. In practice, the various on-board devices of the vehicle may come from different manufacturers. These on-board devices, such as various smart sensors, may be connected to the electronic control unit, and then obtain information about the optimized transmission path from the electronic control unit to achieve initialization.
[0044] Although specific embodiments of the present invention are described in detail herein, they are provided for the purpose of explanation only and should not be considered to limit the scope of the present invention. Various substitutions, changes and modifications may be conceived without departing from the spirit and scope of the present invention.
Claims
1. A data transmission method for a communication system of multiple on-board devices on a motor vehicle, wherein the communication system has a wired distributed network structure, and the data transmission method comprises the following steps: - using an ant colony algorithm to determine at least one optimized transmission path from at least one first vehicle-mounted device among the plurality of vehicle-mounted devices to at least one second vehicle-mounted device among the plurality of vehicle-mounted devices, wherein when using the ant colony algorithm to determine the optimized transmission path, the plurality of vehicle-mounted devices are used as nodes, and after all ants have found a path in each iteration, the pheromone concentration of the road section between the nodes is updated; and - Provide corresponding data transmission services according to the determined optimized transmission path, in, According to the different quality of service requirements of the data transmission service to be carried out, different objective functions are used in the ant colony algorithm. The variables in the objective function include: bandwidth consumption of the path, node computing power consumption of the path, and delay of the path. According to the quality of service requirements of the data transmission service, weights are assigned to the variables in the objective function; and / or data normalization is performed on the variables in the objective function.
2. The data transmission method according to claim 1, in, When updating the pheromone concentration of the road section between nodes, If the pheromone concentration on a road section is greater than a set pheromone concentration threshold, then the pheromone concentration on the road section is additionally increased; and / or A part of the preferred path with the best optimization effect represented by the objective function is selected, and the pheromone concentration on all sections in the preferred path is additionally increased.
3. The data transmission method according to claim 1 or 2, in, Before using the ant colony algorithm to determine the optimized transmission path, a differential evolution algorithm is used to determine at least one of the following parameters of the ant colony algorithm: pheromone importance factor α, inspiration factor β, and pheromone volatility coefficient ρ.
4. The data transmission method according to claim 1 or 2, in, The method has at least one of the following features: At least one of the optimized transmission paths does not need to pass through an electronic control unit in the communication system; For a data transmission service from one of the first onboard devices to one of the second onboard devices, the determined optimized transmission path includes an optimal transmission path and at least one suboptimal transmission path; as well as The step of determining the optimized transmission path by using the ant colony algorithm is performed in an electronic control unit in the communication system or in a computing device outside the communication system.
5. The data transmission method according to claim 1 or 2, in, storing information about the optimized transmission path in an onboard device in the communication system associated with the corresponding optimized transmission path; and / or Information about optimized transmission paths that do not need to pass through the electronic control unit is stored in the electronic control unit in the communication system.
6. A communication system for multiple on-board devices on a motor vehicle, in, The communication system comprises a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the processor is enabled to perform the data transmission method according to any one of claims 1 to 5.
7. The communication system according to claim 6, in, The plurality of on-board devices include intelligent sensors having a microprocessor.
8. A vehicle-mounted device, in, The in-vehicle device comprises a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the processor is enabled to perform the data transmission method according to any one of claims 1 to 5.
