Method, apparatus, storage medium and processor for log processing of a vehicle

By acquiring and preprocessing vehicle logs and using standard login procedures to detect account status, the problem of low efficiency in vehicle log detection is solved, achieving the technical effect of quickly identifying and resolving account login issues.

CN115618073BActive Publication Date: 2026-07-24CHINA FAW CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA FAW CO LTD
Filing Date
2022-09-29
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

The low efficiency of vehicle log detection leads to problems not being resolved in a timely manner, resulting in a poor user experience.

Method used

The system acquires vehicle logs within a preset time range, extracts relevant raw logs from the vehicle logs based on the account to be detected, performs preprocessing, and then uses a standard login process to detect the target logs. By comparing with reference logs, it identifies whether the login was successful or failed.

Benefits of technology

It enables rapid identification of account login status, improves the efficiency of vehicle log detection, resolves login issues promptly, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115618073B_ABST
    Figure CN115618073B_ABST
Patent Text Reader

Abstract

The application discloses a kind of method, device, storage medium and processor of the log processing of vehicle.Therein, the method comprises: obtaining the car machine log generated by vehicle in preset time range;Based on the account to be detected, the original car machine log to be detected is extracted from the car machine log, wherein the original car machine log is associated with the account to be detected;The original car machine log is preprocessed to obtain the target car machine log, wherein the target car machine log is associated with the login process of the account to be detected;The target car machine log is detected based on the standard login process of the account to be detected, to obtain the target detection result.The application solves the technical problem of low efficiency of car machine log detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of log analysis technology, and more specifically, to a method, apparatus, storage medium, and processor for processing vehicle logs. Background Technology

[0002] With the development of automotive technology, in-vehicle infotainment systems can offer more and more functions, such as navigation, music playback, and communication. Users can use the corresponding functions after logging into the relevant application through their application account. In-vehicle infotainment systems are usually equipped with a logging system to generate vehicle logs based on user operations. When users encounter problems, they can check the vehicle logs to locate the cause of the problem.

[0003] Currently, when analyzing vehicle system logs, the logs are usually exported and analyzed manually. However, unexpected events inevitably occur during vehicle use, such as account login failures that render some functions unusable. In such cases, relying entirely on manual analysis results in low efficiency in detecting vehicle system logs, and problems cannot be resolved in a timely manner, leading to a poor user experience.

[0004] There is currently no effective solution to the problem of low efficiency in vehicle log detection. Summary of the Invention

[0005] This invention provides a method, apparatus, storage medium, and processor for vehicle log processing, to at least address the technical problem of low efficiency in vehicle log detection.

[0006] According to one aspect of the present invention, a method for processing vehicle logs is provided. The method may include: acquiring vehicle infotainment logs generated by the vehicle within a preset time range, wherein the vehicle infotainment logs are generated based on the vehicle's in-vehicle infotainment system; extracting raw vehicle infotainment logs to be detected from the vehicle infotainment logs based on an account to be detected, wherein the raw vehicle infotainment logs are associated with the account to be detected; preprocessing the raw vehicle infotainment logs to obtain target vehicle infotainment logs, wherein the target vehicle infotainment logs are associated with the login process of the account to be detected; and detecting the target vehicle infotainment logs based on the standard login process of the account to be detected to obtain a target detection result, wherein the target detection result indicates whether the account to be detected has successfully logged into the in-vehicle infotainment system.

[0007] Optionally, the original vehicle infotainment logs are preprocessed to obtain target vehicle infotainment logs, including: obtaining target regular expressions from a rule base based on keywords, wherein the target regular expressions are used to filter vehicle infotainment logs in the original vehicle infotainment logs that are associated with the login process of the account to be detected; and filtering target vehicle infotainment logs from the original vehicle infotainment logs based on the target regular expressions.

[0008] Optionally, the target vehicle system logs are tested based on the standard login process of the account to be tested to obtain the target detection result, including: obtaining reference vehicle system logs associated with the login function of the account to be tested; and testing the target vehicle system logs based on the reference vehicle system logs to obtain the target detection result.

[0009] Optionally, the target vehicle logs are detected based on the reference vehicle logs to obtain target detection results, including: sorting the reference vehicle logs and target vehicle logs according to the login process of the account to be detected, respectively, to obtain a reference vehicle log sorting set and a target vehicle log sorting set, wherein each reference vehicle log in the reference vehicle log sorting set corresponds one-to-one with each target vehicle log in the target vehicle log sorting set; and comparing each reference vehicle log in the reference vehicle log sorting set with each target vehicle log in the target vehicle log sorting set in turn to obtain target detection results.

