Method and system for reducing bus load, computing device, storage medium and vehicle

By monitoring and adjusting the CAN bus load rate in real time and adopting a dynamic peak-shifting transmission strategy, the problem of excessive bus load rate is solved, the stability of the bus and communication efficiency are improved, and the real-time nature of information is ensured.

CN118590340APending Publication Date: 2024-09-03GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310203043.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The bus load rate of the existing automotive bus communication architecture is too high under complex working conditions, resulting in loss of functions and affected information real-time performance, which is difficult to detect in early testing.

Method used

By monitoring the load rate of the CAN bus in real time, we obtain the priority information of each node, and adopt the strategy of dynamic peak shifting and extending the sending cycle to adjust the sending of the third and second priority CAN messages to ensure that the bus load is within the normal range. .

Benefits of technology

Effectively reduce the bus load rate, improve the stability and communication efficiency of the CAN bus, avoid the risk of loss of functions, and ensure the real-time nature of key information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590340A
    Figure CN118590340A
Patent Text Reader

Abstract

The invention discloses a method for reducing the load of a CAN (Controller Area Network) bus. The method at least comprises the following steps: monitoring in real time to obtain the current load rates of all network nodes of the same channel on the CAN bus; when the monitored current load rate is greater than a preset maximum load rate threshold value, acquiring priority information of each CAN message sent by all network nodes of the channel in the current period; and obtaining a strategy corresponding to the priority level of the CAN message adopted by each network node, and carrying out load reduction adjustment on the CAN message of at least one priority, the load reduction adjustment at least comprising: carrying out dynamic peak shifting sending, or / and prolonging a sending period. The invention further provides a corresponding system, a computing device, a storage medium and a vehicle. By implementing the method and the device, the bus load can be dynamically reduced, the real-time performance of key information can be ensured, and the stability and the efficiency of CAN bus communication are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of bus communication inside a car, and in particular to a method, system, computing device, storage medium and vehicle for reducing bus load. Background Art

[0002] As automobile functions become more and more abundant and the on-board electronic and electrical architecture evolves, there are more and more electronic products in vehicles, and more and more interactive signals between different electronic control units (ECUs) on vehicles. The current mainstream communication buses used in vehicles include: CAN (Controller Area Network) and CANFD (CAN with Flexible Data-Rate) architectures. However, in the existing bus architecture, if multiple ECUs send high-frequency signals at the same time within a certain period of time, the bus load will be instantly increased, and the processing capabilities of each ECU cannot be fully synchronized. If the processing capabilities of a key ECU cannot keep up, the communication data will be abnormal or not received, which will affect the realization of the corresponding functions. In serious cases, it will cause safety hazards such as vehicle loss of control and power loss.

[0003] At present, the industry is still cautious about the control of bus load rate. In vehicle operation, the load rate is generally not controlled. When the corresponding components are working, test verification is generally used. When the average load rate of the test bus is not high, the component is considered qualified. However, sometimes, when the vehicle is in a complex working condition, when multiple ECUs send bus signals at the same time, the bus load remains high, and this complex scenario is difficult to find in the early test.

[0004] In summary, in the prior art, there is a risk of loss of function due to excessive bus load rate in complex working conditions, and the bus stability needs to be improved.

[0005] At the same time, when the load rate is too high for a long time, the pressure of information interaction between key nodes is relatively high, which will affect the real-time nature of key information. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a method, system, computing device, storage medium and vehicle for reducing bus load, which can dynamically reduce bus load, ensure the real-time nature of key information, and improve the stability and efficiency of CAN bus communication.

[0007] In order to solve the above technical problems, as one aspect of the present invention, a method for reducing the load of a CAN bus is provided, which at least comprises the following steps:

[0008] Real-time monitoring to obtain the current load rate of all network nodes on the same channel of the CAN bus;

[0009] When the monitored current load rate is greater than a preset maximum load rate threshold, obtaining priority information of each CAN message sent by all network nodes of the channel in the current period;

[0010] Obtain a strategy corresponding to the priority level of its CAN message adopted by each network node, and perform load reduction adjustment on at least one priority CAN message, wherein the load reduction adjustment at least includes: performing dynamic peak-shifting transmission, and / or extending the transmission cycle.

