Network management message sending method, device, equipment, medium, product and vehicle

By managing the inflow and outflow of network management messages in the vehicle bus and adjusting the transmission amount according to the preset threshold, the problem of high vehicle bus load is solved, reasonable scheduling of network management messages is achieved, and bus load is reduced.

CN119030815APending Publication Date: 2024-11-26BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310594795.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

When there is a lot of demand for vehicle bus communication, too many network management messages from the on-board electronic control unit are sent, resulting in excessive load on the vehicle bus and affecting system performance.

Method used

Through the management of network management messages in the preset storage space, the transmission volume is adjusted according to the remaining quantity threshold, the number of inflows and outflows is reduced, and the number of network management messages actually sent to the on-board bus is reduced.

Benefits of technology

It effectively reduces the load on the vehicle bus, reduces the number of messages sent by the electronic control unit to the bus, and improves system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030815A_ABST
    Figure CN119030815A_ABST
Patent Text Reader

Abstract

The invention discloses a network management message sending method and device, equipment, a medium, a product and a vehicle, and relates to the technical field of automobiles. The network management message sending method comprises the following steps: for an ith network management message sending period, sending network management messages in a preset storage space to a vehicle-mounted bus according to an inflow number and an outflow number corresponding to the ith network management message sending period; when the first number of the network management messages in the preset storage space is equal to a preset number threshold value, the inflow number is reduced, the reduction amount of the outflow number is determined to be zero, the first number is the remaining number of the network management messages in the preset storage space after the ith network management message sending period, and the preset number threshold value is larger than zero; when the first number is equal to zero, the outflow number is reduced, and the reduction amount of the inflow number is determined to be zero. Through the scheme disclosed by the invention, the vehicle bus load can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of automobile technology, and in particular, relates to a method, device, equipment and vehicle for sending network management messages. Background Art

[0002] The UDP Network Management (UDPNM) is a component of the AUTOSAR (Automotive Open System Architecture) Ethernet module. Its main purpose is to coordinate the switching of the vehicle's electronic control unit (ECU) between the bus sleep mode and the network mode to ensure that the ECU sleeps and wakes up in an orderly manner.

[0003] In the related technology, when the number of ECU nodes requiring communication on the vehicle bus is large, these ECU nodes will be awakened, and then these ECU nodes will periodically send network management messages (NMM) to the vehicle bus at a specific cycle. The number of NMMs sent by these ECU nodes to the vehicle bus is large, resulting in a high load on the vehicle bus. Summary of the invention

[0004] The embodiments of the present application provide a network management message sending method, device, equipment, medium, product and vehicle, which can solve the problem of high vehicle bus load.

[0005] In a first aspect, an embodiment of the present application provides a method for sending a network management message, including:

[0006] For the i-th network management message sending cycle, the network management message in the preset storage space is sent to the vehicle bus with the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle, wherein the inflow quantity is the number of network management messages flowing into the preset storage space, the outflow quantity is the number of network management messages flowing out of the preset storage space, and i is a positive integer;

[0007] When a first number of network management messages in a preset storage space is equal to a preset number threshold, reducing the inflow number, and determining that the reduction amount of the outflow number is zero, wherein the first number is a remaining number of network management messages in the preset storage space after the i-th network management message sending cycle, and the preset number threshold is greater than zero;

[0008] When the first quantity is equal to zero, the outflow quantity is reduced, and the amount of reduction of the inflow quantity is determined to be zero.

[0009] In a second aspect, an embodiment of the present application provides a network management message sending device, including:

[0010] a sending module, for sending the network management message in the preset storage space to the vehicle bus according to the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle, wherein the inflow quantity is the number of network management messages flowing into the preset storage space, the outflow quantity is the number of network management messages flowing out of the preset storage space, and i is a positive integer;

[0011] a first reduction module, configured to reduce the inflow quantity and determine that the reduction amount of the outflow quantity is zero when a first quantity of the network management messages in the preset storage space is equal to a preset quantity threshold, wherein the first quantity is a remaining quantity of the network management messages in the preset storage space after the i-th network management message sending cycle, and the preset quantity threshold is greater than zero;