[0010] Optionally, each reference vehicle log in the reference vehicle log sorting set is compared sequentially with each target vehicle log in the target vehicle log sorting set to obtain a target detection result, including: if a difference is found between the target vehicle log in the target vehicle log sorting set and the reference vehicle log in the reference vehicle log sorting set during comparison analysis, the detection result of the target vehicle log is determined to be an abnormal detection result; if no difference is found between the target vehicle log in the target vehicle log sorting set and the reference vehicle log in the reference vehicle log sorting set during comparison analysis, the detection result of the target vehicle log is determined to be a normal detection result.

[0011] Optionally, the method further includes: in response to the target detection result of the target vehicle log being an abnormal detection result, determining that the login of the account to be detected has failed; in response to the target detection result of the target vehicle log being a normal detection result, continuing to compare the remaining target vehicle logs in the target vehicle log set with the remaining reference vehicle logs in the reference vehicle log set in sequence, until the comparison of all target vehicle logs in the target vehicle log set with all reference vehicle logs in the reference vehicle log set is completed, and the detection results of the target vehicle logs are all normal detection results, then determining that the login of the account to be detected has been successful.

[0012] According to another aspect of the present invention, a vehicle log processing apparatus is also provided, comprising: an acquisition module, configured to acquire vehicle-mounted system logs generated by the vehicle within a preset time range, wherein the vehicle-mounted system logs are associated with the vehicle's in-vehicle infotainment system; an extraction module, configured to extract raw vehicle-mounted system logs to be detected from the vehicle-mounted system logs based on an account to be detected, wherein the raw vehicle-mounted system logs are associated with the account to be detected; a processing module, configured to preprocess the raw vehicle-mounted system logs to obtain target vehicle-mounted system logs, wherein the target vehicle-mounted system logs are associated with the login process of the account to be detected; and a detection module, configured to detect the target vehicle-mounted system logs based on the standard login process of the account to be detected to obtain a target detection result, wherein the target detection result indicates whether the account to be detected has successfully logged into the in-vehicle infotainment system.

[0013] According to another aspect of the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform a method for vehicle log processing according to the embodiments of the present invention.

[0014] According to another aspect of the present invention, a processor is also provided. The processor is used to run a program, wherein the program, when running, executes the vehicle log processing method of the present invention.

[0015] According to another aspect of the present invention, a vehicle is also provided for performing the vehicle log processing method of the present invention.

[0016] In this embodiment of the invention, vehicle infotainment system logs generated within a preset time range are acquired, and raw vehicle infotainment system logs to be detected are extracted from the acquired logs based on the account to be detected. These raw logs are associated with the account to be detected. The raw logs are preprocessed to obtain target vehicle infotainment system logs, which are associated with the login process of the account to be detected. The target vehicle infotainment system logs are then detected based on the standard login process of the account to be detected to obtain a target detection result. In other words, the vehicle log processing method provided by this embodiment of the invention can preprocess the acquired raw vehicle infotainment system logs to obtain target vehicle infotainment system logs associated with the login process of the account to be detected, and then detect the target vehicle infotainment system logs based on the standard login process of the account to be detected to obtain a target detection result. The target detection result of the target vehicle infotainment system logs can quickly identify whether the account to be detected has successfully logged into the in-vehicle infotainment system, achieving the technical effect of improving the efficiency of vehicle infotainment system log detection and solving the technical problem of low vehicle infotainment system log detection efficiency. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0018] Figure 1 This is a flowchart of a vehicle log processing method according to an embodiment of the present invention;

[0019] Figure 2 This is a schematic diagram of a standard account login process according to an embodiment of the present invention;

[0020] Figure 3 This is a flowchart of a vehicle log processing method according to an embodiment of the present invention;

[0021] Figure 4 This is a schematic diagram of a vehicle log processing device according to an embodiment of the present invention. Detailed Implementation

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

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

[0024] Example 1

[0025] According to an embodiment of the present invention, an embodiment of a method for processing vehicle logs is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0026] Figure 1 This is a flowchart of a vehicle log processing method according to an embodiment of the present invention, such as... Figure 1 As shown, the method may include the following steps:

[0027] Step S101: Obtain the vehicle's infotainment logs generated within a preset time range, wherein the vehicle's infotainment logs are generated based on the vehicle's in-vehicle infotainment system.

[0028] In the technical solution provided in step S101 of the present invention, the vehicle's in-vehicle infotainment system (IVI) includes various applications. Users can log in to the relevant applications through their registered accounts to use the functions provided by those applications. Each key step in the use of these applications corresponds to a vehicle log generated, such as account login, disconnection, or malfunction. The generated vehicle log records the running status and operation information of the corresponding step. Based on this, vehicle logs generated within a preset time range can be obtained. This preset time range can be pre-set, for example, 8 hours or 10 hours prior to the current time; no specific limitation is made here.

