Data monitoring method and device for vehicle ECU, electronic equipment and storage medium

By detecting engine parameter variables and preset threshold ranges, automatically switching the communication links between the ECU and the host computer, the problem of not being able to automatically adjust the ECU data monitoring in the existing technology is solved, and the automated monitoring and communication links of different ECUs are realized. Efficient switching.

CN119071100AActive Publication Date: 2024-12-03WEICHAI POWER CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411227563.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2024-12-03
Estimated Expiration
2044-09-03

AI Technical Summary

Technical Problem

The prior art cannot meet the needs of automated adjustments to data monitoring of different ECUs, and needs to switch communication links by adjusting external wiring, which is troublesome to operate.

Method used

Provide a data monitoring method for vehicle ECUs, which can automatically monitor different ECUs by obtaining engine parameter variables, detecting abnormal variables, and automatically switch the communication link between the ECU and the host computer according to the preset threshold range and monitoring priority. .

Benefits of technology

Without changing the line, communication link switching between multiple upper computers and multiple ECUs is realized, meeting the data monitoring needs of different ECUs, and improving the efficiency of automated adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071100A_ABST
    Figure CN119071100A_ABST
Patent Text Reader

Abstract

The invention provides a data monitoring method and device for a vehicle ECU, electronic equipment and a storage medium. The data monitoring method for the vehicle ECU is applied to a communication switching device, and the communication switching device is used for switching a communication link between the ECU and an upper computer. And when the data monitoring mode of the ECU is the automatic monitoring mode, parameter variables of the engine in the running state are obtained. And then detecting whether an abnormal variable exists in the parameter variables based on a preset parameter variable threshold range. And if it is detected that the abnormal variable exists in the parameter variables, determining an upper computer corresponding to the ECU with the abnormal variable, and communicating a communication link between the ECU with the abnormal variable and the determined upper computer. If it is detected that no abnormal variable exists in the parameter variables, an automatic monitoring task of the target upper computer is obtained, and for each target upper computer, communication links between the target upper computer and the ECUs needing to be monitored by the target upper computer are sequentially switched according to the ECU monitoring sequence and the ECU monitoring period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data monitoring method, device, electronic device and storage medium for a vehicle ECU. Background Art

[0002] When the electronically controlled engine performs ECU (electronic control unit) data monitoring and processing, dedicated software is required for operation, and the hardware between the host computer and the ECU requires a calibration device (ES592) for communication.

[0003] In the prior art, when it is necessary to build a direct communication link between the host computer and the ECU, it is necessary to plug the line into the corresponding host computer interface and ECU interface to build a direct communication link between the host computer and the ECU. Therefore, if it is necessary to switch the communication link between different computers and ECUs, it can only be switched by adjusting the external wiring, which is cumbersome to operate and cannot meet the needs of automatic adjustment of data monitoring of different ECUs. Summary of the invention

[0004] In view of this, the present application provides a vehicle ECU data monitoring method, device, electronic device and storage medium to solve the problem that the prior art cannot meet the demand for automatic adjustment of data monitoring of different ECUs.

[0005] To achieve the above objectives, this application provides the following technical solutions:

[0006] In a first aspect, the present application discloses a data monitoring method for a vehicle ECU, which is applied to a communication switching device, wherein the communication switching device is used to switch a communication link between the ECU and a host computer; wherein the data monitoring method for the vehicle ECU comprises:

[0007] When the data monitoring mode of the ECU is the automatic monitoring mode, the parameter variables of the engine in the running state are obtained; wherein the data monitoring mode includes the automatic monitoring mode and the passive triggering mode;

[0008] Based on a preset parameter variable threshold range, detecting whether there are abnormal variables in the parameter variables;

[0009] If the abnormal variable is detected in the parameter variable, the host computer corresponding to the ECU where the abnormal variable appears is determined, and a communication link between the ECU where the abnormal variable appears and the determined host computer is connected;

[0010] If it is detected that there is no abnormal variable in the parameter variable, the automatic monitoring task of the target host computer is obtained; wherein the monitoring task includes the ECU monitoring sequence and ECU monitoring cycle corresponding to the target host computer; the target host computer is the host computer that needs to perform automatic monitoring on the ECU; the ECU monitoring sequence is the sequence of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval for the target host computer to monitor the ECUs that need to be monitored;

[0011] For each of the target host computers, the communication links between the target host computer and each ECU that the target host computer needs to monitor are switched in sequence according to the ECU monitoring sequence and the ECU monitoring cycle.

[0012] Optionally, in the above method, the step of determining the host computer corresponding to the ECU where the abnormal variable occurs includes:

[0013] Determine whether there is an idle host computer;

[0014] If there is an idle host computer, a randomly matched idle host computer is used as the host computer corresponding to the ECU where the abnormal variable occurs;

[0015] If there is no host computer in an idle state, based on the preset monitoring priority, the host computer corresponding to the ECU having the abnormal variable with the lowest monitoring priority is found, and the found host computer is used as the host computer corresponding to the ECU where the abnormal variable appears.

[0016] Optionally, the method described above, for each of the target host computers, sequentially switching the communication links between the target host computer and each ECU that the target host computer needs to monitor according to the ECU monitoring sequence and the ECU monitoring cycle, includes:

[0017] For each of the target host computers, according to the ECU monitoring order, determine the ECU that currently needs to be monitored;

