Network management message sending method, device, equipment and vehicle
By adjusting the packet transmission period interval and network management message sending cycle, the problem of high vehicle bus load is solved, reasonable control of network management messages is achieved, bus load is reduced, and system performance is improved.
Patent Information
- Application Number
- CN202310590067.4
- 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
When there is a lot of demand for vehicle bus communication, frequent network management messages from ECU nodes will be sent, resulting in excessive load on the vehicle bus, affecting system performance.
By adjusting the packet transmission cycle interval, the network management message sending cycle is determined, and the packet transmission cycle interval is increased or reduced when the packet transmission cycle expires, so as to control the number of network management messages sent and reduce the load on the vehicle bus.
It effectively reduces the number of network management messages sent by ECU nodes to the vehicle bus, reduces the load on the vehicle bus, and improves system performance.
Smart Images

Figure CN119030814A_ABST
Abstract
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 method, device, equipment and vehicle for sending a network management message, 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 packet transmission cycle, determine the network management message transmission cycle corresponding to the i-th packet transmission cycle according to the packet transmission cycle interval corresponding to the i-th packet transmission cycle, where i is a positive integer;
[0007] In the i-th packet transmission cycle, a network management message is sent to the vehicle bus in the network management message transmission cycle corresponding to the i-th packet transmission cycle;
[0008] When the i-th packet transmission period expires, the packet transmission period interval is increased and / or the packet transmission period is decreased.
[0009] In a second aspect, an embodiment of the present application provides a network management message sending device, including:
[0010] A determination module, for determining, for the ith packet transmission cycle, a network management message transmission cycle corresponding to the ith packet transmission cycle according to the packet transmission cycle interval corresponding to the ith packet transmission cycle, wherein i is a positive integer;
[0011] A sending module, used for sending a network management message to the vehicle bus in the i-th packet sending cycle and the network management message sending cycle corresponding to the i-th packet sending cycle;
[0012] The adjustment module is used to increase the packet transmission period interval and / or reduce the packet transmission period when the i-th packet transmission period expires.
[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 of the first aspect 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 of the first aspect is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product. When 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 in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a vehicle, comprising at least one of the following items:
[0017] The network management message sending device according to the second aspect;
[0018] The electronic device according to the third aspect;
[0019] The computer-readable storage medium described in the fourth aspect.
[0020] In the embodiment of the present application, after the vehicle electronic control unit is awakened, the network management message sending period corresponding to the i-th packet sending period is determined according to the packet sending period interval corresponding to the i-th packet sending period; in the i-th packet sending period, the network management message is sent to the vehicle bus with the network management message sending period corresponding to the i-th packet sending period; when the i-th packet sending period expires, the packet sending period interval is increased and / or the packet sending period is reduced. On the one hand, due to the reduction of the packet sending period, the number of network management messages sent to the vehicle bus during the packet sending period will decrease; on the other hand, since the network management message will not be sent to the vehicle bus during the packet sending period interval, as the packet sending period interval increases, in the same time period, the larger the packet sending period interval, the smaller the packet sending period, and thus the fewer the number of network management messages sent to the vehicle bus. 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 is a comparison chart of the number of network management messages sent provided by an embodiment of the present application;
[0025] Figure 4 It is a structural diagram of a network management message sending device provided in an embodiment of the present application;
[0026] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] 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.
[0028] 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.
[0029] 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.
[0030] 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:
[0031] Step 101: for the ith packet transmission cycle and the packet transmission cycle interval corresponding to the ith packet transmission cycle, determine the network management message sending cycle corresponding to the ith packet transmission cycle, where i is a positive integer;
[0032] Step 102: within the ith packet transmission cycle, sending a network management message to the vehicle bus in the network management message transmission cycle corresponding to the ith packet transmission cycle;
[0033] Step 103: When the i-th packet transmission period expires, increase the packet transmission period interval and / or decrease the packet transmission period.
[0034] The specific implementation of each of the above steps will be described in detail below.
[0035] In the embodiment of the present application, after the vehicle electronic control unit is awakened, the network management message sending period corresponding to the i-th packet sending period is determined according to the packet sending period interval corresponding to the i-th packet sending period; in the i-th packet sending period, the network management message is sent to the vehicle bus with the network management message sending period corresponding to the i-th packet sending period; when the i-th packet sending period expires, the packet sending period interval is increased and / or the packet sending period is reduced. On the one hand, due to the reduction of the packet sending period, the number of network management messages sent to the vehicle bus during the packet sending period will decrease; on the other hand, since the network management message will not be sent to the vehicle bus during the packet sending period interval, as the packet sending period interval increases, in the same time period, the larger the packet sending period interval, the smaller the packet sending period, and thus the fewer the number of network management messages sent to the vehicle bus. 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.
[0036] It should be noted that the packet transmission period in the embodiment of the present application is used to control the duration of the time period when the network management message is sent to the vehicle bus, that is, the network management message is only sent to the vehicle bus within the packet transmission period. The packet transmission period interval in the embodiment of the present application is the time interval between two adjacent packet transmission periods, that is, the packet transmission period interval corresponding to the i+1th packet transmission period is the duration between the end time of the i-th packet transmission period and the start time of the i+1th packet transmission period. The network management message sending period in the embodiment of the present application refers to the period for sending network management messages.
[0037] In some possible implementations of the embodiments of the present application, the initial packet sending cycle and the initial packet sending cycle interval may be preset.
[0038] After the vehicle electronic control unit is awakened, the initial packet transmission cycle is used as the first packet transmission cycle, and the initial packet transmission cycle interval is used as the packet transmission cycle interval corresponding to the first packet transmission cycle. According to the packet transmission cycle interval corresponding to the first packet transmission cycle, the network management message transmission cycle corresponding to the first packet transmission cycle is determined. When the packet transmission cycle interval corresponding to the first packet transmission cycle expires, within the first packet transmission cycle, the network management message is sent to the vehicle bus with the network management message transmission cycle corresponding to the first packet transmission cycle. When the first packet transmission cycle expires, the packet transmission cycle interval is increased to obtain the packet transmission cycle interval corresponding to the second packet transmission cycle. According to the packet transmission cycle interval corresponding to the second packet transmission cycle, the network management message transmission cycle corresponding to the second packet transmission cycle is determined. When the packet transmission cycle interval corresponding to the second packet transmission cycle expires, within the second packet transmission cycle, the network management message is sent to the vehicle bus with the network management message sending cycle corresponding to the second packet transmission cycle. When the second packet transmission cycle expires, the packet transmission cycle interval is increased to obtain the packet transmission cycle interval corresponding to the third packet transmission cycle, and so on, until a network release request is received and the network management message is stopped from being sent to the vehicle bus.
[0039] After the vehicle electronic control unit is awakened, the initial packet transmission cycle is used as the first packet transmission cycle, and the initial packet transmission cycle interval is used as the packet transmission cycle interval corresponding to the first packet transmission cycle. According to the packet transmission cycle interval corresponding to the first packet transmission cycle, the network management message transmission cycle corresponding to the first packet transmission cycle is determined. When the packet transmission cycle interval corresponding to the first packet transmission cycle expires, within the first packet transmission cycle, the network management message is sent to the vehicle bus with the network management message transmission cycle corresponding to the first packet transmission cycle, and when the first packet transmission cycle expires, the packet transmission cycle is reduced. According to the packet transmission cycle interval corresponding to the second packet transmission cycle, the network management message is sent to the vehicle bus with the network management message transmission cycle corresponding to the second packet transmission cycle, and when the second packet transmission cycle expires, the packet transmission cycle is reduced, and so on, until a network release request is received and the network management message is stopped from being sent to the vehicle bus.
[0040] After the vehicle electronic control unit is awakened, the initial packet transmission cycle is used as the first packet transmission cycle, and the initial packet transmission cycle interval is used as the packet transmission cycle interval corresponding to the first packet transmission cycle. According to the packet transmission cycle interval corresponding to the first packet transmission cycle, the network management message sending cycle corresponding to the first packet transmission cycle is determined. When the packet transmission cycle interval corresponding to the first packet transmission cycle expires, within the first packet transmission cycle, the network management message is sent to the vehicle bus with the network management message sending cycle corresponding to the first packet transmission cycle. When the first packet transmission cycle expires, the packet transmission cycle interval is increased to obtain the packet transmission cycle interval corresponding to the second packet transmission cycle, and the packet transmission cycle is reduced. According to the packet transmission cycle interval corresponding to the second packet transmission cycle, the network management message sending cycle corresponding to the second packet transmission cycle is determined. When the packet transmission cycle interval corresponding to the second packet transmission cycle expires, within the second packet transmission cycle, the network management message is sent to the vehicle bus with the network management message sending cycle corresponding to the second packet transmission cycle. When the second packet transmission cycle expires, the packet transmission cycle interval is increased to obtain the packet transmission cycle interval corresponding to the third packet transmission cycle, and the packet transmission cycle is reduced, and so on, until a network release request is received and the network management message is stopped from being sent to the vehicle bus.
[0041] In some possible implementations of the embodiments of the present application, step 101 may include: Determine the network management message sending period corresponding to the i-th packet sending period, where I i is the packet transmission period interval corresponding to the ith packet transmission period, N is greater than or equal to 1; or to I i Any random number between is determined as the network management message sending period corresponding to the i-th packet sending period.
[0042] Exemplarily, assuming that N is 2, the packet transmission period interval corresponding to the third packet transmission period is 10 milliseconds (ms), and the network management message transmission period corresponding to the third packet transmission period is determined to be 10 / 2=5 ms.
[0043] As another example, assuming that N is 2, the packet period interval corresponding to the third packet period is 10ms, any random number between 5ms and 10ms is determined as the network management message sending period corresponding to the third packet period. For example, the network management message sending period corresponding to the third packet period is determined to be 8ms.
[0044] In some possible implementations of the embodiments of the present application, step 103 may include: when i is less than a preset packet transmission cycle number threshold, increasing the packet transmission cycle interval and / or decreasing the packet transmission cycle.
[0045] The packet sending cycle quantity threshold is used to control the quantity of packet sending cycles.
[0046] In some possible implementations of the embodiments of the present application, increasing the packet transmission cycle interval may include: determining X times the packet transmission cycle interval corresponding to the ith packet transmission cycle as the packet transmission cycle interval corresponding to the (i+1)th packet transmission cycle, where X is greater than 1; or determining the minimum value of X times the packet transmission cycle interval corresponding to the ith packet transmission cycle and Imax as the packet transmission cycle interval corresponding to the (i+1)th packet transmission cycle, where Imax is the maximum value of the value range corresponding to the preset initial packet transmission cycle interval.
[0047] In some possible implementations of the embodiments of the present application, the value range corresponding to the initial packet transmission period interval may be set to [Imin, Imax], where Imin and Imax may be set according to actual needs.
[0048] Exemplarily, assuming that X is 2, the packet transmission period interval corresponding to the first packet transmission period is 2 ms, and the packet transmission period interval corresponding to the second packet transmission period is determined to be 4 ms.
[0049] As another example, assuming that X is 2, the packet transmission period interval corresponding to the first packet transmission period is 2 ms, and the packet transmission period interval corresponding to the second packet transmission period is min[4 ms, Imax].
[0050] In an embodiment of the present application, by determining the packet sending cycle interval corresponding to the i+1th packet sending cycle as the minimum value of the maximum value of the value range corresponding to the initial packet sending cycle interval and the packet sending cycle interval corresponding to the i-th packet sending cycle, the packet sending cycle interval can be increased. Within an equal time period, the larger the packet sending cycle interval, the smaller the packet sending cycle, and thus the fewer the number of network management messages sent to the vehicle bus, which can reduce the number of network management messages sent to the vehicle bus by the vehicle electronic control unit and reduce the load on the vehicle bus.
[0051] In some possible implementations of the embodiments of the present application, reducing the packet transmission period may include: determining Y times the i-th packet transmission period as the i+1-th packet transmission period, where Y is less than 1; or determining the minimum value of Y times the i-th packet transmission period and Jmin as the i+1-th packet transmission period, where Jmin is the minimum value of the value range corresponding to the preset initial packet transmission period.
[0052] In some possible implementations of the embodiments of the present application, the value range corresponding to the initial packet transmission period may be set to [Jmin, Jmax], where Jmin and Jmax may be set according to actual needs.
[0053] Exemplarily, assuming that Y is 1 / 2, the first packet transmission period is 2 ms, and the second packet transmission period is determined to be 1 ms.
[0054] For another example, assume that Y is 1 / 2, the first packet transmission period is 2 ms, and the second packet transmission period = min[1 ms, Jmin].
[0055] In an embodiment of the present application, by determining the i+1th packet sending cycle as Y times the i-th packet sending cycle or the minimum value of the minimum value in the value range corresponding to Y times the i-th packet sending cycle and the initial packet sending cycle, the packet sending cycle can be reduced. Due to the reduction in the packet sending cycle, the number of network management messages sent to the vehicle bus during the packet sending cycle will decrease, thereby reducing the number of network management messages sent by the vehicle electronic control unit to the vehicle bus and reducing the load on the vehicle bus.
[0056] In some possible implementations of the embodiments of the present application, the number of network management messages sent can be reduced by reducing the number of times the network management messages are sent. Based on this, before step 103, the network management message sending method provided by the embodiments of the present application may also include: in the i-th packet sending cycle, when the number of times the network management message is sent to the vehicle bus is equal to the number of times the message is repeatedly sent, stop sending the network management message to the vehicle bus. The number of times the message is repeatedly sent is the preset number of times the network management message is repeatedly sent.
[0057] For example, for the second packet transmission cycle, assuming that the second packet transmission cycle is 10ms, the network management message transmission cycle corresponding to the second packet transmission cycle is 1ms, and the number of times the message is repeatedly sent is 5. Then, in the second packet transmission cycle, the network management message is sent to the vehicle bus 5 times, and then the network management message is stopped from being sent to the vehicle bus.
[0058] In an embodiment of the present application, during the i-th packet sending cycle, when the number of times a network management message is sent to the vehicle bus is equal to the number of times the message is repeatedly sent, the network management message is stopped from being sent to the vehicle bus. This means that during the packet sending cycle, the network management message is not always sent to the vehicle bus. Instead, after the number of times the network management message is sent is equal to the number of times the message is repeatedly sent, the network management message is no longer sent to the vehicle bus. As a result, the number of network management messages sent to the vehicle bus will decrease, thereby reducing the number of network management messages sent to the vehicle bus by the vehicle electronic control unit and reducing the load on the vehicle bus.
[0059] In some possible implementations of the embodiments of the present application, when i is greater than or equal to the packet transmission period quantity threshold, the network management message sending method provided by the embodiments of the present application may further include: determining that the increase amount of the packet transmission period interval is zero and the decrease amount of the packet transmission period is zero. In other words, the packet transmission period interval and the packet transmission period are kept unchanged.
[0060] Exemplarily, it is assumed that the packet transmission cycle quantity threshold is 4.
[0061] In the first packet transmission cycle, a network management message is sent to the vehicle bus with the network management message transmission cycle corresponding to the first packet transmission cycle; when the first packet transmission cycle expires, the packet transmission cycle interval is increased and / or the packet transmission cycle is reduced. In the second packet transmission cycle, a network management message is sent to the vehicle bus with the network management message transmission cycle corresponding to the second packet transmission cycle; when the second packet transmission cycle expires, the packet transmission cycle interval is increased and / or the packet transmission cycle is reduced. In the third packet transmission cycle, a network management message is sent to the vehicle bus with the network management message transmission cycle corresponding to the third packet transmission cycle; when the third packet transmission cycle expires, the packet transmission cycle interval is increased and / or the packet transmission cycle is reduced. In the fourth packet transmission cycle, a network management message is sent to the vehicle bus with the network management message transmission cycle corresponding to the fourth packet transmission cycle; when the fourth packet transmission cycle expires, the packet transmission cycle interval and the packet transmission cycle are kept unchanged. In the fifth packet transmission cycle, a network management message is sent to the vehicle bus with the network management message transmission cycle corresponding to the fifth packet transmission cycle. When the 5th packet transmission cycle expires, the packet transmission cycle interval and the packet transmission cycle are kept unchanged. In the 6th packet transmission cycle, the network management message is sent to the vehicle bus with the network management message sending cycle corresponding to the 6th packet transmission cycle. When the 6th packet transmission cycle expires, the packet transmission cycle interval and the packet transmission cycle are kept unchanged. Until a network release request is received, stop sending network management messages to the vehicle bus. It can be understood that the duration of the 4th packet transmission cycle, the 5th packet transmission cycle and the 6th packet transmission cycle are all equal; the packet transmission cycle interval between the 4th packet transmission cycle and the 3rd packet transmission cycle, the packet transmission cycle interval between the 5th packet transmission cycle and the 4th packet transmission cycle, and the packet transmission cycle interval between the 6th packet transmission cycle and the 5th packet transmission cycle are all equal.
[0062] In an embodiment of the present application, when i is greater than or equal to the packet cycle number threshold, by stopping increasing the packet cycle interval and decreasing the packet cycle, keeping the packet cycle interval and the packet cycle unchanged, it is possible to avoid the situation where the packet cycle interval continues to increase and the packet cycle continues to decrease, and network management messages cannot be sent to the vehicle bus, thereby ensuring that the node is active and meeting the vehicle bus communication requirements.
[0063] 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:
[0064] Step 201: Initialize the packet sending cycle, packet sending cycle interval, message repetition times and packet sending cycle quantity threshold;
[0065] Step 202: Enter the packet sending cycle and start the packet sending cycle timer;
[0066] Step 203: Determine whether the packet transmission cycle timer has expired, if not, execute step 204, if yes, execute step 206;
[0067] Step 204: Sending a network management message to the vehicle bus at the network management message sending period corresponding to the current packet sending period;
[0068] Step 205: Determine whether the number of times the network management message is sent is less than the number of times the message is repeatedly sent. If yes, execute step 203; if not, execute step 207;
[0069] Step 206: Determine whether the number of packet sending cycles is equal to the packet sending cycle number threshold, if not, execute step 208, if yes, execute step 209;
[0070] Step 207: Stop sending network management messages to the vehicle bus and continue to execute step 203;
[0071] Step 208: Increase the packet transmission period interval and decrease the packet transmission period, and continue to execute step 202;
[0072] Step 209: keep the packet transmission period interval and the packet transmission period unchanged, and use the network management message transmission period corresponding to the current packet transmission period as the network management message transmission period corresponding to the next packet transmission period, and continue to execute step 202.
[0073] The network management message sending method provided by the embodiment of the present application is described below with reference to specific examples. Figure 3 and. exist Figure 3 In the related art, at time T1, the vehicle electronic control unit is awakened, and the vehicle electronic control unit periodically sends network management messages to the vehicle bus at intervals of 2ms. At time T2, the vehicle electronic control unit receives a network release request, stops sending network management messages to the vehicle bus, and enters bus sleep mode. The vehicle electronic control unit sends network management messages to the vehicle bus 15 times in total.
[0074] In the embodiment of the present application, the initial packet transmission period is 10ms, the initial packet transmission period interval is 2ms, the i-th packet transmission period is half of the i-1th packet transmission period, the i-th packet transmission period interval is twice the i-1th packet transmission period interval, and the network management message transmission period corresponding to the i-th packet transmission period is determined to be half of the i-th packet transmission period interval. Figure 3In the example, X1 = 2ms, Y1 = 10ms, X2 = 4ms, Y2 = 5ms, X3 = 8ms, and Y3 = 2.5ms. At time T1, the on-board electronic control unit is awakened. At time T2, the on-board electronic control unit receives a network release request, stops sending network management messages to the on-board bus, and enters bus sleep mode. The on-board electronic control unit sends network management messages to the on-board bus 14 times in total.
[0075] It can be seen that the number of network management messages sent to the vehicle bus by the network management message sending method provided in the embodiment of the present application is less than the number of network management messages sent to the vehicle bus in the related art, which can reduce the load of the vehicle bus.
[0076] And, through Figure 3 It can be seen that when no network release request is received, the number of network management messages sent to the vehicle bus will decrease as time goes by.
[0077] Corresponding to the above method embodiment, the present application embodiment also provides a network management message sending device. Figure 4 As shown, Figure 4 400 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 400 may include:
[0078] The determination module 401 is used to determine, for the i-th packet transmission cycle, the network management message transmission cycle corresponding to the i-th packet transmission cycle according to the packet transmission cycle interval corresponding to the i-th packet transmission cycle, where i is a positive integer;
[0079] The sending module 402 is used to send a network management message to the vehicle bus in the i-th packet sending cycle and the network management message sending cycle corresponding to the i-th packet sending cycle;
[0080] The adjustment module 403 is used to increase the packet transmission period interval and / or decrease the packet transmission period when the i-th packet transmission period expires.
[0081] In the embodiment of the present application, after the vehicle electronic control unit is awakened, the network management message sending period corresponding to the i-th packet sending period is determined according to the packet sending period interval corresponding to the i-th packet sending period; in the i-th packet sending period, the network management message is sent to the vehicle bus with the network management message sending period corresponding to the i-th packet sending period; when the i-th packet sending period expires, the packet sending period interval is increased and / or the packet sending period is reduced. On the one hand, due to the reduction of the packet sending period, the number of network management messages sent to the vehicle bus during the packet sending period will decrease; on the other hand, since the network management message will not be sent to the vehicle bus during the packet sending period interval, as the packet sending period interval increases, in the same time period, the larger the packet sending period interval, the smaller the packet sending period, and thus the fewer the number of network management messages sent to the vehicle bus. 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.
[0082] In some possible implementations of the embodiments of the present application, the determination module 401 may be specifically used to:
[0083] Will Determine the network management message sending period corresponding to the i-th packet sending period, where I i is the packet transmission period interval corresponding to the ith packet transmission period, N is greater than or equal to 1; or,
[0084] Will to I i Any random number between is determined as the network management message sending period corresponding to the i-th packet sending period.
[0085] In some possible implementations of the embodiments of the present application, the adjustment module 403 may be specifically used to:
[0086] When i is less than a preset packet transmission cycle quantity threshold, the packet transmission cycle interval is increased and / or the packet transmission cycle is reduced, wherein the packet transmission cycle quantity threshold is used to control the quantity of packet transmission cycles.
[0087] In some possible implementations of the embodiments of the present application, the adjustment module 403 may be specifically used to:
[0088] Determine the packet transmission period interval corresponding to the i+1th packet transmission period as X times the packet transmission period interval corresponding to the i-th packet transmission period, where X is greater than 1; or
[0089] The minimum value of X times the packet transmission period interval corresponding to the ith packet transmission period and Imax is determined as the packet transmission period interval corresponding to the i+1th packet transmission period, where Imax is the maximum value of the value range corresponding to the preset initial packet transmission period interval.
[0090] In an embodiment of the present application, by determining the packet sending cycle interval corresponding to the i+1th packet sending cycle as the minimum value of the maximum value of the value range corresponding to the initial packet sending cycle interval and the packet sending cycle interval corresponding to the i-th packet sending cycle, the packet sending cycle interval can be increased. Within an equal time period, the larger the packet sending cycle interval, the smaller the packet sending cycle, and thus the fewer the number of network management messages sent to the vehicle bus, which can reduce the number of network management messages sent to the vehicle bus by the vehicle electronic control unit and reduce the load on the vehicle bus.
[0091] In some possible implementations of the embodiments of the present application, the adjustment module 403 may be specifically used to:
[0092] Determine the i+1th packet transmission period as Y times the i-th packet transmission period, where Y is less than 1; or
[0093] The minimum value of Y times the i-th packet transmission period and Jmin is determined as the i+1-th packet transmission period, where Jmin is the minimum value of the value range corresponding to the preset initial packet transmission period.
[0094] In an embodiment of the present application, by determining the i+1th packet sending cycle as Y times the i-th packet sending cycle or the minimum value of the minimum value in the value range corresponding to Y times the i-th packet sending cycle and the initial packet sending cycle, the packet sending cycle can be reduced. Due to the reduction in the packet sending cycle, the number of network management messages sent to the vehicle bus during the packet sending cycle will decrease, thereby reducing the number of network management messages sent by the vehicle electronic control unit to the vehicle bus and reducing the load on the vehicle bus.
[0095] In some possible implementations of the embodiments of the present application, the network management message sending device 400 provided in the embodiments of the present application may further include:
[0096] The stop module is used to stop sending the network management message to the vehicle bus when the number of times the network management message is sent to the vehicle bus is equal to the number of times the message is repeatedly sent in the i-th packet sending cycle.
[0097] In an embodiment of the present application, during the i-th packet sending cycle, when the number of times a network management message is sent to the vehicle bus is equal to the number of times the message is repeatedly sent, the network management message is stopped from being sent to the vehicle bus. This means that during the packet sending cycle, the network management message is not always sent to the vehicle bus. Instead, after the number of times the network management message is sent is equal to the number of times the message is repeatedly sent, the network management message is no longer sent to the vehicle bus. As a result, the number of network management messages sent to the vehicle bus will decrease, thereby reducing the number of network management messages sent to the vehicle bus by the vehicle electronic control unit and reducing the load on the vehicle bus.
[0098] In some possible implementations of the embodiments of the present application, the network management message sending device 400 provided in the embodiments of the present application may further include:
[0099] The maintaining module is used to determine that the increase amount of the packet transmission cycle interval is zero and the decrease amount of the packet transmission cycle is zero when i is greater than or equal to the packet transmission cycle quantity threshold.
[0100] In an embodiment of the present application, when i is greater than or equal to the packet cycle number threshold, by stopping increasing the packet cycle interval and decreasing the packet cycle, keeping the packet cycle interval and the packet cycle unchanged, it is possible to avoid the situation where the packet cycle interval continues to increase and the packet cycle continues to decrease, and network management messages cannot be sent to the vehicle bus, thereby ensuring that the node is active and meeting the vehicle bus communication requirements.
[0101] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0102] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.
[0103] Specifically, the processor 501 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.
[0104] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 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. Where appropriate, the memory 502 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 502 may be inside or outside the electronic device. In some specific embodiments, the memory 502 is a non-volatile solid-state memory.
[0105] 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.
[0106] The processor 501 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 502.
[0107] In some examples, the electronic device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.
[0108] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0109] The bus 510 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 510 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.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] The present application also provides a vehicle, which includes at least one of the following items:
[0114] The network management message sending device provided in the embodiment of the present application;
[0115] The electronic device provided by the embodiment of the present application;
[0116] The computer-readable storage medium provided by the embodiments of the present application.
[0117] 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 "comprising" 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 "comprising 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 packet transmission cycle, determine the network management message transmission cycle corresponding to the i-th packet transmission cycle according to the packet transmission cycle interval corresponding to the i-th packet transmission cycle, where i is a positive integer; In the i-th packet transmission cycle, a network management message is sent to the vehicle bus in the network management message transmission cycle corresponding to the i-th packet transmission cycle; When the i-th packet transmission period expires, the packet transmission period interval is increased and / or the packet transmission period is decreased.
2. The method according to claim 1, characterized in that The determining, according to the packet transmission period interval corresponding to the i-th packet transmission period, the network management message transmission period corresponding to the i-th packet transmission period includes: Will Determine the network management message sending period corresponding to the i-th packet sending period, where I i is the packet transmission period interval corresponding to the i-th packet transmission period, and N is greater than or equal to 1; or, Will to I i Any random number between is determined as the network management message sending period corresponding to the i-th packet sending period.
3. The method according to claim 1, characterized in that The increasing of the packet sending period interval and / or the decreasing of the packet sending period comprises: When i is less than a preset packet transmission cycle quantity threshold, the packet transmission cycle interval is increased and / or the packet transmission cycle is reduced, wherein the packet transmission cycle quantity threshold is used to control the quantity of the packet transmission cycles.
4. The method according to claim 1, characterized in that The increasing of the packet transmission cycle interval includes: Determine the packet transmission period interval corresponding to the i+1th packet transmission period as X times the packet transmission period interval corresponding to the i-th packet transmission period, where X is greater than 1; or The minimum value of X times the packet transmission period interval corresponding to the ith packet transmission period and Imax is determined as the packet transmission period interval corresponding to the i+1th packet transmission period, where Imax is the maximum value of the value range corresponding to the preset initial packet transmission period interval.
5. The method according to claim 1, characterized in that The reducing the packet sending cycle includes: Determine the i+1th packet transmission period as Y times the i-th packet transmission period, where Y is less than 1; or The minimum value of Y times the i-th packet transmission period and Jmin is determined as the i+1-th packet transmission period, where Jmin is the minimum value of the value range corresponding to the preset initial packet transmission period.
6. The method according to claim 3, characterized in that When i is greater than or equal to the packet transmission cycle quantity threshold, the method further includes: It is determined that the increase amount of the packet transmission period interval is zero and the decrease amount of the packet transmission period is zero.
7. The method according to claim 1, characterized in that When the i-th packet transmission period expires, before increasing the packet transmission period interval and / or decreasing the packet transmission period, the method further includes: In the i-th packet sending cycle, when the number of times the network management message is sent to the vehicle bus is equal to the number of times the message is repeatedly sent, the network management message is stopped from being sent to the vehicle bus.
8. A network management message sending device, characterized in that: The device comprises: A determination module, for determining, for the ith packet transmission cycle, a network management message transmission cycle corresponding to the ith packet transmission cycle according to the packet transmission cycle interval corresponding to the ith packet transmission cycle, wherein i is a positive integer; A sending module, used for sending a network management message to the vehicle bus in the i-th packet sending cycle and the network management message sending cycle corresponding to the i-th packet sending cycle; The adjustment module is used to increase the packet transmission period interval and / or reduce the packet transmission period when the i-th packet transmission period expires.
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 vehicle, characterized in that: The vehicle comprises: The network management message sending device as claimed in claim 8; or, The electronic device as claimed in claim 9.
