Data monitoring method and device of vehicle ecu, electronic equipment and storage medium
By acquiring engine parameter variables to detect anomalies and automatically switching the communication link between the ECU and the host computer, the problem of not being able to automatically adjust ECU data monitoring in existing technologies is solved. This enables automatic monitoring of multiple host computers and multiple ECUs, improving operational efficiency.
Patent Information
- Application Number
- CN202411227563.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-09-03
AI Technical Summary
Existing technologies cannot meet the need for automated adjustment of data monitoring for different ECUs, requiring switching of communication links by adjusting external wiring methods, which is cumbersome.
This invention provides a data monitoring method for vehicle ECUs. By acquiring engine parameter variables, detecting abnormal variables, and automatically switching the communication link between the ECU and the host computer, the automatic switching of the communication link is achieved using the intelligent splitting principle, supporting automatic monitoring of multiple host computers and multiple ECUs.
It enables automated adjustment of data monitoring for different ECUs without changing the wiring, meeting different user needs and improving operational efficiency.
Smart Images

Figure CN119071100B_ABST
Abstract
Description
Technical Field
[0001] This 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 Technology
[0002] When monitoring and processing ECU (Electronic Control Unit) data in an electronically controlled engine, specialized software is required. The hardware between the host computer and the ECU needs to be calibrated (ES592) for communication.
[0003] In existing technologies, when a communication link between a host computer and an ECU needs to be established, it is necessary to plug the cable into the corresponding host computer interface and ECU interface to create the communication link. Therefore, if it is necessary to switch the communication link between different computers and ECUs, the only way is to adjust the external wiring, which is cumbersome and cannot meet the need for automated adjustment of data monitoring for different ECUs. Summary of the Invention
[0004] In view of this, this application provides a data monitoring method, device, electronic device and storage medium for vehicle ECUs to solve the problem that the prior art cannot meet the need for automated adjustment of data monitoring for different ECUs.
[0005] To achieve the above objectives, this application provides the following technical solution:
[0006] The first aspect of this application discloses a data monitoring method for a vehicle ECU, applied to a communication switching device, wherein the communication switching device is used to switch the communication link between the ECU and a host computer; wherein the data monitoring method for the vehicle ECU includes:
[0007] When the ECU's data monitoring mode is automatic monitoring mode, it acquires the parameter variables of the engine in operation; wherein, the data monitoring mode includes automatic monitoring mode and passive triggering mode;
[0008] Based on a preset threshold range for parameter variables, detect whether there are any abnormal variables among the parameter variables;
[0009] If the abnormal variable is detected in the parameter variables, the host computer corresponding to the ECU with the abnormal variable is determined, and the communication link between the ECU with the abnormal variable and the determined host computer is established.
[0010] If no abnormal variables are detected among 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 ECUs; the ECU monitoring sequence is the order in which the target host computer needs to monitor the ECUs; the ECU monitoring cycle is the time interval between the target host computer monitoring the ECUs that need to be monitored.
[0011] For each target host computer, the communication links between the target host computer and each ECU that the target host computer needs to monitor are switched sequentially according to the ECU monitoring order and the ECU monitoring cycle.
[0012] Optionally, in the above method, determining the host computer corresponding to the ECU where the abnormal variable occurs includes:
[0013] Determine if there is an idle host computer;
[0014] If there is an idle host computer, then a host computer in an idle state will be randomly matched as the host computer corresponding to the ECU that has the abnormal variable.
[0015] If there is no idle host computer, then based on the preset monitoring priority, the host computer corresponding to the ECU 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.
[0016] Optionally, in the above method, the step of sequentially switching the communication link between the target host computer and each ECU that the target host computer needs to monitor, according to the ECU monitoring order and the ECU monitoring cycle, includes:
[0017] For each target host computer, the ECU that needs to be monitored is determined according to the ECU monitoring order;
[0018] Establish a communication link between the target host computer and the ECU that needs to be monitored.
[0019] When it is detected that the monitoring duration of the ECU to be monitored has reached the ECU monitoring cycle, the communication link between the target host computer and the ECU to be monitored is disconnected, and the process returns to the step of determining the ECU to be monitored for each target host computer according to the ECU monitoring order; until the preset termination condition is met, the monitoring of the ECU by the target host computer is stopped.
[0020] Optionally, in the above method, determining the ECU that needs to be monitored currently according to the ECU monitoring order includes:
[0021] Based on the ECU monitoring order, the ECUs that need to be monitored are numbered and sorted; wherein, the earlier the ECU is monitored, the smaller its number.
[0022] Obtain the ECU number that the target host computer previously monitored;
[0023] If the number is empty or the number is the largest number, then the ECU that 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 maximum number, then the ECU that needs to be monitored now is determined to be the ECU whose number is one position after the number of the ECU monitored in the previous monitoring.
[0025] Optionally, the above methods also include:
[0026] 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 established; wherein, the data monitoring request includes the host computer information that performs the monitoring and the ECU information being monitored.
[0027] Optionally, in the above method, establishing the communication link between the ECU corresponding to the data monitoring request and the host computer includes:
[0028] Detect the communication status between the ECU and the host computer corresponding to the data monitoring request;
[0029] If the communication status of the ECU and the host computer corresponding to the data monitoring request is normal, then a confirmation message for the communication connection between the ECU and the host computer corresponding to the data monitoring request is generated and sent to the user; wherein, the confirmation message is used to prompt the user whether to confirm the connection of the communication link between the ECU and the host computer corresponding to the data monitoring request.
[0030] If the user's confirmation connection information is received, the communication link between the corresponding ECU and the host computer in the data monitoring request is established.
[0031] Optionally, in the above method, the data monitoring request is sent in the following ways:
[0032] Send the data monitoring request via the local configuration button;
[0033] Alternatively, the data monitoring request can be sent remotely via a mobile terminal;
[0034] Alternatively, the data monitoring request can be sent remotely via host computer software.
[0035] A second aspect of this application discloses a data monitoring device for a vehicle ECU, applied to a communication switching device, wherein the communication switching device is used to switch the communication link between the ECU and a host computer; wherein the data monitoring device for the vehicle ECU includes:
[0036] The first acquisition unit is used to acquire the parameter variables of the engine in operation when the data monitoring mode of the ECU is in automatic monitoring mode; wherein, the data monitoring mode includes automatic monitoring mode and passive triggering mode.
[0037] The detection unit is used to detect whether there are any abnormal variables among the parameter variables;
[0038] The determining unit is used to determine the host computer corresponding to the ECU that has the abnormal variable if the abnormal variable is detected in the parameter variables, and to connect the communication link between the ECU that has the abnormal variable and the determined host computer.
[0039] The second acquisition unit is used to acquire the automatic monitoring task of the target host computer if no abnormal variable is detected 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 order of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval between the target host computer monitoring the ECUs that need to be monitored.
[0040] The switching unit, for each target host computer, sequentially switches the communication links between the target host computer and each ECU that the target host computer needs to monitor, according to the ECU monitoring order and the ECU monitoring cycle.
[0041] Optionally, in the above-described apparatus, the determining unit includes:
[0042] The first determining subunit is used to determine whether there is an idle host computer;
[0043] The first matching subunit is used to randomly match an idle host computer as the host computer corresponding to the ECU that has the abnormal variable if there is an idle host computer.
[0044] The second matching subunit is used to find the host computer corresponding to the ECU with the lowest monitoring priority based on a preset monitoring priority if there is no host computer in an idle state, and to use the found host computer as the host computer corresponding to the ECU with the abnormal variable.
[0045] Optionally, in the above-described apparatus, the switching unit includes:
[0046] The first determining subunit is used to determine the ECU that needs to be monitored for each target host computer according to the ECU monitoring order.
[0047] The first communication subunit is used to connect the communication link between the target host computer and the ECU that needs to be monitored.
[0048] The first detection subunit is used to disconnect the communication link between the target host computer and the ECU to be monitored when the monitoring duration of the ECU to be monitored reaches the ECU monitoring cycle, and return to execute the step of determining the ECU to be monitored for each target host computer according to the ECU monitoring order; until the preset termination condition is met, the monitoring of the ECU by the target host computer is stopped.
[0049] Optionally, in the above-described apparatus, the first determining subunit includes:
[0050] The sorting subunit is used to number and sort the ECUs that need to be monitored based on the ECU monitoring order; wherein, the earlier the ECU is monitored, the smaller its number.
[0051] The acquisition subunit is used to acquire the number of the ECU previously monitored by the target host computer;
[0052] The second determining subunit is used to determine the ECU that needs to be monitored at the moment 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, if the number is not empty and the number is not the maximum number, that the ECU currently to be monitored is the ECU whose numbering is one position after the number of the ECU monitored in the previous monitoring.
[0054] Optionally, the above-mentioned apparatus further includes:
[0055] 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 triggering mode and a data monitoring request is received from the user; wherein, the data monitoring request includes the host computer information performing the monitoring and the ECU information being monitored.
[0056] Optionally, in the above-described apparatus, the communication unit includes:
[0057] The 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 generation unit is used to generate confirmation information for the communication connection between the ECU and the host computer in the data monitoring request if the communication status of both the ECU and the host computer in the data monitoring request is normal, and then send it to the user; wherein, the confirmation information is used to prompt the user whether to confirm the connection of the communication link between the ECU and the host computer in the data monitoring request.
[0059] The second communication subunit is used to establish a communication link between the ECU corresponding to the data monitoring request and the host computer if the user's confirmation connection information is received.
[0060] A third aspect of this application discloses an electronic device, comprising:
[0061] One or more processors;
[0062] A storage device on which one or more programs are stored;
[0063] When the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method as described in any one of the first aspects of this application.
[0064] The fourth aspect of this application discloses a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any one of the first aspects of this application.
[0065] As can be seen from the above technical solution, the data monitoring method for a vehicle ECU provided in this application utilizes a communication switching device, which is used to switch the communication link between the ECU and the host computer. When the ECU's data monitoring mode is automatic monitoring mode, the parameter variables of the engine in operation are acquired. Then, based on a preset parameter variable threshold range, it is detected whether there are abnormal variables among the parameter variables. If abnormal variables are detected, the host computer corresponding to the ECU with the abnormal variable is determined, and the communication link between the ECU with the abnormal variable and the determined host computer is established. If no abnormal variables are detected, the automatic monitoring task of the target host computer is acquired. 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 sequentially according to the ECU monitoring order and ECU monitoring cycle. Therefore, using the method of this application, communication link switching can be performed on multiple host computers and multiple ECUs without changing the wiring, so as to realize the adjustment of data monitoring for different ECUs. Furthermore, in automatic monitoring mode, automatic monitoring of different ECUs can be achieved, which can meet the different needs of users. This solves the problem that existing technologies cannot meet the need for automated adjustment of data monitoring for different ECUs. Attached Figure Description
[0066] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0067] Figure 1 This is a schematic diagram of a communication switching device disclosed in an embodiment of this application;
[0068] Figure 2 This is a flowchart of a data monitoring method for a vehicle ECU disclosed in another embodiment of this application;
[0069] Figure 3 A flowchart illustrating one implementation of step S203 disclosed in another embodiment of this application;
[0070] Figure 4 A flowchart illustrating one implementation of step S301 disclosed in another embodiment of this application;
[0071] Figure 5 This is a network topology diagram of a host computer and ECU components disclosed in another embodiment of this application;
[0072] Figure 6This is a schematic diagram of the page layout of the host computer software disclosed in another embodiment of this application;
[0073] Figure 7 This is a schematic diagram of a host computer software device disclosed in another embodiment of this application;
[0074] Figure 8 This is a schematic diagram of an electronic device disclosed in another embodiment of this application. Detailed Implementation
[0075] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0076] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover a 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 a process, method, article, or apparatus. Without further limitation, 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 said element.
[0077] Furthermore, in this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0078] As the background technology shows, in existing technologies, when it is necessary to establish a communication link between a host computer and an ECU, it is necessary to plug cables into the corresponding host computer interface and ECU interface to establish the communication link. Therefore, if it is necessary to switch the communication link between different computers and ECUs, it can only be done by adjusting the external wiring, which is cumbersome and cannot meet the needs of automated adjustment for data monitoring of different ECUs.
[0079] In view of this, this application provides a data monitoring method, device, electronic device and storage medium for vehicle ECUs to solve the problem that the prior art cannot meet the need for automated adjustment of data monitoring for different ECUs.
[0080] This application provides a data monitoring method for a vehicle ECU, applied to a communication switching device. 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, the system mainly consists of an I / O module, a main control unit (MCU), a wireless module, a serial port module, a wireless router, a data server, and a manual switching button. The communication switching device primarily employs an intelligent splitter principle to automatically switch communication lines. INCA, a calibration software produced by the German company ETAS, mainly provides a platform for monitoring and measuring engine data and performing calibration. The ETAS592 is a powerful integrated interface module that provides various communication modes between the INCA system and the ECU, including a CAN interface, and is primarily used for calibration and matching development of engine, transmission, and other control systems.
[0081] The above-mentioned data monitoring methods for vehicle ECUs, such as Figure 2 As shown, it specifically includes:
[0082] S201. When the ECU's data monitoring mode is automatic monitoring mode, it acquires the parameter variables of the engine in operation; the data monitoring mode includes automatic monitoring mode and passive triggering mode.
[0083] It should be noted that when the ECU's data monitoring mode is in automatic monitoring mode, it obtains the engine's parameters and variables during operation from the engine control system server or vehicle instrument panel information. These parameters and variables include engine speed, torque, oil pressure, engine coolant temperature, fuel consumption, and data measured by various sensors. Users can set the ECU's data monitoring mode according to their actual needs; the data monitoring mode includes automatic monitoring mode and passive triggering mode.
[0084] S202. Based on the preset threshold range of parameter variables, detect whether there are abnormal variables among the parameter variables.
[0085] It should be noted that, based on the engine's technical specifications or mission requirements, threshold ranges are set for various parameter variables, such as upper and lower limits for oil pressure, engine coolant temperature, engine speed, and torque. Then, it is determined whether the acquired parameter variable conforms to its corresponding threshold range. If not, the current parameter variable is considered an abnormal variable. For example, if the threshold range for engine oil pressure is set to 350-550 kPa, then oil pressure below 350 kPa or above 550 kPa is considered an abnormal variable.
[0086] S203. If an abnormal variable is detected among the parameter variables, the host computer corresponding to the ECU with the abnormal variable is determined, and the communication link between the ECU with the abnormal variable and the determined host computer is established.
[0087] It should be noted that if an abnormal variable is detected among the parameter variables, first determine which ECU has the abnormal variable, and then determine the host computer corresponding to the ECU with the abnormal variable. Then, establish a 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 this application, one implementation of step S203 may include:
[0089] Determine if there is an idle host computer.
[0090] If there is an idle host computer, then a host computer in an idle state will be randomly matched as the host computer corresponding to the ECU with the abnormal variable.
[0091] If there is no idle host computer, then based on the preset monitoring priority, the host computer corresponding to the ECU with the lowest monitoring priority abnormal variable 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 the first step is to determine if an idle host computer exists. If an idle host computer exists, it can be randomly selected as the host computer corresponding to the ECU with the abnormal variable, and that ECU will be monitored. If no idle host computer exists, then based on the preset monitoring priority, the host computer corresponding to the ECU with the lowest monitoring priority for the abnormal variable is found, and this host computer is selected as the host computer corresponding to the current ECU, and the current ECU will be monitored. The monitoring priority of each parameter variable can be set according to factors such as its impact on the engine's life cycle leading to failure, and its impact on engine performance and emissions, and the parameters variables can be sorted from high to low priority. For example, the monitoring priority of the parameters variables could be oil pressure, engine coolant temperature, engine speed, and torque, with corresponding ECUs ECU1, ECU2, ECU3, and ECU4, respectively. The currently detected abnormal variable is engine coolant temperature, with a threshold range of 75~95℃, and the current temperature is 100℃. When no host computer is available, host computer 1 monitors ECU1 corresponding to oil pressure, and host computer 2 monitors ECU3 corresponding to engine speed. At this time, among the three parameter variables, engine speed monitoring has the lowest priority, so host computer 2 is used as the host computer for ECU2 corresponding to engine coolant temperature. Subsequently, the communication link between ECU3 and host computer 2 is disconnected, and the communication link between ECU2 and host computer 2 is reconnected.
[0093] S204. If no abnormal variables are detected 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 order of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval between the target host computer monitoring the ECUs that need to be monitored.
[0094] It should be noted that when the monitoring mode is automatic, if no abnormal variables are detected among the parameter variables, the automatic monitoring task of the target host computer is acquired. This automatic monitoring task is set by the user through a mobile terminal (such as a mobile APP) or the host computer, including setting the ECU monitoring order and ECU monitoring cycle corresponding to the target host computer. Here, the target host computer is the host computer that needs to perform automatic ECU monitoring; the ECU monitoring order is the order in which the target host computer needs to monitor the ECUs; and the ECU monitoring cycle is the time interval at which the target host computer monitors the ECUs. For example, if host computer 1 is set as the target host computer, and the ECUs it needs to monitor are ECU1, ECU2, and ECU3 in that order, with the ECU monitoring cycle set to 10 minutes.
[0095] S205. For each target host computer, according to the ECU monitoring order and ECU monitoring cycle, switch the communication links between the target host computer and each ECU that the target host computer needs to monitor 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 with the first ECU to be monitored, the communication link between that ECU and the target host computer is established. Then, the communication link between the target host computer and each ECU is switched sequentially according to the ECU monitoring cycle, and this process is repeated to achieve round-robin monitoring of each ECU.
[0097] Optionally, in another embodiment of this application, one implementation of step S203 is as follows: Figure 3 As shown, it may include:
[0098] S301. For each target host computer, determine the ECU that needs to be monitored according to the ECU monitoring sequence.
[0099] It should be noted that since the ECUs are automatically monitored in a pre-set order, for each target host computer, the ECU that needs to be monitored is determined according to the ECU monitoring order.
[0100] Optionally, in another embodiment of this application, one implementation of step S301 is as follows: Figure 4 It can include:
[0101] S401. Based on the ECU monitoring order, the ECUs that need to be monitored are numbered and sorted; the earlier the ECU is monitored, the smaller its number.
[0102] It should be noted that, based on the ECU monitoring order, the ECUs that need to be monitored are numbered and sorted; the earlier the ECU is monitored, the smaller its number. For example, if the host computer 1 needs to monitor ECUs 1, ECU2, and ECU3 in that order, then ECU1 can be numbered 1, ECU2 can be numbered 2, and ECU3 can be numbered 3.
[0103] S402. Obtain the number of the ECU that was previously monitored by the target host computer.
[0104] It should be noted that when determining the ECU that needs to be monitored, the first step is to obtain the number of the ECU that was previously monitored by the target host computer.
[0105] S403. If the number is empty or the number is the largest number, then the ECU that needs to be monitored is determined to be the ECU with the smallest number.
[0106] It should be noted that if the target host computer has no record of the previously monitored ECU in the current automatic monitoring task, meaning it hasn't started monitoring the first ECU yet, then the monitored ECU's number will be empty. If the ECU's number is the maximum number, then it is the ECU ranked last in the ECU monitoring sequence. When the target host computer's previously monitored ECU number is empty or is the maximum number, then the ECU to be monitored now is determined to be the ECU with the smallest number, that is, the ECU ranked first in the ECU monitoring sequence. Taking the above example, if the host computer 1's previously monitored ECU number is empty or is 3, then the ECU to be monitored now is the ECU with number 1, i.e., ECU1.
[0107] S404. If the number is not empty and is not the maximum number, then the ECU that needs to be monitored now is the ECU whose number is one position after the number of the ECU monitored in the previous monitoring.
[0108] It should be noted that if the ECU number is not empty and is not the maximum number, then the ECU to be monitored is the one whose number is one position after the ECU number previously monitored. For example, if the ECU number previously monitored by host computer 1 was 1, then the ECU to be monitored now is the ECU with number 2, i.e., ECU2.
[0109] S302, a communication link between the target host computer and the ECU that needs to be monitored.
[0110] It should be noted that after identifying the ECU that needs to be monitored, the communication link between the target host computer and the ECU that needs to be monitored is established.
[0111] S303. When it is detected that the monitoring time of the ECU that needs to be monitored has reached the ECU monitoring cycle, the communication link between the target host computer and the ECU that needs to be monitored is disconnected, and the process returns to execute the process of determining the ECU that needs to be monitored for each target host computer according to the ECU monitoring order; until the preset termination condition is met, the monitoring of the ECU by the target host computer is stopped.
[0112] It should be noted that after establishing a communication link between the target host computer and the ECU to be monitored, the monitoring duration of the ECU is monitored. If 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 process returns to the previous step. For each target host computer, the ECU is determined according to the ECU monitoring order, and the monitoring of the next ECU begins. This continues until a preset termination condition is met, at which point the target host computer stops monitoring the ECU. This termination condition can be set according to actual needs, such as monitoring each ECU 10 times in a round-robin fashion.
[0113] For ease of understanding, the network topology in this embodiment consists of various host computers and ECUs, etc. Figure 5 As shown, for example, if the ECUs that host computer 1 needs to monitor are ECU1, ECU2, and ECU3 in that order, and the monitoring cycle is 10 minutes, the following steps are taken: First, establish a communication link between host computer 1 and ECU1; after 10 minutes, switch to a communication link between host computer 1 and ECU2; after 10 minutes, switch to a communication link between host computer 1 and ECU3; after 10 minutes, switch back to a communication link between host computer 1 and ECU1; and so on.
[0114] Optionally, in another embodiment of this application, the above-described vehicle ECU data monitoring method may further include:
[0115] When the monitoring mode is passively triggered, if a data monitoring request sent by the user is received, the communication link between the corresponding ECU in the data monitoring request and the host computer is established; wherein, the data monitoring request includes the host computer information that performs the monitoring and the ECU information being monitored.
[0116] It should be noted that when the monitoring mode is passively triggered, if a data monitoring request is received from the user, 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 established; wherein, the data monitoring request includes the host computer information that performs the monitoring and the ECU information being monitored.
[0117] Optionally, in another embodiment of this application, one implementation of step S204 may include:
[0118] The communication status between the corresponding ECU and the host computer is monitored in the data monitoring request.
[0119] If the communication status of the corresponding ECU and the host computer in the data monitoring request is normal, a confirmation message for the communication connection between the corresponding ECU and the host computer in the data monitoring request will be generated and sent to the user. The confirmation message is used to prompt the user whether to confirm the communication link between the corresponding ECU and the host computer in the data monitoring request.
[0120] If the user's confirmation connection information is received, the communication link between the corresponding ECU and the host computer in the data monitoring request is established.
[0121] It should be noted that upon receiving a data monitoring request from a user, the system first checks the communication status between the corresponding ECU and the host computer. If both the ECU and host computer are functioning normally, then the ECU and host computer can establish a communication connection. To prevent other communication links from being lost during a switchover, a confirmation message regarding the communication connection between the corresponding ECU and host computer is generated and sent to the user, prompting the user to confirm whether to establish the communication link between the corresponding ECU and host computer. If the user's confirmation message is received, the communication link between the corresponding ECU and host computer is established.
[0122] Optionally, in another embodiment of this application, the method of sending the data monitoring request may include:
[0123] Send a data monitoring request via the local configuration button.
[0124] Alternatively, data monitoring requests can be sent remotely via mobile devices.
[0125] Alternatively, data monitoring requests can be sent remotely via host computer software.
[0126] It should be noted that sending a data monitoring request via the local configuration button refers to the user clicking the manual switch button on the communication switching device to determine the communication link to be switched and sending a data monitoring request. Alternatively, the user can remotely communicate with the communication switching device via a mobile app to send a data monitoring request. Alternatively, the user can use host computer software (such as...) Figure 6 (As shown) Send a data monitoring request.
[0127] This application provides a data monitoring method for a vehicle ECU, which utilizes a communication switching device to switch the communication link between the ECU and the host computer. When the ECU's data monitoring mode is automatic monitoring mode, the parameter variables of the running engine are acquired. Then, based on a preset parameter variable threshold range, the presence of abnormal variables is detected. If an abnormal variable is detected, the host computer corresponding to the ECU with the abnormal variable is identified, and the communication link between the ECU with the abnormal variable and the identified host computer is established. If no abnormal variable is detected, the automatic monitoring task of the target host computer is acquired. 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 sequentially according to the ECU monitoring order and ECU monitoring cycle. Therefore, using the method of this application, communication link switching can be performed on multiple host computers and multiple ECUs without changing the wiring, thereby realizing the adjustment of data monitoring for different ECUs. Furthermore, automatic monitoring of different ECUs can be achieved in automatic monitoring mode, meeting different user needs. This solves the problem that existing technologies cannot meet the need for automated adjustment of data monitoring for different ECUs.
[0128] Another embodiment of this application provides a data monitoring device for a vehicle ECU, applied to a communication switching device, the communication switching device being used to switch the communication link between the ECU and the host computer; such as Figure 7 As shown, it specifically includes:
[0129] The first acquisition unit 701 is used to acquire the 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 among the parameter variables.
[0131] The determination unit 703 is used to determine the host computer corresponding to the ECU with the abnormal variable if an abnormal variable is detected in the parameter variables, and to connect the communication link between the ECU with the abnormal variable 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 no abnormal variable is detected 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 order of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval between the target host computer monitoring the ECUs that need to be monitored.
[0133] The switching unit 705, for each target host computer, sequentially switches the communication links between the target host computer and each ECU that the target host computer needs to monitor, according to the ECU monitoring order and ECU monitoring cycle.
[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 found in the corresponding... Figure 2 The specific implementation details of the method are not repeated here.
[0135] This application provides a data monitoring device for a vehicle ECU, which includes a communication switching device used to switch the communication link between the ECU and the host computer. When the ECU's data monitoring mode is 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 a preset parameter variable threshold range. If an abnormal variable is detected, the determination unit 703 determines the host computer corresponding to the ECU with the abnormal variable and establishes the communication link between the ECU with the abnormal variable and the determined host computer. If no abnormal variable is detected, the second acquisition unit 704 acquires the automatic monitoring task of the target host computer, and the switching unit 705, for each target host computer, sequentially switches the communication link between the target host computer and each ECU that the target host computer needs to monitor, according to the ECU monitoring order and ECU monitoring cycle. Therefore, the method of this application allows for switching of communication links across multiple host computers and multiple ECUs without altering the wiring, enabling data monitoring and adjustment of different ECUs. Furthermore, it allows for automatic monitoring of different ECUs in automatic monitoring mode, meeting diverse user needs. This solves the problem in existing technologies that cannot meet the need for automated adjustment of data monitoring across different ECUs.
[0136] Optionally, in another embodiment of this application, the above-described apparatus, in one implementation of the determining 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 to randomly match an idle host computer as the host computer corresponding to the ECU with the abnormal variable if there is one in an idle state.
[0139] The second matching subunit is used to find the host computer corresponding to the ECU with the lowest monitoring priority based on the preset monitoring priority if there is no host computer in an idle state, and to 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 be found in the corresponding method embodiment described above, and will not be repeated here.
[0141] Optionally, in another embodiment of this application, one implementation of the switching unit 705 includes:
[0142] The first determination subunit is used to determine the ECU that needs to be monitored for each target host computer according to the ECU monitoring sequence.
[0143] The first communication subunit is used to connect the communication link between the target host computer and the ECU that needs to be monitored.
[0144] The first detection subunit is used to disconnect the communication link between the target host computer and the ECU to be monitored when the monitoring time of the ECU to be monitored reaches the ECU monitoring cycle, and return to execute the determination of the ECU to be monitored for each target host computer according to the ECU monitoring order; until the preset termination condition is met, the monitoring of the ECU by the target host computer is stopped.
[0145] In this embodiment, the specific execution processes of the first determining subunit, the first connecting subunit, and the first detecting subunit can be found in the above-described corresponding processes. Figure 3 The specific implementation details of the method are not repeated here.
[0146] Optionally, in another embodiment of this application, one implementation of the first determining subunit includes:
[0147] The sorting subunit is used to sort the ECUs that need to be monitored by number based on the ECU monitoring order; the earlier the ECU is monitored, the smaller its number.
[0148] The acquisition subunit is used to obtain the number of the ECU that was previously monitored by the target host computer.
[0149] The second determination subunit is used to determine the ECU that needs to be monitored if the number is empty or the number is the largest number.
[0150] The third determination subunit is used to determine the ECU that needs to be monitored now if the number is not empty and the number is not the maximum number. The ECU whose number is located one position after the number of the ECU monitored in the previous time.
[0151] In this embodiment, the specific execution processes of the sorting subunit, the acquisition subunit, the second determination subunit, and the third determination subunit can be found in the corresponding descriptions above. Figure 4 The specific implementation details of the method are not repeated here.
[0152] Optionally, in another embodiment of this application, the data monitoring device for the vehicle ECU further includes:
[0153] The communication unit is used to establish a communication link between the ECU corresponding to the data monitoring request and the host computer when the monitoring mode is passively triggered and a data monitoring request is received from the user. The data monitoring request includes the host computer information that performs the monitoring and the information of the monitored ECU.
[0154] In this embodiment, the specific execution process of the connecting unit can be found in the corresponding method embodiment described above, and will not be repeated here.
[0155] Optionally, in another embodiment of this application, one implementation of the above-mentioned connecting unit includes:
[0156] The second detection subunit is used to detect the communication status between the corresponding ECU and the host computer in the data monitoring request.
[0157] The information generation unit is used to generate confirmation information for the communication connection between the ECU and the host computer in the data monitoring request if the communication status of both is normal. This confirmation information is then sent to the user.
[0158] The second communication subunit is used to connect the communication link between the corresponding ECU and the host computer in the data monitoring request 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 connection subunit can be found in the corresponding method embodiments described above, and will not be repeated here.
[0160] Another embodiment of the application also provides an electronic device, such as Figure 8 As shown, it specifically includes:
[0161] One or more processors 801.
[0162] Storage device 802, on which one or more programs are stored.
[0163] When one or more programs are executed by one or more processors 801, the one or more processors 801 implement any of the methods described in the above embodiments.
[0164] Another embodiment of this application also provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any of the methods described in the above embodiments.
[0165] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0166] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0167] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily 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 this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for monitoring data of a vehicle ECU, characterized in that, An application is made to a communication switching device, which is used to switch the communication link between the ECU and the host computer; wherein, the data monitoring method for the vehicle ECU includes: When the ECU's data monitoring mode is automatic monitoring mode, it acquires the parameter variables of the engine in operation; wherein, the data monitoring mode includes automatic monitoring mode and passive triggering mode; Based on a preset threshold range for parameter variables, detect whether there are any abnormal variables among the parameter variables; If the abnormal variable is detected in the parameter variables, the host computer corresponding to the ECU with the abnormal variable is determined, and the communication link between the ECU with the abnormal variable and the determined host computer is established. If no abnormal variables are detected among 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 ECUs; the ECU monitoring sequence is the order in which the target host computer needs to monitor the ECUs; the ECU monitoring cycle is the time interval between the target host computer monitoring the ECUs that need to be monitored. For each target host computer, the communication links between the target host computer and each ECU that the target host computer needs to monitor are switched sequentially according to the ECU monitoring order and the ECU monitoring cycle.
2. The method according to claim 1, characterized in that, The process of determining the host computer corresponding to the ECU where the abnormal variable occurs includes: Determine if there is an idle host computer; If there is an idle host computer, then a host computer in an idle state will be randomly matched as the host computer corresponding to the ECU that has the abnormal variable. If there is no idle host computer, then based on the preset monitoring priority, the host computer corresponding to the ECU 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.
3. The method according to claim 1, characterized in that, For each target host computer, the communication links between the target host computer and each ECU that the target host computer needs to monitor are switched sequentially according to the ECU monitoring order and the ECU monitoring cycle, including: For each target host computer, the ECU that needs to be monitored is determined according to the ECU monitoring order; Establish a communication link between the target host computer and the ECU that needs to be monitored. When it is detected that the monitoring duration of the ECU to be monitored has reached the ECU monitoring cycle, the communication link between the target host computer and the ECU to be monitored is disconnected, and the process returns to the step of determining the ECU to be monitored for each target host computer according to the ECU monitoring order; until the preset termination condition is met, the monitoring of the ECU by the target host computer is stopped.
4. The method according to claim 2, characterized in that, The step of determining the ECU that needs to be monitored currently according to the ECU monitoring order includes: Based on the ECU monitoring order, the ECUs that need to be monitored are numbered and sorted; wherein, the earlier the ECU is monitored, the smaller its number. Obtain the ECU number that the target host computer previously monitored; If the number is empty or the number is the largest number, then the ECU that 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 maximum number, then the ECU that needs to be monitored now is determined to be the ECU whose number is one position after the number of the ECU monitored in the previous monitoring.
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 the user is received, the communication link between the ECU corresponding to the data monitoring request and the host computer is established; wherein, the data monitoring request includes the host computer information that performs the monitoring and the ECU information being monitored.
6. The method according to claim 5, characterized in that, The communication link between the ECU and the host computer corresponding to the data monitoring request includes: Detect the communication status between the ECU and the host computer corresponding to the data monitoring request; If the communication status of the ECU and the host computer corresponding to the data monitoring request is normal, then a confirmation message for the communication connection between the ECU and the host computer corresponding to the data monitoring request is generated and sent to the user; wherein, the confirmation message is used to prompt the user whether to confirm the connection of the communication link between the ECU and the host computer corresponding to the data monitoring request. If the user's confirmation connection information is received, the communication link between the corresponding ECU and the host computer in the data monitoring request is established.
7. The method according to claim 5, characterized in that, The data monitoring request is sent in the following ways: Send the data monitoring request via the local configuration button; Alternatively, the data monitoring request can be sent remotely via a mobile terminal; Alternatively, the data monitoring request can be sent remotely via host computer software.
8. A data monitoring device for a vehicle ECU, characterized in that, An application is made to a communication switching device, which is used to switch the communication link between the ECU and the host computer; wherein, the data monitoring device for the vehicle ECU includes: The first acquisition unit is used to acquire the parameter variables of the engine in operation when the data monitoring mode of the ECU is in automatic monitoring mode; wherein, the data monitoring mode includes automatic monitoring mode and passive triggering mode. The detection unit is used to detect whether there are any abnormal variables among the parameter variables; The determining unit is used to determine the host computer corresponding to the ECU that has the abnormal variable if the abnormal variable is detected in the parameter variables, and to connect the communication link between the ECU that has the abnormal variable and the determined host computer. The second acquisition unit is used to acquire the automatic monitoring task of the target host computer if no abnormal variable is detected 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 order of the ECUs that the target host computer needs to monitor; the ECU monitoring cycle is the time interval between the target host computer monitoring the ECUs that need to be monitored. The switching unit, for each target host computer, sequentially switches the communication links between the target host computer and each ECU that the target host computer needs to monitor, according to the ECU monitoring order and the ECU monitoring cycle.
9. An electronic device, characterized in that, include: One or more processors; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method as described in any one of claims 1 to 7.
10. A computer storage medium, characterized in that, It stores a computer program thereon, wherein the computer program, when executed by a processor, implements the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Diagnostic method for vehicle and related device
CN115542883A
Vehicle diagnosis method and device, terminal equipment and storage medium
CN117472028A