[0018] Connecting the communication link between the target host computer and the ECU currently requiring monitoring;

[0019] When it is detected that the monitoring time of the currently monitored ECU reaches the ECU monitoring cycle, the communication link between the target host computer and the currently monitored ECU is disconnected, and the execution is returned to each target host computer, and the ECU that needs to be monitored is determined according to the ECU monitoring order; until the preset end condition is met, the target host computer stops monitoring the ECU.

[0020] Optionally, in the above method, determining the ECU that currently needs to be monitored according to the ECU monitoring order includes:

[0021] Based on the ECU monitoring sequence, the ECUs to be monitored are numbered and sorted; wherein the ECUs at the front of the monitoring sequence have smaller numbers;

[0022] Obtain the number of the ECU monitored by the target host computer last time;

[0023] If the number is empty or the number is the largest number, then the ECU that currently needs to be monitored is determined to be the ECU with the smallest number;

[0024] If the number is not empty and the number is not the largest number, it is determined that the ECU currently to be monitored is an ECU whose number is one position after the number of the ECU monitored last time.

[0025] Optionally, the above method further includes:

[0026] When the monitoring mode is the passive trigger mode, if a data monitoring request sent by a user is received, the communication link between the ECU corresponding to the data monitoring request and the host computer is connected; wherein the data monitoring request includes the host computer information that performs monitoring and the monitored ECU information.

[0027] Optionally, in the above method, the communication link between the ECU corresponding to the data monitoring request and the host computer includes:

[0028] Detecting the communication status between the ECU and the host computer corresponding to the data monitoring request;

[0029] If the communication status of the ECU corresponding to the data monitoring request and the host computer are both normal, then the pending confirmation information of the communication connection between the ECU corresponding to the data monitoring request and the host computer is generated and sent to the user; wherein the pending confirmation information is used to prompt the user whether to confirm the communication link between the ECU corresponding to the data monitoring request and the host computer;

[0030] If the user's confirmation connection information is received, the communication link between the ECU corresponding to the data monitoring request and the host computer is connected.

[0031] Optionally, in the above method, the mode of sending the monitoring data request includes:

[0032] Sending the monitoring data request via a local configuration button;

[0033] Alternatively, the monitoring data request is sent remotely via a mobile terminal;

[0034] Alternatively, the monitoring data request is sent remotely via host computer software.

[0035] The second aspect of the present application discloses a data monitoring device for a vehicle ECU, which is applied to a communication switching device, wherein the communication switching device is used to switch a communication link between the ECU and a host computer; wherein the data monitoring device for the vehicle ECU comprises:

[0036] A first acquisition unit, used for acquiring parameter variables of the engine in operation when the data monitoring mode of the ECU is an automatic monitoring mode; wherein the data monitoring mode includes an automatic monitoring mode and a passive triggering mode;

[0037] A detection unit, used for detecting whether there are abnormal variables in the parameter variables;

[0038] a determination unit, configured to determine a host computer corresponding to the ECU where the abnormal variable appears, if the abnormal variable is detected in the parameter variable, and to connect a communication link between the ECU where the abnormal variable appears and the determined host computer;

[0039] The second acquisition unit is used to acquire the automatic monitoring task of the target host computer if it is detected that there is no abnormal variable in the parameter variable; wherein the monitoring task includes the ECU monitoring sequence and ECU monitoring cycle corresponding to the target host computer; the target host computer is the host computer that needs to perform automatic monitoring on the ECU; the ECU monitoring sequence is the sequence of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval for the target host computer to monitor the ECUs that need to be monitored;

[0040] The switching unit switches, for each of the target host computers, the communication links between the target host computer and each ECU that the target host computer needs to monitor in sequence according to the ECU monitoring sequence and the ECU monitoring cycle.

[0041] Optionally, in the above device, the determining unit includes:

[0042] A first determining subunit is used to determine whether there is an idle host computer;

[0043] A first matching subunit is used for, if there is an idle host computer, randomly matching an idle host computer as the host computer corresponding to the ECU where the abnormal variable occurs;

[0044] The second matching subunit is used to find out the host computer corresponding to the ECU with the abnormal variable with the lowest monitoring priority based on the preset monitoring priority if there is no host computer in the idle state, and use the found host computer as the host computer corresponding to the ECU with the abnormal variable.

[0045] Optionally, in the above device, the switching unit includes:

[0046] A first determining subunit is used to determine the ECU that currently needs to be monitored according to the ECU monitoring order for each of the target host computers;

[0047] A first communication subunit, used for establishing a communication link between the target host computer and the ECU currently to be monitored;

[0048] The first detection subunit is used to detect that the monitoring time of the currently monitored ECU reaches the ECU monitoring cycle, then disconnect the communication link between the target host computer and the currently monitored ECU, and return to execute the ECU monitoring sequence for each target host computer to determine the ECU that needs to be monitored currently; until the preset end condition is met, the target host computer stops monitoring the ECU.

[0049] Optionally, in the above device, the first determining subunit includes:

[0050] A sorting subunit is used to sort the ECUs to be monitored by number based on the ECU monitoring order; wherein the ECUs at the front of the monitoring order have smaller numbers;

[0051] An acquisition subunit, used to acquire the serial number of the ECU monitored by the target host computer last time;

[0052] A second determining subunit is used to determine that the ECU currently to be monitored is the ECU with the smallest number if the number is empty or the number is the largest number;