[0012] The second reducing module is used for reducing the outflow quantity when the first quantity is equal to zero, and determining that the reduction amount of the inflow quantity is zero.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor reads and executes the computer program instructions, the network management message sending method provided in the first aspect of the embodiment of the present application is implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the network management message sending method provided in the first aspect of the embodiment of the present application is implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the network management message sending method provided in the first aspect of the embodiment of the present application.

[0016] In a sixth aspect, an embodiment of the present application provides a vehicle, comprising at least one of the following items:

[0017] A network management message sending device provided by the second aspect of the embodiment of the present application;

[0018] The electronic device provided by the third aspect of the embodiment of the present application;

[0019] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium.

[0020] In the embodiment of the present application, after the vehicle electronic control unit is awakened, for the i-th network management message sending cycle, the network management message in the preset storage space is sent to the vehicle bus with the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle; when the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle is equal to the preset number threshold, the inflow quantity is reduced and the outflow quantity is kept unchanged; when the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle is equal to zero, the outflow quantity is reduced and the inflow quantity is kept unchanged. On the one hand, since the outflow quantity reflects the number of network management messages actually sent to the vehicle bus, as the outflow quantity decreases, the number of network management messages sent to the vehicle bus during the network management message sending cycle will decrease; on the other hand, since the inflow quantity reflects the number of network management messages that need to be sent to the vehicle bus, as the inflow quantity decreases, the number of network management messages actually sent to the vehicle bus will decrease. In this way, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load of the vehicle bus. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] Figure 1 It is a flowchart of a method for sending a network management message provided in an embodiment of the present application;

[0023] Figure 2 It is a schematic diagram of the process of sending a network management message provided in an embodiment of the present application;

[0024] Figure 3 It is a structural diagram of a network management message sending device provided in an embodiment of the present application;

[0025] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0027] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0028] The following, in conjunction with the accompanying drawings, describes in detail the network management message sending method, device, equipment and vehicle provided in the embodiments of the present application through specific embodiments and their application scenarios.

[0029] Figure 1 Schematic diagram of the flow of the network management message sending method provided in the embodiment of the present application. Figure 1 As shown, the network management message sending method may include:

[0030] Step 101: for the i-th network management message sending cycle, the network management message in the preset storage space is sent to the vehicle bus with the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle, wherein the inflow quantity is the number of network management messages flowing into the preset storage space, the outflow quantity is the number of network management messages flowing out of the preset storage space, and i is a positive integer;

[0031] Step 102: when a first number of network management messages in a preset storage space is equal to a preset number threshold, reducing the inflow number, and determining that the reduction amount of the outflow number is zero, wherein the first number is the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle, and the preset number threshold is greater than zero;

[0032] Step 103: When the first quantity is equal to zero, the outflow quantity is reduced, and the reduction amount of the inflow quantity is determined to be zero.

[0033] The specific implementation of each of the above steps will be described in detail below.

[0034] In the embodiment of the present application, after the vehicle electronic control unit is awakened, for the i-th network management message sending cycle, the network management message in the preset storage space is sent to the vehicle bus with the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle; when the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle is equal to the preset number threshold, the inflow quantity is reduced and the outflow quantity is kept unchanged; when the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle is equal to zero, the outflow quantity is reduced and the inflow quantity is kept unchanged. On the one hand, since the outflow quantity reflects the number of network management messages actually sent to the vehicle bus, as the outflow quantity decreases, the number of network management messages sent to the vehicle bus during the network management message sending cycle will decrease; on the other hand, since the inflow quantity reflects the number of network management messages that need to be sent to the vehicle bus, as the inflow quantity decreases, the number of network management messages actually sent to the vehicle bus will decrease. In this way, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load of the vehicle bus.

[0035] It should be noted that the preset storage space in the embodiment of the present application is used to cache network management messages that need to be sent to the vehicle bus. Since there are network management messages flowing in and out, it can be called a scheduling leaky bucket for scheduling the sending of network management messages. The inflow traffic in the embodiment of the present application refers to the number of network management messages sent by the communication network management layer of the vehicle-mounted electronic control unit stored in the preset storage space; the outflow traffic refers to the number of network management messages in the preset storage space sent to the physical packet sending layer. The outflow quantity reflects the number of network management messages actually sent to the vehicle bus by the physical packet sending layer, and the inflow quantity reflects the number of network management messages that the communication network management layer needs to send to the vehicle bus. The preset quantity threshold can be the maximum value of the number of network management messages that can be stored in the preset storage space.