[0029] Optionally, vehicle logs can be obtained via USB flash drive. For example, the vehicle's infotainment system can be connected to a USB flash drive to extract the logs. Alternatively, vehicle logs can be obtained via remote commands. For instance, a log retrieval command can be issued to a specific vehicle via a management website. Upon receiving the command, the vehicle can upload its logs to the management website, thus enabling remote access to the vehicle logs.

[0030] Step S102: Extract the original vehicle log to be detected from the vehicle log based on the account to be detected, wherein the original vehicle log is associated with the account to be detected.

[0031] In the technical solution provided by step S102 of the present invention, as described above, the vehicle log records the running status and operation information of various applications during use. It should be noted that since the accounts used to log in to various applications are different, the generated vehicle log can be associated with the login accounts of various applications. That is, each vehicle log corresponds to the login account of an application. In this case, the original vehicle log to be detected can be extracted from the vehicle log using the account to be detected. The extracted original vehicle log is the vehicle log associated with the account to be detected.

[0032] Optionally, since the vehicle logs are associated with login accounts for various applications, when extracting the original vehicle logs to be tested from the vehicle logs based on the account to be tested, the vehicle logs corresponding to the same account as the account to be tested can be found in the obtained vehicle logs, and the found vehicle logs can be identified as the original vehicle logs associated with the account to be tested.

[0033] Step S103: Preprocess the original vehicle log to obtain the target vehicle log, wherein the target vehicle log is associated with the login process of the account to be tested.

[0034] In the technical solution provided by step S103 of the present invention, as can be seen from the description of step S101 above, the vehicle log is generated based on the key steps in the use of various applications. Based on this, the vehicle log may include vehicle logs related to the account login function, vehicle logs related to account disconnection, and vehicle logs related to application failure. Based on this, the obtained original vehicle log can be preprocessed, and then vehicle logs related to the login process of the account to be tested can be extracted from the original vehicle log.

[0035] Optionally, regular expressions can be used to extract vehicle logs associated with the login process of the account to be detected from the original vehicle logs. It should be noted that a rule base can be predefined, which can include multiple regular expressions. Each regular expression is used to filter a type of vehicle log, such as a regular expression to filter vehicle logs associated with account login, a regular expression to filter vehicle logs associated with account disconnection, and a regular expression to filter vehicle logs associated with various types of faults. Each regular expression stored in the rule base corresponds to a functional keyword, which can be login, disconnection, fault, etc.

[0036] Optionally, keywords can be used to search the rule base for regular expressions used to filter vehicle logs associated with the login process of the account to be detected. For example, a regular expression can be searched for in the rule base based on the keyword "login," and the found regular expression is the target regular expression.

[0037] Optionally, after finding the target regular expression, the target regular expression can be used to find vehicle logs that match the target regular expression from the original vehicle logs, and the found vehicle logs can be used as target vehicle logs, where the target vehicle logs are the vehicle logs associated with the login process of the account to be detected.

[0038] Step S104: Detect the target vehicle system log based on the standard login process of the account to be detected, and obtain the target detection result. The target detection result is used to indicate whether the account to be detected has successfully logged into the vehicle infotainment system.

[0039] In the technical solution provided by step S104 of the present invention, after the target vehicle log is determined, the target vehicle log can be further detected based on the standard login process of the account to be detected to obtain the target detection result, wherein the target detection result is used to indicate whether the account to be detected has successfully logged into the vehicle infotainment system.

[0040] Optionally, each application's standard login process corresponds to a reference vehicle log. Based on this, reference vehicle logs associated with the login function of the account to be tested can be obtained. Since both the reference vehicle logs associated with the login function and the target vehicle logs are generated based on key steps in the login process, after obtaining the reference vehicle logs, the target vehicle logs and reference vehicle logs can be sorted according to the login process of the account to be tested to obtain a sorted set of reference vehicle logs and a sorted set of target vehicle logs.

[0041] Optionally, after obtaining the reference vehicle log sorting set and the target vehicle log sorting set, the target vehicle logs can be compared with the reference vehicle logs one by one according to the sorting order. During the comparison process, if there is a difference between the target vehicle logs and the reference vehicle logs, the detection result of the target vehicle logs is determined to be an abnormal detection result, that is, the login of the account to be tested has failed; if there is no difference between the target vehicle logs and the reference vehicle logs during the entire comparison process, the detection result of the target vehicle logs is determined to be a normal detection result, that is, the login of the account to be tested has succeeded.

