Bus load reducing method, system, computing apparatus, storage medium and vehicle

Through real-time monitoring and dynamic adjustment of the CAN bus load, and the adoption of a peak-shifting transmission strategy, the risk of function loss caused by excessive bus load rate is solved, the bus stability and communication efficiency are improved, and the real-time nature of key information is ensured.

WO2024183246A1PCT designated stage expired Publication Date: 2024-09-12GUANGZHOU AUTOMOBILE GROUP CO LTD

Patent Information

Application Number
PCT/CN2023/115335
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-03
Filing Date
2023-08-28
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

When the bus load rate of the existing automotive bus communication architecture is too high under complex working conditions, it may lead to loss of functions and safety hazards, and the pressure for key information interaction is high, affecting real-time performance.

Method used

By monitoring the CAN bus load rate in real time, when it exceeds the maximum threshold, the CAN message priority information of each node is obtained, and the strategy of dynamic peak-shifting sending and extending the sending cycle is adopted to gradually reduce the number and extension of the third priority message sent. The sending cycle of the second priority message to reduce the bus load.

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 and availability of key information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023115335_12092024_PF_FP_ABST
    Figure CN2023115335_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application is a CAN bus load reducing method. The method at least comprises: monitoring in real time to obtain the current load rate of all network nodes of a same channel on a CAN bus; when the detected current load rate is greater than a preset maximum load rate threshold, acquiring priority information of each CAN message sent by all the network nodes of the channel in the current period; and acquiring a policy used by each network node and corresponding to the priority level of the CAN message thereof, and carrying out load reduction adjustment on the CAN message of at least one priority level, the load reduction adjustment at least comprising: performing dynamic off-peak sending, or / and extending a sending period. Further provided in the present application are a corresponding system, a computing apparatus, a storage medium and a vehicle. Implementing the present application can reduce the bus load dynamically and ensure the real-time performance of key information, thus improving the stability and efficiency of CAN bus communication.
Need to check novelty before this filing date? Find Prior Art

Description

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

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 3, 2023, with application number 202310203043.9, and invention name “Method, system, computing device, storage medium and vehicle for reducing bus load”, the entire contents of which are incorporated by reference into this application. Technical Field

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

[0003] With the increasing functionality of automobiles and the evolution of onboard electrical and electronic architectures, more and more electronic products are being incorporated into vehicles, leading to an increasing number of interactive signals between different Electronic Control Units (ECUs). Currently, mainstream vehicle communication buses include the CAN (Controller Area Network) and CANFD (CAN with Flexible Data-Rate) architectures. However, in this existing bus architecture, if multiple ECUs simultaneously transmit high-frequency signals within a certain timeframe, the bus load will instantly increase, and the processing capabilities of the various ECUs cannot be fully synchronized. If the processing power of a key ECU cannot keep up, communication data may be abnormal or not received, which will affect the implementation of the corresponding function. In serious cases, it may cause safety hazards such as loss of vehicle control and power.

[0004] Currently, the industry is cautious about controlling bus load rates. Load rate control is generally not performed during vehicle operation. Testing is typically performed during the operation of the corresponding component, and if the average bus load rate is low during the test, the component is considered qualified. However, sometimes, under complex vehicle operating conditions, when multiple ECUs simultaneously transmit bus signals, the bus load can remain high. Such complex scenarios are difficult to detect during early testing.

[0005] In summary, existing technologies present the risk of functional loss in complex operating conditions due to excessive bus load, and bus stability needs to be improved. Furthermore, under long-term high load conditions, information exchange between key nodes is highly stressful, impacting the real-time nature of critical information.

[0006] Summary of the Invention

[0007] The technical problem to be solved by this application 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.

[0008] To solve the above technical problems, as one aspect of the present application, a method for reducing the load of a CAN bus is provided, which comprises at least the following steps:

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

[0010] 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;

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

[0012] The real-time monitoring and obtaining of the current load rate of all network nodes on the same channel of the CAN bus further includes:

[0013] 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.

[0014] Wherein, 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 further includes:

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

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

