Message data processing method, control device, storage medium and electronic device

By judging and adjusting the transmission conditions at the ECU end, message data transmission is realized under different immediate transmission conditions, which solves the problems of high bus load rate and high software maintenance cost, improves real-time performance and reduces cost.

CN117040960BActive Publication Date: 2026-07-21WEICHAI POWER CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WEICHAI POWER CO LTD
Filing Date
2023-08-18
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Existing technologies suffer from high bus load rates and high software maintenance costs during message data processing.

Method used

By determining whether multiple immediate transmission conditions are met at the ECU end, and sending message data at the minimum interval when the conditions are met, including determining whether the data array has changed, whether a trigger signal has been received, and whether performance parameters have exceeded the threshold range, the transmission conditions are adjusted to optimize the transmission time.

Benefits of technology

It effectively reduces CAN bus load, improves real-time performance, and lowers software maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117040960B_ABST
    Figure CN117040960B_ABST
Patent Text Reader

Abstract

The application provides a message data processing method, a control device, a storage medium and an electronic device. The message data processing method comprises: in the case of obtaining a first data array expected to be sent by an ECU end at a current step, judging whether the ECU end satisfies any one of a plurality of immediate sending conditions; in the case that the ECU end satisfies any one of the immediate sending conditions, executing the judgment of whether the current timing time reaches a preset minimum interval time, wherein the starting timing moment of the current timing time is the moment of obtaining the first data array; in the case that the current timing time reaches the preset minimum interval time, triggering an enable signal to the ECU end, so that the ECU end sends the first data array. In the above method, when the immediate sending condition such as the message data sent by the ECU end at the front and rear steps is changed is met, the last message is sent according to the minimum interval time, thereby effectively reducing the CAN bus load rate, improving the real-time performance, and reducing the software maintenance cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and more specifically, to a message data processing method, control device, storage medium, and electronic device. Background Technology

[0002] Traditional message processing equipment generates a large amount of message data during use. This message data can be used to monitor and send important parameters such as device operating status and query information. In related technologies, software upgrades are often required when processing message data, which requires financial investment in software maintenance. It also has high requirements for bus load and low operating efficiency. Summary of the Invention

[0003] The main objective of this application is to provide a message data processing method, control device, storage medium, and electronic device to at least solve the problems of high bus load rate and high software maintenance cost when processing message data in the prior art.

[0004] To achieve the above objectives, according to one aspect of this application, a message data processing method is provided, comprising: upon acquiring a first data array expected to be sent by the ECU at the current step size, performing a first judgment step: determining whether the ECU meets any one of a plurality of immediate transmission conditions, wherein the plurality of immediate transmission conditions include a first immediate transmission condition, a second immediate transmission condition, and a third immediate transmission condition, wherein the first immediate transmission condition is that the first data array is not equal to the second data array sent by the ECU at the previous step size, the second immediate transmission condition is that the ECU receives a trigger signal, and the third immediate transmission condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter; if the ECU meets any one of the immediate transmission conditions, performing a second judgment step: determining whether the current timing time has reached a preset minimum interval time, wherein the starting timing time of the current timing time is the time when the first data array is acquired; if the current timing time has reached the preset minimum interval time, triggering an enable signal to the ECU to cause the ECU to send the first data array.

[0005] Optionally, if any one of the immediate transmission conditions is met at the ECU end, the message data processing method further includes: before determining whether the current timing time has reached the preset minimum interval time, setting a condition variable to a first preset parameter, wherein the condition variable is used to characterize whether the ECU end meets the target immediate transmission condition, and when the condition variable is the first preset parameter, the condition variable characterizes that the ECU end meets the target immediate transmission condition, and the target immediate transmission condition is one of the first immediate transmission condition, the second immediate transmission condition, and the third immediate transmission condition; when the condition variable is set to the first preset parameter, triggering an adjustment instruction, and when the first judgment step is repeatedly executed, the adjustment instruction is used to make the judgment result of the first judgment step indicate no; when the judgment result of the first judgment step indicates yes, and the judgment result of the second judgment step indicates no, sequentially executing the summation step, the first judgment step, the third judgment step, and the second judgment step at least once, until the current timing time reaches the preset minimum interval time, wherein the summation step includes: summing the current timing time with a preset step time to obtain an updated current timing time; the third judgment step includes: determining whether the condition variable is the first preset parameter.

[0006] Optionally, setting the condition variable to a first preset parameter includes: when the ECU meets a first immediate transmission condition, setting the first condition variable to the first preset parameter, wherein the first condition variable is used to characterize whether the first data array is equal to the second data array sent by the ECU in the previous step; when the condition variable is the first preset parameter, the condition variable characterizes that the first data array is equal to the second data array sent by the ECU in the previous step; when the ECU meets a second immediate transmission condition, setting a second condition variable to the first preset parameter, wherein the second condition variable is used to characterize whether the ECU receives a trigger signal; when the condition variable is the first preset parameter, the condition variable characterizes that the ECU receives a trigger signal; when the ECU meets a third immediate transmission condition, setting a third condition variable to the first preset parameter, wherein the third condition variable is used to characterize whether the target performance parameter of the ECU is outside the threshold range corresponding to the target performance parameter; when the condition variable is the first preset parameter, the condition variable characterizes that the target performance parameter is outside the threshold range corresponding to the target.

[0007] Optionally, when the condition variable is set to a first preset parameter, triggering an adjustment command includes: when the first immediate transmission condition is met at the ECU and the condition variable is set to the first preset parameter, assigning a first data array to a second data array to trigger the adjustment command; when the second immediate transmission condition is met at the ECU and the condition variable is set to the first preset parameter, adjusting the receiving state at the ECU to no trigger signal received to trigger the adjustment command; and when the third immediate transmission condition is met at the ECU and the condition variable is set to the first preset parameter, adjusting the threshold range corresponding to the target performance parameter so that the target performance parameter is within the adjusted threshold range to trigger the adjustment command.

[0008] Optionally, the message data processing method further includes: if the target immediate transmission condition is not met at the ECU end, a third judgment step is executed: judging whether the condition variable is the first preset parameter; if the condition variable is the first preset parameter, the second judgment step is executed again to obtain the first judgment result; if the first judgment result indicates that the current timing time has not reached the preset minimum interval time, the summation step, the first judgment step, the third judgment step, and the second judgment step are sequentially cyclically repeated at least once until the current timing time reaches the preset minimum interval time.

[0009] Optionally, the message data processing method further includes: if the condition variable is not the first preset parameter, performing a fourth judgment step: determining whether the current timing time has reached the preset message transmission period, wherein the preset message transmission period is greater than the preset minimum interval time; if the current timing time has reached the preset message transmission period, triggering an enable signal to the ECU to send the first data array; if the current timing time has not reached the preset message transmission period, sequentially executing the summation step, the first judgment step, the third judgment step, and the fourth judgment step at least once, until the current timing time reaches the preset message transmission period.