[0036] In some possible implementations of the embodiments of the present application, the remaining number of network management messages in the preset storage space after the i+1th network management message sending cycle = the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle + the incoming number corresponding to the i+1th network management message sending cycle - the outgoing number corresponding to the i+1th network management message sending cycle.

[0037] Exemplarily, it is assumed that the number of network management messages in the preset storage space in the initial state is 0. The inflow number corresponding to the first network management message sending cycle is 10, and the outflow number corresponding to the first network management message sending cycle is 5, then the remaining number of network management messages in the preset storage space after the first network management message sending cycle is 0+10-5=5.

[0038] As another example, assume that the remaining number of network management messages in the preset storage space after the third network management message sending cycle is 15. The inflow number corresponding to the fourth network management message sending cycle is 10, and the outflow number corresponding to the fourth network management message sending cycle is 5, then the remaining number of network management messages in the preset storage space after the fourth network management message sending cycle is 15+10-5=20.

[0039] It should be noted that the first number is not greater than the preset number threshold. That is, when the remaining number of network management messages in the preset storage space reaches the preset number threshold, if there are still network management messages not stored in the preset storage space, the network management messages not stored in the preset storage space will be discarded and no longer stored in the preset storage space.

[0040] Exemplarily, assume that the preset number threshold is 20. The remaining number of network management messages in the preset storage space after the third network management message sending cycle is 15. The inflow number corresponding to the fourth network management message sending cycle is 10, and the outflow number corresponding to the fourth network management message sending cycle is 3, then the remaining number of network management messages in the preset storage space after the fourth network management message sending cycle is 20. Among them, 15+10-3-20=2 network management messages are discarded and not stored in the preset storage space.

[0041] In some possible implementations of the embodiments of the present application, an initial inflow quantity, an initial outflow quantity, and a preset quantity threshold may be preset.

[0042] After the vehicle electronic control unit is awakened, the initial inflow quantity is used as the inflow quantity corresponding to the first network management message sending cycle, and the initial outflow quantity is used as the outflow quantity corresponding to the first network management message sending cycle. In the first network management message sending cycle, the network management message in the preset storage space is sent to the vehicle bus with the inflow quantity and outflow quantity corresponding to the first network management message sending cycle.

[0043] After the network management message is sent, when the first number of network management messages in the preset storage space is equal to the preset number threshold, the inflow number is reduced to obtain the inflow number corresponding to the second network management message sending cycle, and the outflow number is kept unchanged to obtain the outflow number corresponding to the second network management message sending cycle; when the first number of network management messages in the preset storage space is equal to zero, the outflow number is reduced to obtain the outflow number corresponding to the second network management message sending cycle, and the inflow number is kept unchanged to obtain the inflow number corresponding to the second network management message sending cycle. When the first number of network management messages in the preset storage space is neither equal to the preset number threshold nor equal to zero, the inflow number and the outflow number are kept unchanged.

[0044] In the second network management message sending cycle, the network management message in the preset storage space is sent to the vehicle bus with the inflow quantity and outflow quantity corresponding to the second network management message sending cycle.

[0045] After the network management message is sent, when the first number of network management messages in the preset storage space is equal to the preset number threshold, the inflow number is reduced to obtain the inflow number corresponding to the third network management message sending cycle, and the outflow number is kept unchanged to obtain the outflow number corresponding to the third network management message sending cycle; when the first number of network management messages in the preset storage space is equal to zero, the outflow number is reduced to obtain the outflow number corresponding to the third network management message sending cycle, and the inflow number is kept unchanged to obtain the inflow number corresponding to the third network management message sending cycle. When the first number of network management messages in the preset storage space is neither equal to the preset number threshold nor equal to zero, the inflow number and the outflow number are kept unchanged.

[0046] And so on, until a network release request is received, the network management message is stopped from being sent to the vehicle bus.

[0047] In some possible implementations of the embodiments of the present application, step 102 may include: determining X times the inflow number corresponding to the i-th network management message sending cycle as the inflow number corresponding to the i+1-th network management message sending cycle, where X is a positive number less than 1.

[0048] Exemplarily, assuming that X is 1 / 2, the number of incoming calls corresponding to the first network management message sending cycle is 4, and the number of incoming calls corresponding to the second network management message sending cycle is 2.