[0042] In this application, steps S101 to S104 involve acquiring vehicle-mounted system logs generated within a preset time range, extracting raw vehicle-mounted system logs to be detected from the acquired logs based on the account to be detected, wherein the raw vehicle-mounted system logs are associated with the account to be detected, preprocessing the raw vehicle-mounted system logs to obtain target vehicle-mounted system logs, wherein the target vehicle-mounted system logs are associated with the login process of the account to be detected, and detecting the target vehicle-mounted system logs based on the standard login process of the account to be detected to obtain a target detection result. In other words, the vehicle log processing method provided by this invention can preprocess the acquired raw vehicle-mounted system logs to obtain target vehicle-mounted system logs associated with the login process of the account to be detected, and then detect the target vehicle-mounted system logs based on the standard login process of the account to be detected to obtain a target detection result. The target detection result of the target vehicle-mounted system logs can quickly identify whether the account to be detected has successfully logged into the in-vehicle infotainment system, achieving the goal of timely problem-solving, improving the technical effect of vehicle-mounted system log detection efficiency, and solving the technical problem of low vehicle-mounted system log detection efficiency.

[0043] The method described in this embodiment will be further described below.

[0044] As an optional implementation method, step S103 involves preprocessing the original vehicle infotainment logs to obtain target vehicle infotainment logs, including: obtaining a target regular expression from a rule base based on keywords, wherein the target regular expression is used to filter vehicle infotainment logs in the original vehicle infotainment logs that are associated with the login process of the account to be detected; and filtering target vehicle infotainment logs from the original vehicle infotainment logs based on the target regular expression.

[0045] Optionally, the rule base contains multiple regular expressions, each used to filter a type of vehicle infotainment log. Each regular expression corresponds to a keyword, which can be pre-defined, such as "login," "disconnect," or "fault." Specifically, the regular expression corresponding to "login" filters vehicle infotainment logs associated with the login process, the regular expression corresponding to "disconnect" filters logs associated with disconnection, and the regular expression corresponding to "fault" filters logs associated with a fault. Based on this, a target regular expression can be obtained from the rule base using the keyword "login," and this target regular expression can then be used to filter vehicle infotainment logs associated with the login process of the account to be detected.

[0046] Optionally, after obtaining the target regular expression, the original vehicle log can be matched with the target regular expression. The vehicle log that matches the target regular expression in the original vehicle log is the target vehicle log, which is the vehicle log associated with the login process of the account to be detected.

[0047] As an optional embodiment, step S104 involves detecting the target vehicle log based on the standard login process of the account to be detected, and obtaining the target detection result, including: obtaining reference vehicle log associated with the login process of the account to be detected; and detecting the target vehicle log based on the reference vehicle log to obtain the target detection result.

[0048] In this embodiment, after obtaining the target vehicle infotainment log, the target vehicle infotainment log can be further inspected. When inspecting the target vehicle infotainment log, a reference vehicle infotainment log associated with the login process of the account to be inspected can be obtained first. The reference vehicle infotainment log is the vehicle infotainment log generated by the key steps when the account to be inspected logs into the in-vehicle infotainment system using the standard login process.

[0049] Optionally, since the obtained reference vehicle infotainment logs are generated based on the key steps when the account to be tested logs into the vehicle infotainment system using the standard login process, there may be multiple key steps, such as obtaining login-related information, checking the account login status, and obtaining the account binding status. Each step corresponds to a vehicle infotainment log. Based on this, after obtaining the reference vehicle infotainment logs, the obtained reference vehicle infotainment logs can be sorted according to the login process of the account to be tested, and the target vehicle infotainment logs can also be sorted according to the login process of the account to be tested, resulting in a reference vehicle infotainment log sorting set and a target vehicle infotainment log sorting set. Each reference vehicle infotainment log in the reference vehicle infotainment log sorting set corresponds one-to-one with each target vehicle infotainment log in the target vehicle infotainment log sorting set.

[0050] Optionally, after obtaining the reference vehicle log sorting set and the target vehicle log sorting set, each reference vehicle log in the reference vehicle log sorting set can be compared with each target vehicle log in the target vehicle log sorting set in turn to obtain the target detection result.

[0051] Optionally, during the comparison process, if there is a difference between the target vehicle log in the target vehicle log set and the reference vehicle log in the reference vehicle log sorting set, that is, if there is a difference in the information recorded in the reference vehicle log and the target vehicle log, then the detection result of the target vehicle log is determined to be an abnormal detection result. In this case, it is not necessary to compare the remaining target vehicle log in the target vehicle log set with the remaining reference vehicle log in the reference vehicle log set to determine that the account to be detected failed to log in to the in-vehicle infotainment system.