[0010] Optionally, the message data processing method further includes: before the first judgment step is executed for the first time, or when an enable signal is triggered, initializing the condition variable so that the condition variable is set to a second preset parameter, wherein when the condition variable is the second preset parameter, the condition variable indicates that the ECU does not meet the target immediate transmission condition; and when an enable signal is triggered, resetting the current timer to zero.

[0011] According to another aspect of this application, a message data processing apparatus is provided, comprising: a first judgment module, configured to, upon acquiring a first data array expected to be sent by an ECU at a current step, perform a first judgment step: judging whether the ECU meets any one of a plurality of immediate transmission conditions, wherein the plurality of immediate transmission conditions include a first immediate transmission condition, a second immediate transmission condition, and a third immediate transmission condition, wherein the first immediate transmission condition is that the first data array is not equal to the second data array sent by the ECU at a previous step, the second immediate transmission condition is that the ECU receives a trigger signal, and the third immediate transmission condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter; a second judgment module, configured to, upon the ECU meeting any one of the immediate transmission conditions, perform a second judgment step: judging whether the current timing time has reached a preset minimum interval time, wherein the starting timing time of the current timing time is the time when the first data array is acquired; and a trigger module, configured to, upon the current timing time reaching the preset minimum interval time, trigger an enable signal to the ECU so that the ECU sends the first data array.

[0012] According to another aspect of this application, a computer-readable storage medium is provided, which includes a stored program, wherein the program, when running, controls the device where the computer-readable storage medium is located to execute the above-described message data processing method.

[0013] According to another aspect of this application, a computer-readable storage medium is provided, which includes a stored program, wherein the program, when running, controls the device where the computer-readable storage medium is located to execute the above-described message data processing method.

[0014] By applying the technical solution of this application, when the first data array currently being sent by the ECU is obtained, a first judgment step is first executed to determine whether the ECU meets any one of multiple immediate transmission conditions. If any one of the immediate transmission conditions is met, a second judgment step is then executed. By setting different immediate transmission conditions, message data can be sent under different immediate transmission conditions. Then, a second step is executed to determine whether the current timing time has reached the preset minimum interval time. This enables the ECU to send message data according to the minimum interval time when the required immediate transmission conditions are met. Since the above message data processing method in this application can send the most recent message according to the minimum interval time when the immediate transmission condition, such as when the message data sent by the ECU changes with the previous and subsequent step sizes, is met, the CAN bus load rate is effectively reduced, real-time performance is improved, and software maintenance costs are reduced. Attached Figure Description

[0015] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0016] Figure 1 A hardware structure block diagram of a mobile terminal performing a message data processing method according to an embodiment of this application is shown;

[0017] Figure 2 A flowchart illustrating a message data processing method according to an embodiment of this application is shown.

[0018] Figure 3 A schematic flowchart of a message data processing method employing a first immediate transmission condition, according to an embodiment of this application, is shown.

[0019] Figure 4 A schematic flowchart of a message data processing method employing a second immediate transmission condition, according to an embodiment of this application, is shown.

[0020] Figure 5 A schematic flowchart of a message data processing method employing a third immediate transmission condition, according to an embodiment of this application, is shown.

[0021] Figure 6 A structural block diagram of a message data processing apparatus provided according to an embodiment of this application is shown. Detailed Implementation

[0022] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0025] As described in the background section, message processing devices in related technologies generate a large amount of message data during use. This message data can monitor and send important parameters such as device operating status and query information. To solve the problems of high bus load rate and high software maintenance cost when processing message data, embodiments of this application provide a message data processing method, control device, storage medium and electronic device.

[0026] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0027] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a message data processing method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0028] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the message data processing method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] This embodiment provides a message data processing method that runs on a mobile terminal, computer terminal, or similar device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0030] Figure 2 This is a flowchart of a message data processing method according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:

[0031] Step S202: If the first data array expected to be sent by the ECU at the current step length is obtained, the first judgment step is performed: determine whether the ECU meets any one of a plurality of immediate sending conditions, wherein the plurality of immediate sending conditions include a first immediate sending condition, a second immediate sending condition and a third immediate sending condition. The first immediate sending condition is that the first data array is not equal to the second data array sent by the ECU at the previous step length. The second immediate sending condition is that the ECU receives a trigger signal. The third immediate sending condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter.

[0032] Specifically, the aforementioned first data array serves as input parameters, including calibration value 1, calibration value 2, and calibration value 3. Calibration value 1 is used to calibrate the message period, calibration value 2 is used to calibrate the minimum interval time, and calibration value 3 is used to calibrate different immediate transmission conditions. Specifically, value 1 can be set to represent the immediate transmission condition being a change in the data array transmitted by the ECU with preceding and following steps; value 2 can be set to represent receiving a trigger signal from any of the following: a sensor, actuator, controller hardwire, or CAN line; and value 3 can be set to represent a certain performance parameter of the ECU exceeding or falling below a certain threshold range. By using calibration value 3 to indicate the immediate transmission condition, the function of selecting message data processing under different conditions is realized.

[0033] Step S204: If any one of the immediate transmission conditions is met at the ECU end, execute the second judgment step: determine whether the current timing time has reached the preset minimum interval time, wherein the starting timing time of the current timing time is the time when the first data array is acquired;

[0034] Specifically, if the current timing time has not reached the preset minimum interval time, the time step is increased by at least one step time based on the current timing time until the updated current timing time reaches the preset minimum interval time, and then the message data is sent, thereby enabling the message to be sent according to the minimum interval time.

[0035] Step S206: When the current timing time reaches the preset minimum interval time, trigger an enable signal to the ECU so that the ECU sends the first data array.

[0036] Specifically, when the current timing reaches the preset minimum interval, the ECU is enabled to send message data, thereby enabling the message data to be sent at the minimum time interval.

[0037] In the above method of this application embodiment, when the first data array currently being sent by the ECU is obtained, a first judgment step is first executed to determine whether the ECU meets any one of a plurality of immediate transmission conditions. If any one of the immediate transmission conditions is met, a second judgment step is then executed. By setting different immediate transmission conditions, the transmission of message data under different immediate transmission conditions can be realized. Then, a second step is executed to determine whether the current timing time has reached the preset minimum interval time. This can enable the ECU to send message data according to the minimum interval time when the required immediate transmission conditions are met. Since the above message data processing method in this application can send the most recent message according to the minimum interval time when the immediate transmission condition, such as the change in the message data sent by the ECU before and after the step size, is met, the CAN bus load rate is effectively reduced, real-time performance is improved, and software maintenance costs are reduced.