[0049] In the embodiment of the present application, by determining the inflow number corresponding to the i+1th network management message sending cycle as X (X is less than 1 and greater than 0) times the inflow number corresponding to the i-th network management message sending cycle, the number of network management messages that need to be sent to the vehicle bus can be reduced. As the inflow number decreases, the number of network management messages actually sent to the vehicle bus will decrease. In this way, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load on the vehicle bus.

[0050] In some possible implementations of the embodiments of the present application, step 102 may include: determining the maximum value of Y times the inflow number corresponding to the i-th network management message sending cycle and Imin as the inflow number corresponding to the i+1-th network management message sending cycle, where Imin is the minimum value of the value range corresponding to the preset initial inflow number, and Y is a positive number less than 1.

[0051] In some possible implementations of the embodiments of the present application, the value range corresponding to the initial inflow quantity may be set to [Imin, Imax], where Imin and Imax may be set according to actual needs.

[0052] Exemplarily, assuming that Y is 1 / 2, the inflow number corresponding to the first network management message sending cycle is 4, and the inflow number corresponding to the second network management message sending cycle=max[2, Imin].

[0053] In the embodiment of the present application, by determining the maximum value of the minimum value of the value range corresponding to the initial inflow number and the Y times of the inflow number corresponding to the i-th network management message sending cycle (Y is less than 1 and greater than 0) as the inflow number corresponding to the i+1-th network management message sending cycle, the number of network management messages that need to be sent to the vehicle bus can be reduced. As the inflow number decreases, the number of network management messages actually sent to the vehicle bus will decrease. In this way, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load on the vehicle bus.

[0054] In some possible implementations of the embodiments of the present application, step 103 may include: determining M times the outflow number corresponding to the i-th network management message sending cycle as the outflow number corresponding to the i+1-th network management message sending cycle, where M is a positive number less than 1.

[0055] Exemplarily, assuming that M is 1 / 2, the outbound number corresponding to the first network management message sending cycle is 4, and the outbound number corresponding to the first network management message sending cycle is determined to be 2.

[0056] In some possible implementations of the embodiments of the present application, step 103 may include: determining the maximum value of N times the outflow number corresponding to the i-th network management message sending cycle and Jmin as the outflow number corresponding to the i+1-th network management message sending cycle, where Jmin is the minimum value of the value range corresponding to the preset initial outflow number, and N is a positive number less than 1.

[0057] In some possible implementations of the embodiments of the present application, the value range corresponding to the initial outflow quantity may be set to [Jmin, Jmax], where Jmin and Jmax may be set according to actual needs.

[0058] Exemplarily, assuming that N is 1 / 2, the outflow quantity corresponding to the first network management message sending cycle is 4, and the outflow quantity corresponding to the second network management message sending cycle=max[2, Jmin].

[0059] In an embodiment of the present application, by determining the maximum value of N (N is less than 1 and greater than 0) times the outflow number corresponding to the i-th network management message sending cycle and the minimum value of the value range corresponding to the initial outflow number as the outflow number corresponding to the i+1-th network management message sending cycle, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load on the vehicle bus.

[0060] In some possible implementations of the embodiments of the present application, the value range corresponding to the initial inflow quantity and the value range corresponding to the initial outflow quantity in the embodiments of the present application may be the same quantity value range.

[0061] In some possible implementations of the embodiments of the present application, when the first number is equal to the remaining number of network management messages in the preset storage space of the previous network management message sending cycle, the network management message sending method provided by the embodiments of the present application may also include: determining that the reduction amount of the incoming number is zero and the reduction amount of the outgoing number is zero.

[0062] In an embodiment of the present application, when the first number is equal to the remaining number of network management messages in the preset storage space of the previous network management message sending cycle, by determining the reduction amount of the inflow number to be zero and the reduction amount of the outflow number to be zero, that is, keeping the inflow number and the outflow number unchanged, it is possible to avoid the situation where the inflow number and the outflow number continue to decrease and the network management message cannot be sent to the vehicle bus, thereby ensuring that the node is active and meeting the vehicle bus communication requirements.