[0053] The third determining subunit is used to determine that the ECU currently to be monitored is an ECU whose number is one digit after the number of the ECU monitored last time if the number is not empty and the number is not the maximum number.

[0054] Optionally, the above device further includes:

[0055] A communication unit is used for connecting the communication link between the ECU corresponding to the data monitoring request and the host computer when the monitoring mode is the passive trigger mode, if a data monitoring request sent by the user is received; wherein the data monitoring request includes the host computer information that performs monitoring and the monitored ECU information.

[0056] Optionally, in the above device, the communication unit includes:

[0057] A second detection subunit is used to detect the communication status between the ECU and the host computer corresponding to the data monitoring request;

[0058] An information generating unit, for generating, if the communication status of the ECU corresponding to the data monitoring request and the host computer are both normal, information to be confirmed about the communication connection between the ECU corresponding to the data monitoring request and the host computer, and sending the information to the user; wherein the information to be confirmed is used to prompt the user whether to confirm the communication link between the ECU corresponding to the data monitoring request and the host computer;

[0059] The second connecting sub-unit is used to connect the communication link between the ECU corresponding to the data monitoring request and the host computer if the confirmation connection information of the user is received.

[0060] The third aspect of the present application discloses an electronic device, comprising:

[0061] one or more processors;

[0062] a storage device having one or more programs stored thereon;

[0063] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of the first aspects of the present application.

[0064] A fourth aspect of the present application discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the first aspects of the present application is implemented.

[0065] It can be seen from the above technical scheme that in a data monitoring method for a vehicle ECU provided by the present application, it is applied to a communication switching device, and the communication switching device is used to switch the communication link between the ECU and the host computer. When the data monitoring mode of the ECU is the automatic monitoring mode, the parameter variables of the engine in the running state are obtained. Then, based on the preset parameter variable threshold range, it is detected whether there are abnormal variables in the parameter variables. If it is detected that there are abnormal variables in the parameter variables, the host computer corresponding to the ECU where the abnormal variables appear is determined, and the communication link between the ECU where the abnormal variables appear and the determined host computer is connected. If it is detected that there are no abnormal variables in the parameter variables, the automatic monitoring task of the target host computer is obtained, and for each target host computer, according to the ECU monitoring order and the ECU monitoring cycle, the communication link between the target host computer and each ECU that the target host computer needs to monitor is switched in turn. It can be seen from this that, using the method of the present application, when multiple host computers and multiple ECUs do not change the line, the communication link can be switched to realize the data monitoring adjustment of different ECUs, and the automatic monitoring of different ECUs can be realized in the automatic monitoring mode, which can meet the different needs of users. The problem that the existing technology cannot meet the demand for automatic adjustment of data monitoring of different ECUs is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0067] Figure 1 A schematic diagram of a communication switching device disclosed in an embodiment of the present application;

[0068] Figure 2 A flow chart of a vehicle ECU data monitoring method disclosed in another embodiment of the present application;

[0069] Figure 3 This is a flowchart of an implementation of step S203 disclosed in another embodiment of the present application;

[0070] Figure 4 This is a flowchart of an implementation of step S301 disclosed in another embodiment of the present application;

[0071] Figure 5 A network topology diagram consisting of a host computer and ECU and other components disclosed in another embodiment of the present application;

[0072] Figure 6This is a page diagram of the upper computer software disclosed in another embodiment of the present application;

[0073] Figure 7 A schematic diagram of a host computer software device disclosed in another embodiment of the present application;

[0074] Figure 8 A schematic diagram of an electronic device disclosed in another embodiment of the present application. DETAILED DESCRIPTION

[0075] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0076] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0077] Furthermore, in this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0078] As can be seen from the background technology, in the prior art, when it is necessary to build a direct communication link between the host computer and the ECU, it is necessary to plug the line into the corresponding host computer interface and ECU interface by plugging in the line to build a direct communication link between the host computer and the ECU. Therefore, if it is necessary to switch the communication link between different computers and ECUs, it can only be switched by adjusting the external wiring, which is cumbersome to operate and cannot meet the needs of automatic adjustment of data monitoring of different ECUs.

[0079] In view of this, the present application provides a vehicle ECU data monitoring method, device, electronic device and storage medium to solve the problem that the prior art cannot meet the demand for automatic adjustment of data monitoring of different ECUs.

[0080] The embodiment of the present application provides a data monitoring method for a vehicle ECU, which is applied to a communication switching device, wherein the communication switching device is used to switch the communication link between the ECU and the host computer. The structure of the communication switching device is as follows: Figure 1 As shown, it mainly includes IO module, main control unit MCU, wireless module, serial port module, wireless router, data server, manual switch button, etc. The communication switching device mainly adopts the principle of intelligent line distribution to realize automatic switching of communication lines. Among them, INCA is a calibration software produced by ETAS of Germany, which mainly provides a working platform to monitor and measure the data of the engine and perform calibration. ETAS592 is a powerful integrated interface module, which provides a variety of communication modes between INCA system and ECU, CAN interface, and is mainly used for calibration and matching development of control systems such as engines and gearboxes.

[0081] The data monitoring method of the above vehicle ECU is as follows: Figure 2 As shown, specifically including:

[0082] S201. When the data monitoring mode of the ECU is the automatic monitoring mode, obtaining parameter variables of the engine in operation; wherein the data monitoring mode includes the automatic monitoring mode and the passive triggering mode.