[0017] The step of obtaining each network node adopting a strategy corresponding to the priority level of its CAN message and 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:

[0018] 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;

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

[0020] 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.

[0021] Which further includes:

[0022] 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.

[0023] The dynamic ring staggered transmission method is used to control the transmission of only a reduced number of third-priority CAN messages in each cycle, specifically:

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

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

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

[0027] Which further includes:

[0028] 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;

[0029] Among them, when the control signal bit of the third priority of the priority message is 1, the network node is controlled to send the third priority CAN message normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the network node is controlled to prohibit sending the third priority CAN message in the current sending cycle;

[0030] 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.

[0031] As one aspect of the present application, the present application further provides a system for reducing the load of a CAN bus, which at least includes:

[0032] 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;

[0033] a priority information acquiring unit, configured to acquire 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;

[0034] 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 staggered sending, and / or extending the sending cycle.

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

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

[0037] 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.

[0038] The priority information acquisition unit further includes:

[0039] A level information acquisition unit, configured 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;

[0040] The quantity acquisition unit is used to obtain at least the quantity of the CAN messages of the third priority.

[0041] Wherein, the load reduction processing unit further includes:

[0042] a load reduction quantity adjustment unit, configured to gradually reduce the quantity of CAN messages of the third priority level sent in each cycle, and determine whether the CAN bus load of the channel after adjustment is less than the maximum load rate threshold;

[0043] 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 method to control only sending a reduced number of third-priority CAN messages in each cycle, where the reduced number is at least one;

[0044] The second adjustment processing unit is used to adopt a dynamic ring staggered sending method 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.

[0045] Which further includes:

[0046] 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 the preset minimum load rate threshold.

[0047] 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:

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

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

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

[0051] Which further includes:

[0052] a priority message generating unit, configured 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 the message to each network node to control the current CAN message sending strategy of each network node;

[0053] Among them, when the control signal bit of the third priority of the priority message is 1, the network node is controlled to send the third priority CAN message normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the network node is controlled to prohibit sending the third priority CAN message in the current sending cycle;

[0054] 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.

[0055] In another aspect of the present application, 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 the aforementioned method are implemented.

[0056] In another aspect of the present application, 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.

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

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

[0059] 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:

[0060] 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;

[0061] 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.

[0062] The implementation of the embodiments of the present application has the following beneficial effects:

[0063] This application provides a method, system, computing device, storage medium, and vehicle for reducing bus load. By defining a master monitoring node (e.g., a gateway controller) within the CAN nodes of the same channel to monitor the bus load rate, the system promptly responds if the current load rate is too high, controlling the number of lowest-priority messages sent and delaying the transmission period of the next-lowest-priority messages. This achieves a staggered transmission strategy, effectively reducing the bus load rate dynamically and improving the security and efficiency of CAN bus communications.

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

[0065] The method provided in this application can greatly reduce the pressure of information interaction between key nodes in scenarios where the load rate is too high for a long time, ensure the real-time nature of key information (high-priority CAN messages) at all times, and maintain information availability. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, without paying any creative labor, obtaining other drawings based on these drawings still falls within the scope of the present application.

[0067] FIG1 is a schematic diagram of the main flow of an embodiment of a method for reducing bus load provided by the present application;

[0068] FIG2 is a schematic diagram of the data structure of a CAN FD message involved in this application;

[0069] FIG3 is a schematic diagram showing the principle of dynamic peak-shifting transmission involved in this application;

[0070] FIG4 is a schematic structural diagram of an embodiment of a system for reducing bus load provided by the present application;

[0071] FIG5 is a schematic structural diagram of the monitoring processing unit in FIG4 ;

[0072] FIG6 is a schematic structural diagram of the priority information acquisition unit in FIG4 ;

[0073] FIG7 is a schematic structural diagram of the load reduction processing unit in FIG4 . DETAILED DESCRIPTION

[0074] In order to make the objectives, technical solutions and advantages of this application clearer, this application will be described in further detail below with reference to the accompanying drawings.