[0063] In some possible implementations of the embodiments of the present application, when the first number is not equal to a preset number threshold, zero, and the remaining number of network management messages in the preset storage space of the previous network management message sending cycle, the network management message sending method provided by the embodiments of the present application may also include: updating the remaining number of network management messages in the preset storage space of the previous network management message sending cycle to the first number, and determining that the reduction amount of the inflow number is zero and the reduction amount of the outflow number is zero.

[0064] Figure 2 1 is a schematic diagram of a process of sending a network management message provided by an embodiment of the present application. The process of sending a network management message may include the following steps:

[0065] Step 201: Initialize the inflow quantity input, the outflow quantity output, the preset quantity threshold Lmax, the first quantity Level, and the remaining quantity Pre of the network management messages in the preset storage space of the previous network management message sending cycle;

[0066] In step 201, input and output are initialized to any value in the quantity threshold, and Level and Pre are initialized to zero.

[0067] Step 202: Sending a network management message in a preset storage space to the vehicle bus by using input and output control;

[0068] Step 203: Determine whether Level is equal to Lmax, if yes, execute step 204, if no, execute step 205;

[0069] Step 204: reduce the input, keep the output unchanged, and continue to execute step 202;

[0070] Step 205: Determine whether Level is equal to 0, if yes, execute step 206, if no, execute step 207;

[0071] Step 206: reduce the output, keep the input unchanged, and continue to execute step 202;

[0072] Step 207: Determine whether Level is equal to Pre, if yes, execute step 208, if no, execute step 209;

[0073] Step 208: Determine that the decrease amount of input is zero and the decrease amount of output is zero, and continue to execute step 202;

[0074] Step 209: Assign Pre to Level, determine that the reduction amount of input is zero and the reduction amount of output is zero, and continue to execute step 202.

[0075] It should be noted that, at any time, the vehicle electronic control unit receives a network release request, stops sending network management messages to the vehicle bus, and enters the bus sleep mode.

[0076] Corresponding to the above method embodiment, the present application embodiment also provides a network management message sending device. Figure 3 As shown, Figure 3 300 is a schematic diagram of the structure of a network management message sending device provided in an embodiment of the present application. The network management message sending device 300 may include:

[0077] The sending module 301 is used to send the network management message in the preset storage space to the vehicle bus according to the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle for the i-th network management message sending cycle, wherein the inflow quantity is the number of network management messages flowing into the preset storage space, the outflow quantity is the number of network management messages flowing out of the preset storage space, and i is a positive integer;

[0078] A first reducing module 302, configured to reduce the inflow quantity and determine that the reduction amount of the outflow quantity is zero when a first quantity of network management messages in the preset storage space is equal to a preset quantity threshold, wherein the first quantity is a remaining quantity of network management messages in the preset storage space after the i-th network management message sending cycle, and the preset quantity threshold is greater than zero;

[0079] The second reducing module 303 is configured to reduce the outflow quantity when the first quantity is equal to zero, and determine that the reduction amount of the inflow quantity is zero.

[0080] In the embodiment of the present application, after the vehicle electronic control unit is awakened, for the i-th network management message sending cycle, the network management message in the preset storage space is sent to the vehicle bus with the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle; when the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle is equal to the preset number threshold, the inflow quantity is reduced and the outflow quantity is kept unchanged; when the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle is equal to zero, the outflow quantity is reduced and the inflow quantity is kept unchanged. On the one hand, since the outflow quantity reflects the number of network management messages actually sent to the vehicle bus, as the outflow quantity decreases, the number of network management messages sent to the vehicle bus during the network management message sending cycle will decrease; on the other hand, since the inflow quantity reflects the number of network management messages that need to be sent to the vehicle bus, as the inflow quantity decreases, the number of network management messages actually sent to the vehicle bus will decrease. In this way, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load of the vehicle bus.

[0081] In some possible implementations of the embodiment of the present application, the first reducing module 302 may be specifically used to:

[0082] X times the inflow quantity corresponding to the i-th network management message sending period is determined as the inflow quantity corresponding to the (i+1)-th network management message sending period, where X is a positive number less than 1.

[0083] In the embodiment of the present application, by determining the inflow number corresponding to the i+1th network management message sending cycle as X (X is less than 1 and greater than 0) times the inflow number corresponding to the i-th network management message sending cycle, the number of network management messages that need to be sent to the vehicle bus can be reduced. As the inflow number decreases, the number of network management messages actually sent to the vehicle bus will decrease. In this way, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load on the vehicle bus.