[0011] Among them, real-time monitoring to obtain the current load rate of all network nodes on the same channel of the CAN bus further includes:

[0012] All CAN messages on the bus are monitored, the actual total load of the bus in the current cycle is calculated, and the actual total load of the bus is divided by the maximum theoretical load of the bus to obtain the current load rate.

[0013] Wherein, when the monitored current load rate is greater than a preset maximum load rate threshold, obtaining the priority information of each CAN message sent by all network nodes of the channel in the current period further includes:

[0014] Obtaining the priority of each CAN message sent by all network nodes of the channel in the current cycle, wherein the priority includes a maximum priority, a second priority, and a third priority;

[0015] The number of CAN messages of the third priority is obtained.

[0016] The step of obtaining each network node adopting a strategy corresponding to the priority level of its CAN message, reducing the load of at least one priority CAN message, so that the real-time load of the CAN bus of the channel is within a normal range, further includes:

[0017] gradually reducing the number of CAN messages of the third priority sent in each cycle, and determining whether the CAN bus load of the channel after adjustment is less than the maximum load rate threshold;

[0018] If the result of the judgment is yes, a dynamic ring staggered transmission mode is adopted to control only a reduced number of third priority CAN messages to be sent in each cycle, wherein the reduced number is at least one;

[0019] If the judgment result is no, a dynamic ring staggered sending method is adopted to control only one third priority CAN message to be sent in each cycle, and the sending cycle of each second priority CAN message is extended.

[0020] Among them, further include:

[0021] After the load reduction adjustment, if the current load rate of all network nodes of the channel is greater than the preset minimum load rate threshold, the sending cycle of the second priority CAN message is gradually restored, and the number of third priority CAN messages sent in each cycle is gradually restored.

[0022] The method of adopting the dynamic ring staggered transmission to control only sending the reduced number of third priority CAN messages in each cycle is specifically as follows:

[0023] In the current sending cycle, the reduced number of third priority CAN messages are selected and sent;

[0024] In the next sending cycle, the next batch of reduced third priority CAN messages is selected and sent in a predetermined order;

[0025] And so on, each third priority CAN message is sent out in sequence in a cycle.

[0026] Among them, further include:

[0027] Generate a priority message for each network node according to the load reduction processing strategy determined by the load reduction processing unit, set a control signal bit of each priority level in the priority message, and send it to each network node to control the current CAN message sending strategy of each network node;

[0028] Among them, when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be sent normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be prohibited from being sent in the current sending cycle;

[0029] When the control signal bit of the second priority of the priority message is 1, the second priority CAN message of the network node is controlled to be sent according to the normal sending cycle; when the control signal bit of the second priority of the priority message is 0, the second priority CAN message of the network node is controlled to be sent according to the predetermined extended sending cycle.

[0030] As one aspect of the present invention, the present invention also provides a system for reducing a CAN bus load, which at least comprises:

[0031] The monitoring processing unit is used to monitor and obtain the current load rate of all network nodes on the same channel of the CAN bus in real time;

[0032] A priority information acquisition unit, used for acquiring the priority information of each CAN message sent by all network nodes of the channel in the current period when the monitored current load rate is greater than a preset maximum load rate threshold;

[0033] The load reduction processing unit is used to obtain the strategy corresponding to the priority level of the CAN message adopted by each network node, and perform load reduction adjustment on the CAN message of at least one priority level. The load reduction adjustment at least includes: dynamic peak-shifting transmission, and / or extending the transmission cycle.

[0034] Wherein, the monitoring processing unit further includes:

[0035] Monitoring unit, used to monitor all CAN messages on the bus;

[0036] The calculation unit is used to calculate the actual total load of the bus in the current cycle, and divide the actual total load of the bus by the maximum theoretical load of the bus to obtain the current load rate.

[0037] The priority information acquisition unit further includes:

[0038] A level information acquisition unit, used to acquire the priority of each CAN message sent by all network nodes of the channel in the current cycle, wherein the priority includes a maximum priority, a second priority and a third priority;

[0039] The quantity acquisition unit is used to acquire at least the quantity of the CAN messages of the third priority level.

[0040] Wherein, the load reduction processing unit further comprises:

[0041] A load reduction quantity adjustment unit, used for gradually reducing the number of CAN messages of the third priority level sent in each cycle, and determining whether the CAN bus load of the channel after adjustment is less than the maximum load rate threshold;