[0083] It should be noted that when the ECU data monitoring mode is the automatic monitoring mode, the engine parameter variables in operation are obtained through the engine measurement and control system server or vehicle instrument information, where the parameter variables include speed, torque, oil pressure, engine water temperature, fuel consumption, and various sensor measurement data. Users can set the ECU data monitoring mode according to actual needs; the data monitoring mode includes automatic monitoring mode and passive trigger mode.

[0084] S202: Based on a preset parameter variable threshold range, detect whether there are abnormal variables in the parameter variables.

[0085] It should be noted that the threshold range of each parameter variable is set according to the technical condition range of the engine or the task requirements, such as the upper and lower limits of the parameter variables such as oil pressure, engine water temperature, speed, torque, etc. Then, it is determined whether the acquired parameter variable meets the threshold range corresponding to the current parameter variable. If not, the current parameter variable is determined to be an abnormal variable. For example, the threshold range of the engine oil pressure is set to 350-550kPa. When the oil pressure is less than 350kPa or greater than 550kPa, the oil pressure is determined to be an abnormal variable.

[0086] S203: If an abnormal variable is detected in the parameter variable, a host computer corresponding to the ECU where the abnormal variable occurs is determined, and a communication link is established between the ECU where the abnormal variable occurs and the determined host computer.

[0087] It should be noted that if an abnormal variable is detected in the parameter variable, first determine which ECU has the abnormal variable, and determine the host computer corresponding to the ECU with the abnormal variable, and then connect the communication link between the ECU with the abnormal variable and the determined host computer to monitor the data of the ECU.

[0088] Optionally, in another embodiment of the present application, an implementation of step S203 may include:

[0089] Determine whether there is an idle host computer.

[0090] If there is an idle host computer, a random idle host computer is matched as the host computer corresponding to the ECU where the abnormal variable occurs.

[0091] If there is no host computer in an idle state, based on the preset monitoring priority, the host computer corresponding to the ECU with the abnormal variable with the lowest monitoring priority is found, and the found host computer is used as the host computer corresponding to the ECU with the abnormal variable.

[0092] It should be noted that first, determine whether there is an idle host computer. If there is an idle host computer, then a host computer in an idle state can be randomly matched as the host computer corresponding to the ECU with abnormal variables, and the ECU can be monitored. If there is no idle host computer, then based on the preset monitoring priority, find the host computer corresponding to the ECU with the lowest abnormal variable monitoring priority, and use the host computer as the host computer corresponding to the current ECU to monitor the current ECU. Among them, the monitoring priority of each parameter variable can be set according to factors such as failures that affect the life cycle of the engine and affect engine performance and emissions, and the various parameter variables can be sorted from high to low according to priority. For example, the monitoring priority of the parameter variables is oil pressure, engine water temperature, speed, and torque, and the corresponding ECUs are ECU1, ECU2, ECU3, and ECU4 respectively. The abnormal variable currently detected is the engine water temperature, and its threshold range is 75-95℃, and the current temperature is 100℃. When there is no idle host computer, host computer 1 monitors ECU1 corresponding to the oil pressure, and host computer 2 monitors ECU3 corresponding to the speed. At this time, among the three parameter variables, the monitoring priority of the speed is the lowest, so host computer 2 is used as the host computer of ECU2 corresponding to the engine water temperature. Subsequently, the communication link between ECU3 and host computer 2 is disconnected, and the communication link between ECU2 and host computer 2 is connected.

[0093] S204. If it is detected that there are no abnormal variables in the parameter variables, the automatic monitoring task of the target host computer is obtained; wherein the monitoring task includes the ECU monitoring sequence and ECU monitoring cycle corresponding to the target host computer; the target host computer is the host computer that needs to perform automatic monitoring of the ECU; the ECU monitoring sequence is the sequence of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval for the target host computer to monitor the ECUs that need to be monitored.

[0094] It should be noted that when the monitoring mode is the automatic monitoring mode, if it is detected that there are no abnormal variables in the parameter variables, the automatic monitoring task of the target host computer is obtained. The automatic monitoring task is set by the user through a mobile terminal (such as a mobile phone APP) or a host computer, including setting the ECU monitoring sequence and ECU monitoring cycle corresponding to the target host computer. Among them, the target host computer is the host computer that needs to perform automatic monitoring of the ECU; the ECU monitoring sequence is the order of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval for the target host computer to monitor the ECUs that need to be monitored. For example, set the host computer 1 as the target host computer, and the order of ECUs that need to be monitored is ECU1, ECU2, and ECU3, and the ECU monitoring cycle is set to 10 minutes.

[0095] S205 . For each target host computer, according to the ECU monitoring sequence and the ECU monitoring cycle, the communication links between the target host computer and each ECU that the target host computer needs to monitor are switched in sequence.

[0096] It should be noted that for each target host computer, the ECUs to be monitored and their monitoring order can be determined based on the ECU monitoring sequence, and the monitoring duration of each ECU can be determined based on the ECU monitoring cycle. Therefore, starting from the first ECU to be monitored, the communication link between the ECU and the target host computer is connected, and then the communication link between the target host computer and each ECU is switched in turn according to the ECU monitoring cycle, and this cycle is repeated to achieve patrol monitoring of each ECU.

[0097] Optionally, in another embodiment of the present application, an implementation of step S203 is as follows: Figure 3 As shown, this may include:

[0098] S301 . For each target host computer, determine the ECU that needs to be monitored currently according to the ECU monitoring sequence.

[0099] It should be noted that, since the ECUs are automatically monitored in a pre-set order, the ECU that currently needs to be monitored is determined for each target host computer according to the ECU monitoring order.

[0100] Optionally, in another embodiment of the present application, an implementation of step S301 is as follows: Figure 4 , which may include:

[0101] S401. Based on the ECU monitoring sequence, ECUs to be monitored are numbered and sorted; the earlier the ECU is in the monitoring sequence, the smaller the number is.

[0102] It should be noted that the ECUs to be monitored are numbered based on the ECU monitoring sequence; the earlier the ECU is in the monitoring sequence, the smaller the number is. For example, if the ECUs to be monitored by host computer 1 are ECU1, ECU2, and ECU3, then the number of ECU1 can be set to 1, the number of ECU2 can be set to 2, and the number of ECU3 can be set to 3.

[0103] S402, obtaining the number of the ECU monitored by the target host computer last time.

[0104] It should be noted that when determining the ECU that needs to be monitored currently, the serial number of the ECU that was monitored by the target host computer last time is first obtained.

[0105] S403: If the number is empty or the number is the largest number, determine that the ECU that currently needs to be monitored is the ECU with the smallest number.

[0106] It should be noted that if in the current automatic monitoring task, the target host computer has no record of the previous ECU monitoring, that is, it has not started monitoring the first ECU, then the number of the monitored ECU is empty. If the ECU number is the largest number, it is the last ECU in the ECU monitoring order. When the number of the ECU monitored by the target host computer last time is empty or the largest number, it is determined that the ECU currently to be monitored is the ECU with the smallest number, that is, the first ECU in the ECU monitoring order. Taking the above example, if the number of the ECU monitored by host computer 1 last time is empty or 3, the ECU currently to be monitored is the ECU corresponding to number 1, that is, ECU1.

[0107] S404: If the number is not empty and the number is not the largest number, determine that the ECU that needs to be monitored currently is the ECU whose number is one position after the number of the ECU monitored last time.

[0108] It should be noted that if the ECU number is not empty and the number is not the maximum number, the ECU that needs to be monitored currently is determined to be the ECU whose number is one position after the number of the ECU monitored last time. For example, if the number of the ECU monitored last time by the host computer 1 is 1, then the ECU that needs to be monitored currently is the ECU corresponding to number 2, that is, ECU2.

[0109] S302, establish a communication link between the target host computer and the ECU that currently needs to be monitored.

[0110] It should be noted that after the ECU that needs to be monitored is determined, a communication link is established between the target host computer and the ECU that currently needs to be monitored.

[0111] S303. When it is detected that the monitoring time of the currently monitored ECU reaches the ECU monitoring cycle, the communication link between the target host computer and the currently monitored ECU is disconnected, and the execution is returned to each target host computer, and the ECU that needs to be monitored is determined according to the ECU monitoring order; until the preset end condition is met, the target host computer stops monitoring the ECU.

[0112] It should be noted that after the communication link between the target host computer and the ECU that currently needs to be monitored is established, the monitoring duration of the ECU is detected. When it is detected that the monitoring duration of the currently monitored ECU reaches the ECU monitoring cycle, for example, 10 minutes, the communication link between the target host computer and the currently monitored ECU is disconnected, and the execution is returned to each target host computer. According to the ECU monitoring order, the ECU that currently needs to be monitored is determined, and the next ECU is monitored. Until the preset end condition is met, the target host computer stops monitoring the ECU. The end condition can be set according to actual needs, such as the number of patrol monitoring of each ECU reaches 10 times, etc.

[0113] For ease of understanding, the network topology composed of the host computer and ECU components in this embodiment is as follows: Figure 5 As shown, for example, the order of ECUs that the host computer 1 needs to monitor is ECU1, ECU2, and ECU3, and the monitoring cycle is 10 minutes. First, the communication link between the host computer 1 and ECU1 is connected; after 10 minutes, the communication link between the host computer 1 and ECU2 is switched; after 10 minutes, the communication link between the host computer 1 and ECU3 is switched; after 10 minutes, the communication link between the host computer 1 and ECU1 is switched again; and the cycle repeats.

[0114] Optionally, in another embodiment of the present application, the data monitoring method of the vehicle ECU may further include:

[0115] When the monitoring mode is the passive trigger mode, if a data monitoring request sent by the user is received, the communication link between the ECU corresponding to the data monitoring request and the host computer is connected; wherein the data monitoring request includes the host computer information executing the monitoring and the monitored ECU information.

[0116] It should be noted that when the monitoring mode is the passive trigger mode, if a data monitoring request sent by the user is received, the ECU and the host computer that need to be connected are determined based on the data monitoring request, and then the communication link between the ECU and the host computer is connected; wherein the data monitoring request includes the host computer information that executes the monitoring and the ECU information that is monitored.

[0117] Optionally, in another embodiment of the present application, an implementation of step S204 may include:

[0118] Check the communication status between the ECU and the host computer corresponding to the data monitoring request.

[0119] If the communication status of the ECU corresponding to the data monitoring request and the host computer are both normal, the pending confirmation information of the communication connection between the ECU corresponding to the data monitoring request and the host computer is generated and sent to the user; wherein, the pending confirmation information is used to prompt the user whether to confirm the communication link between the ECU corresponding to the data monitoring request and the host computer.

