A monitoring method, system and medium for vehicle log file collection tasks
By real-time monitoring of the status of vehicle log file collection tasks, the problem of high failure rate of log file collection tasks is solved, and the efficiency of remote fault diagnosis and task reliability are improved.
Patent Information
- Application Number
- CN202311116398.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2043-08-31
AI Technical Summary
When the vehicle environment is uncontrollable, the failure rate of log file collection tasks is high, and users have insufficient awareness of the task parameter status, resulting in low efficiency of remote fault diagnosis.
By obtaining task detection parameters and execution time, applying the preset task evaluation strategy to generate task status, real-time monitoring of log file collection tasks, including task execution status and health status, and outputting task status for optimization.
It improves users' perception of task parameter status, ensures the smooth execution of log file collection tasks, and improves remote fault diagnosis efficiency and task reliability.
Smart Images

Figure CN117076403B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle data, and in particular to a monitoring method, system and medium for vehicle log file collection tasks. Background Art
[0002] With the advancement of science and technology, the demand for software-defined vehicles is shifting from mechanical to electronic, and their electrical and electronic architectures are constantly evolving. The increasing number of electronic control units and sensors complicates the in-vehicle network architecture, and each domain controller is relatively independent. The successful collection of these logs in the cloud is crucial for timely fault detection and remote fault diagnosis.
[0003] However, when the vehicle's environment is uncontrollable, such as poor vehicle network, large log files, insufficient vehicle wake-up time, etc., the failure rate of log collection tasks is high, and users have insufficient awareness of the task parameter status and cannot actively optimize the log collection task. They can only passively accept the failure of the task, which is time-consuming and labor-intensive, and reduces the efficiency of remote fault diagnosis. Summary of the Invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a monitoring method, system and medium for vehicle log file collection tasks, which are used to display the task status of the log file collection task in real time, which is conducive to improving the user's perception of the task parameter status, thereby facilitating active optimization of the log collection task and improving the efficiency of remote fault diagnosis.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] In a first aspect, the present invention provides a method for monitoring a vehicle log file collection task, which adopts the following technical solution: a method for monitoring a vehicle log file collection task, applied during the execution of the vehicle log file collection task, comprising:
[0007] Get task detection parameters and task execution time;
[0008] Generate a task status based on the task detection parameters and the task execution time and a preset task evaluation strategy; output the task status to achieve monitoring of the vehicle log file collection task;
[0009] The task detection parameters include task execution detection parameters and / or task health detection parameters;
[0010] The task status includes a task execution status and / or a task health status.
[0011] Furthermore, in the above-mentioned method for monitoring a vehicle log file collection task, the task execution detection parameters include a command issuance status and a log collection status, the command issuance status includes command not issued, command issuing in progress, command issuance successful, and command issuance failed, and the log collection status includes the percentage of the number of collected logs to the total number of collected logs;
[0012] The task execution status includes not executed, executing, executed successfully, executed timed out, and executed failed;
[0013] The task evaluation strategy includes an execution status evaluation strategy.
[0014] Furthermore, in the above-mentioned monitoring method for a vehicle log file collection task, generating a task status based on the task detection parameters and the task execution time and a preset task evaluation strategy includes:
[0015] The task execution status is generated according to the task execution detection parameters and the task execution time based on a preset execution status evaluation strategy.
[0016] Furthermore, in the above-mentioned monitoring method for a vehicle log file collection task, the execution status evaluation strategy includes:
[0017] When the instruction issuance status is that the instruction has not been issued, the task execution status is set to not executed;
[0018] When the instruction issuing status is in the process of issuing the instruction, the task execution status is set to be in the process of executing;
[0019] When the instruction issuance status is successful, the log collection status is lower than 100%, and the task execution time is not higher than the preset execution time threshold, the task execution status is set to being executed;
[0020] When the instruction issuance status is successful and the log collection status is greater than or equal to 100%, the task execution status is set to successful execution;
[0021] When the instruction issuance status is instruction issuance success and the log collection status is lower than 100% and the task execution time is higher than a preset execution time threshold, the task execution status is set to execution timeout;
[0022] When the instruction issuing status is instruction issuing failure, the task execution status is set to execution failure.
[0023] Furthermore, in the above-mentioned monitoring method for a vehicle log file collection task, the task health detection parameters include a vehicle online status, a log file size, and a vehicle high-voltage status, wherein the vehicle online status includes a vehicle offline and a vehicle online, the log file size is a real number greater than zero, and the vehicle high-voltage status includes a vehicle not having high voltage and a vehicle having high voltage;
[0024] The task health status includes healthy and unhealthy;
[0025] The task evaluation strategy includes a health status evaluation strategy.
[0026] Furthermore, in the above-mentioned monitoring method for a vehicle log file collection task, generating a task status based on the task detection parameters and the task execution time and a preset task evaluation strategy includes:
[0027] The task health status is generated according to the task health detection parameters and the task execution time based on a preset health status evaluation strategy.
[0028] Furthermore, in the above-mentioned monitoring method for a vehicle log file collection task, the health status evaluation strategy includes:
[0029] When the vehicle online state is vehicle offline, the task health state is set to unhealthy;
[0030] When the vehicle online state is that the vehicle is online and the log file size is greater than a preset size threshold and the vehicle high voltage state is that the vehicle is not high voltage, the task health state is set to unhealthy;
[0031] When the vehicle online state is vehicle online and the log file size is greater than a preset size threshold and the vehicle high pressure state is vehicle high pressure, the task health state is set to healthy;
[0032] When the vehicle online status is vehicle online and the log file size is not higher than a preset size threshold, the task health status is set to healthy.
[0033] In a second aspect, the present invention provides a method for collecting vehicle log files in the cloud, which adopts the following technical solution: A method for collecting vehicle log files in the cloud, comprising:
[0034] Batch obtain vehicle information for which logs need to be collected, including vehicle VIN code information, ECU information, and domain control APP information;
[0035] Execute a log file collection task based on the vehicle information;
[0036] And, when executing the log file collection task, the log file collection task is monitored based on the vehicle log file collection task monitoring method according to any one of claims 1 to 7.
[0037] In a third aspect, the present invention provides a monitoring system for vehicle log file collection tasks, which adopts the following technical solutions:
[0038] A monitoring system for vehicle log file collection tasks, comprising:
[0039] The task detection parameter acquisition module is used to obtain the task detection parameters during the execution of the vehicle log file collection task; the timing module is used to obtain the task execution time during the execution of the vehicle log file collection task;
[0040] A task status generating module, configured to generate a task status according to the task detection parameters and the task execution time and based on a preset task evaluation strategy;
[0041] The display module is used to output the task status to monitor the vehicle log file collection task.
[0042] In a fourth aspect, the present invention provides a readable storage medium, which adopts the following technical solution:
[0043] A readable storage medium stores computer instructions, which, when executed by a processor, implement a monitoring method for a vehicle log file collection task as described in any one of the first aspects above.
[0044] In summary, compared with the prior art, the present invention has at least one of the following beneficial technical effects:
[0045] 1. The monitoring method of the present invention monitors the vehicle log file collection task by obtaining task parameters, applying a preset evaluation strategy, and outputting the task status. This helps relevant parties understand the task status in real time, identify problems promptly, and take necessary measures to ensure the smooth execution of the task.
[0046] 2. The monitoring method of the present invention can display the task status of the log file collection task in real time, which is conducive to improving the user's perception of the task parameter status, thereby facilitating active optimization of the log collection task and improving the efficiency of remote fault diagnosis;
[0047] 3. The method for collecting vehicle log files in the present invention uses a monitoring method to track the task execution status and health status in real time, ensuring that the log file collection task is carried out as expected, thereby improving the reliability and stability of the task. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 The present invention is a flowchart of a specific embodiment of a method for monitoring a vehicle log file collection task.
[0050] Figure 2 It is a flowchart of a specific embodiment of the execution status evaluation strategy of the present invention.
[0051] Figure 3 This is a flowchart of a specific embodiment of the health status evaluation strategy of the present invention.
[0052] Figure 4 A flowchart of a specific embodiment of a method for collecting vehicle log files on the cloud
[0053] Figure 5 The diagram is a structural diagram of a specific embodiment of a monitoring system for a vehicle log file collection task according to the present invention. DETAILED DESCRIPTION
[0054] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application. In addition, it should be understood that the specific implementation methods described herein are only used to illustrate and explain the present application and are not used to limit the present application. In the present application, unless otherwise specified, the directional words used, such as "up", "down", "left", "right", "front", and "back", generally refer to the up, down, left, and right of the device in actual use or working state, specifically the drawing direction in the accompanying drawings.
[0055] It should be noted that the order of description of the following embodiments does not limit the preferred order of the embodiments of the present application. In addition, in the following embodiments, the description of each embodiment has its own focus. For parts not described in detail in one embodiment, please refer to the relevant description of other embodiments.
[0056] The method steps described in the embodiments of the present invention may be executed in the order described in the specific implementation manner, or the execution order of each step may be adjusted according to actual needs, provided that the technical problem can be solved. The execution order of each step will not be listed here one by one.
[0057] The following is combined with Figure 1-5 The present invention is described in further detail.
[0058] Reference Figure 1 A specific embodiment of the present invention discloses a monitoring method for a vehicle log file collection task, which is applied during the execution of the vehicle log file collection task, and includes:
[0059] S1, obtain task detection parameters and task execution time;
[0060] S2, generating a task status according to the task detection parameters and the task execution time based on a preset task evaluation strategy;
[0061] S3: Output the task status to monitor the vehicle log file collection task.
[0062] The task detection parameters include task execution detection parameters and / or task health detection parameters, and the task status includes task execution status and / or task health status.
[0063] Specifically, in step S1, task detection parameters related to the vehicle log file collection task are obtained. These task detection parameters include information about the task execution status and task health status. Furthermore, the task execution time is recorded to facilitate subsequent time-based evaluation.
[0064] Then, in step S2, the acquired task detection parameters and task execution time are substituted into a preset task evaluation strategy. The task evaluation strategy can be a series of rules or conditions used to infer the execution status and health status of the task based on the parameter values in the task detection parameters and the length of the task execution time.
[0065] Finally, based on the generated task status, the various status values within the task status are output to enable monitoring of the vehicle log file collection task. These status values can be displayed in monitoring dashboards, reports, notifications, and other methods, allowing relevant personnel to understand the execution status and health of the task.
[0066] The above-mentioned specific embodiments of the present invention describe in detail a method for monitoring vehicle log file collection tasks by obtaining task parameters, applying a preset evaluation strategy, and outputting task status. This method can help monitor task status in real time, identify problems promptly, and take necessary measures to ensure smooth task execution.
[0067] Further, as an embodiment of the present invention, the task execution detection parameters include instruction issuance status and log collection status, the instruction issuance status includes instruction not issued, instruction issuance in progress, instruction issuance successful, and instruction issuance failed, the log collection status includes the percentage of collected logs to the total number of collected logs; the task execution status includes not executed, executing, executed successfully, executed timed out, and executed failed; the task evaluation strategy includes an execution status evaluation strategy.
[0068] Specifically, the task execution detection parameters are used to measure and record different aspects of the task execution process, which are expressed as:
[0069] P1={p 11 ,p 12}.
[0070] p 11 The status of the instruction issuance can help track the issuance process and results of the task instruction. 11 ={0,1,2,3}, where 0 indicates that the command has not been issued, 1 indicates that the command is being issued, 2 indicates that the command has been issued successfully, and 3 indicates that the command has failed to be issued.
[0071] p 12 This is the log collection status, which can be used to determine the progress of the task. Here, m represents the number of collected logs, and M represents the total number of collected logs.
[0072] The task execution status reflects the different situations that may occur during the execution of the task and whether the task is progressing as expected, which is expressed as:
[0073] S1={s1,s2,s3,s4,s5}.
[0074] Among them, s1 indicates that the task has not been executed, s2 indicates that the task is being executed, s3 indicates that the task is successfully executed, s4 indicates that the task has timed out, and s5 indicates that the task has failed.
[0075] The task evaluation strategy includes an execution status evaluation strategy, which is used to generate an evaluation strategy for the task execution status based on task execution detection parameters. The execution status evaluation strategy can include a series of rules that determine whether the task is currently executing, has successfully completed, or has encountered an abnormality based on different combinations of instruction issuance status and log collection status.
[0076] Furthermore, as an embodiment of the present invention, step S2 generates a task status based on the task detection parameters and the task execution time and a preset task evaluation strategy, including:
[0077] The task execution status is generated according to the task execution detection parameters and the task execution time based on a preset execution status evaluation strategy.
[0078] Specifically, the execution status evaluation strategy can be expressed as:
[0079] h1={S1,P1,t}.
[0080] Where S1 is the task execution status, P1 is the task execution detection parameter, and t is the task execution time (in minutes). The input parameters of the execution status evaluation strategy h1 are the task execution detection parameter P1 and the task execution time t, and the output parameter is the task execution status S1. In step S2, the task execution detection parameter P1 and the task execution time t obtained in step S1 can be applied to the preset execution status evaluation strategy h1 to obtain the task execution status S1, thereby determining the specific execution status of the task.
[0081] Further, as an embodiment of the present invention, referring to Figure 2 , the execution status evaluation strategy includes: when the instruction issuance status is that the instruction has not been issued, the task execution status is set to not executed;
[0082] When the instruction issuing status is in the process of issuing the instruction, the task execution status is set to be in the process of executing;
[0083] When the instruction issuance status is successful, the log collection status is lower than 100%, and the task execution time is not higher than the preset execution time threshold, the task execution status is set to being executed;
[0084] When the instruction issuance status is successful and the log collection status is greater than or equal to 100%, the task execution status is set to successful execution;
[0085] When the instruction issuance status is instruction issuance success and the log collection status is lower than 100% and the task execution time is higher than a preset execution time threshold, the task execution status is set to execution timeout;
[0086] When the instruction issuing status is instruction issuing failure, the task execution status is set to execution failure.
[0087] Specifically, the execution status evaluation strategy h1 satisfies the following rules:
[0088] 1. If the instruction is issued in status p 11 =0, then the task execution status S1 = s1, indicating that the instruction has not been issued and the task execution status is not executed;
[0089] 2. If the instruction is issued status p 11=1, then the task execution status S1=s2, indicating that the instruction is being issued and the task execution status is in execution;
[0090] 3. If the instruction is issued status p 11 , log collection status p 12 And the task execution time t satisfies p 11 =2&p 12 <100&t≤30, the task execution status S1=s2, indicating that the command was successfully issued, the logs were not completely collected, and the task execution time was less than or equal to 30 minutes. The task execution status is "Executing". The time threshold of 30 minutes can be changed according to actual needs;
[0091] 4. If the instruction is issued status p 11 , log collection status p 12 Satisfy p 11 =2&p 12 ≥100, the task execution status S1 = s3, indicating that the instruction was issued successfully, the logs have been completely collected, and the task execution status is successful.
[0092] 5. If the instruction is issued status p 11 , log collection status p 12 And the task execution time t satisfies p 11 =2&p 12 <100&t>30, then the task execution status S1=s4, indicating that the command was successfully issued, but the logs were not completely collected, the task execution time exceeded 30 minutes, and the task execution status was execution timeout;
[0093] 6. If the instruction is issued status p 11 =3, then the task execution status S1 = s5, indicating that the instruction failed to be issued and the task execution status is execution failure.
[0094] The above execution status evaluation strategy h1 generates the task execution status according to different task execution detection parameters, such as instruction issuance status, log collection status and task execution time, which helps to accurately monitor and evaluate the vehicle log file collection task.
[0095] Furthermore, as an embodiment of the present invention, the task health detection parameters include vehicle online status, log file size and vehicle high-voltage status, the vehicle online status includes vehicle offline and vehicle online, the log file size is a real number greater than zero, the vehicle high-voltage status includes vehicle not having high voltage and vehicle having high voltage; the task health status includes healthy and unhealthy; the task evaluation strategy includes a health status evaluation strategy.
[0096] Specifically, the mission health detection parameters are used to measure and record the health status of the vehicle during mission execution, which is expressed as:
[0097] P2={p 21 ,p 22 ,p 23}.
[0098] p 21 The vehicle's online status indicates the vehicle's current network status. 21 ={0,1}, where 0 indicates the vehicle is offline and 1 indicates the vehicle is online.
[0099] p 22 The log file size indicates the size of the log file to be uploaded, in MB. 22 ≥0 and p 22 ∈R.
[0100] p 23 It is used to indicate whether the vehicle is in high voltage state. 23 ={0,1}, where 0 indicates that the vehicle is not on high voltage, and 1 indicates that the vehicle is on high voltage.
[0101] The task health status indicates the overall health of the task, which can be healthy or unhealthy, expressed as:
[0102] S2={s1,s2}.
[0103] Among them, s1 indicates that the task is healthy, and s2 indicates that the task is unhealthy.
[0104] The mission evaluation strategy includes a health assessment strategy, which is used to determine the mission's health based on mission health detection parameters. The mission health assessment strategy determines mission health based on a combination of vehicle online status, log file size, and high-voltage status on the vehicle.
[0105] Furthermore, as an embodiment of the present invention, step S2 generates a task status based on the task detection parameters and the task execution time and a preset task evaluation strategy, including:
[0106] The task health status is generated according to the task health detection parameters and the task execution time based on a preset health status evaluation strategy.
[0107] Specifically, the health status evaluation strategy can be expressed as:
[0108] h2={S2,P2,t}.
[0109] Where S2 is the task health status, P2 is the task health check parameter, and t is the task execution time (in minutes). The input parameters of the health status evaluation strategy h2 are the task health check parameter P2 and the task execution time t, and the output parameter is the task health status S2. In step S2, the task health check parameter P2 and the task execution time t obtained in step S1 are applied to the preset health status evaluation strategy h2 to obtain the task health status S2, which can be used to determine the specific health status of the task during execution.
[0110] Further, as an embodiment of the present invention, referring to Figure 3 , the health status evaluation strategy includes: when the vehicle online status is vehicle offline, the task health status is set to unhealthy;
[0111] When the vehicle online state is that the vehicle is online and the log file size is greater than a preset size threshold and the vehicle high voltage state is that the vehicle is not high voltage, the task health state is set to unhealthy;
[0112] When the vehicle online state is vehicle online and the log file size is greater than a preset size threshold and the vehicle high pressure state is vehicle high pressure, the task health state is set to healthy;
[0113] When the vehicle online status is vehicle online and the log file size is not higher than a preset size threshold, the task health status is set to healthy.
[0114] Specifically, the health status evaluation strategy h2 satisfies the following rules:
[0115] 1. If the vehicle is online 21 =0, then the task health state S2=s2, that is, when the vehicle online state is vehicle offline, the task is in an unhealthy state;
[0116] 2. If the vehicle is online 21 , log file size p 22 And the high pressure state p on the vehicle 23 Satisfy p 21 =1&p 22 >100&p 23 = 0, then the task health state S2 = s2, that is, the vehicle is online, the task log file is larger than 100MB, and the vehicle is not in the upper high-voltage state, then the task is in an unhealthy state. 100MB is the preset size threshold, which can be changed according to actual needs;
[0117] 3. Currently only when the vehicle is online 21 , log file size p 22 And the high pressure state p on the vehicle 23When the above rules 1 and 2 are met, the task is in an unhealthy state, otherwise the task health state S2 = s1, that is, the task is in a healthy state.
[0118] An embodiment of a monitoring method for a vehicle log file collection task of the present invention is as follows:
[0119] S1, obtain task detection parameters P = {P1, P2} and task execution time t, where P1 is the task execution detection parameter and P2 is the task health detection parameter;
[0120] S2, based on the task detection parameter P and the task execution time t, based on the preset task evaluation strategy H = {h1, h2}, generates the task state S = {S1, S2}, where h1 is the execution state evaluation strategy, h2 is the health state evaluation strategy, S1 is the task execution state, and S2 is the task health state;
[0121] S3, outputting the task status S to monitor the vehicle log file collection task;
[0122] The parameters or rules of P1, P2, h1, h2, S1 and S2 may refer to the contents of the above embodiments and will not be described in detail here.
[0123] The embodiment of the present invention also discloses a method for collecting vehicle log files in the cloud.
[0124] Reference Figure 4 , a method for collecting vehicle log files in the cloud, comprising:
[0125] S10, batch acquisition of vehicle information for which logs need to be collected, the vehicle information including vehicle VIN code information, ECU information, and domain control APP information;
[0126] S20, executing a log file collection task based on the vehicle information;
[0127] S30 , when executing the log file collection task, monitoring the log file collection task based on a vehicle log file collection task monitoring method described in any one of the above embodiments.
[0128] Specifically, when collecting vehicle log files, the cloud first needs to batch-collect the vehicle information for which log files need to be collected. This includes the vehicle's VIN (which uniquely identifies the vehicle), ECU information (information about the vehicle's electronic control unit), and domain controller app information (information about the application that controls the vehicle's domain controller). Vehicle information can be stored in a database, spreadsheet, or other data storage method.
[0129] Then, the vehicle information obtained from step S10 is traversed, and a log collection task is executed for each vehicle. The log collection task specifically includes operations such as sending instructions to the vehicle and collecting log data from the vehicle.
[0130] At the same time, when executing the log collection task, the task can be monitored based on the monitoring method of the vehicle log file collection task.
[0131] Exemplarily, the monitoring method includes:
[0132] S1, obtain task detection parameters and task execution time;
[0133] S2, generating a task status according to the task detection parameters and the task execution time based on a preset task evaluation strategy;
[0134] S3: Output the task status to monitor the vehicle log file collection task.
[0135] The method for collecting vehicle log files in this embodiment uses a monitoring method to track the task execution status and health status in real time, ensuring that the log file collection task is carried out as expected, thereby improving the reliability and stability of the task. The use of a monitoring method in the process of collecting log files can instantly detect abnormal situations in the task, such as failure to issue instructions, log collection timeouts, etc., so that countermeasures can be taken quickly to avoid the problem from escalating, thereby improving the efficiency of problem solving. In addition, the monitoring method also helps to identify and analyze long-term accumulated data trends, providing valuable reference for vehicle performance improvement, maintenance planning and predictive maintenance, and further improving the manageability and maintainability of the vehicle. By combining cloud-based collection and monitoring, this method not only realizes the comprehensive management and utilization of vehicle log data, but also can bring more efficient and intelligent solutions to users, vehicle manufacturers and service providers at all levels of vehicle operations, promoting the upgrade and innovation of the entire vehicle ecosystem.
[0136] The embodiment of the present invention also discloses a monitoring system for vehicle log file collection tasks.
[0137] Reference Figure 5 A monitoring system for a vehicle log file collection task includes a task detection parameter acquisition module 1, a timing module 2, a task status generation module 3 and a display module 4.
[0138] Task detection parameter acquisition module 1 is used to obtain task detection parameters during the execution of the vehicle log file collection task. Task detection parameter acquisition module 1 is responsible for obtaining task detection parameters. These parameters may include command issuance status, log collection status, vehicle online status, log file size, vehicle high voltage status, etc., and are used to generate subsequent task status.
[0139] The timing module 2 is used to obtain the task execution time during the execution of the vehicle log file collection task; during the execution of the vehicle log file collection task, the timing module 2 records the task start and end time in real time so that subsequent evaluation can be performed based on the task execution time.
[0140] The task status generation module 3 is used to generate the task status based on the preset task evaluation strategy according to the task detection parameters and the task execution time; the task status generation module 3 applies the preset task evaluation strategy, and according to these strategies, the system will generate corresponding task status, such as execution status, health status, etc., for subsequent monitoring and analysis.
[0141] The display module 4 is used to output the task status to monitor the vehicle log file collection task. The task status can be displayed through the user interface, console output, log record, etc., so that relevant personnel can understand the progress and status of the task in a timely manner.
[0142] The monitoring system, through the interplay of different modules, implements a streamlined process from acquiring task parameters to generating task status and displaying it. This allows for monitoring and management of the vehicle log file collection process, helping to identify issues, optimize task execution, and provide data support to improve overall vehicle management and maintenance efficiency.
[0143] The embodiment of the present invention also discloses a readable storage medium.
[0144] A computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of a vehicle log file collection task monitoring method described in any of the above embodiments. Computer-readable storage media may include: any entity or device capable of carrying a computer program, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), and a software distribution medium. A computer program includes computer program code. The computer program code may be in source code form, object code form, an executable file, or some intermediate form. Computer-readable storage media may include: any entity or device capable of carrying a computer program code, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), and a software distribution medium.
[0145] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.
[0146] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in conjunction with such instruction execution systems, apparatuses or devices.
[0147] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A monitoring method for a vehicle log file collection task, applied to the execution process of a vehicle log file collection task, characterized in that: include: Get task detection parameters and task execution time; Generate a task status based on the task detection parameters and the task execution time and a preset task evaluation strategy; Outputting the task status to monitor the vehicle log file collection task; The task detection parameters include task execution detection parameters and / or task health detection parameters, and the task status includes task execution status and / or task health status; The task execution detection parameters include instruction issuance status and log collection status, the instruction issuance status includes instruction not issued, instruction being issued, instruction issuance successful, and instruction issuance failed, the log collection status includes the percentage of collected logs to the total number of collected logs; the task execution status includes not executed, executing, executed successfully, executed timed out, and executed failed; the task evaluation strategy includes an execution status evaluation strategy; The task health detection parameters include the vehicle online status, the log file size, and the vehicle high-voltage status. The vehicle online status includes the vehicle offline and the vehicle online. The log file size is a real number greater than zero. The vehicle high-voltage status includes the vehicle not being high-voltage and the vehicle being high-voltage. The task health status includes healthy and unhealthy; the task evaluation strategy includes a health status evaluation strategy.
2. The method for monitoring a vehicle log file collection task according to claim 1, characterized in that: Generating the task status according to the task detection parameters and the task execution time based on a preset task evaluation strategy includes: The task execution status is generated according to the task execution detection parameters and the task execution time based on a preset execution status evaluation strategy.
3. A method for monitoring a vehicle log file collection task according to claim 1 or 2, characterized in that: The execution status evaluation strategy includes: When the instruction issuance status is that the instruction has not been issued, the task execution status is set to not executed; When the instruction issuing status is in the process of issuing the instruction, the task execution status is set to be in the process of executing; When the instruction issuance status is successful, the log collection status is lower than 100%, and the task execution time is not higher than the preset execution time threshold, the task execution status is set to being executed; When the instruction issuance status is successful and the log collection status is greater than or equal to 100%, the task execution status is set to successful execution; When the instruction issuance status is instruction issuance success and the log collection status is lower than 100% and the task execution time is higher than a preset execution time threshold, the task execution status is set to execution timeout; When the instruction issuing status is instruction issuing failure, the task execution status is set to execution failure.
4. The method for monitoring a vehicle log file collection task according to claim 1, characterized in that: Generating the task status according to the task detection parameters and the task execution time based on a preset task evaluation strategy includes: The task health status is generated according to the task health detection parameters and the task execution time based on a preset health status evaluation strategy.
5. A method for monitoring a vehicle log file collection task according to claim 1 or 4, characterized in that: The health status evaluation strategy includes: When the vehicle online state is vehicle offline, the task health state is set to unhealthy; When the vehicle online state is that the vehicle is online and the log file size is greater than a preset size threshold and the vehicle high voltage state is that the vehicle is not high voltage, the task health state is set to unhealthy; When the vehicle online state is vehicle online and the log file size is greater than a preset size threshold and the vehicle high pressure state is vehicle high pressure, the task health state is set to healthy; When the vehicle online status is vehicle online and the log file size is not higher than a preset size threshold, the task health status is set to healthy.
6. A method for collecting vehicle log files in the cloud, characterized in that: The method comprises: Batch obtain vehicle information for which logs need to be collected, including vehicle VIN code information, ECU information, and domain control APP information; Execute a log file collection task based on the vehicle information; And, when executing the log file collection task, the log file collection task is monitored based on the vehicle log file collection task monitoring method according to any one of claims 1 to 5.
7. A monitoring system for vehicle log file collection tasks, characterized in that: The system comprises: The task detection parameter acquisition module is used to obtain the task detection parameters during the execution of the vehicle log file collection task; The timing module is used to obtain the task execution time during the execution of the vehicle log file collection task; A task status generation module, configured to generate a task status based on a vehicle log file collection task monitoring method according to any one of claims 1 to 5, according to the task detection parameters and the task execution time, and based on a preset task evaluation strategy; The display module is used to output the task status to monitor the vehicle log file collection task.
8. A readable storage medium, characterized in that: The readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, a monitoring method for a vehicle log file collection task according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Log collecting method and device
CN108153654A
Task scheduling real-time tracking method and system based on distributed architecture
CN113194096A