[0042] A first adjustment processing unit, configured to, when the judgment result of the load reduction quantity adjustment unit is yes, adopt a dynamic ring staggered transmission mode to control only sending a reduced number of third priority CAN messages in each cycle, wherein the reduced number is at least one;

[0043] The second adjustment processing unit is used to control only one third-priority CAN message to be sent in each cycle and extend the sending cycle of each second-priority CAN message when the judgment result of the load-reduction quantity adjustment unit is no.

[0044] Among them, further include:

[0045] The recovery processing unit is used to gradually restore the sending cycle of the second priority CAN message and gradually restore the number of third priority CAN messages sent in each cycle after the load reduction adjustment if the current load rate of all network nodes of the channel is greater than a preset minimum load rate threshold.

[0046] Among them, in the first adjustment processing unit, a dynamic ring staggered transmission method is adopted to control only the reduced number of third priority CAN messages to be sent in each cycle, specifically:

[0047] In the current sending cycle, the reduced number of third priority CAN messages are selected and sent;

[0048] In the next sending cycle, the next batch of reduced third priority CAN messages is selected and sent in a predetermined order;

[0049] And so on, each third priority CAN message is sent out in sequence in a cycle.

[0050] Among them, further include:

[0051] A priority message generating unit, used for generating a priority message for each network node according to the load reduction processing strategy determined by the load reduction processing unit, setting a control signal bit of each priority level in the priority message, and sending it to each network node to control the current CAN message sending strategy of each network node;

[0052] Among them, when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be sent normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be prohibited from being sent in the current sending cycle;

[0053] When the control signal bit of the second priority of the priority message is 1, the second priority CAN message of the network node is controlled to be sent according to the normal sending cycle; when the control signal bit of the second priority of the priority message is 0, the second priority CAN message of the network node is controlled to be sent according to the predetermined extended sending cycle.

[0054] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the aforementioned method when executed by a processor.

[0055] In another aspect of the present invention, a computing device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the aforementioned method when executing the computer program.

[0056] In another aspect of the present invention, a vehicle has a CAN bus architecture, wherein the CAN bus architecture includes at least one CAN message gateway controller and a plurality of network nodes connected to the CAN bus, wherein:

[0057] The CAN message gateway controller is equipped with a system for reducing the CAN bus load as described above;

[0058] Each network node is used to monitor the control signal bit of the priority message from the CAN message gateway controller and determine its CAN message sending strategy, including:

[0059] When the received third priority control signal bit is 1, the third priority CAN message is sent normally in the current sending cycle; when the received third priority control signal bit is 0, the third priority CAN message is prohibited from being sent in the current sending cycle;

[0060] When the received second priority control signal bit is 1, the second priority CAN message is sent according to the normal sending cycle; when the received third priority control signal bit is 0, the second priority CAN message is sent according to the predetermined extended sending cycle.

[0061] The implementation of the embodiments of the present invention has the following beneficial effects:

[0062] The present invention provides a method, system, computing device, storage medium and vehicle for reducing bus load. A main monitoring node (such as a gateway controller) is defined in the CAN nodes of the same channel to monitor the load rate of the bus; if the current load rate is too high, a timely response is made to control the reduction of the number of messages with the lowest priority level to be sent, and the control delay of the sending cycle of the messages with the second lowest priority level, thereby achieving a peak-shifting sending strategy, which can better dynamically reduce the bus load rate and improve the security and efficiency of CAN bus communication.

[0063] The present invention provides a bus load rate control mechanism, which can effectively avoid the risk of function loss caused by excessive bus load rate in complex working conditions and improve the bus stability of the entire vehicle.

[0064] The method provided by the present invention can solve the problem of long-term excessively high load rate, greatly reduce the pressure of information interaction between key nodes, always ensure the real-time nature of key information (high-priority CAN messages), and maintain information availability. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, without paying creative labor, other drawings obtained based on these drawings still belong to the scope of the present invention.

[0066] Figure 1 A schematic diagram of the main process of an embodiment of a method for reducing bus load provided by the present invention;

[0067] Figure 2 A data structure diagram of a CANFD message according to the present invention;

