Vehicle bus route control method and device and computer equipment
By obtaining and analyzing the dynamic routing table of the current working conditions of the vehicle, the problem of poor real-time and reliability of traditional vehicle bus routing control methods is solved, and more efficient routing control and data transmission is achieved.
Patent Information
- Application Number
- CN202411637161.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-02-14
AI Technical Summary
The traditional vehicle bus routing control method has problems of poor real-time and reliability.
By obtaining the dynamic routing table of the current working conditions of the vehicle, counting the node parameter information of each node in the vehicle topology diagram, determining whether there is a communication failure between the current node and the target next node, and determining whether to send message data based on the target bus load rate and node function parameter array.
It improves the real-time and reliability of vehicle bus routing control, ensuring that the current node with the highest routing priority can obtain bus access to send messages when the bus load rate is low and there is no communication failure.
Smart Images

Figure CN119449703A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automotive electronic systems, and in particular to a vehicle bus routing control method, device, computer equipment and storage medium. Background Art
[0002] As a widely used communication protocol in modern automobile and industrial control fields, the CAN (Control Area Network) uses broadcasting to transmit vehicle information, which can easily realize the interaction of communication data between ECUs. In order to ensure safe and reliable communication, the load rate of the CAN bus is generally required to be kept below 30% to ensure the high real-time routing of the gateway.
[0003] However, traditional vehicle bus routing control methods have problems such as poor real-time performance or reliability. Summary of the invention
[0004] Based on this, it is necessary to provide a vehicle bus routing control method, device, computer equipment and storage medium that can improve real-time performance and reliability in response to the above technical problems.
[0005] In a first aspect, a vehicle bus routing control method is provided, the method comprising:
[0006] A dynamic routing table for obtaining the current working condition of the vehicle; the dynamic routing table is used to count the node parameter information of each node in the vehicle topology diagram; the node parameter information includes the bus load rate of the corresponding node, the routing priority from the corresponding node to the corresponding next node, the message data from the corresponding node to the corresponding next node, the communication fault diagnosis parameters from the corresponding node to the corresponding next node, and the node function parameter array from the corresponding node to the corresponding next node; the node function parameter array includes the function parameters of each node from the corresponding node to the corresponding next node;
[0007] Obtain the current node and the corresponding target next node of the statistical vehicle topology diagram, obtain the target fault diagnosis parameter after querying the node parameter information corresponding to the current node according to the current node and the target next node, and judge whether there is a communication fault from the current node to the target next node according to the target fault diagnosis parameter; the target next node is the next node corresponding to the current highest routing priority of the current node; the target fault diagnosis parameter is the communication fault diagnosis parameter corresponding to the current node to the target next node;
[0008] If there is no communication failure between the current node and the target next node, the target bus load rate is obtained after querying the node parameter information corresponding to the current node according to the current node, and it is determined whether the target bus load rate is greater than the load rate threshold; the target bus load rate is the bus load rate of the current node;
[0009] If the target bus load rate is less than the load rate threshold, the current node is controlled to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node.
[0010] In one of the embodiments, after controlling the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, it also includes: obtaining the routing priorities of the current node after querying and processing the node parameter information corresponding to the current node according to the current node, judging whether there are the routing priorities after elimination according to the routing priorities of the current node; the routing priorities after elimination are the routing priorities of the current node after eliminating the current highest routing priority of the current node; if there are the routing priorities after elimination, updating the current highest routing priority of the current node according to the routing priorities after elimination, updating the target next node according to the current highest routing priority of the current node, and returning to obtaining the target fault diagnosis parameters after querying and processing the node parameter information corresponding to the current node according to the current node and the target next node.
[0011] In one of the embodiments, the node parameter information further includes a node name of the corresponding node, a node address of the corresponding node, a node name of a next node of the corresponding node, and a node address of a next node of the corresponding node;
[0012] Among them, after controlling the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, it also includes: if the routing priorities after elimination do not exist, the current node is updated to the target next node, and the target next node corresponding to the current node is obtained after querying and processing the node parameter information corresponding to the current node according to the current node, and returning to the target fault diagnosis parameters obtained after querying and processing the node parameter information corresponding to the current node according to the current node and the target next node.
[0013] In one of the embodiments, the method also includes: if there is a communication failure from the current node to the target next node, the routing priority corresponding to the current node to the target next node is adjusted to the current lowest routing priority of the current node, and the routing priorities of the current node are obtained after querying the node parameter information corresponding to the current node according to the current node.
[0014] In one of the embodiments, the method also includes: if the target bus load rate is greater than or equal to the load rate threshold, the routing priority corresponding to the current node to the target next node is adjusted to a second target routing priority, and returned to the routing priorities of the current node obtained after querying the node parameter information corresponding to the current node according to the current node; wherein the second routing priority is a routing priority one level lower than the current highest routing priority of the current node.
[0015] In one of the embodiments, a dynamic routing table of a vehicle's current operating condition is obtained, including: obtaining the vehicle's current operating condition, a vehicle topology diagram, and communication demand information of each node; analyzing the vehicle topology diagram and each communication demand information to obtain parameter information of each node; and generating a dynamic routing table based on the vehicle's current operating condition and the parameter information of each node.
[0016] In one of the embodiments, obtaining a dynamic routing table of the current working condition of the vehicle also includes: in response to an upload operation of a vehicle demand file, performing information screening and processing on the vehicle demand file to obtain a vehicle topology diagram and various communication demand information.
[0017] In one of the embodiments, obtaining a target next node corresponding to a current node includes: obtaining a current next node corresponding to the current node; obtaining a second target routing priority after querying and processing the node parameter information corresponding to the current node based on the current node and the current next node corresponding to the current node; wherein the second target routing priority is the routing priority from the current node to the current next node corresponding to the current node; determining whether the second target routing priority is the current highest routing priority of the current node; if the second target routing priority is the current highest routing priority of the current node, determining the current next node corresponding to the current node as the target next node; if the second target routing priority is not the current highest routing priority of the current node, determining the target next node according to the current highest routing priority of the current node.
[0018] In one of the embodiments, the method further includes: when controlling the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, monitoring and feeding back the target bus load rate and the target fault diagnosis parameters.
[0019] In a second aspect, a vehicle bus routing control device is provided, the device comprising a routing table acquisition module, a communication diagnosis module, a load judgment module and a data sending module.
[0020] Among them, the routing table acquisition module is used to obtain the dynamic routing table of the current working condition of the vehicle; the dynamic routing table is used to count the node parameter information of each node in the vehicle topology diagram; the node parameter information includes the bus load rate of the corresponding node, the routing priority from the corresponding node to the corresponding next node, the message data from the corresponding node to the corresponding next node, the communication fault diagnosis parameters from the corresponding node to the corresponding next node, and the node function parameter array from the corresponding node to the corresponding next node; the node function parameter array includes the node function parameters from the corresponding node to the corresponding next node; the communication diagnosis module is used to obtain the current node and the corresponding target next node of the statistical vehicle topology diagram, and obtain the target fault diagnosis parameters after querying the node parameter information corresponding to the current node according to the current node and the target next node. And according to the target fault diagnosis parameters, it is judged whether there is a communication fault from the current node to the target next node; the target next node is the next node corresponding to the current highest routing priority of the current node; the target fault diagnosis parameters are the communication fault diagnosis parameters corresponding to the current node to the target next node; the load judgment module is used to obtain the target bus load rate after querying and processing the node parameter information corresponding to the current node according to the current node if there is no communication fault from the current node to the target next node, and judge whether the target bus load rate is greater than the load rate threshold; the target bus load rate is the bus load rate of the current node; the data sending module is used to control the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node if the target bus load rate is less than the load rate threshold.
[0021] In a third aspect, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of any method in the above method embodiments are implemented.
[0022] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.
[0023] In the above-mentioned vehicle bus routing control method, device, computer equipment and storage medium, a dynamic routing table of the current working condition of the vehicle is obtained; the dynamic routing table is used to count the node parameter information of each node in the vehicle topology diagram; the node parameter information includes the bus load rate of the corresponding node, the routing priority from the corresponding node to the corresponding next node, the message data from the corresponding node to the corresponding next node, the communication fault diagnosis parameters from the corresponding node to the corresponding next node, and the node function parameter array from the corresponding node to the corresponding next node; the node function parameter array includes the node function parameters from the corresponding node to the corresponding next node; then, the current node and the corresponding target next node of the statistical vehicle topology diagram are obtained, and the target fault diagnosis parameters are obtained after querying and processing the node parameter information corresponding to the current node according to the current node and the target next node, and the current node to the target next node is judged according to the target fault diagnosis parameters. whether there is a communication fault between the nodes; the target next node is the next node corresponding to the current highest routing priority of the current node; the target fault diagnosis parameter is the communication fault diagnosis parameter corresponding to the current node to the target next node; then, if there is no communication fault between the current node and the target next node, the target bus load rate is obtained after querying and processing the node parameter information corresponding to the current node according to the current node, and it is judged whether the target bus load rate is greater than the load rate threshold; the target bus load rate is the bus load rate of the current node; finally, if the target bus load rate is less than the load rate threshold, the current node is controlled to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, so that when the bus load rate is low and there is no communication fault, the current node with the highest routing priority can obtain the bus access right to send messages, thereby improving real-time performance and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 An application environment diagram of a vehicle bus routing control method in one embodiment;
[0025] Figure 2 A first flow chart of a vehicle bus routing control method in one embodiment;
[0026] Figure 3 A schematic diagram of a process for obtaining a dynamic routing table of a vehicle's current operating condition in one embodiment;
[0027] Figure 4 A schematic diagram of a process of obtaining a target next node corresponding to a current node in an embodiment;
[0028] Figure 5 A second flow chart of a vehicle bus routing control method in one embodiment;
[0029] Figure 6 A third flow chart of a vehicle bus routing control method in one embodiment;
[0030] Figure 7 A fourth flow chart of a vehicle bus routing control method in one embodiment;
[0031] Figure 8 is a structural block diagram of a vehicle bus routing control device in one embodiment;
[0032] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0034] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0036] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
[0037] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0038] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.
[0039] The vehicle bus routing control method provided by the present disclosure can be applied to Figure 1 In the vehicle 100 shown, the vehicle 100 may include an onboard terminal 110. The onboard terminal 110 includes at least one memory 20 and at least one processor 10, wherein the at least one memory 20 stores a computer program, and when the computer program is executed by the at least one processor 10, the real-time tracking method of vehicle location information according to the exemplary embodiment of the present disclosure is executed. It can be understood that the onboard terminal 110 is not necessarily a single electronic device, but may also be any collection of devices or circuits that can execute the above-mentioned computer program alone or in combination.
[0040] In the vehicle terminal 110, the processor 10 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example but not limitation, the processor 10 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array or a network processor, etc.
[0041] In the vehicle-mounted terminal 110, the processor 10 can run a computer program stored in the memory 20, which can be divided into one or more modules / units (such as computer program 1, computer program 2, ...), and the one or more modules / units are stored in the memory 20 and executed by the processor 10 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device. For example, the detail compensation model in the embodiment of the present disclosure can be one of the modules / units.
[0042] The memory 20 may be integrated with the processor 10, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory may include a separate device, such as an external disk drive, a storage array, or any other storage device that may be used by a database system. The memory and processor may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor can read files stored in the memory.
[0043] In addition, the vehicle terminal 110 may also include a display device (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the vehicle terminal 110 may be connected to each other via a bus and / or a network.
[0044] In a specific example, the vehicle terminal 110 may be, but is not limited to, a vehicle controller (VCU). The above is only a specific example and is flexibly configured according to user needs in actual applications and is not limited here.
[0045] In one embodiment, Figure 2 As shown, a vehicle bus routing control method is provided, and the method is applied to Figure 1 The vehicle-mounted terminal 110 is taken as an example to illustrate, including the following steps 201 to 204.
[0046] Step 201, obtaining a dynamic routing table of the current working condition of the vehicle.
[0047] Among them, the vehicle operating conditions include static state, started but not driven state and driving state; the current vehicle operating condition is the vehicle operating condition at the current moment. Specifically, the dynamic routing table is used to count the node parameter information of each node in the vehicle topology diagram. It is understandable that the node parameter information of each node in the dynamic routing table will be dynamically updated in real time. The vehicle topology diagram is used to describe the entire topology of the vehicle network. Different nodes correspond to different vehicle equipment. In a specific example, the vehicle equipment includes a vehicle stability system, an electric power steering module, an airbag module, an engine control system, a battery sensor, a dual-clutch transmission, a direction rotation sensor, a mobile headlight, an intelligent entry and start system, a steering column lock, a speed limit display system, an instrument, a power management system, a body controller, an automatic zoned air conditioner, 3G, DVD, a radio, GPS and a seat module audio and video entertainment system. The above is only a specific example, which is flexibly set according to user needs in actual applications and is not limited here.
[0048] Specifically, the node parameter information of each node includes the bus load rate of the corresponding node, the routing priority from the corresponding node to the corresponding next node, the message data from the corresponding node to the corresponding next node, the communication fault diagnosis parameters from the corresponding node to the corresponding next node, and the node function parameter array from the corresponding node to the corresponding next node. The node function parameter array includes the function parameters of each node from the corresponding node to the corresponding next node. Characterizing the function parameters of each node by the node function parameter array can reduce the number of times the node parameter information is sent and improve the bus utilization. The vehicle terminal 110 can obtain the dynamic routing table of the current working condition of the vehicle.
[0049] In a specific example, the node parameter information of each node also includes the node name of the corresponding node, the node address of the corresponding node, the node name of each next node of the corresponding node, and the node address of each next node of the corresponding node. Specifically, the node address is a node address code, and the smaller the node address code number, the higher the corresponding routing priority. Node function parameters include current monitoring values and voltage monitoring values, etc. In addition, the number of the next node of each node can be one or more. The above is only a specific example, which is flexibly set according to user needs in actual applications and is not limited here.
[0050] In one embodiment, if Figure 3 As shown, obtaining a dynamic routing table of the current working condition of the vehicle includes steps 301 to 303.
[0051] Step 301, obtaining the current working condition of the vehicle, the vehicle topology diagram and the communication demand information of each node.
[0052] Step 302: Analyze the vehicle topology diagram and each communication demand information to obtain parameter information of each node.
[0053] Step 303: Generate a dynamic routing table based on the current working condition of the vehicle and parameter information of each node.
[0054] Specifically, the vehicle terminal 110 obtains the current operating condition of the vehicle, the vehicle topology diagram and the communication demand information of each node; then, the vehicle topology diagram and the communication demand information are analyzed to obtain the parameter information of each node; then, a dynamic routing table is generated according to the current operating condition of the vehicle and the parameter information of each node, thereby improving the convenience and efficiency of obtaining the dynamic routing table of the current operating condition of the vehicle.
[0055] In this embodiment, the current operating condition of the vehicle, the vehicle topology diagram and the communication demand information of each node are obtained; then, the vehicle topology diagram and the communication demand information are analyzed to obtain the parameter information of each node; then, a dynamic routing table is generated according to the current operating condition of the vehicle and the parameter information of each node, thereby improving the convenience and efficiency of obtaining the dynamic routing table of the current operating condition of the vehicle.
[0056] In one embodiment, if Figure 3 As shown, obtaining a dynamic routing table of the current working condition of the vehicle also includes step 300.
[0057] Step 300, in response to the upload operation of the vehicle demand file, the vehicle demand file is screened and processed to obtain the vehicle topology diagram and various communication demand information.
[0058] Specifically, when uploading the vehicle demand file, the vehicle terminal 110 performs information screening on the vehicle demand file to obtain the vehicle topology diagram and various communication demand information, thereby improving the efficiency and convenience of obtaining the vehicle topology diagram and various communication demand information.
[0059] In this embodiment, in response to the upload operation of the whole vehicle demand file, the whole vehicle demand file is screened and processed to obtain the whole vehicle topology structure diagram and various communication demand information, thereby improving the efficiency and convenience of obtaining the whole vehicle topology structure diagram and various communication demand information.
[0060] Step 202, obtain the current node and the corresponding target next node of the statistical vehicle topology diagram, query and process the node parameter information corresponding to the current node according to the current node and the target next node to obtain the target fault diagnosis parameters, and determine whether there is a communication fault from the current node to the target next node according to the target fault diagnosis parameters.
[0061] The target next node is the next node corresponding to the current highest routing priority of the current node. The target fault diagnosis parameter is the communication fault diagnosis parameter corresponding to the current node to the target next node.
[0062] Specifically, the vehicle terminal 110 obtains the current node and the corresponding target next node of the statistical vehicle topology structure diagram, obtains the target fault diagnosis parameters after querying and processing the node parameter information corresponding to the current node according to the current node and the target next node, and determines whether there is a communication failure from the current node to the target next node based on the target fault diagnosis parameters.
[0063] In one embodiment, if Figure 4 As shown, obtaining the target next node corresponding to the current node includes steps 401 to 405.
[0064] Step 401, obtaining the current next node corresponding to the current node.
[0065] Step 402: Query and process the node parameter information corresponding to the current node according to the current node and the current next node corresponding to the current node to obtain the second target routing priority.
[0066] Step 403: Determine whether the second target routing priority is the current highest routing priority of the current node.
[0067] Step 404: If the second target routing priority is the current highest routing priority of the current node, the current next node corresponding to the current node is determined as the target next node.
[0068] Step 405: If the second target routing priority is not the current highest routing priority of the current node, determine the target next node according to the current highest routing priority of the current node.
[0069] Among them, the second target routing priority is the routing priority from the current node to the current next node corresponding to the current node. Specifically, the current next node corresponding to the current node is obtained; then, the second target routing priority is obtained after querying and processing the node parameter information corresponding to the current node according to the current node and the current next node corresponding to the current node; then, it is determined whether the second target routing priority is the current highest routing priority of the current node; then, if the second target routing priority is the current highest routing priority of the current node, the current next node corresponding to the current node is determined as the target next node; finally, if the second target routing priority is not the current highest routing priority of the current node, the target next node is determined according to the current highest routing priority of the current node, which improves the efficiency and convenience of obtaining the target next node corresponding to the current node.
[0070] In this embodiment, the current next node corresponding to the current node is obtained; then, the second target routing priority is obtained after querying the node parameter information corresponding to the current node based on the current node and the current next node corresponding to the current node; then, it is determined whether the second target routing priority is the current highest routing priority of the current node; then, if the second target routing priority is the current highest routing priority of the current node, the current next node corresponding to the current node is determined as the target next node; finally, if the second target routing priority is not the current highest routing priority of the current node, the target next node is determined according to the current highest routing priority of the current node, thereby improving the efficiency and convenience of obtaining the target next node corresponding to the current node.
[0071] Step 203, if there is no communication failure from the current node to the target next node, the target bus load rate is obtained by querying the node parameter information corresponding to the current node according to the current node, and it is determined whether the target bus load rate is greater than the load rate threshold.
[0072] The target bus load rate is the bus load rate of the current node. When there is no communication failure from the current node to the target next node, the vehicle terminal 110 obtains the target bus load rate after querying the node parameter information corresponding to the current node according to the current node, and determines whether the target bus load rate is greater than the load rate threshold.
[0073] Step 204: if the target bus load rate is less than the load rate threshold, the current node is controlled to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node.
[0074] Specifically, when the target bus load rate is less than the load rate threshold, the vehicle terminal 110 controls the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, thereby achieving that when the bus load rate is low and there is no communication failure, the current node with the highest routing priority can obtain bus access rights to send messages, thereby improving real-time performance and reliability.
[0075] In the above-mentioned vehicle bus routing control method, a dynamic routing table of the current working condition of the vehicle is obtained; the dynamic routing table is used to count the node parameter information of each node in the vehicle topology diagram; the node parameter information includes the bus load rate of the corresponding node, the routing priority from the corresponding node to the corresponding next node, the message data from the corresponding node to the corresponding next node, the communication fault diagnosis parameters from the corresponding node to the corresponding next node, and the node function parameter array from the corresponding node to the corresponding next node; the node function parameter array includes the node function parameters from the corresponding node to the corresponding next node; then, the current node and the corresponding target next node of the statistical vehicle topology diagram are obtained, and the target fault diagnosis parameters are obtained after querying the node parameter information corresponding to the current node according to the current node and the target next node, and it is judged whether there is a connection from the current node to the target next node according to the target fault diagnosis parameters. Communication failure; the target next node is the next node corresponding to the current highest routing priority of the current node; the target fault diagnosis parameter is the communication fault diagnosis parameter corresponding to the current node to the target next node; then, if there is no communication failure from the current node to the target next node, the target bus load rate is obtained after querying the node parameter information corresponding to the current node according to the current node, and it is determined whether the target bus load rate is greater than the load rate threshold; the target bus load rate is the bus load rate of the current node; finally, if the target bus load rate is less than the load rate threshold, the current node is controlled to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, so that when the bus load rate is low and there is no communication failure, the current node with the highest routing priority can obtain bus access rights to send messages, thereby improving real-time performance and reliability.
[0076] In one embodiment, if Figure 5 As shown, after controlling the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, it also includes steps 501 and 502.
[0077] Step 501, querying and processing the node parameter information corresponding to the current node according to the current node to obtain the routing priorities of the current node, and judging whether there are the eliminated routing priorities according to the routing priorities of the current node.
[0078] Among them, the routing priorities after elimination are the routing priorities of the current node after eliminating the current highest routing priority of the current node; the vehicle terminal 110 obtains the routing priorities of the current node after querying and processing the node parameter information corresponding to the current node according to the current node, and determines whether there are routing priorities after elimination according to the routing priorities of the current node.
[0079] Step 502, if there are routing priorities after elimination, update the current highest routing priority of the current node according to the routing priorities after elimination, update the target next node according to the current highest routing priority of the current node, and return to the node parameter information corresponding to the current node according to the current node and the target next node to obtain the target fault diagnosis parameters after querying and processing.
[0080] Specifically, when there are various routing priorities after elimination, the vehicle terminal 110 updates the current highest routing priority of the current node according to the various routing priorities after elimination, updates the target next node according to the current highest routing priority of the current node, and returns to the step of obtaining the target fault diagnosis parameters after querying and processing the node parameter information corresponding to the current node according to the current node and the target next node, so that each routing priority is controlled by the vehicle bus routing in turn, which improves the convenience and efficiency of the vehicle bus reason control and ensures reliability.
[0081] In this embodiment, after querying the node parameter information corresponding to the current node according to the current node, the routing priorities of the current node are obtained, and it is determined whether there are routing priorities after elimination according to the routing priorities of the current node; then, if there are routing priorities after elimination, the current highest routing priority of the current node is updated according to the routing priorities after elimination, and the target next node is updated according to the current highest routing priority of the current node, and the target fault diagnosis parameters are obtained after querying the node parameter information corresponding to the current node according to the current node and the target next node, so that the routing priorities are controlled in turn by the vehicle bus routing, which improves the convenience and efficiency of the vehicle bus reason control and ensures reliability.
[0082] In one embodiment, if Figure 5 As shown, the node parameter information also includes a node name of the corresponding node, a node address of the corresponding node, a node name of the next node of the corresponding node, and a node address of the next node of the corresponding node;
[0083] Among them, after controlling the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, it also includes:
[0084] Step 503, if the routing priorities after elimination do not exist, the current node is updated to the target next node, and the target next node corresponding to the current node is obtained after querying the node parameter information corresponding to the current node according to the current node, and returns to the target fault diagnosis parameters obtained after querying the node parameter information corresponding to the current node according to the current node and the target next node.
[0085] Specifically, when the routing priorities after elimination do not exist, the vehicle-mounted terminal 110 updates the current node to the target next node, obtains the target next node corresponding to the current node after querying the node parameter information corresponding to the current node according to the current node, and returns to obtain the target fault diagnosis parameters after querying the node parameter information corresponding to the current node according to the current node and the target next node, thereby completing the update of the current node, improving the convenience and efficiency of vehicle bus reason control, and ensuring reliability.
[0086] In this embodiment, if the routing priorities after elimination do not exist, the current node is updated to the target next node, and the target next node corresponding to the current node is obtained after querying the node parameter information corresponding to the current node according to the current node, and then returned to the target fault diagnosis parameters obtained after querying the node parameter information corresponding to the current node according to the current node and the target next node, thereby completing the update of the current node, improving the convenience and efficiency of vehicle bus reason control, and ensuring reliability.
[0087] In one embodiment, if Figure 6 As shown, the method further includes step 601.
[0088] Step 601, if there is a communication failure from the current node to the target next node, the routing priority corresponding to the current node to the target next node is adjusted to the current lowest routing priority of the current node, and returned to the routing priorities of the current node obtained after querying the node parameter information corresponding to the current node according to the current node.
[0089] Specifically, when there is a communication failure from the current node to the next target node, the vehicle-mounted terminal 110 adjusts the routing priority corresponding to the current node to the next target node to the current lowest routing priority of the current node, and returns to the routing priorities of the current node obtained after querying the node parameter information corresponding to the current node according to the current node, thereby avoiding the communication failure from the current node to the next target node affecting the normal sending of message data by other nodes in the vehicle topology diagram, thereby improving reliability.
[0090] In this embodiment, if there is a communication failure from the current node to the next target node, the routing priority corresponding to the current node to the next target node is adjusted to the current lowest routing priority of the current node, and returned to the current node after querying the node parameter information corresponding to the current node to obtain the routing priorities of the current node, thereby avoiding the communication failure from the current node to the next target node affecting the normal sending of message data by other nodes in the vehicle topology diagram, thereby improving reliability.
[0091] In one embodiment, if Figure 6 As shown, the method further includes step 602.
[0092] Step 602, if the target bus load rate is greater than or equal to the load rate threshold, the routing priority corresponding to the current node to the target next node is adjusted to the second target routing priority, and returned to the routing priorities of the current node obtained after querying the node parameter information corresponding to the current node according to the current node.
[0093] Among them, the second routing priority is a routing priority one level lower than the current highest routing priority of the current node. When the target bus load rate is greater than or equal to the load rate threshold, the vehicle terminal 110 adjusts the routing priority corresponding to the current node to the target next node to the second target routing priority, and returns to the current node after querying the node parameter information corresponding to the current node to obtain the routing priorities of the current node, so that the current node sends the message data and node function parameter array corresponding to the current node to the target next node in the second routing priority, dynamically adjusts the route, avoids retransmission and collision caused by high load, reduces the probability of collision and retransmission, and improves reliability.
[0094] In this embodiment, if the target bus load rate is greater than or equal to the load rate threshold, the routing priority corresponding to the current node to the target next node is adjusted to the second target routing priority, and returned to the current node after querying the node parameter information corresponding to the current node to obtain the routing priorities of the current node, so that the current node sends the message data and node function parameter array corresponding to the current node to the target next node in the second routing priority, dynamically adjusts the route, avoids retransmission and collision caused by high load, reduces the probability of collision and retransmission, and improves reliability.
[0095] In one embodiment, if Figure 7 As shown, the method further includes step 701.
[0096] Step 701 , when controlling the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, monitor and feed back the target bus load rate and target fault diagnosis parameters.
[0097] Specifically, when the vehicle-mounted terminal 110 controls the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, it monitors and feeds back the target bus load rate and target fault diagnosis parameters, so that debugging and optimization can be performed based on the feedback target bus load rate and target fault diagnosis parameters, thereby ensuring the reliability and scalability of the technology.
[0098] In this embodiment, when controlling the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node, the target bus load rate and target fault diagnosis parameters are monitored and fed back, so that debugging and optimization can be performed based on the feedback target bus load rate and target fault diagnosis parameters, thereby ensuring the reliability and scalability of the technology.
[0099] It should be understood that although Figure 2-7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-7 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0100] Second, as Figure 8As shown, a vehicle bus routing control device is provided, which includes a routing table acquisition module 810, a communication diagnosis module 820, a load judgment module 830 and a data sending module 840.
[0101] Among them, the routing table acquisition module 810 is used to obtain the dynamic routing table of the current working condition of the vehicle; the dynamic routing table is used to count the node parameter information of each node in the vehicle topology diagram; the node parameter information includes the bus load rate of the corresponding node, the routing priority from the corresponding node to the corresponding next node, the message data from the corresponding node to the corresponding next node, the communication fault diagnosis parameters from the corresponding node to the corresponding next node, and the node function parameter array from the corresponding node to the corresponding next node; the node function parameter array includes the node function parameters from the corresponding node to the corresponding next node; the communication diagnosis module 820 is used to obtain the current node and the corresponding target next node of the vehicle topology diagram, and obtain the target fault diagnosis parameters after querying and processing the node parameter information corresponding to the current node according to the current node and the target next node. And according to the target fault diagnosis parameters, it is determined whether there is a communication fault from the current node to the target next node; the target next node is the next node corresponding to the current highest routing priority of the current node; the target fault diagnosis parameters are the communication fault diagnosis parameters corresponding to the current node to the target next node; the load judgment module 830 is used to obtain the target bus load rate after querying and processing the node parameter information corresponding to the current node according to the current node, and determine whether the target bus load rate is greater than the load rate threshold; the target bus load rate is the bus load rate of the current node; the data sending module 840 is used to control the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node if there is no communication fault from the current node to the target next node.
[0102] In one of the embodiments, the device also includes a node update module.
[0103] Among them, the node update module is used to obtain the various routing priorities of the current node after querying and processing the node parameter information corresponding to the current node according to the current node, and to determine whether there are routing priorities after elimination according to the routing priorities of the current node; the routing priorities after elimination are the routing priorities of the current node after eliminating the current highest routing priority of the current node; the node update module is used to update the current highest routing priority of the current node according to the routing priorities after elimination if there are routing priorities after elimination, update the target next node according to the current highest routing priority of the current node, and return to the target fault diagnosis parameters obtained after querying and processing the node parameter information corresponding to the current node according to the current node and the target next node.
[0104] In one of the embodiments, the node parameter information also includes the node name of the corresponding node, the node address of the corresponding node, the node name of the next node of the corresponding node, and the node address of the next node of the corresponding node; wherein the node update module is used to update the current node to the target next node if the routing priorities after elimination do not exist, obtain the target next node corresponding to the current node after querying the node parameter information corresponding to the current node according to the current node, and return to obtain the target fault diagnosis parameters after querying the node parameter information corresponding to the current node according to the current node and the target next node.
[0105] In one embodiment, the communication diagnosis module 820 is used to adjust the routing priority corresponding to the current node to the target next node to the current lowest routing priority of the current node if there is a communication failure from the current node to the target next node, and return to the routing priorities of the current node obtained after querying the node parameter information corresponding to the current node according to the current node.
[0106] In one embodiment, the load judgment module 830 is used to adjust the routing priority corresponding to the current node to the next target node to a second target routing priority if the target bus load rate is greater than or equal to a load rate threshold, and return to the routing priorities of the current node obtained after querying the node parameter information corresponding to the current node according to the current node; wherein the second routing priority is a routing priority one level lower than the current highest routing priority of the current node.
[0107] In one embodiment, the routing table acquisition module 810 includes a routing table acquisition unit.
[0108] Among them, the routing table acquisition unit is used to obtain the current working condition of the vehicle, the vehicle topology diagram and the communication demand information of each node; the routing table acquisition unit is used to analyze the vehicle topology diagram and each communication demand information to obtain the parameter information of each node; the routing table acquisition unit is used to generate a dynamic routing table according to the current working condition of the vehicle and the parameter information of each node.
[0109] In one of the embodiments, the routing table acquisition unit is used to respond to the upload operation of the vehicle demand file, perform information screening and processing on the vehicle demand file, and obtain the vehicle topology diagram and various communication demand information.
[0110] In one of the embodiments, the communication diagnosis module 820 includes a target next node acquisition unit.
[0111] Among them, the target next node acquisition unit is used to acquire the current next node corresponding to the current node; the target next node acquisition unit is used to obtain the second target routing priority after querying and processing the node parameter information corresponding to the current node based on the current node and the current next node corresponding to the current node; wherein the second target routing priority is the routing priority from the current node to the current next node corresponding to the current node; the target next node acquisition unit is used to determine whether the second target routing priority is the current highest routing priority of the current node; the target next node acquisition unit is used to determine the current next node corresponding to the current node as the target next node if the second target routing priority is the current highest routing priority of the current node; the target next node acquisition unit is used to determine the target next node according to the current highest routing priority of the current node if the second target routing priority is the current highest routing priority of the current node;
[0112] In one of the embodiments, the device further includes a data monitoring module.
[0113] Among them, the data monitoring module is used to monitor and feedback the target bus load rate and target fault diagnosis parameters when controlling the current node to send the message data and node function parameter array corresponding to the current node to the target next node to the target next node.
[0114] The specific definition of the vehicle bus routing control device can be found in the definition of the vehicle bus routing control method above, which will not be repeated here. Each module in the above-mentioned vehicle bus routing control device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0115] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a vehicle bus routing control method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0116] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0117] In a third aspect, a computer device is provided. The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of any method in the above method embodiments are implemented.
[0118] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any method in the above method embodiments are implemented.
[0119] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0120] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0121] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A vehicle bus routing control method, the method comprising: Get the dynamic routing table of the vehicle's current working conditions; The dynamic routing table is used to count the node parameter information of each node in the vehicle topology diagram; The node parameter information includes the bus load rate of the corresponding node, the routing priority from the corresponding node to the corresponding next node, the message data from the corresponding node to the corresponding next node, the communication fault diagnosis parameters from the corresponding node to the corresponding next node, and the node function parameter array from the corresponding node to the corresponding next node; the node function parameter array includes the node function parameters from the corresponding node to the corresponding next node; Obtaining the current node and the corresponding target next node of the statistical vehicle topology structure diagram, obtaining target fault diagnosis parameters after querying the node parameter information corresponding to the current node according to the current node and the target next node, and judging whether there is a communication fault from the current node to the target next node according to the target fault diagnosis parameters; the target next node is the next node corresponding to the current highest routing priority of the current node; The target fault diagnosis parameter is the communication fault diagnosis parameter corresponding to the current node to the target next node; If there is no communication failure between the current node and the target next node, then obtaining the target bus load rate after querying the node parameter information corresponding to the current node according to the current node, and determining whether the target bus load rate is greater than a load rate threshold; The target bus load rate is the bus load rate of the current node; If the target bus load rate is less than the load rate threshold, the current node is controlled to send the message data and the node function parameter array corresponding to the current node to the target next node to the target next node.
2. The method according to claim 1, characterized in that After the controlling the current node to send the message data and the node function parameter array corresponding to the current node to the target next node to the target next node, the method further includes: After querying the node parameter information corresponding to the current node according to the current node, the routing priorities of the current node are obtained, and according to the routing priorities of the current node, it is determined whether there are the routing priorities after elimination; the routing priorities after elimination are the routing priorities of the current node after eliminating the highest routing priority of the current node; If the routing priorities after the elimination exist, the current highest routing priority of the current node is updated according to the routing priorities after the elimination, the target next node is updated according to the current highest routing priority of the current node, and the target fault diagnosis parameters are obtained after querying the node parameter information corresponding to the current node according to the current node and the target next node.
3. The method according to claim 2, characterized in that The node parameter information also includes a node name of the corresponding node, a node address of the corresponding node, a node name of a next node of the corresponding node, and a node address of the next node of the corresponding node; Wherein, after the controlling the current node to send the message data and the node function parameter array corresponding to the current node to the target next node to the target next node, the method further includes: If the routing priorities after elimination do not exist, the current node is updated to the target next node, and the target next node corresponding to the current node is obtained after querying the node parameter information corresponding to the current node according to the current node, and the target fault diagnosis parameters are obtained after querying the node parameter information corresponding to the current node according to the current node and the target next node.
4. The method according to claim 2, characterized in that: The method further comprises: If there is a communication failure from the current node to the target next node, the routing priority corresponding to the current node to the target next node is adjusted to the current lowest routing priority of the current node, and returned to the routing priorities of the current node obtained after querying the node parameter information corresponding to the current node according to the current node.
5. The method according to claim 1, characterized in that The method further comprises: If the target bus load rate is greater than or equal to the load rate threshold, the routing priority corresponding to the current node to the target next node is adjusted to the second target routing priority, and returned to the routing priorities of the current node obtained after querying the node parameter information corresponding to the current node according to the current node; wherein the second routing priority is the routing priority which is one level lower than the current highest routing priority of the current node.
6. The method according to claim 1, characterized in that The method of obtaining a dynamic routing table for the current working condition of the vehicle includes: Obtaining the current working condition of the vehicle, the vehicle topology diagram and the communication requirement information of each node; Analyze the vehicle topology diagram and each of the communication demand information to obtain parameter information of each of the nodes; The dynamic routing table is generated according to the current working condition of the vehicle and the parameter information of each node.
7. The method according to claim 6, characterized in that The dynamic routing table for obtaining the current working condition of the vehicle also includes: In response to the upload operation of the vehicle demand file, the vehicle demand file is subjected to information screening processing to obtain the vehicle topology structure diagram and each communication demand information.
8. The method according to claim 1, characterized in that The obtaining the target next node corresponding to the current node includes: Get the next node corresponding to the current node; A second target routing priority is obtained after querying the node parameter information corresponding to the current node according to the current node and the current next node corresponding to the current node; wherein the second target routing priority is the routing priority from the current node to the current next node corresponding to the current node; Determine whether the second target routing priority is the highest routing priority of the current node; If the second target routing priority is the highest routing priority of the current node, determining the current next node corresponding to the current node as the target next node; If the second target routing priority is not the current highest routing priority of the current node, the target next node is determined according to the current highest routing priority of the current node.
9. The method according to claim 1, characterized in that: The method further comprises: When controlling the current node to send the message data and the node function parameter array corresponding to the current node to the target next node to the target next node, the target bus load rate and the target fault diagnosis parameter are monitored and fed back.
10. A vehicle bus routing control device, characterized in that: The device comprises: A routing table acquisition module, used to acquire a dynamic routing table of the current working condition of the vehicle; the dynamic routing table is used to count the node parameter information of each node in the vehicle topology diagram; the node parameter information includes the bus load rate of the corresponding node, the routing priority from the corresponding node to the corresponding next node, the message data from the corresponding node to the corresponding next node, the communication fault diagnosis parameter from the corresponding node to the corresponding next node, and the node function parameter array from the corresponding node to the corresponding next node; the node function parameter array includes the node function parameters of each node from the corresponding node to the corresponding next node; A communication diagnosis module, for obtaining the current node and the corresponding target next node of the statistical vehicle topology diagram, querying and processing the node parameter information corresponding to the current node according to the current node and the target next node to obtain a target fault diagnosis parameter, and judging whether there is a communication fault from the current node to the target next node according to the target fault diagnosis parameter; the target next node is the next node corresponding to the current highest routing priority of the current node; the target fault diagnosis parameter is the communication fault diagnosis parameter corresponding to the current node to the target next node; A load judgment module, for obtaining a target bus load rate after querying the node parameter information corresponding to the current node according to the current node if there is no communication failure from the current node to the target next node, and judging whether the target bus load rate is greater than a load rate threshold; the target bus load rate is the bus load rate of the current node; The data sending module is used to control the current node to send the message data and the node function parameter array corresponding to the current node to the target next node if the target bus load rate is less than the load rate threshold.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Security gateway, data processing method and device, vehicle network topology and vehicle
CN106953796A
Automobile CAN network message monitoring method and device, computer equipment and storage medium
CN113691432A
Intelligent routing method, device and equipment
CN113904974A
Vehicle-mounted gateway test method and system and computer readable storage medium
CN115242689A
System and method for managing bus load of vehicle network
KR101524144B1