[0084] In some possible implementations of the embodiment of the present application, the first reducing module 302 may be specifically used to:

[0085] The maximum value of Y times the inflow number corresponding to the i-th network management message sending cycle and Imin is determined as the inflow number corresponding to the i+1-th network management message sending cycle, where Imin is the minimum value of the value range corresponding to the preset initial inflow number, and Y is a positive number less than 1.

[0086] In the embodiment of the present application, by determining the maximum value of the minimum value of the value range corresponding to the initial inflow number and the Y (Y is less than 1 and greater than 0) times the inflow number corresponding to the i-th network management message sending cycle as the inflow number corresponding to the i+1-th network management message sending cycle, the number of network management messages that need to be sent to the vehicle bus can be reduced. As the inflow number decreases, the number of network management messages actually sent to the vehicle bus will decrease. In this way, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load on the vehicle bus.

[0087] In some possible implementations of the embodiment of the present application, the second reducing module 303 may be specifically used to:

[0088] M times the outflow quantity corresponding to the i-th network management message sending period is determined as the outflow quantity corresponding to the (i+1)-th network management message sending period, where M is a positive number less than 1.

[0089] In an embodiment of the present application, by determining M (M is less than 1 and greater than 0) times the outbound number corresponding to the i+1th network management message sending cycle, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load on the vehicle bus.

[0090] In some possible implementations of the embodiment of the present application, the second reducing module 303 may be specifically used to:

[0091] The maximum value of N times the outflow number corresponding to the i-th network management message sending cycle and Jmin is determined as the outflow number corresponding to the i+1-th network management message sending cycle, where Jmin is the minimum value of the value range corresponding to the preset initial outflow number, and N is a positive number less than 1.

[0092] In an embodiment of the present application, by determining the maximum value of N (N is less than 1 and greater than 0) times the outflow number corresponding to the i-th network management message sending cycle and the minimum value of the value range corresponding to the initial outflow number as the outflow number corresponding to the i+1-th network management message sending cycle, the number of network management messages sent by the vehicle electronic control unit to the vehicle bus can be reduced, thereby reducing the load on the vehicle bus.

[0093] In some possible implementations of the embodiments of the present application, the network management message sending device 300 provided in the embodiments of the present application may further include:

[0094] The determination module is used to determine that the reduction amount of the inflow quantity is zero and the reduction amount of the outflow quantity is zero when the first quantity is equal to the remaining quantity of the network management messages in the preset storage space of the previous network management message sending cycle.

[0095] In an embodiment of the present application, when the first number is equal to the remaining number of network management messages in the preset storage space of the previous network management message sending cycle, by determining the reduction amount of the inflow number to be zero and the reduction amount of the outflow number to be zero, that is, keeping the inflow number and the outflow number unchanged, it is possible to avoid the situation where the inflow number and the outflow number continue to decrease and the network management message cannot be sent to the vehicle bus, thereby ensuring that the node is active and meeting the vehicle bus communication requirements.

[0096] In some possible implementations of the embodiments of the present application, the network management message sending device 300 provided in the embodiments of the present application may further include:

[0097] An updating module is used to update the remaining number of network management messages in the preset storage space of the previous network management message sending cycle to the first number when the first number is not equal to the preset number threshold, zero and the remaining number of network management messages in the preset storage space of the previous network management message sending cycle, and to determine that the reduction amount of the inflow number is zero and the reduction amount of the outflow number is zero.

[0098] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0099] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.

[0100] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0101] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an electronic device. In some specific embodiments, memory 402 is a non-volatile solid-state memory.

[0102] In some specific embodiments, the memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the network management message sending method according to the present application.

[0103] The processor 401 implements the network management message sending method provided in the embodiment of the present application by reading and executing the computer program instructions stored in the memory 402.

[0104] In some examples, the electronic device may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.

[0105] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0106] The bus 410 includes hardware, software or both, coupling the components of the electronic device to each other. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro channel architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 410 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0107] The electronic device can execute the network management message sending method provided in the embodiment of the present application, thereby achieving the corresponding technical effects of the network management message sending method provided in the embodiment of the present application.