[0038] In some optional implementations, when any one of the immediate transmission conditions is met at the ECU end, the above-mentioned message data processing method in this application embodiment further includes: before determining whether the current timing time has reached the preset minimum interval time, setting a condition variable to a first preset parameter, wherein the condition variable is used to characterize whether the ECU end meets the target immediate transmission condition, and when the condition variable is the first preset parameter, the condition variable characterizes that the ECU end meets the target immediate transmission condition, and the target immediate transmission condition is one of the first immediate transmission condition, the second immediate transmission condition, and the third immediate transmission condition; when the condition variable is set to the first preset parameter, triggering an adjustment instruction, and when the first judgment step is repeatedly executed, the adjustment instruction is used to make the judgment result of the first judgment step indicate no; when the judgment result of the first judgment step indicates yes, and the judgment result of the second judgment step indicates no, sequentially executing the summation step, the first judgment step, the third judgment step, and the second judgment step at least once, until the current timing time reaches the preset minimum interval time, wherein the summation step includes: summing the current timing time with a preset step time to obtain an updated current timing time; the third judgment step includes: determining whether the condition variable is the first preset parameter.

[0039] In the above optional implementation, the first preset parameter can be set to the value 1. If the condition variable is set to 1, the condition variable indicates that the ECU meets the target immediate transmission condition; conversely, if the condition variable indicates that the ECU does not meet the target immediate transmission condition, the condition variable is set to 0.

[0040] Specifically, when the condition variable is the first preset parameter, it means that the ECU meets the immediate transmission condition. The immediate transmission condition is, for example, that the data array that the ECU expects to send in the current step size is not equal to the second data array sent by the ECU in the previous step size, or that the ECU receives a trigger signal sent by any one of the sensors, actuators, controller hardwires, and CAN lines from the other party, or that a certain performance parameter of the ECU is outside the threshold range corresponding to that performance parameter, which can be the operating voltage. In this case, it is determined whether the current timing time has reached the preset minimum interval time. If the current timing time has reached the preset minimum interval time, an enable signal is triggered to the ECU so that the ECU sends the first data array. If the current timing time has not reached the preset minimum interval time, the current timing time is summed with the preset step time to accumulate the step time and obtain the updated current timing time. Then it is determined whether the current timing time meets the preset minimum interval time. The accumulation of the step time is stopped when the preset minimum interval time is met, and the message data is sent, thereby realizing that the message data is sent at the minimum time interval.

[0041] It should be noted that the above-mentioned cyclic execution steps also include a first judgment step and a third judgment step. The first judgment step includes: judging whether the ECU meets any one of the multiple immediate transmission conditions; the third judgment step includes: judging whether the condition variable is the first preset parameter. Since the condition variable is set to the first preset parameter, the triggered adjustment command can make the judgment result of the first judgment step indicate no when the first judgment step is repeatedly executed. Therefore, when the judgment result of the first judgment step executed for the first time indicates that the ECU meets any one of the immediate transmission conditions (i.e., the judgment result of the first judgment step indicates yes), the judgment result of the first judgment step executed repeatedly will change. And no matter how many times it is repeated, the judgment result of the first judgment step will always be no. Thus, when the judgment result of the first judgment step is no, the third judgment step can be executed sequentially. At this time, although the judgment result of the first judgment step executed repeatedly is no, this does not mean that the ECU does not meet the immediate transmission condition, but because the adjustment command changed the judgment result. Furthermore, since the condition variable has been set to the first preset parameter when the judgment result of the first judgment step executed for the first time indicates that the ECU meets any one of the immediate transmission conditions, the judgment result of the executed third judgment step is yes. Thus, when the judgment result of the third judgment step is yes, the second judgment step can be executed sequentially.

[0042] In some optional implementations, setting the condition variable to a first preset parameter includes: when the ECU meets a first immediate transmission condition, setting the first condition variable to the first preset parameter, wherein the first condition variable is used to characterize whether the first data array is equal to the second data array sent by the ECU in the previous step; when the condition variable is the first preset parameter, the condition variable characterizes that the first data array is equal to the second data array sent by the ECU in the previous step; when the ECU meets a second immediate transmission condition, setting a second condition variable to the first preset parameter, wherein the second condition variable is used to characterize whether the ECU receives a trigger signal; when the condition variable is the first preset parameter, the condition variable characterizes that the ECU receives a trigger signal; when the ECU meets a third immediate transmission condition, setting a third condition variable to the first preset parameter, wherein the third condition variable is used to characterize whether the target performance parameter of the ECU is outside the threshold range corresponding to the target performance parameter; when the condition variable is the first preset parameter, the condition variable characterizes that the target performance parameter is outside the threshold range corresponding to the target.

[0043] Specifically, setting the first condition variable to 1 indicates that the ECU meets the first immediate transmission condition, meaning the first data array expected to be transmitted by the ECU in the current step is not equal to the second data array transmitted by the ECU in the previous step. Alternatively, setting the second condition variable to 1 indicates that the ECU meets the second immediate transmission condition, meaning the ECU receives trigger signals from sources such as sensors, actuators, controller hardwires, and CAN lines. Setting the third condition variable to 1 indicates that the ECU meets the third transmission condition, meaning at least one performance parameter of the ECU is outside the corresponding threshold range. Similarly, if the first condition variable is set to 0, it indicates that the ECU does not meet the first immediate transmission condition, meaning the first data array expected to be transmitted by the ECU in the current step is equal to the second data array transmitted by the ECU in the previous step; if the second condition variable is set to 0, it indicates that the ECU does not meet the second immediate transmission condition, meaning the ECU has not received trigger signals from sources such as sensors, actuators, controller hardwires, and CAN lines; if the third condition variable is set to 0, it indicates that the ECU does not meet the third transmission condition, meaning the performance parameter of the ECU meets the corresponding threshold range.

[0044] In some optional implementations, triggering an adjustment command when the condition variable is set to a first preset parameter includes: when the ECU meets a first immediate transmission condition and the condition variable is set to the first preset parameter, assigning a first data array to a second data array to trigger the adjustment command; when the ECU meets a second immediate transmission condition and the condition variable is set to the first preset parameter, adjusting the ECU's receiving state to no trigger signal received to trigger the adjustment command; and when the ECU meets a third immediate transmission condition and the condition variable is set to the first preset parameter, adjusting the threshold range corresponding to the target performance parameter so that the target performance parameter is within the adjusted threshold range to trigger the adjustment command.

[0045] Specifically, when the condition variable is the first preset parameter (e.g., the first condition variable is set to 1), and the ECU meets the first immediate transmission condition (i.e., the first data array is not equal to the second data array sent by the ECU in the previous step), the current ECU-sent data array is assigned to the data array sent by the ECU in the previous step. This allows the third judgment step to be executed by changing the judgment result of the first judgment step when the second judgment step is not met, avoiding repeated execution of the step of setting the condition variable to the first preset parameter. Similarly, when the condition variable is the first preset parameter, and the ECU meets the second immediate transmission condition (i.e., the ECU receives a trigger signal), the ECU's received... The receiving state is adjusted to no trigger signal received, so that when the second judgment step is not met, the judgment result of the first judgment step can be changed to execute the third judgment step, avoiding repeated execution of the step of setting the condition variable to the first preset parameter; when the condition variable is the first preset parameter, and the ECU meets the third immediate transmission condition, that is, when a certain performance parameter of the ECU is outside the corresponding threshold range, the threshold range corresponding to the performance parameter is adjusted so that the performance parameter is within the adjusted threshold range, which also allows the third judgment step to be executed when the second judgment step is not met, avoiding repeated execution of the step of setting the condition variable to the first preset parameter.