[0052] Optionally, during the comparison process, if there is no difference between each target vehicle log in the target vehicle log set and each reference vehicle log in the reference vehicle log sorting set, then the detection result of the target vehicle log is determined to be a normal detection result. In this case, it can be determined that the account to be tested successfully logged into the vehicle infotainment system, that is, the account to be tested successfully logged into the vehicle infotainment system.

[0053] Optionally, when the login of the account to be tested fails, the logs of the target vehicle system that are detected as abnormal can be analyzed to locate the reason for the login failure, so as to solve the problem in a timely manner and prevent the login failure of the account to be tested from happening again.

[0054] In this embodiment, the original vehicle infotainment system logs are preprocessed to obtain target vehicle infotainment system logs associated with the login process of the account to be tested. Then, reference vehicle infotainment system logs associated with the login process of the account to be tested are obtained, and the target vehicle infotainment system logs are compared one by one with the reference vehicle infotainment system logs to detect whether there are any anomalies in the target vehicle infotainment system logs. During the comparison process, if the detection result of the target vehicle infotainment system logs is an anomaly, it is determined that the login of the account to be tested has failed, and no further comparison testing is required. If the detection results of the target vehicle infotainment system logs are all normal during the comparison process, it is determined that the account to be tested has successfully logged in. In other words, this embodiment of the invention detects whether there are any anomalies in the target vehicle infotainment system logs through comparative analysis, and then determines whether the account to be tested has successfully logged into the in-vehicle infotainment system. This detection method is convenient and fast, and can promptly determine whether the account to be tested has successfully logged in. When login fails, the cause of the login failure can be located based on the anomaly detection results of the target vehicle infotainment system logs, achieving the goal of timely problem solving and realizing the technical effect of improving the efficiency of vehicle infotainment system log detection, thus solving the technical problem of low efficiency in vehicle infotainment system log detection.

[0055] Example 2

[0056] The technical solutions of the embodiments of the present invention will be illustrated below with reference to preferred embodiments.

[0057] Currently, with the development of automotive technology, in-vehicle infotainment systems can offer more and more functions, such as navigation, music playback, and communication. Users can use the corresponding functions after logging into the relevant application through their application account. In-vehicle infotainment systems are usually equipped with a logging system to generate vehicle logs based on user operations. When users encounter problems, they can locate the cause of the problem by checking the vehicle logs.

[0058] Therefore, in order to overcome the above problems, there are methods for analyzing vehicle logs in related technologies, that is, exporting vehicle logs and then analyzing them manually. However, during the use of the vehicle, users will inevitably encounter unexpected events, such as account login failure, which will cause some functions to be unusable. In this case, relying entirely on manual analysis will result in low detection efficiency of vehicle logs, and the problem cannot be solved in a timely manner, bringing a poor user experience.

[0059] However, this invention proposes a method for processing vehicle logs. This method acquires vehicle infotainment logs generated within a preset time range, extracts the original vehicle infotainment logs to be detected from the acquired logs based on the account to be detected, and then preprocesses the original logs to obtain target vehicle infotainment logs. These target logs are associated with the login process of the account to be detected. After obtaining the target logs, they can be detected based on the standard login process of the account to be detected, yielding a target detection result. This target detection result indicates whether the account to be detected has successfully logged into the in-vehicle infotainment system. This method of detecting target vehicle infotainment logs based on the standard login process of the account to be detected can quickly identify abnormal target vehicle infotainment logs. Furthermore, by analyzing these abnormal target vehicle infotainment logs, the cause of the login failure of the account to be detected can be quickly located, and the problem can be quickly resolved. This achieves the technical effect of improving the detection efficiency of target vehicle infotainment logs and solves the technical problem of low detection efficiency for vehicle infotainment logs.

[0060] The account login process provided in the embodiments of the present invention will be further described below. Figure 2 This is a schematic diagram of a standard account login process according to an embodiment of the present invention. The method may include the following steps:

[0061] Step S201: The application starts and initializes.

[0062] Step S202: Obtain relevant information.

[0063] In this embodiment, the CP terminal can obtain relevant vehicle information, including vehicle information such as the vehicle's unique identifier.

[0064] Step S203: The service starts and enters the main interface to play member content.

[0065] Step S204: Check the CP account login status.

[0066] In this embodiment, the vehicle-mounted system can detect the login status of the CP account. If the CP account is in a normal login state, it means that the CP account has successfully logged in. If the CP account is in an abnormal login state, it means that the CP account has not successfully logged in.

[0067] Step S205: Determine if the CP account is logged in.

[0068] In this embodiment, if the CP account login is successful, the process ends; if the CP account login is unsuccessful, step S206 can be executed.