[0120] If the user's confirmation connection information is received, the communication link between the ECU corresponding to the data monitoring request and the host computer is established.

[0121] It should be noted that when receiving a data monitoring request sent by a user, the communication status between the corresponding ECU in the data monitoring request and the host computer is first detected. If the communication status between the corresponding ECU in the data monitoring request and the host computer is normal, it means that the ECU and the host computer can be connected for communication. In order to prevent other links in communication from being disconnected during switching, the pending confirmation information of the communication connection between the corresponding ECU in the data monitoring request and the host computer is generated and sent to the user, prompting the user whether to confirm the communication link between the corresponding ECU in the data monitoring request and the host computer. If the user's confirmation connection information is received, the communication link between the corresponding ECU in the data monitoring request and the host computer is connected.

[0122] Optionally, in another embodiment of the present application, the method of sending the monitoring data request in step S204 may include:

[0123] Send a monitoring data request via the local configuration button.

[0124] Alternatively, a monitoring data request is sent remotely via a mobile terminal.

[0125] Alternatively, a monitoring data request is sent remotely via the host computer software.

[0126] It should be noted that sending a monitoring data request through a local configuration button means that the user clicks the manual switch button in the communication switching device to determine the communication link to be switched and sends a monitoring data request. Alternatively, the user's mobile phone APP remotely communicates with the communication switching device and sends a monitoring data request. Alternatively, the user uses the host computer software (such as Figure 6 The monitoring data request is sent as shown.

[0127] In a data monitoring method for a vehicle ECU provided by the present application, the communication switching device is applied to a communication switching device, and the communication switching device is used to switch the communication link between the ECU and the host computer. When the data monitoring mode of the ECU is the automatic monitoring mode, the parameter variables of the engine in the running state are obtained. Then, based on the preset parameter variable threshold range, whether there are abnormal variables in the parameter variables is detected. If the presence of abnormal variables in the parameter variables is detected, the host computer corresponding to the ECU where the abnormal variables appear is determined, and the communication link between the ECU where the abnormal variables appear and the determined host computer is connected. If no abnormal variables are detected in the parameter variables, the automatic monitoring task of the target host computer is obtained, and for each target host computer, the communication link between the target host computer and each ECU that the target host computer needs to monitor is switched in turn according to the ECU monitoring sequence and the ECU monitoring cycle. It can be seen from this that using the method of the present application, the communication link can be switched without changing the line of multiple host computers and multiple ECUs to realize the data monitoring adjustment of different ECUs, and the automatic monitoring of different ECUs can be realized in the automatic monitoring mode, which can meet the different needs of users. It solves the problem that the existing technology cannot meet the demand for automatic adjustment of data monitoring of different ECUs.

[0128] Another embodiment of the present application further provides a data monitoring device for a vehicle ECU, which is applied to a communication switching device, and the communication switching device is used to switch the communication link between the ECU and the host computer; Figure 7 As shown, specifically including:

[0129] The first acquisition unit 701 is used to acquire parameter variables of the engine in operation when the data monitoring mode of the ECU is the automatic monitoring mode; wherein the data monitoring mode includes the automatic monitoring mode and the passive triggering mode.

[0130] The detection unit 702 is used to detect whether there are abnormal variables in the parameter variables.

[0131] The determination unit 703 is used to determine the host computer corresponding to the ECU where the abnormal variable occurs if an abnormal variable is detected in the parameter variable, and connect the communication link between the ECU where the abnormal variable occurs and the determined host computer.

[0132] The second acquisition unit 704 is used to acquire the automatic monitoring task of the target host computer if it is detected that there are no abnormal variables in the parameter variables; wherein the monitoring task includes the ECU monitoring sequence and ECU monitoring cycle corresponding to the target host computer; the target host computer is the host computer that needs to perform automatic monitoring of the ECU; the ECU monitoring sequence is the sequence of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval for the target host computer to monitor the ECUs that need to be monitored.

[0133] The switching unit 705 switches the communication links between the target host computer and each ECU to be monitored by the target host computer in sequence according to the ECU monitoring sequence and the ECU monitoring cycle for each target host computer.

[0134] In this embodiment, the specific execution process of the first acquisition unit 701, the detection unit 702, the determination unit 703, the second acquisition unit 704 and the switching unit 705 can be referred to the corresponding Figure 2 The content of the method embodiment will not be repeated here.

[0135] In a data monitoring device for a vehicle ECU provided by the present application, it is applied to a communication switching device, and the communication switching device is used to switch the communication link between the ECU and the host computer. When the data monitoring mode of the ECU is the automatic monitoring mode, the first acquisition unit 701 acquires the parameter variables of the engine in operation. Then the detection unit 702 detects whether there are abnormal variables in the parameter variables based on the preset parameter variable threshold range. If the presence of abnormal variables in the parameter variables is detected, the determination unit 703 determines the host computer corresponding to the ECU where the abnormal variables appear, and connects the communication link between the ECU where the abnormal variables appear and the determined host computer. If it is detected that there are no abnormal variables in the parameter variables, the second acquisition unit 704 acquires the automatic monitoring task of the target host computer, and the switching unit 705 switches the communication link between the target host computer and each ECU that the target host computer needs to monitor in turn according to the ECU monitoring order and the ECU monitoring cycle for each target host computer. It can be seen that, by using the method of the present application, the communication link can be switched without changing the line between multiple host computers and multiple ECUs to realize data monitoring and adjustment of different ECUs, and automatic monitoring of different ECUs can be realized in the automatic monitoring mode, which can meet the different needs of users. The problem that the existing technology cannot meet the demand for automatic adjustment of data monitoring of different ECUs is solved.