[0046] In some optional implementations, the above-described message data processing method of this application embodiment further includes: if the target immediate transmission condition is not met at the ECU end, a third judgment step is performed: judging whether the condition variable is a first preset parameter; if the condition variable is the first preset parameter, the second judgment step is performed again to obtain a first judgment result; if the first judgment result indicates that the current timing time has not reached the preset minimum interval time, the summation step, the first judgment step, the third judgment step, and the second judgment step are sequentially cyclically repeated at least once until the current timing time reaches the preset minimum interval time.

[0047] Specifically, when the judgment result of the third judgment step indicates that the condition variable is the first preset parameter (e.g., the condition variable is set to 1), the second judgment step is executed to determine whether the current timing time has reached the preset minimum interval time. If the current timing time has reached the preset minimum interval time, an enable signal is triggered to the ECU so that the ECU sends the first data array. If the current timing time has not reached the preset minimum interval time, the current timing time is summed with the preset step time to accumulate the step time and obtain the updated current timing time. Then, it is determined whether the current timing time meets the preset minimum interval time. The accumulation of the step time is stopped when the preset minimum interval time is met, and the message data is sent, thereby realizing that the message data is sent at the minimum time interval.

[0048] In some optional implementations, the above-described message data processing method of this application embodiment further includes: the message data processing method further includes: when the condition variable is not the first preset parameter, performing a fourth judgment step: judging whether the current timing time has reached the preset message sending period, wherein the preset message sending period is greater than the preset minimum interval time; when the current timing time has reached the preset message sending period, triggering an enable signal to the ECU to make the ECU send the first data array; when the current timing time has not reached the preset message sending period, sequentially executing the summation step, the first judgment step, the third judgment step and the fourth judgment step at least once, until the current timing time reaches the preset message sending period and stops.

[0049] If the result of the first judgment step is negative, and the result of the third judgment step is also negative, it means that the ECU does not meet the immediate transmission condition and the condition variable is not the first preset parameter. In this case, the message data needs to be sent at the minimum interval. Instead, the fourth judgment step is used to determine whether the current timing time has reached the preset message transmission period. If the current timing time has reached the preset message transmission period, an enable signal is triggered to the ECU so that the ECU can send the first data array. If the current timing time has not reached the preset message transmission period, the current timing time is summed with the preset step time to accumulate the step time and obtain the updated current timing time. Then, it is determined whether the current timing time meets the preset message transmission period. The accumulation of the step time is stopped when the preset message transmission period is met, and the message data is sent, thereby realizing that the message data is sent at the preset message transmission period.

[0050] For example, when the above condition variable is set to 0, it is determined whether the current timing time has reached the message transmission cycle. The above message transmission cycle can be a cycle in which the ECU usually sends message data. In this embodiment, by setting a preset minimum interval time that is less than the preset message transmission cycle, and by enabling the ECU to send message data when the ECU meets the immediate transmission condition, the CAN bus load rate is effectively reduced, real-time performance is improved, and software maintenance costs are reduced.

[0051] In some optional implementations, the above-described message data processing method of this application embodiment further includes: before the first judgment step is executed for the first time, or when an enable signal is triggered, initializing the condition variable so that the condition variable is set to a second preset parameter, wherein when the condition variable is the second preset parameter, the condition variable indicates that the ECU does not meet the target immediate transmission condition; and when an enable signal is triggered, resetting the current timer to zero.

[0052] For example, before the first judgment step is executed for the first time, or when the enable signal is triggered, the condition variable is set to 0. At this time, the condition variable indicates that the target immediate transmission condition is not met. At the same time, when the enable signal is triggered, the timer is cleared to zero, thus completing the transmission of a message data array.

[0053] The above-described message data processing method in the embodiments of this application will be further described below with reference to specific examples.

[0054] For example, Figure 3 The diagram illustrates the processing flow of a message data processing method, such as... Figure 3 As shown, the processing flow includes the following steps:

[0055] If the first data array expected to be sent by the ECU at the current step size is obtained, the first judgment step is executed: determine whether the data array currently sent by the ECU is equal to the data array sent at the previous step size;

[0056] If the result of the first judgment step is negative, that is, if the data array currently sent by the ECU is not equal to the data array sent in the previous long step, the first condition variable is set to 1 and the data array currently sent by the ECU is assigned to the data array sent in the previous long step, and then the second judgment step is performed: determine whether the current timing time meets the preset minimum interval time.

[0057] If the result of the second judgment step is yes, that is, if the timing time meets the preset minimum interval time, the enable signal will be sent to the ECU, the ECU will send data, and the first data array change satisfaction flag will be set to 0, and the timing time will be cleared to zero.

[0058] If the result of the second judgment step is negative, that is, if the timing time is less than the preset minimum interval time, then the current timing time is superimposed with the step time to obtain the updated timing time, and the process returns to the first judgment step: judging whether the data array currently sent by the ECU is equal to the data array sent by the previous step time, until the result of the second judgment step is positive, that is, when the current timing time meets the preset minimum interval time, an enable signal is sent to the ECU, the ECU sends data, and sets the flag of the first data array change to 0, and the timing time is cleared to zero;

[0059] Since the first condition variable has been set to 1 and the data array currently sent by the ECU has been assigned to the data array sent in the previous long step in the above judgment steps, the result of the first judgment step of the current first data array is yes, that is, the data array currently sent by the ECU is equal to the data array sent in the previous long step, and the result of the third judgment step is yes, that is, when the first condition variable is set to 1, the second judgment step is performed: to determine whether the current timing time meets the preset minimum interval time.

[0060] When the result of the second judgment step is yes, that is, when the timing time meets the preset minimum interval time, the enable signal is sent to the ECU, the ECU sends data, and sets the flag of the first data array change to 0, and the timing time is cleared to zero.

[0061] If the result of the second judgment step is negative, that is, the timing time is less than the preset minimum interval time, the current timing time is superimposed with the step time to obtain the updated timing time, and the process returns to the first judgment step: judging whether the data array currently sent by the ECU is equal to the data array sent by the previous step time, until the result of the second judgment step is positive, that is, the current timing time meets the preset minimum interval time, the enable signal is sent to the ECU, the ECU sends data, and sets the first data array change satisfaction flag to 0, and the timing time is cleared to zero;

[0062] If the result of the first judgment step is yes, that is, the data array currently sent by the ECU is equal to the data array sent in the previous step, and the result of the third judgment step is no, that is, the first condition variable is set to 0, then the fourth judgment step is performed: determine whether the current timing time meets the preset message sending cycle.

[0063] When the result of the fourth judgment step is yes, that is, when the current timing time meets the preset message sending cycle, the enable signal will be sent to the ECU, the ECU will send data, and set the first data array change satisfaction flag to 0, and the timing time will be cleared to zero.