[0069] Step S206: Obtain the binding status of the CP account.

[0070] Step S207: Determine if the CP account is bound.

[0071] In this embodiment, if the CP account is successfully bound, step S208 is executed; if the CP account is not successfully bound, step S214 is executed.

[0072] Step S208: Execute the binding login logic.

[0073] Step S209: Obtain the binding information of the CP account.

[0074] Step S210: Determine whether the binding information of the CP account has been successfully obtained.

[0075] In this embodiment, if the binding information of the CP account is successfully obtained, step S211 is executed; if the binding information of the CP account is not obtained, step S214 is executed.

[0076] Step S211: Call the CP client to perform binding login.

[0077] Step S212: Perform binding login.

[0078] Step S113: Call back the login status of the CP account.

[0079] Step S214: Execute the unbound login logic.

[0080] Step S215: Obtain information related to seamless login.

[0081] Step S216: Call the CP client to perform seamless login.

[0082] Step S217: Perform seamless login.

[0083] During the CP account login process described above, each step generates a vehicle infotainment log. Therefore, after the CP account completes the entire login process, multiple vehicle infotainment logs can be generated. This allows for the identification of abnormal logs when the CP account fails to log in, based on the reference log generated upon successful login, thus promptly pinpointing the cause of the login failure.

[0084] The following provides further examples of the vehicle log processing method provided in the embodiments of the present invention. Figure 3 This is a flowchart of a vehicle log processing method according to an embodiment of the present invention, which may include the following steps:

[0085] Step S301: Obtain the vehicle system log.

[0086] In this embodiment, when the CP account logs into the vehicle system application, it can generate multiple vehicle system logs. Based on this, the vehicle system logs can be obtained first. For example, when obtaining vehicle system logs, the vehicle system logs can be obtained by issuing a remote command or by connecting the vehicle system via a USB flash drive.

[0087] Step S3011: Obtain vehicle logs via remote command.

[0088] Step S3012: Obtain the vehicle system logs via USB flash drive.

[0089] Step S302, vehicle log preprocessing.

[0090] In this embodiment, after obtaining the vehicle logs, the obtained vehicle logs can be preprocessed. For example, regular expressions can be used to extract vehicle logs associated with the login process of the CP account from the obtained vehicle logs.

[0091] Step S303: Automatic analysis of vehicle system logs.

[0092] In this embodiment, after preprocessing the vehicle infotainment logs, the preprocessed logs can be automatically analyzed. During this analysis, a reference vehicle infotainment log generated upon successful login of the CP account can be used as a basis. The preprocessed logs are compared with the reference logs. If there are no differences between the preprocessed and reference logs, it indicates that the CP account has successfully logged into the vehicle infotainment application. If there are differences, it indicates that an anomaly occurred during the login process. The reason for the CP account login failure can then be identified by analyzing the abnormal logs.

[0093] This embodiment of the invention proposes a method for vehicle log processing. By acquiring vehicle infotainment system (VMS) logs, preprocessing them to obtain VMS logs associated with the CP account login process, and then automatically analyzing these VMS logs to determine if the CP account login was successful, and analyzing abnormal VMS logs when login fails to pinpoint the cause of the failure, this method can quickly identify abnormal VMS logs. Analyzing these abnormal logs allows for rapid identification of the cause of the CP account login failure, quickly resolving the problem and improving the efficiency of VMS log detection, thus solving the technical problem of low detection efficiency.

[0094] Example 3

[0095] According to an embodiment of the present invention, an apparatus for processing vehicle logs is also provided. It should be noted that this apparatus for processing vehicle logs can be used to execute the vehicle log processing method of Embodiment 1.

[0096] Figure 4 This is a schematic diagram of a vehicle log processing apparatus according to an embodiment of the present invention. Figure 4 As shown, the vehicle log processing device 400 may include: an acquisition module 401, an extraction module 402, a processing module 403, and a detection module 404.

[0097] The acquisition module 401 is used to acquire the vehicle's infotainment system logs generated within a preset time range, wherein the vehicle's infotainment system logs are generated based on the vehicle's in-vehicle infotainment system.

[0098] Extraction module 402 is used to extract the original vehicle logs to be detected from the vehicle logs based on the account to be detected, wherein the original vehicle logs are associated with the account to be detected;

[0099] The processing module 403 is used to preprocess the original vehicle log to obtain the target vehicle log, wherein the target vehicle log is associated with the login process of the account to be detected.

[0100] The detection module 404 is used to detect the target vehicle system log based on the standard login process of the account to be detected, and obtain the target detection result. The target detection result is used to indicate whether the account to be detected has successfully logged into the vehicle infotainment system.