[0068] Figure 3 This is a schematic diagram of the principle of dynamic peak-shifting transmission involved in the present invention;

[0069] Figure 4 A schematic structural diagram of an embodiment of a system for reducing bus load provided by the present invention;

[0070] Figure 5 for Figure 4 A schematic diagram of the structure of the monitoring and processing unit;

[0071] Figure 6 for Figure 4 A schematic diagram of the structure of the medium priority information acquisition unit;

[0072] Figure 7 for Figure 4 Schematic diagram of the structure of the load reduction processing unit. DETAILED DESCRIPTION

[0073] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0074] like Figure 1 FIG. 1 is a schematic diagram showing a main flow chart of an embodiment of a method for reducing a CAN bus load provided by the present invention. Figure 2 and Figure 3 As shown, in this embodiment, the method at least includes the following steps:

[0075] Step S10, real-time monitoring to obtain the current load rate of all network nodes on the same channel of the CAN bus;

[0076] In a specific example, the step S10 specifically includes:

[0077] All CAN messages on the bus are monitored, the actual total load of the bus in the current cycle is calculated, and the actual total load of the bus is divided by the maximum theoretical load of the bus to obtain the current load rate.

[0078] In the present invention, the CAN message may be a standard CAN message or a CAN FD message, and no detailed distinction is made below. The CAN message mentioned below includes a CAN FD message, and the CAN bus mentioned below includes a CAN FD bus.

[0079] Combination Figure 2 A schematic diagram of a CANFD data structure is shown. An example is used to illustrate the current load rate. In one example, taking a CANFD message as an example, for a single-channel CANFD bus, the bus baud rate B = 2Mbps, the sending interval of a CAN message t = 40ms, and the size of each frame f = 75bytes. Assume that the number of ECUs sending messages on the bus at the same time at each moment is N.

[0080] According to Figure 2 The CANFD frame size f can be obtained:

[0081] f=(1+32+9+33+2+7+3) / 8+64=87 / 8+64<11+64=75bytes

[0082] Therefore, the maximum theoretical load Qmax of the bus and the actual total load Qcan of the bus can be obtained as follows:

[0083] Qmax=(B*1024) / 8=128*B=256kbytes / s;

[0084] Qcan=(N*(1000 / t)*f) / 1024=(1000N*f) / (1024*t)(kbytes / s)

[0085] Dividing the two can obtain the current load rate W of the CAN message:

[0086] W=Qcan / Qmax=(1000N*f) / (1024*t*Qmax)=(1000N*f) / (1024*t*128*B)

[0087] It can be understood that if W = a%, a is the load factor, the expression a = f(N, t) is obtained;

[0088] Analyze a=f(N,t). If W=a%, then:

[0089] (1000N*f) / (1024*t*128*B)=a%

[0090] Simplifying, we can get N = (4096*a*B*t) / (3125*f) = (8192*at) / 234375;

[0091] Transforming the equation, we have a=(234357*N) / (8192*t)

[0092] From the above formula, we can know that:

[0093] If t is a constant, a and N are proportional, a = k*N, where k = 234357 / (8192*t);

[0094] If N is a constant, a and t are inversely proportional, a = k / t, where: k = (234357*N) / 8192.

[0095] It can be seen that by adjusting the values ​​of N and t, it is possible to adjust the current load rate.

[0096] Step S11, when the monitored current load rate is greater than a preset maximum load rate threshold, obtaining the priority information of each CAN message sent by all network nodes of the channel in the current period;

[0097] In a specific example, the step S11 further includes:

[0098] Obtain the priority of each CAN message sent by all network nodes of the channel in the current cycle, wherein the priority includes a maximum priority, a second priority, and a third priority; and obtain the number of CAN messages of the third priority.

[0099] It can be understood that, in an example of the present invention, all CAN messages (standard CAN messages and CANFD messages) can be classified by priority in advance, as shown in Table 1 below.

[0100] Table 1 CAN message classification list

[0101]

[0102] Step S12, obtaining a strategy corresponding to the priority level of its CAN message adopted by each network node, and performing load reduction adjustment on at least one priority CAN message, wherein the load reduction adjustment at least includes: performing dynamic peak-shifting transmission, and / or extending the transmission cycle.

[0103] The step S12 further comprises:

[0104] Step S120, gradually reducing the number of CAN messages of the third priority sent in each cycle, and determining whether the CAN bus load of the channel after adjustment is less than the maximum load rate threshold;

[0105] Step S121, if the result of the judgment is yes, a dynamic ring staggered transmission mode is adopted to control only a reduced number of third priority CAN messages to be sent in each cycle, wherein the reduced number is at least one;

[0106] In a specific example, the step S121 further includes:

[0107] In the current sending cycle, the reduced number of third priority CAN messages are selected and sent;

[0108] In the next sending cycle, the next batch of reduced third priority CAN messages is selected and sent in a predetermined order;

[0109] And so on, each third priority CAN message is sent out in sequence in a cycle.

[0110] Combination Figure 3 As shown, in the embodiment of the present invention, considering that each ECU has an equal right to send messages, and considering the message priority level, a dynamic ring staggered sending strategy is formulated. Specifically, when the current load rate W of the bus exceeds the maximum load rate threshold (Wmax), the staggered control strategy of the priority C message is started. Assuming that the number of ECUs N is controlled as an example, there are currently 7 ECUs sending messages at the same time, and the bus load rate is too high. The controller gateway module starts the staggered strategy and calculates that 5 ECUs currently need to send priority C messages at the same time to meet the threshold. The bus load control signal bit is sent periodically (such as 1S) to cyclically enable 5 of the 7 ECUs on the bus. It can be understood that Figure 3 This is only an example. In other embodiments, other similar control methods (such as randomly generating objects to be sent in each batch) may also be used to achieve the same effect.

[0111] Step S122, if the judgment result is no, a dynamic ring staggered sending method is adopted to control only one third priority CAN message to be sent in each cycle, and the sending cycle of each second priority CAN message is extended.

[0112] It is understandable that, if in some examples, only reducing the load of the third priority CAN message cannot achieve the desired effect, it is necessary to reduce the load of the second priority (B). The load reduction is achieved by extending the sending cycle of the second priority CAN message.

[0113] After the load reduction adjustment, the current load rate needs to be monitored in real time. If the current load rate of all network nodes of the channel is greater than the preset minimum load rate threshold (Wmin), the sending cycle of the second priority CAN message is gradually restored, and the number of third priority CAN messages sent in each cycle is gradually restored.

[0114] In the example of the present invention, the current load rate of the CAN bus is controlled by controlling N and t, thereby realizing the load reduction processing of the CAN bus. More specifically, in a specific application, the CAN message gateway controller of the whole vehicle can be regarded as the responsible party for monitoring the bus load rate, and it can send out the bus load rate priority level message control signal bit to control the sending strategy of each network node (ECU) on the bus architecture. In the bus load rate priority level message, each bit represents a CAN message of a certain priority level of a specific ECU. For example, the bus load control signal name BusLoad_C_Enable for controlling the third priority level (C) can be defined, and the bus load control signal name BusLoad_B_Enable for controlling the second priority level (B) can be defined. The message of the first priority level (A) must be guaranteed to be real-time, and the most important thing is that there is no need to consider control.

[0115] The CAN message gateway controller can generate a priority message for each network node according to the load reduction processing strategy determined by the method provided by the present invention, set a control signal bit of each priority level in the priority message, and send it to each network node to control the current CAN message sending strategy of each network node;

[0116] Among them, when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be sent normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be prohibited from being sent in the current sending cycle;

[0117] When the control signal bit of the second priority of the priority message is 1, the second priority CAN message of the network node is controlled to be sent according to the normal sending cycle; when the control signal bit of the second priority of the priority message is 0, the second priority CAN message of the network node is controlled to be sent according to the predetermined extended sending cycle.

[0118] On the network node side, if the network node of the same channel receives a control signal bit of the third priority (C), if the bit corresponding to the ECU is 1, it means that normal transmission is allowed; if the bit is 0, transmission is not allowed; if the network node of the same channel receives a control signal bit of the second priority (B), if the bit corresponding to the ECU is 1, it means that normal cycle transmission is allowed; if the bit is 0, slow cycle transmission is allowed.