[0064] If the result of the fourth judgment step is negative, that is, the current timing time is less than the preset message sending period, the current timing time is added to the step time to obtain the updated timing time, and the process returns to the first judgment step: judging whether the data array currently sent by the ECU is equal to the data array sent by the previous step time, until the result of the fourth judgment step is positive, that is, the current timing time meets the preset message sending period, then the enable signal is sent to the ECU, the ECU sends data, and sets the first data array change satisfaction flag to 0, and the timing time is cleared to zero, thus completing the transmission of one message data array.

[0065] For example, Figure 4 The diagram illustrates the processing flow of a message data processing method, such as... Figure 4 As shown, the processing flow includes the following steps:

[0066] If the first data array that the ECU is expected to send at the current step size is obtained, the first judgment step is executed: determine whether the ECU has received a trigger signal;

[0067] If the result of the first judgment step is yes, that is, if the ECU receives the trigger signal, the second condition variable is set to 1 and the receiving state of the ECU is adjusted to no trigger signal is received, and then the second judgment step is performed: determine whether the current timing time meets the preset minimum interval time.

[0068] If the result of the second judgment step is yes, that is, if the timing time meets the preset minimum interval time, the enable signal will be sent to the ECU, the ECU will send data, and the first data array change satisfaction flag will be set to 0, and the timing time will be cleared to zero.

[0069] If the result of the second judgment step is negative, that is, if the timing time is less than the preset minimum interval time, then the current timing time is superimposed with the step time to obtain the updated timing time, and the process returns to the first judgment step: to determine whether the ECU has received a trigger signal. Until the result of the second judgment step is positive, that is, if the current timing time meets the preset minimum interval time, then the enable signal is sent to the ECU, the ECU sends data, and sets the flag of the first data array change to 0, and the timing time is cleared to zero.

[0070] Since the second condition variable has been set to 1 and the receiving state of the ECU has been adjusted to not receiving the trigger signal in the above judgment steps, the result of the first judgment step of the first data array is no, that is, the ECU has not received the trigger signal, and the result of the third judgment step is yes, that is, when the second condition variable is set to 1, the second judgment step is performed: to determine whether the current timing time meets the preset minimum interval time.

[0071] When the result of the second judgment step is yes, that is, when the timing time meets the preset minimum interval time, the enable signal is sent to the ECU, the ECU sends data, and sets the flag of the first data array change to 0, and the timing time is cleared to zero.

[0072] If the result of the second judgment step is negative, that is, the timing time is less than the preset minimum interval time, the current timing time is superimposed with the step time to obtain the updated timing time, and the process returns to the first judgment step: whether the ECU has received a trigger signal. Until the result of the second judgment step is positive, that is, the current timing time meets the preset minimum interval time, the enable signal is sent to the ECU, the ECU sends data, and sets the flag of the first data array change to 0, and the timing time is cleared to zero.

[0073] If the result of the first judgment step is negative (i.e., the ECU does not receive a trigger signal) and the result of the third judgment step is negative (i.e., the second condition variable is set to 0), then the fourth judgment step is performed: determine whether the current timing time meets the preset message sending cycle.

[0074] When the result of the fourth judgment step is yes, that is, when the current timing time meets the preset message sending cycle, the enable signal will be sent to the ECU, the ECU will send data, and set the first data array change satisfaction flag to 0, and the timing time will be cleared to zero.

[0075] If the result of the fourth judgment step is negative, that is, the current timing time is less than the preset message sending period, the current timing time is added to the step time to obtain the updated timing time, and the process returns to the first judgment step: judging whether the ECU has received a trigger signal. This continues until the result of the fourth judgment step is positive, that is, the current timing time meets the preset message sending period. At this point, an enable signal is sent to the ECU, the ECU sends data, sets the flag indicating that the first data array has changed to 0, and clears the timing time. This completes the transmission of one message data array.

[0076] For example, Figure 5 The diagram illustrates the processing flow of a message data processing method, such as... Figure 5 As shown, the processing flow includes the following steps:

[0077] If the first data array expected to be sent by the ECU at the current step size is obtained, the first judgment step is executed: determine whether the target performance parameter of the ECU is outside the threshold range corresponding to the target performance parameter;

[0078] If the result of the first judgment step is yes, that is, if the target performance parameter of the ECU is outside the threshold range corresponding to the target performance parameter, the third condition variable is set to 1 and the threshold range is adjusted so that the target performance parameter is within the adjusted threshold range, and then the second judgment step is performed: determine whether the current timing time meets the preset minimum interval time.

[0079] If the result of the second judgment step is yes, that is, if the timing time meets the preset minimum interval time, the enable signal will be sent to the ECU, the ECU will send data, and the first data array change satisfaction flag will be set to 0, and the timing time will be cleared to zero.

[0080] If the result of the second judgment step is negative, that is, if the timing time is less than the preset minimum interval time, then the current timing time is superimposed with the step time to obtain the updated timing time, and the process returns to the first judgment step: judging whether the target performance parameter of the ECU is outside the threshold range corresponding to the target performance parameter, until the result of the second judgment step is positive, that is, when the current timing time meets the preset minimum interval time, an enable signal is sent to the ECU, the ECU sends data, and sets the first data array change satisfaction flag to 0, and the timing time is cleared to zero;

[0081] Since the third condition variable has been set to 1 and the threshold range has been adjusted in the above judgment steps so that the target performance parameter is within the adjusted threshold range, the result of the first judgment step of the current first data array is no, that is, the target performance parameter of the ECU is not outside the threshold range corresponding to the target performance parameter, and the result of the third judgment step is yes, that is, when the third condition variable is set to 1, the second judgment step is performed: judge whether the current timing time meets the preset minimum interval time.

[0082] When the result of the second judgment step is yes, that is, when the timing time meets the preset minimum interval time, the enable signal is sent to the ECU, the ECU sends data, and sets the flag of the first data array change to 0, and the timing time is cleared to zero.

[0083] If the result of the second judgment step is negative, that is, the timing time is less than the preset minimum interval time, the current timing time is superimposed with the step time to obtain the updated timing time, and the process returns to the first judgment step: judging whether the target performance parameter of the ECU is outside the threshold range corresponding to the target performance parameter, until the result of the second judgment step is positive, that is, the current timing time meets the preset minimum interval time, the enable signal is sent to the ECU, the ECU sends data, and sets the first data array change satisfaction flag to 0, and the timing time is cleared to zero;

[0084] If the result of the first judgment step is negative, that is, the target performance parameter of the ECU is not outside the threshold range corresponding to the target performance parameter, and the result of the third judgment step is negative, that is, the third condition variable is set to 0, then the fourth judgment step is performed: determine whether the current timing time meets the preset message sending cycle.

[0085] When the result of the fourth judgment step is yes, that is, when the current timing time meets the preset message sending cycle, the enable signal will be sent to the ECU, the ECU will send data, and set the first data array change satisfaction flag to 0, and the timing time will be cleared to zero.