[0136] Optionally, in another embodiment of the present application, the above-mentioned device, an implementation manner of the determination unit 703 includes:

[0137] The first determining subunit is used to determine whether there is an idle host computer.

[0138] The first matching subunit is used for randomly matching an idle host computer as the host computer corresponding to the ECU with the abnormal variable if there is an idle host computer.

[0139] The second matching subunit is used to find out the host computer corresponding to the ECU with the abnormal variable with the lowest monitoring priority based on the preset monitoring priority if there is no host computer in the idle state, and use the found host computer as the host computer corresponding to the ECU with the abnormal variable.

[0140] In this embodiment, the specific execution process of the first determining subunit, the first matching subunit and the second matching subunit can refer to the above corresponding method embodiments, which will not be repeated here.

[0141] Optionally, in another embodiment of the present application, an implementation of the switching unit 705 includes:

[0142] The first determination subunit is used to determine the ECU that currently needs to be monitored according to the ECU monitoring sequence for each target host computer.

[0143] The first communication subunit is used to connect the communication link between the target host computer and the ECU that currently needs to be monitored.

[0144] The first detection subunit is used to detect that the monitoring time of the currently monitored ECU reaches the ECU monitoring cycle, then disconnect the communication link between the target host computer and the currently monitored ECU, and return to execute for each target host computer, according to the ECU monitoring order, to determine the ECU that needs to be monitored currently; until the preset end condition is met, the target host computer stops monitoring the ECU.

[0145] In this embodiment, the specific execution process of the first determination subunit, the first connection subunit and the first detection subunit can refer to the above corresponding Figure 3 The content of the method embodiment will not be repeated here.

[0146] Optionally, in another embodiment of the present application, an implementation of the first determining subunit includes:

[0147] The sorting subunit is used to sort the ECUs to be monitored by number based on the ECU monitoring sequence; wherein, the earlier the ECU is in the monitoring sequence, the smaller the number is.

[0148] The acquisition subunit is used to obtain the number of the ECU monitored by the target host computer last time.

[0149] The second determining subunit is used to determine that the ECU currently to be monitored is the ECU with the smallest number if the number is empty or the number is the largest number.

[0150] The third determination subunit is used to determine that the ECU currently to be monitored is the ECU whose number is one digit after the number of the ECU monitored last time if the number is not empty and the number is not the maximum number.

[0151] In this embodiment, the specific execution process of the sorting subunit, the obtaining subunit, the second determining subunit and the third determining subunit can be referred to in the above corresponding Figure 4 The content of the method embodiment will not be repeated here.

[0152] Optionally, in another embodiment of the present application, the data monitoring device of the vehicle ECU further includes:

[0153] The communication unit is used to connect the communication link between the ECU corresponding to the data monitoring request and the host computer when the monitoring mode is the passive trigger mode, if a data monitoring request sent by the user is received; wherein the data monitoring request includes the host computer information executing the monitoring and the monitored ECU information.

[0154] In this embodiment, the specific execution process of the Unicom unit can refer to the corresponding method embodiment content above, which will not be repeated here.

[0155] Optionally, in another embodiment of the present application, an implementation of the above-mentioned communication unit includes:

[0156] The second detection subunit is used to detect the communication status between the ECU and the host computer corresponding to the data monitoring request.

[0157] The information generating unit is used to generate the pending confirmation information of the communication connection between the corresponding ECU and the host computer in the data monitoring request and send it to the user if the communication status between the corresponding ECU and the host computer in the data monitoring request is normal; wherein the pending confirmation information is used to prompt the user whether to confirm the communication link between the corresponding ECU and the host computer in the Unicom data monitoring request.

[0158] The second communication sub-unit is used to connect the communication link between the ECU corresponding to the data monitoring request and the host computer if the user's confirmation connection information is received.

[0159] In this embodiment, the specific execution process of the second detection subunit, the information generation unit, and the second communication subunit can refer to the corresponding method embodiment content above, and will not be repeated here.

[0160] Another embodiment of the application also provides an electronic device, such as Figure 8 As shown, specifically including:

[0161] One or more processors 801.

[0162] The storage device 802 stores one or more programs.

[0163] When one or more programs are executed by one or more processors 801 , the one or more processors 801 implement any one of the methods in the above embodiments.

[0164] Another embodiment of the present application further provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the methods in the above embodiments is implemented.

[0165] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0166] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0167] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data monitoring method for a vehicle ECU, characterized in that: Applied to a communication switching device, the communication switching device is used to switch the communication link between the ECU and the host computer; wherein the data monitoring method of the vehicle ECU includes: When the data monitoring mode of the ECU is the automatic monitoring mode, the parameter variables of the engine in the running state are obtained; wherein the data monitoring mode includes the automatic monitoring mode and the passive triggering mode; Based on a preset parameter variable threshold range, detecting whether there are abnormal variables in the parameter variables; If the abnormal variable is detected in the parameter variable, the host computer corresponding to the ECU where the abnormal variable appears is determined, and a communication link between the ECU where the abnormal variable appears and the determined host computer is connected; If it is detected that there is no abnormal variable in the parameter variable, the automatic monitoring task of the target host computer is obtained; wherein the monitoring task includes the ECU monitoring sequence and ECU monitoring cycle corresponding to the target host computer; the target host computer is the host computer that needs to perform automatic monitoring on the ECU; the ECU monitoring sequence is the sequence of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval for the target host computer to monitor the ECUs that need to be monitored; For each of the target host computers, the communication links between the target host computer and each ECU that the target host computer needs to monitor are switched in sequence according to the ECU monitoring sequence and the ECU monitoring cycle.