[0101] Optionally, the processing module 403 includes: a first acquisition unit, used to acquire a target regular expression from a rule base based on a keyword, wherein the target regular expression is used to filter vehicle logs in the original vehicle logs that are associated with the login process of the account to be detected; and a filtering unit, used to filter target vehicle logs from the original vehicle logs based on the target regular expression.

[0102] Optionally, the detection module 404 includes: a second acquisition unit, used to acquire reference vehicle logs associated with the login function of the account to be detected; and a detection unit, used to detect the target vehicle logs based on the reference vehicle logs to obtain the target detection result.

[0103] Optionally, the detection unit includes: a sorting subunit, used to sort the reference vehicle logs and the target vehicle logs according to the login process of the account to be detected, to obtain a sorted set of reference vehicle logs and a sorted set of target vehicle logs, wherein each reference vehicle log in the sorted set of reference vehicle logs corresponds one-to-one with each target vehicle log in the sorted set of target vehicle logs; and a comparison subunit, used to compare each reference vehicle log in the sorted set of reference vehicle logs with each target vehicle log in the sorted set of target vehicle logs in turn, to obtain a target detection result.

[0104] Optionally, the comparison subunit is configured to determine the detection result of the target vehicle log as an abnormal detection result if a difference is found between the target vehicle log in the target vehicle log sorting set and the reference vehicle log in the reference vehicle log sorting set during comparison analysis; the comparison subunit is also configured to determine the detection result of the target vehicle log as a normal detection result if no difference is found between the target vehicle log in the target vehicle log sorting set and the reference vehicle log in the reference vehicle log sorting set during comparison analysis.

[0105] Optionally, the device is further configured to, in response to the target detection result of the target vehicle log being an abnormal detection result, determine that the login of the account to be detected has failed; the device is further configured to, in response to the target detection result of the target vehicle log being a normal detection result, continue to compare the remaining target vehicle logs in the target vehicle log set with the remaining reference vehicle logs in the reference vehicle log set in sequence, until the comparison of all target vehicle logs in the target vehicle log set with all reference vehicle logs in the reference vehicle log set is completed, and the detection result of the target vehicle logs is normal, then determine that the login of the account to be detected has been successful.

[0106] In this embodiment, the acquisition module is used to acquire vehicle system logs generated within a preset time range; the extraction module is used to extract the original vehicle system logs to be detected from the vehicle system logs based on the account to be detected; the processing module is used to preprocess the original vehicle system logs to obtain the target vehicle system logs; and the detection module is used to detect the target vehicle system logs based on the standard login process of the account to be detected to obtain the target detection result, wherein the target detection result is used to indicate whether the account to be detected has successfully logged into the in-vehicle infotainment system. The vehicle log processing method provided by this embodiment of the invention can preprocess the acquired original vehicle system logs to obtain the target vehicle system logs associated with the login process of the account to be detected, and then detect the target vehicle system logs based on the standard login process of the account to be detected to obtain the target detection result. The target detection result of the target vehicle system logs can quickly identify whether the account to be detected has successfully logged into the in-vehicle infotainment system, achieving the goal of timely problem solving and improving the technical effect of low vehicle system log detection efficiency, thus solving the technical problem of low vehicle system log detection efficiency.

[0107] Example 4

[0108] According to an embodiment of the present invention, a computer-readable storage medium is also provided, the storage medium including a stored program, wherein, when the program is executed, the device on which the computer-readable storage medium is located executes the method for vehicle log processing in Embodiment 1.

[0109] Example 5

[0110] According to an embodiment of the present invention, a processor is also provided for running a program, wherein the program executes the vehicle log processing method of Embodiment 1 during runtime.

[0111] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0112] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of modules can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection between units or modules, and can be electrical or other forms.