[0086] If the result of the fourth judgment step is negative, i.e., the current timing time is less than the preset message sending cycle, the current timing time is superimposed with the step time to obtain the updated timing time, and the process returns to the first judgment step: judging whether the target performance parameter of the ECU is outside the threshold range corresponding to the target performance parameter, until the result of the fourth judgment step is positive, i.e., the current timing time meets the preset message sending cycle, then the enable signal is sent to the ECU, the ECU sends data, and sets the flag of the first data array change to 0, and the timing time is cleared to zero, thus completing the transmission of one message data array.

[0087] This application also provides a message data processing apparatus. It should be noted that the message data processing apparatus of this application can be used to execute the message data processing method provided in this application. This apparatus is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0088] To enable those skilled in the art to better understand the technical solution of this application, the message data processing apparatus of this application will be described in detail below with reference to specific embodiments.

[0089] Figure 6 This is a schematic diagram of a message data processing apparatus according to an embodiment of this application. Figure 6 As shown, the device includes:

[0090] The first judgment module 10 is used to perform a first judgment step when the first data array expected to be sent by the ECU in the current step size is obtained: judging whether the ECU meets any one of a plurality of immediate sending conditions, wherein the plurality of immediate sending conditions include a first immediate sending condition, a second immediate sending condition and a third immediate sending condition, the first immediate sending condition is that the first data array is not equal to the second data array sent by the ECU in the previous step size, the second immediate sending condition is that the ECU receives a trigger signal, and the third immediate sending condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter;

[0091] Specifically, the aforementioned first data array serves as input parameters, including calibration value 1, calibration value 2, and calibration value 3. Calibration value 1 is used to calibrate the message period, calibration value 2 is used to calibrate the minimum interval time, and calibration value 3 is used to calibrate different immediate transmission conditions. Specifically, value 1 can be set to represent the immediate transmission condition being a change in the data array transmitted by the ECU with preceding and following steps; value 2 can be set to represent receiving a trigger signal from any of the following: a sensor, actuator, controller hardwire, or CAN line; and value 3 can be set to represent a certain performance parameter of the ECU exceeding or falling below a certain threshold range. By using calibration value 3 to indicate the immediate transmission condition, the function of selecting message data processing under different conditions is realized.

[0092] The second judgment module 20 is used to execute the second judgment step when any one of the immediate transmission conditions is met at the ECU end: to determine whether the current timing time has reached the preset minimum interval time, wherein the starting timing time of the current timing time is the time when the first data array is acquired;

[0093] Specifically, if the current timing time has not reached the preset minimum interval time, the time step is increased by at least one step time based on the current timing time until the updated current timing time reaches the preset minimum interval time, and then the message data is sent, thereby enabling the message to be sent according to the minimum interval time.

[0094] The first trigger module 30 is used to trigger an enable signal to the ECU when the current timing time reaches the preset minimum interval time, so that the ECU sends the first data array.

[0095] Specifically, when the current timing reaches the preset minimum interval, the ECU is enabled to send message data, thereby enabling the message data to be sent at the minimum time interval.

[0096] In the apparatus described in this application embodiment, when the first judgment module 10 obtains the first data array currently being sent by the ECU, it determines whether the ECU meets any one of a plurality of immediate transmission conditions. If any one of the immediate transmission conditions is met, the second judgment step is then executed. By setting different immediate transmission conditions, the transmission of message data under different immediate transmission conditions can be achieved. Then, the second judgment module 20 determines whether the current timing time has reached the preset minimum interval time. Under the required immediate transmission conditions, the first trigger module 30 enables the ECU to send message data according to the minimum interval time. Since the above message data processing method in this application can send the most recent message according to the minimum interval time when the immediate transmission condition, such as the change in the message data sent by the ECU before and after the step size, is met, the CAN bus load rate is effectively reduced, real-time performance is improved, and software maintenance costs are reduced.

[0097] In some optional implementations, when any one of the immediate transmission conditions is met at the ECU end, the message data processing device in this application embodiment further includes: a setting module, used to set a condition variable to a first preset parameter before determining whether the current timing time has reached a preset minimum interval time, wherein the condition variable is used to characterize whether the ECU end meets the target immediate transmission condition, and when the condition variable is the first preset parameter, the condition variable characterizes that the ECU end meets the target immediate transmission condition, and the target immediate transmission condition is one of the first immediate transmission condition, the second immediate transmission condition, and the third immediate transmission condition; a second triggering module, used to set the condition variable... When the first preset parameter is true, an adjustment instruction is triggered. When the first judgment step is repeatedly executed, the adjustment instruction is used to make the judgment result of the first judgment step indicate no. The first loop module is used to sequentially execute the summation step, the first judgment step, the third judgment step, and the second judgment step at least once when the judgment result of the first judgment step indicates yes and the judgment result of the second judgment step indicates no, until the current time reaches the preset minimum interval time. The summation step includes: summing the current time with the preset step time to obtain the updated current time. The third judgment step includes: judging whether the condition variable is the first preset parameter.

[0098] In some optional implementations, the above-mentioned setting module includes: a first setting module, used to set a first condition variable to a first preset parameter when the ECU meets a first immediate transmission condition, wherein the first condition variable is used to characterize whether the first data array is equal to the second data array sent by the ECU in the previous step, and when the condition variable is the first preset parameter, the condition variable characterizes that the first data array is equal to the second data array sent by the ECU in the previous step; a second setting module, used to set a second condition variable to the first preset parameter when the ECU meets a second immediate transmission condition, wherein the second condition variable is used to characterize whether the ECU receives a trigger signal, and when the condition variable is the first preset parameter, the condition variable characterizes that the ECU receives a trigger signal; a third setting module, used to set a third condition variable to the first preset parameter when the ECU meets a third immediate transmission condition, wherein the third condition variable characterizes whether the target performance parameter of the ECU is outside the threshold range corresponding to the target performance parameter, and when the condition variable is the first preset parameter, the condition variable characterizes that the target performance parameter is outside the threshold range corresponding to the target.

[0099] In some optional implementations, when the condition variable is set to a first preset parameter, the second triggering module includes: a first triggering submodule, configured to assign a first data array to a second data array to trigger an adjustment command when the first immediate transmission condition is met at the ECU and the condition variable is set to the first preset parameter; a second triggering submodule, configured to adjust the receiving state of the ECU to no trigger signal received when the second immediate transmission condition is met at the ECU and the condition variable is set to the first preset parameter; and a third triggering submodule, configured to adjust the threshold range corresponding to the target performance parameter so that the target performance parameter is within the adjusted threshold range when the third immediate transmission condition is met at the ECU and the condition variable is set to the first preset parameter.

[0100] In some optional implementations, the message data processing device described in this application embodiment further includes: a third judgment module, used to perform a third judgment step when the target immediate transmission condition is not met at the ECU end: judging whether the condition variable is a first preset parameter; a fourth judgment module, used to perform a second judgment step again when the condition variable is the first preset parameter, to obtain a first judgment result; and a second loop module, used to sequentially loop the summation step, the first judgment step, the third judgment step, and the second judgment step at least once when the first judgment result indicates that the current timing time has not reached the preset minimum interval time, until the current timing time reaches the preset minimum interval time.