2. The method according to claim 1, characterized in that The determining of the host computer corresponding to the ECU where the abnormal variable occurs includes: Determine whether there is an idle host computer; If there is an idle host computer, a randomly matched idle host computer is used as the host computer corresponding to the ECU where the abnormal variable occurs; If there is no host computer in an idle state, based on the preset monitoring priority, the host computer corresponding to the ECU having the abnormal variable with the lowest monitoring priority is found, and the found host computer is used as the host computer corresponding to the ECU where the abnormal variable appears.

3. The method according to claim 1, characterized in that For each of the target host computers, according to the ECU monitoring sequence and the ECU monitoring cycle, sequentially switching the communication links between the target host computer and each ECU that the target host computer needs to monitor includes: For each of the target host computers, according to the ECU monitoring order, determine the ECU that currently needs to be monitored; Connecting the communication link between the target host computer and the ECU currently requiring monitoring; When it is detected that the monitoring time of the currently monitored ECU reaches the ECU monitoring cycle, the communication link between the target host computer and the currently monitored ECU is disconnected, and the execution is returned to each target host computer, and the ECU that needs to be monitored is determined according to the ECU monitoring order; until the preset end condition is met, the target host computer stops monitoring the ECU.

4. The method according to claim 2, characterized in that: Determining the ECU that currently needs to be monitored according to the ECU monitoring sequence includes: Based on the ECU monitoring sequence, the ECUs to be monitored are numbered and sorted; wherein the ECUs at the front of the monitoring sequence have smaller numbers; Obtain the number of the ECU monitored by the target host computer last time; If the number is empty or the number is the largest number, then the ECU that currently needs to be monitored is determined to be the ECU with the smallest number; If the number is not empty and the number is not the largest number, it is determined that the ECU currently to be monitored is an ECU whose number is one position after the number of the ECU monitored last time.

5. The method according to claim 1, characterized in that: Also includes: When the monitoring mode is the passive trigger mode, if a data monitoring request sent by a user is received, the communication link between the ECU corresponding to the data monitoring request and the host computer is connected; wherein the data monitoring request includes the host computer information that performs monitoring and the monitored ECU information.

6. The method according to claim 4, characterized in that The communication link between the ECU corresponding to the data monitoring request and the host computer includes: Detecting the communication status between the ECU and the host computer corresponding to the data monitoring request; If the communication status of the ECU corresponding to the data monitoring request and the host computer are both normal, then the pending confirmation information of the communication connection between the ECU corresponding to the data monitoring request and the host computer is generated and sent to the user; wherein the pending confirmation information is used to prompt the user whether to confirm the communication link between the ECU corresponding to the data monitoring request and the host computer; If the user's confirmation connection information is received, the communication link between the ECU corresponding to the data monitoring request and the host computer is connected.

7. The method according to claim 1, characterized in that The method of sending the monitoring data request includes: Sending the monitoring data request via a local configuration button; Alternatively, the monitoring data request is sent remotely via a mobile terminal; Alternatively, the monitoring data request is sent remotely via host computer software.

8. A data monitoring device for a vehicle ECU, characterized in that: Applicable to a communication switching device, the communication switching device is used to switch the communication link between the ECU and the host computer; wherein the data monitoring device of the vehicle ECU includes: A first acquisition unit, used for acquiring parameter variables of the engine in operation when the data monitoring mode of the ECU is an automatic monitoring mode; wherein the data monitoring mode includes an automatic monitoring mode and a passive triggering mode; A detection unit, used for detecting whether there are abnormal variables in the parameter variables; a determination unit, configured to determine a host computer corresponding to the ECU where the abnormal variable appears, if the abnormal variable is detected in the parameter variable, and to connect a communication link between the ECU where the abnormal variable appears and the determined host computer; The second acquisition unit is used to acquire the automatic monitoring task of the target host computer if it is detected that there is no abnormal variable in the parameter variable; wherein the monitoring task includes the ECU monitoring sequence and ECU monitoring cycle corresponding to the target host computer; the target host computer is the host computer that needs to perform automatic monitoring on the ECU; the ECU monitoring sequence is the sequence of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval for the target host computer to monitor the ECUs that need to be monitored; The switching unit switches, for each of the target host computers, the communication links between the target host computer and each ECU that the target host computer needs to monitor in sequence according to the ECU monitoring sequence and the ECU monitoring cycle.

9. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Diagnostic method for vehicle and related device

    CN115542883A

  • Software processing system for communication between automobile ECU (Electronic Control Unit) and monitoring and diagnosing equipment

    CN116540673A

  • Vehicle diagnosis method and device, terminal equipment and storage medium

    CN117472028A

  • Distributed control system, switch looped network monitoring method and device and storage medium

    CN118483976A

  • Communication network, monitored ECU, monitoring ECU and vehicle

    JP2018016106A