[0114] 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 units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0115] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0116] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0117] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for processing vehicle logs, characterized in that, include: Obtain vehicle system logs generated by the vehicle within a preset time range, wherein the vehicle system logs are generated based on the vehicle's in-vehicle infotainment system; Based on the account to be detected, the original vehicle logs to be detected are extracted from the vehicle logs, wherein the original vehicle logs are associated with the account to be detected; Based on keywords, a target regular expression is obtained from a rule base. This target regular expression is used to filter target vehicle logs in the original vehicle logs that are associated with the login process of the account to be detected. The rule base contains multiple regular expressions, and different regular expressions are used to filter different types of vehicle logs. Different regular expressions correspond to different keywords. Vehicle logs in the original vehicle logs that match the target regular expression are identified as target vehicle logs, wherein the target vehicle logs are associated with the login process of the account to be detected. According to the login process of the account to be tested, the reference vehicle logs and the target vehicle logs are sorted to obtain a reference vehicle log sorting set and a target vehicle log sorting set. The reference vehicle logs represent the vehicle logs generated during the key steps of the account to be tested logging into the in-vehicle infotainment system. These key steps include: obtaining the login information of the account to be tested, checking the login status of the account to be tested, and obtaining the binding status of the account to be tested. Each reference vehicle log in the reference vehicle log sorting set corresponds one-to-one with each target vehicle log in the target vehicle log sorting set. Each reference vehicle log in the reference vehicle log sorting set is compared sequentially with each target vehicle log in the target vehicle log sorting set to obtain a target detection result. The target detection result indicates whether the account to be tested has successfully logged into the in-vehicle infotainment system. The target detection result includes: anomaly detection results and normal detection results. If the target detection result of the target vehicle log is an abnormal detection result, it is determined that the account to be detected has failed to log in; if the target detection result of the target vehicle log is a normal detection result, the remaining target vehicle logs in the target vehicle log set are compared with the remaining reference vehicle logs in the reference vehicle log set in sequence until all target vehicle logs in the target vehicle log set are compared with all reference vehicle logs in the reference vehicle log set. If the detection result of the target vehicle logs is a normal detection result, it is determined that the account to be detected has successfully logged in.

2. The method according to claim 1, characterized in that, The method further includes: Obtain reference vehicle logs associated with the login function of the account to be tested.

3. The method according to claim 1, characterized in that, The step of comparing each reference vehicle log in the reference vehicle log sorting set with each target vehicle log in the target vehicle log sorting set sequentially to obtain the target detection result includes: If a difference is found between the target vehicle log in the target vehicle log sorting set and the reference vehicle log in the reference vehicle log sorting set during comparison and analysis, then the detection result of the target vehicle log is determined to be the anomaly detection result. If no difference is found between the target vehicle log in the target vehicle log sorting set and the reference vehicle log in the reference vehicle log sorting set during the comparison analysis, then the detection result of the target vehicle log is determined to be the normal detection result.

4. A device for processing vehicle logs, characterized in that, include: The acquisition module is used to acquire vehicle system logs generated by the vehicle within a preset time range, wherein the vehicle system logs are generated based on the vehicle's in-vehicle infotainment system; The extraction module is used to extract the original vehicle logs to be detected from the vehicle logs based on the account to be detected, wherein the original vehicle logs are associated with the account to be detected; The processing module is used to obtain target regular expressions from a rule base based on keywords. These target regular expressions are used to filter target vehicle logs in the original vehicle logs that are associated with the login process of the account to be detected. The rule base contains multiple regular expressions, each used to filter different types of vehicle logs and corresponding to different keywords. Vehicle logs in the original vehicle logs that match the target regular expression are identified as target vehicle logs, wherein the target vehicle logs are associated with the login process of the account to be detected. The detection module is used to sort the reference vehicle infotainment logs and the target vehicle infotainment logs according to the login process of the account to be detected, respectively, to obtain a reference vehicle infotainment log sorting set and a target vehicle infotainment log sorting set. The reference vehicle infotainment logs are used to characterize the vehicle infotainment logs generated during the key steps of the account to be detected logging into the in-vehicle infotainment system. These key steps include: obtaining the login information of the account to be detected, checking the login status of the account to be detected, and obtaining the binding status of the account to be detected. Each reference vehicle infotainment log in the reference vehicle infotainment log sorting set corresponds one-to-one with each target vehicle infotainment log in the target vehicle infotainment log sorting set. Each reference vehicle infotainment log in the reference vehicle infotainment log sorting set is compared sequentially with each target vehicle infotainment log in the target vehicle infotainment log sorting set to obtain a target detection result. The target detection result indicates whether the account to be detected has successfully logged into the in-vehicle infotainment system. The target detection result includes: anomaly detection results and normal detection results. The detection module is further configured to: respond to the target detection result of the target vehicle log being an abnormal detection result, determine that the account to be detected has failed to log in; respond to the target detection result of the target vehicle log being a normal detection result, then continue to compare the remaining target vehicle logs in the target vehicle log set with the remaining reference vehicle logs in the reference vehicle log set in sequence, until all target vehicle logs in the target vehicle log set are compared with all reference vehicle logs in the reference vehicle log set, and the detection result of the target vehicle logs is the normal detection result, then determine that the account to be detected has logged in successfully.

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

6. A processor, characterized in that, The processor is used to run a program, wherein the program is executed by the processor to perform the method according to any one of claims 1 to 3.

7. A vehicle, characterized in that, The vehicle is used to perform the method according to any one of claims 1 to 3.