[0101] In some optional implementations, the above-described message data processing method of the application embodiment further includes: a fifth judgment module, used to execute a fourth judgment step when the condition variable is not a first preset parameter: judging whether the current timing time has reached a preset message sending period, wherein the preset message sending period is greater than a preset minimum interval time; when the current timing time has reached the preset message sending period, triggering an enable signal to the ECU to make the ECU send a first data array; and a third loop module, used to sequentially execute the summation step, the first judgment step, the third judgment step, and the fourth judgment step at least once when the current timing time has not reached the preset message sending period, until the current timing time reaches the preset message sending period.

[0102] In some optional implementations, the above-mentioned message data processing method of the application embodiment further includes: an initialization module, used to initialize a condition variable before the first judgment step is executed for the first time, or when an enable signal is triggered, so that the condition variable is set to a second preset parameter, wherein when the condition variable is the second preset parameter, the condition variable represents that the ECU does not meet the target immediate transmission condition; and a clearing module, used to clear the current timer to zero when an enable signal is triggered.

[0103] This application also provides a computer-readable storage medium, which includes a stored program, wherein the program controls the device where the computer-readable storage medium is located to execute the above-described message data processing method when it is running.

[0104] This application also provides a computer-readable storage medium, which includes a stored program, wherein the program controls the device where the computer-readable storage medium is located to execute the above-described message data processing method when it is running.

[0105] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0106] The aforementioned message data processing device includes a processor and a memory. The aforementioned modules are all stored as program units in the memory, and the processor executes these program units to achieve the corresponding functions. All the aforementioned modules are located in the same processor; alternatively, the aforementioned modules may be located in different processors in any combination.

[0107] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the problems of high bus load and high software maintenance costs in existing technologies when processing message data.

[0108] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0109] This invention provides a computer-readable storage medium including a stored program, wherein the program, when running, controls the device containing the computer-readable storage medium to execute the message data processing method.

[0110] Specifically, the message data processing methods include:

[0111] Step S202: If the first data array expected to be sent by the ECU at the current step length is obtained, the first judgment step is performed: determine whether the ECU meets any one of a plurality of immediate sending conditions, wherein the plurality of immediate sending conditions include a first immediate sending condition, a second immediate sending condition and a third immediate sending condition. The first immediate sending condition is that the first data array is not equal to the second data array sent by the ECU at the previous step length. The second immediate sending condition is that the ECU receives a trigger signal. The third immediate sending condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter.

[0112] Specifically, the aforementioned first data array serves as input parameters, including calibration value 1, calibration value 2, and calibration value 3. Calibration value 1 is used to calibrate the message period, calibration value 2 is used to calibrate the minimum interval time, and calibration value 3 is used to calibrate different immediate transmission conditions. Specifically, value 1 can be set to represent the immediate transmission condition being a change in the data array transmitted by the ECU with preceding and following steps; value 2 can be set to represent receiving a trigger signal from any of the following: a sensor, actuator, controller hardwire, or CAN line; and value 3 can be set to represent a certain performance parameter of the ECU exceeding or falling below a certain threshold range. By using calibration value 3 to indicate the immediate transmission condition, the function of selecting message data processing under different conditions is realized.

[0113] Step S204: If any one of the immediate transmission conditions is met at the ECU end, execute the second judgment step: determine whether the current timing time has reached the preset minimum interval time, wherein the starting timing time of the current timing time is the time when the first data array is acquired;

[0114] Specifically, if the current timing time has not reached the preset minimum interval time, the time step is increased by at least one step time based on the current timing time until the updated current timing time reaches the preset minimum interval time, and then the message data is sent, thereby enabling the message to be sent according to the minimum interval time.

[0115] Step S206: When the current timing time reaches the preset minimum interval time, trigger an enable signal to the ECU so that the ECU sends the first data array.

[0116] Specifically, when the current timing reaches the preset minimum interval, the ECU is enabled to send message data, thereby enabling the message data to be sent at the minimum time interval.

[0117] This invention provides an electronic device, including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps: Upon acquiring a first data array expected to be sent by the ECU at the current step size, a first judgment step is performed: determining whether the ECU meets any one of a plurality of immediate transmission conditions, wherein the plurality of immediate transmission conditions include a first immediate transmission condition, a second immediate transmission condition, and a third immediate transmission condition. The first immediate transmission condition is that the first data array is not equal to the second data array sent by the ECU at the previous step size; the second immediate transmission condition is that the ECU receives a trigger signal; and the third immediate transmission condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter. If the ECU meets any one of the immediate transmission conditions, a second judgment step is performed: determining whether the current timing time has reached a preset minimum interval time, wherein the starting time of the current timing time is the time when the first data array was acquired. If the current timing time has reached the preset minimum interval time, an enable signal is triggered to the ECU to cause the ECU to send the first data array. The electronic device described herein can be a server, PC, PAD, mobile phone, etc.

[0118] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps: Upon acquiring a first data array currently being sent by the ECU, a first judgment step is performed: Upon acquiring a first data array expected to be sent by the ECU in the current step, a first judgment step is performed: Determining whether the ECU meets any one of a plurality of immediate transmission conditions, wherein the plurality of immediate transmission conditions include a first immediate transmission condition, a second immediate transmission condition, and a third immediate transmission condition; the first immediate transmission condition is that the first data array is not equal to the second data array sent by the ECU in the previous step; the second immediate transmission condition is that the ECU receives a trigger signal; and the third immediate transmission condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter; If the ECU meets any one of the immediate transmission conditions, a second judgment step is performed: Determining whether the current timing time has reached a preset minimum interval time, wherein the starting time of the current timing time is the time when the first data array was acquired; If the current timing time has reached the preset minimum interval time, triggering an enable signal to the ECU to cause the ECU to send the first data array.