[0119] The method of the present invention defines a main monitoring node (usually a gateway controller) in the same channel CAN node, which is responsible for monitoring the load rate of the bus. If the load rate is too high, it promptly responds to start controlling the number of ECUs allowed to send third priority (C) messages, and controls the peak-shifting strategy of adjusting the sending cycle of the second priority (B) messages, so as to achieve real-time control of the problem of excessive bus load rate.

[0120] like Figure 4 FIG. 1 is a schematic diagram showing a structure of an embodiment of a system for reducing a CAN bus load provided by the present invention. Figures 5 to 7 As shown, in this embodiment, the system 1 for reducing the CAN bus load at least includes:

[0121] The monitoring processing unit 10 is used to monitor and obtain the current load rate of all network nodes on the same channel of the CAN bus in real time;

[0122] The priority information acquisition unit 11 is used to acquire the priority information of each CAN message sent by all network nodes of the channel in the current period when the monitored current load rate is greater than a preset maximum load rate threshold;

[0123] The load reduction processing unit 12 is used to obtain the strategy corresponding to the priority level of the CAN message adopted by each network node, and perform load reduction adjustment on at least one priority CAN message, wherein the load reduction adjustment at least includes: dynamic peak-shifting transmission, and / or extending the transmission cycle.

[0124] like Figure 5 As shown, in a specific example, the monitoring processing unit 10 further includes:

[0125] The monitoring unit 100 is used to monitor all CAN messages on the bus;

[0126] The calculation unit 101 is used to calculate and obtain the actual total load of the bus in the current cycle, and divide the actual total load of the bus by the maximum theoretical load of the bus to obtain the current load rate.

[0127] like Figure 6 As shown, in a specific example, the priority information acquisition unit 11 further includes:

[0128] The level information acquisition unit 110 is used to acquire the priority of each CAN message sent by all network nodes of the channel in the current cycle, wherein the priority includes a maximum priority, a second priority and a third priority;

[0129] The quantity acquisition unit 111 is used to acquire at least the quantity of the CAN messages of the third priority.

[0130] like Figure 7 As shown, in a specific example, the load reduction processing unit 12 further includes:

[0131] The load reduction quantity adjustment unit 120 is used to gradually reduce the number of CAN messages of the third priority sent in each cycle, and determine whether the CAN bus load of the channel after adjustment is less than the maximum load rate threshold;

[0132] The first adjustment processing unit 121 is used to control only the reduced number of third-priority CAN messages to be sent in each cycle by adopting a dynamic ring-shaped staggered transmission method when the judgment result of the load reduction quantity adjustment unit is yes, and the reduced number is at least one;

[0133] Specifically, in the first adjustment processing unit 121, a dynamic ring staggered transmission method is adopted to control only the reduced number of third priority CAN messages to be sent in each cycle, specifically:

[0134] In the current sending cycle, the reduced number of third priority CAN messages are selected and sent;

[0135] In the next sending cycle, the next batch of reduced third priority CAN messages is selected and sent in a predetermined order;

[0136] And so on, each third priority CAN message is sent out in sequence in a cycle.

[0137] The second adjustment processing unit 122 is used to control only one third-priority CAN message to be sent in each cycle and extend the sending cycle of each second-priority CAN message when the judgment result of the load-reducing quantity adjustment unit is no.

[0138] Combined Figure 4 As shown, the system 1 for reducing the CAN bus load further comprises:

[0139] The recovery processing unit 13 is used to gradually recover the sending cycle of the second priority CAN message and gradually recover the sending quantity of the third priority CAN message in each cycle if the current load rate of all network nodes of the channel is greater than a preset minimum load rate threshold after the load reduction adjustment;

[0140] The priority message generating unit 14 is used to generate a priority message for each network node according to the load reduction processing strategy determined by the load reduction processing unit, set a control signal bit of each priority level in the priority message, and send it to each network node to control the current CAN message sending strategy of each network node;

[0141] Among them, when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be sent normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be prohibited from being sent in the current sending cycle;

[0142] When the control signal bit of the second priority of the priority message is 1, the second priority CAN message of the network node is controlled to be sent according to the normal sending cycle; when the control signal bit of the second priority of the priority message is 0, the second priority CAN message of the network node is controlled to be sent according to the predetermined extended sending cycle.

[0143] In another aspect of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following is implemented: Figures 1 to 3 For more details of the steps of the described method, please refer to and combine with the above Figures 1 to 3 The description is not repeated here.