[0075] As shown in FIG1 , a schematic diagram of the main flow of an embodiment of a method for reducing CAN bus load provided by the present application is shown. In conjunction with FIG2 and FIG3 , in this embodiment, the method includes at least the following steps:

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

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

[0078] 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.

[0079] In this application, the CAN message can be a standard CAN message or a CAN FD message. 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.

[0080] Combined with the data structure diagram of CANFD shown in Figure 2. The current load rate is explained with an example. In one example, taking the CANFD message as an example, for a single-channel CANFD bus, the bus baud rate B = 2Mbps, the sending interval of a certain CAN message t = 40ms, and the size of each frame f = 75 bytes. Assuming that the number of ECUs sending messages on the bus at each moment is N, the CANFD frame size f can be obtained according to Figure 2: f = (1+32+9+33+2+7+3) / 8+64 = 87 / 8+64 < 11+64 = 75 bytes;

[0081] Therefore, the maximum theoretical load Qmax and the actual total load Qcan of the bus can be obtained as follows: Qmax = (B*1024) / 8 = 128*B = 256 kbytes / s; Qcan = (N*(1000 / t)*f) / 1024 = (1000N*f) / (1024*t) (kbytes / s);

[0082] The current load rate W of the CAN message can be obtained by dividing the two: W = Qcan / Qmax = (1000N*f) / (1024*t*Qmax) = (1000N*f) / (1024*t*128*B);

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

[0084] Analyze a=f(N,t). If W=a%, then: (1000N*f) / (1024*t*128*B)=a%;

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

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

[0087] From the above formula we can know that:

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

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

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

[0091] Step S11, 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;

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

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

[0094] It can be understood that in an example of the present application, all CAN messages (standard CAN messages and CAN FD messages) can be prioritized in advance. Table 1 below shows a classification method.

[0095] Table 1 CAN message classification list

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

[0097] The step S12 further comprises:

[0098] 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;

[0099] Step S121: If the result of the judgment is yes, a dynamic ring-shaped staggered transmission method is adopted to control only a reduced number of third-priority CAN messages to be sent in each cycle, where the reduced number is at least one;

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

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

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

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

[0104] As shown in FIG3 , in an embodiment of the present application, considering that each ECU has an equal right to send messages and considering the message priority, 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 for priority C messages is activated. Assuming that the number of ECUs N is controlled, there are currently 7 ECUs sending messages at the same time, and the bus load rate is too high. The controller gateway module activates the staggered strategy and calculates that 5 ECUs 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 FIG3 is only for example. In other embodiments, other similar control methods (such as randomly generating objects to be sent in each batch) can also be used to achieve the same effect.

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

[0106] It is understandable that in some cases, if only reducing the load of the third priority CAN messages is not effective, it is necessary to reduce the load of the second priority (B). The load reduction is achieved by extending the transmission period of the second priority CAN messages.

[0107] 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.

[0108] In the example of the present application, the current load rate of the CAN bus is controlled by controlling N and t, thereby achieving the load reduction of the CAN bus. More specifically, in a specific application, the CAN message gateway controller of the entire vehicle can be regarded as the responsible party for monitoring the bus load rate. It can send out a bus load rate priority message control signal bit to control the sending strategy of each network node (ECU) on the bus architecture. In the bus load rate priority 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 (C) can be defined, and the bus load control signal name BusLoad_B_Enable for controlling the second priority (B) can be defined. The message of the first priority (A) must be guaranteed to be real-time, and the most important thing is that there is no need to consider control.

[0109] 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 in this application, set the 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;

[0110] Among them, when the control signal bit of the third priority of the priority message is 1, the network node is controlled to send the third priority CAN message normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the network node is controlled to prohibit sending the third priority CAN message in the current sending cycle;

[0111] 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.

[0112] 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.

[0113] The method of the present application 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 will respond in time to start controlling the number of ECUs allowed to send third priority (C) messages, and control the peak-shifting strategy of adjusting the sending cycle of second priority (B) messages, so as to achieve real-time control of the problem of excessive bus load rate.

[0114] FIG4 is a schematic diagram showing a structure of an embodiment of a system for reducing CAN bus load provided by the present application. Combined with FIG5 to FIG7 , in this embodiment, the system 1 for reducing CAN bus load includes at least:

[0115] 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;

[0116] The priority information acquisition unit 11 is configured 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;

[0117] 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 the CAN message of at least one priority level. The load reduction adjustment at least includes: dynamic staggered sending, and / or extending the sending cycle.

[0118] As shown in FIG5 , in a specific example, the monitoring processing unit 10 further includes:

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

[0120] The calculation unit 101 is configured to calculate an actual total load of the bus in a 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.

[0121] As shown in FIG6 , in a specific example, the priority information acquiring unit 11 further includes:

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

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

[0124] As shown in FIG7 , in a specific example, the load reduction processing unit 12 further includes:

[0125] a load reduction amount adjustment unit 120, configured 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;

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

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

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

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

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

[0131] The second adjustment processing unit 122 is configured to, when the determination result of the load reduction quantity adjustment unit is negative, adopt a dynamic ring staggered transmission method to control only one third priority CAN message to be sent in each cycle and extend the transmission cycle of each second priority CAN message.

[0132] In conjunction with FIG4 , the system 1 for reducing the CAN bus load further includes:

[0133] a recovery processing unit 13, configured to gradually recover the transmission cycle of the second priority CAN messages and gradually recover the number of third priority CAN messages sent 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;

[0134] 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;

[0135] Among them, when the control signal bit of the third priority of the priority message is 1, the network node is controlled to send the third priority CAN message normally in the current sending cycle; when the control signal bit of the third priority of the priority message is 1, the network node is controlled to prohibit sending the third priority CAN message in the current sending cycle;

[0136] 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.

[0137] On another aspect of the present application, 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 the method described in Figures 1 to 3 are implemented. For more details, please refer to and combine with the above description of Figures 1 to 3, which will not be repeated here.

[0138] On the other hand, the present application further provides a computing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method described in Figures 1 to 3 are implemented. For more details, please refer to and combine the above description of Figures 1 to 3, which will not be repeated here.

[0139] In another aspect of the present application, a vehicle is provided, which has 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:

[0140] A system for reducing the CAN bus load as described in Figures 4 to 7 is deployed in the CAN message gateway controller;

[0141] 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:

[0142] 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;

[0143] 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.

[0144] For more details, please refer to and combine the above descriptions of Figures 1 to 7, which will not be repeated here.

[0145] The implementation of the embodiments of the present application has the following beneficial effects:

[0146] This application provides a method, system, computing device, storage medium, and vehicle for reducing bus load. By defining a master monitoring node (e.g., a gateway controller) within the CAN nodes of the same channel to monitor the bus load rate, the system promptly responds if the current load rate is too high, controlling the number of lowest-priority messages sent and delaying the transmission period of the next-lowest-priority messages. This achieves a staggered transmission strategy, effectively reducing the bus load rate dynamically and improving the security and efficiency of CAN bus communications.

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

[0148] The method provided in this application can greatly reduce the pressure of information interaction between key nodes in scenarios where the load rate is too high for a long time, ensure the real-time nature of key information (high-priority CAN messages) at all times, and maintain information availability.

[0149] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0150] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized 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 processing machine 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 produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0151] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

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: The load reduction quantity adjustment unit is used to gradually reduce the number of CAN messages of the third priority sent in each cycle, and to determine the adjustment 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

Patent Citations

  • CAN bus data transmission method and control system

    CN109962858A

  • Engineering machinery and network optimization method and device thereof

    CN112769714A

  • Message data transmission method and device, terminal equipment and readable storage medium

    CN113852563A

  • Module and device of wheel tread detecting

    KR1020200026685A

Cited By

  • Low-voltage power Internet of Things network load balancing method, medium and terminal

    CN118921327A

  • Vehicle network communication system, information determination method, vehicle, device, medium and product

    CN119892876A

  • Bus network data transmission control method based on priority scheduling

    CN120034407A

  • Method and system for adjusting CAN bus message period based on dynamic load balancing

    CN120896946A

  • Can bus message cycle adjustment method and system based on dynamic load balancing

    WO2026032463A3