[0108] In addition, in combination with the network management message sending method in the above embodiment, the embodiment of the present application also provides a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the network management message sending method provided in the embodiment of the present application is implemented. Examples of computer-readable storage media include non-transitory computer-readable media, such as ROM, RAM, magnetic disk or optical disk, etc.

[0109] An embodiment of the present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the network management message sending method provided in the embodiment of the present application and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0110] The present application also provides a vehicle, which includes at least one of the following items:

[0111] The network management message sending device provided in the embodiment of the present application;

[0112] The electronic device provided by the embodiment of the present application;

[0113] The computer-readable storage medium provided by the embodiments of the present application.

[0114] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for sending a network management message, characterized in that: The method comprises: For the i-th network management message sending cycle, the network management message in the preset storage space is sent to the vehicle bus with the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle, wherein the inflow quantity is the number of network management messages flowing into the preset storage space, the outflow quantity is the number of network management messages flowing out of the preset storage space, and i is a positive integer; When a first number of network management messages in the preset storage space is equal to a preset number threshold, reducing the inflow number, and determining that the reduction amount of the outflow number is zero, wherein the first number is the remaining number of network management messages in the preset storage space after the i-th network management message sending cycle, and the preset number threshold is greater than zero; When the first quantity is equal to zero, the outflow quantity is reduced, and the reduction amount of the inflow quantity is determined to be zero.

2. The method according to claim 1, characterized in that The reducing the inflow amount comprises: X times the inflow quantity corresponding to the i-th network management message sending period is determined as the inflow quantity corresponding to the (i+1)-th network management message sending period, where X is a positive number less than 1.

3. The method according to claim 1, characterized in that The reducing the inflow amount comprises: The maximum value of Y times the inflow number corresponding to the i-th network management message sending cycle and Imin is determined as the inflow number corresponding to the i+1-th network management message sending cycle, where Imin is the minimum value of the value range corresponding to the preset initial inflow number, and Y is a positive number less than 1.

4. The method according to claim 1, characterized in that The reducing the outflow quantity comprises: M times the outflow quantity corresponding to the i-th network management message sending period is determined as the outflow quantity corresponding to the (i+1)-th network management message sending period, where M is a positive number less than 1.

5. The method according to claim 1, characterized in that The reducing the outflow quantity comprises: The maximum value of N times the outflow number corresponding to the i-th network management message sending cycle and Jmin is determined as the outflow number corresponding to the i+1-th network management message sending cycle, where Jmin is the minimum value of the value range corresponding to the preset initial outflow number, and N is a positive number less than 1.

6. The method according to claim 1, characterized in that In a case where the first number is equal to the remaining number of network management messages in the preset storage space in the previous network management message sending cycle, the method further includes: It is determined that the decrease amount of the inflow quantity is zero and the decrease amount of the outflow quantity is zero.

7. The method according to claim 1, characterized in that In a case where the first number is not equal to the preset number threshold, zero, and the remaining number of network management messages in the preset storage space after the last network management message sending cycle, the method further includes: The remaining number of network management messages in the preset storage space after the last network management message sending cycle is updated to the first number, and the reduction amount of the inflow number is determined to be zero and the reduction amount of the outflow number is determined to be zero.

8. A network management message sending device, characterized in that: The device comprises: a sending module, for sending the network management message in the preset storage space to the vehicle bus according to the inflow quantity and outflow quantity corresponding to the i-th network management message sending cycle, wherein the inflow quantity is the number of network management messages flowing into the preset storage space, the outflow quantity is the number of network management messages flowing out of the preset storage space, and i is a positive integer; a first reduction module, configured to reduce the inflow quantity and determine that the reduction amount of the outflow quantity is zero when a first quantity of the network management messages in the preset storage space is equal to a preset quantity threshold, wherein the first quantity is a remaining quantity of the network management messages in the preset storage space after the i-th network management message sending cycle, and the preset quantity threshold is greater than zero; The second reducing module is used for reducing the outflow quantity when the first quantity is equal to zero, and determining that the reduction amount of the inflow quantity is zero.

9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the network management message sending method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the network management message sending method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the network management message sending method as described in any one of claims 1 to 7.

12. A vehicle, characterized in that: The vehicle includes at least one of the following: The network management message sending device as claimed in claim 8; The electronic device according to claim 9; The computer readable storage medium of claim 10.