[0119] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0120] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0121] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0122] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0123] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0124] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0125] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0126] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0127] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0128] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A message data processing method, characterized in that, include: If the first data array expected to be sent by the ECU at the current step size is obtained, the first judgment step is performed: determine whether the ECU meets any one of a plurality of immediate sending conditions, wherein the plurality of immediate sending conditions include a first immediate sending condition, a second immediate sending condition and a third immediate sending condition, the first immediate sending condition is that the first data array is not equal to the second data array sent by the ECU at the previous step size, the second immediate sending condition is that the ECU receives a trigger signal, and the third immediate sending condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter; If any one of the immediate transmission conditions is met at the ECU end, the second judgment step is executed: determine whether the current timing time has reached the preset minimum interval time, wherein the starting timing time of the current timing time is the time when the first data array is acquired; When the current timing time reaches the preset minimum interval time, an enable signal is triggered to the ECU so that the ECU sends the first data array; If any one of the immediate transmission conditions is met at the ECU end, the message data processing method further includes: before determining whether the current timing time has reached the preset minimum interval time, setting a condition variable to a first preset parameter, wherein the condition variable is used to characterize whether the ECU end meets the target immediate transmission condition; when the condition variable is the first preset parameter, the condition variable characterizes that the ECU end meets the target immediate transmission condition, and the target immediate transmission condition is one of the first immediate transmission condition, the second immediate transmission condition, and the third immediate transmission condition; when the condition variable is set to the first preset parameter, an adjustment instruction is triggered, and when the first judgment step is repeatedly executed, the adjustment instruction is used to make the judgment result of the first judgment step indicate no; when the judgment result of the first judgment step indicates yes, and the judgment result of the second judgment step indicates no, the summation step, the first judgment step, the third judgment step, and the second judgment step are sequentially cyclically repeated at least once until the current timing time reaches the preset minimum interval time, wherein the summation step includes: summing the current timing time with a preset step time to obtain an updated current timing time; the third judgment step includes: determining whether the condition variable is the first preset parameter. It also includes: if the target immediate transmission condition is not met at the ECU end, the third judgment step is executed: judging whether the condition variable is a first preset parameter; if the condition variable is the first preset parameter, the second judgment step is executed again to obtain a first judgment result; if the first judgment result indicates that the current timing time has not reached the preset minimum interval time, the summation step, the first judgment step, the third judgment step and the second judgment step are executed sequentially at least once until the current timing time reaches the preset minimum interval time. It also includes: when the condition variable is not the first preset parameter, performing a fourth judgment step: determining whether the current timing time has reached a preset message transmission period, wherein the preset message transmission period is greater than the preset minimum interval time; when the current timing time has reached the preset message transmission period, triggering the enable signal to the ECU so that the ECU sends the first data array; when the current timing time has not reached the preset message transmission period, sequentially executing the summation step, the first judgment step, the third judgment step, and the fourth judgment step at least once, until the current timing time reaches the preset message transmission period.

2. The message data processing method according to claim 1, characterized in that, Setting the condition variable to a first preset parameter includes: When the first immediate transmission condition is met at the ECU end, the first condition variable is set to the first preset parameter, wherein the first condition variable is used to characterize whether the first data array is equal to the second data array sent by the ECU end in the previous step. When the condition variable is the first preset parameter, the condition variable characterizes that the first data array is not equal to the second data array sent by the ECU end in the previous step. When the second immediate transmission condition is met at the ECU, the second condition variable is set to the first preset parameter, wherein the second condition variable is used to characterize whether the ECU receives the trigger signal. When the condition variable is the first preset parameter, the condition variable characterizes that the ECU receives the trigger signal. When the third immediate transmission condition is met at the ECU, the third condition variable is set to the first preset parameter. The third condition variable is used to characterize whether the target performance parameter at the ECU is outside the threshold range corresponding to the target performance parameter. When the condition variable is the first preset parameter, the condition variable characterizes that the target performance parameter is outside the threshold range corresponding to the target performance parameter.

3. The message data processing method according to claim 1, characterized in that, The step of triggering an adjustment instruction when the condition variable is set to the first preset parameter includes: When the first immediate transmission condition is met at the ECU end and the condition variable is set to the first preset parameter, the first data array is assigned to the second data array to trigger the adjustment command; When the second immediate transmission condition is met at the ECU end and the condition variable is set to the first preset parameter, the receiving state of the ECU end is adjusted to not receive the trigger signal, so as to trigger the adjustment command; When the third immediate transmission condition is met at the ECU and the condition variable is set to the first preset parameter, the threshold range corresponding to the target performance parameter is adjusted so that the target performance parameter is within the adjusted threshold range, thereby triggering the adjustment command.

4. The message data processing method according to claim 1, characterized in that, Also includes: Before the first judgment step is executed for the first time, or when the enable signal is triggered, the condition variable is initialized so that the condition variable is set to a second preset parameter. When the condition variable is the second preset parameter, the condition variable indicates that the ECU does not meet the target immediate transmission condition. When the enable signal is triggered, the current timer is reset to zero.

5. A message data processing apparatus, characterized in that, include: The first judgment module is used to perform a first judgment step when the first data array expected to be sent by the ECU at the current step length is obtained: judging whether the ECU meets any one of a plurality of immediate sending conditions, wherein the plurality of immediate sending conditions include a first immediate sending condition, a second immediate sending condition and a third immediate sending condition, the first immediate sending condition is that the first data array is not equal to the second data array sent by the ECU at the previous step length, the second immediate sending condition is that the ECU receives a trigger signal, and the third immediate sending condition is that at least one performance parameter of the ECU is outside the threshold range corresponding to the at least one performance parameter; The second judgment module is used to execute a second judgment step when any one of the immediate transmission conditions is met at the ECU end: judging whether the current timing time has reached the preset minimum interval time, wherein the starting timing time of the current timing time is the time when the first data array is acquired; The trigger module is used to trigger an enable signal to the ECU when the current timing time reaches the preset minimum interval time, so that the ECU sends the first data array. The message data processing device further includes: a setting module, configured to set a condition variable to a first preset parameter before determining whether the current timing time has reached a preset minimum interval time, wherein the condition variable is used to characterize whether the ECU meets the target immediate transmission condition, and when the condition variable is the first preset parameter, the condition variable characterizes that the ECU meets the target immediate transmission condition, and the target immediate transmission condition is one of the first immediate transmission condition, the second immediate transmission condition, and the third immediate transmission condition; a second triggering module, configured to trigger an adjustment instruction when the condition variable is set to the first preset parameter, wherein when the first judgment step is repeatedly executed, the adjustment instruction is used to make the judgment result of the first judgment step indicate no; a first looping module, configured to sequentially loop the summation step, the first judgment step, the third judgment step, and the second judgment step at least once when the judgment result of the first judgment step indicates yes and the judgment result of the second judgment step indicates no, until the current timing time reaches the preset minimum interval time, wherein the summation step includes: summing the current timing time with a preset step time to obtain an updated current timing time; the third judgment step includes: determining whether the condition variable is the first preset parameter; The message data processing device further includes: a third judgment module, used to execute the third judgment step when the target immediate transmission condition is not met at the ECU end: judging whether the condition variable is a first preset parameter; a fourth judgment module, used to execute the second judgment step again when the condition variable is the first preset parameter, to obtain a first judgment result; and a second loop module, used to sequentially execute the summation step, the first judgment step, the third judgment step, and the second judgment step at least once when the first judgment result indicates that the current timing time has not reached the preset minimum interval time, until the current timing time reaches the preset minimum interval time. The message data processing device further includes: a fifth judgment module, configured to perform a fourth judgment step when the condition variable is not the first preset parameter: judging whether the current timing time has reached a preset message transmission period, wherein the preset message transmission period is greater than the preset minimum interval time; and triggering the enable signal to the ECU terminal when the current timing time has reached the preset message transmission period, so that the ECU terminal sends the first data array; and a third loop module, configured to sequentially execute the summation step, the first judgment step, the third judgment step, and the fourth judgment step at least once when the current timing time has not reached the preset message transmission period, until the current timing time reaches the preset message transmission period.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the message data processing method according to any one of claims 1 to 4.

7. An electronic device, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including a message data processing method for performing any one of claims 1 to 4.