[0144] In another aspect of the present invention, a computing device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, Figures 1 to 3 For more details of the steps of the described method, please refer to and combine with the above Figures 1 to 3 The description is not repeated here.

[0145] Another aspect of the present invention further provides a vehicle having a CAN bus architecture, wherein the CAN bus architecture includes at least one CAN message gateway controller and a plurality of network nodes (such as ECUs) connected to the CAN bus, wherein:

[0146] The CAN message gateway controller is deployed as follows Figures 4 to 7 A system for reducing the load on a CAN bus is described;

[0147] Each network node is used to monitor the control signal bit of the priority message from the CAN message gateway controller and determine its CAN message sending strategy, including:

[0148] When the received third priority control signal bit is 1, the third priority CAN message is sent normally in the current sending cycle; when the received third priority control signal bit is 0, the third priority CAN message is prohibited from being sent in the current sending cycle;

[0149] When the received second priority control signal bit is 1, the second priority CAN message is sent according to the normal sending cycle; when the received third priority control signal bit is 0, the second priority CAN message is sent according to the predetermined extended sending cycle.

[0150] For more details, please refer to and combine the above Figures 1 to 7 The description is not repeated here.

[0151] The implementation of the embodiments of the present invention has the following beneficial effects:

[0152] The present invention provides a method, system, computing device, storage medium and vehicle for reducing bus load. A main monitoring node (such as a gateway controller) is defined in the CAN nodes of the same channel to monitor the load rate of the bus; if the current load rate is too high, a timely response is made to control the reduction of the number of messages with the lowest priority level to be sent, and the control delay of the sending cycle of the messages with the second lowest priority level, thereby achieving a peak-shifting sending strategy, which can better dynamically reduce the bus load rate and improve the security and efficiency of CAN bus communication.

[0153] The present invention provides a bus load rate control mechanism, which can effectively avoid the risk of function loss caused by excessive bus load rate in complex working conditions and improve the bus stability of the entire vehicle.

[0154] The method provided by the present invention can solve the problem of long-term excessively high load rate, greatly reduce the pressure of information interaction between key nodes, always ensure the real-time nature of key information (high-priority CAN messages), and maintain information availability.

[0155] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0156] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0157] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for reducing CAN bus load, characterized in that: At least the following steps are included: Real-time monitoring to obtain the current load rate of all network nodes on the same channel of the CAN bus; When the monitored current load rate is greater than a preset maximum load rate threshold, obtaining priority information of each CAN message sent by all network nodes of the channel in the current period; Obtain a strategy corresponding to the priority level of its CAN message adopted by each network node, and perform load reduction adjustment on at least one priority CAN message, wherein the load reduction adjustment at least includes: performing dynamic peak-shifting transmission, and / or extending the transmission cycle.

2. The method according to claim 1, characterized in that The real-time monitoring to obtain the current load rate of all network nodes on the same channel of the CAN bus further includes: All CAN messages on the bus are monitored, the actual total load of the bus in the current cycle is calculated, and the actual total load of the bus is divided by the maximum theoretical load of the bus to obtain the current load rate.

3. The method according to claim 2, characterized in that Step S11, when the monitored current load rate is greater than a preset maximum load rate threshold, obtaining the priority information of each CAN message sent by all network nodes of the channel in the current period, further includes: Obtaining the priority of each CAN message sent by all network nodes of the channel in the current cycle, wherein the priority includes a maximum priority, a second priority, and a third priority; The number of CAN messages of the third priority is obtained.

4. The method according to claim 3, characterized in that The step of obtaining that each network node adopts a strategy corresponding to the priority level of its CAN message to reduce the load of at least one priority CAN message further includes: gradually reducing the number of CAN messages of the third priority sent in each cycle, and determining whether the CAN bus load of the channel after adjustment is less than the maximum load rate threshold; If the result of the judgment is yes, a dynamic ring staggered transmission mode is adopted to control only a reduced number of third priority CAN messages to be sent in each cycle, wherein the reduced number is at least one; If the judgment result is no, a dynamic ring staggered sending method is adopted to control only one third priority CAN message to be sent in each cycle, and the sending cycle of each second priority CAN message is extended.

5. The method according to claim 4, characterized in that Further including: After the load reduction adjustment, if the current load rate of all network nodes of the channel is greater than the preset minimum load rate threshold, the sending cycle of the second priority CAN message is gradually restored, and the number of third priority CAN messages sent in each cycle is gradually restored.

6. The method according to claim 4 or 5, characterized in that The method of adopting the dynamic ring staggered transmission to control only sending the reduced number of third priority CAN messages in each cycle is specifically as follows: In the current sending cycle, the reduced number of third priority CAN messages are selected and sent; In the next sending cycle, the next batch of reduced third priority CAN messages is selected and sent in a predetermined order; And so on, each third priority CAN message is sent out in sequence in a cycle.

7. The method according to claim 6, characterized in that Further including: Generate a priority message for each network node according to the determined load reduction adjustment mode, set a control signal bit of each priority level in the priority message, and send it to each network node to control the current CAN message sending strategy of each network node; Among them, when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be sent normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the third priority CAN message of the network node is controlled to be prohibited from being sent in the current sending cycle; When the control signal bit of the second priority of the priority message is 1, the second priority CAN message of the network node is controlled to be sent according to the normal sending cycle; when the control signal bit of the second priority of the priority message is 0, the second priority CAN message of the network node is controlled to be sent according to the predetermined extended sending cycle.

8. A system for reducing CAN bus load, characterized in that: At least: The monitoring processing unit is used to monitor and obtain the current load rate of all network nodes on the same channel of the CAN bus in real time; A priority information acquisition unit, used for acquiring the priority information of each CAN message sent by all network nodes of the channel in the current period when the monitored current load rate is greater than a preset maximum load rate threshold; The load reduction processing unit is used to obtain the strategy corresponding to the priority level of the CAN message adopted by each network node, and perform load reduction adjustment on the CAN message of at least one priority level. The load reduction adjustment at least includes: dynamic peak-shifting transmission, and / or extending the transmission cycle.

9. The system according to claim 8, characterized in that The monitoring processing unit further comprises: Monitoring unit, used to monitor all CAN messages on the bus; A calculation unit, used for calculating an actual total load of the bus in a current cycle, and dividing the actual total load of the bus by a maximum theoretical load of the bus to obtain the current load rate; The priority information acquisition unit further comprises: A level information acquisition unit, used to acquire the priority of each CAN message sent by all network nodes of the channel in the current cycle, wherein the priority includes a maximum priority, a second priority and a third priority; The quantity acquisition unit is used to acquire at least the quantity of the CAN messages of the third priority level.

10. The system according to claim 9, characterized in that The load reduction processing unit further comprises: A load reduction quantity adjustment unit, used for gradually reducing the number of CAN messages of the third priority level sent in each cycle, and determining whether the CAN bus load of the channel after adjustment is less than the maximum load rate threshold; A first adjustment processing unit, configured to, when the judgment result of the load reduction quantity adjustment unit is yes, adopt a dynamic ring staggered transmission mode to control only sending a reduced number of third priority CAN messages in each cycle, wherein the reduced number is at least one; The second adjustment processing unit is used to control only one third-priority CAN message to be sent in each cycle and extend the sending cycle of each second-priority CAN message when the judgment result of the load-reduction quantity adjustment unit is no.

11. 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 7 are implemented.

12. A computing 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 7 are implemented.

13. A vehicle having a CAN bus architecture, wherein the CAN bus architecture comprises at least one CAN message gateway controller and a plurality of network nodes connected to the CAN bus, characterized in that: in: A system for reducing CAN bus load according to any one of claims 8 to 10 is deployed in the CAN message gateway controller; Each network node is used to monitor the control signal bit of the priority message from the CAN message gateway controller and determine its CAN message sending strategy, including: When the received third priority control signal bit is 1, the third priority CAN message is sent normally in the current sending cycle; When the received third priority control signal bit is 0, the third priority CAN message is prohibited from being sent in the current sending cycle; When the received second priority control signal bit is 1, the second priority CAN message is sent according to the normal sending cycle; when the received third priority control signal bit is 0, the second priority CAN message is sent according to the predetermined extended sending cycle.

Citation Information

Cited By

  • Vehicle body controller capable of dynamically adjusting CAN bus load rate based on signal priority

    CN224538215U

  • Onboard apparatus and updating method

    US12504963B2