Unlock instant, AI-driven research and patent intelligence for your innovation.

Log recording method and device, terminal device and readable storage medium

A recording method and log technology, which is applied in the field of vehicle diagnosis, can solve the problem that the vehicle diagnosis method cannot accurately determine the cause of the fault, and achieve the effect of improving efficiency

Pending Publication Date: 2022-01-28
LAUNCH TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a log recording method, device, terminal equipment and readable storage medium, which can solve the problem that the relevant vehicle diagnosis method cannot accurately determine the cause of the fault

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log recording method and device, terminal device and readable storage medium
  • Log recording method and device, terminal device and readable storage medium
  • Log recording method and device, terminal device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0072] figure 1 A schematic flow chart of the log recording method provided by the present application is shown, which is used as an example but not limited, and the method can be applied to the above-mentioned notebook computer.

[0073] 101. Analyze the PDU construction interface parameters corresponding to the PDU construction function, and obtain the log status parameter and log storage path carried by the PDU construction interface parameters.

[0074] Specifically, analyze the PDU construction interface parameter Optionstr (specifically in the form of a string) corresponding to the PDU construction function of the general D-PDU API (Diagnostic protocol data unit) diagnostic protocol data unit application program interface, and obtain the PDU construction interface parameter carrying The log state parameter and log save path of the log record function. Wherein, the log status parameter refers to a parameter that controls the working status of the log recording function. ...

Embodiment 2

[0103] This embodiment is a further description of Embodiment 1. For the same or similar parts as Embodiment 1, please refer to the relevant description of Embodiment 1 for details, and details will not be repeated here. Such as figure 2 As shown, the method also includes:

[0104] S201. When receiving a path change instruction, call the PDU constructor based on the path change instruction to obtain a corresponding new storage path;

[0105] S202. When a new log file is detected, save the new log file to the new storage path;

[0106] S203. Save all log files stored in the log storage path to the new log storage path, and delete all log files in the log storage path.

[0107] Specifically, when the path change instruction sent by the user is received, the PDU constructor of the general D-PDUAPI (Diagnostic protocol data unit) diagnostic protocol data unit application program interface is called based on the path change instruction to obtain the corresponding new storage path ...

Embodiment 3

[0114] This embodiment is a further description of Embodiment 1. For the same or similar parts as Embodiment 1, please refer to the relevant description of Embodiment 1 for details, and details will not be repeated here. Such as image 3 As shown, in this embodiment, when the log state parameter is detected to be started, start the log recording function, generate a log file and save it in the log storage path, and further include:

[0115] S104. Obtain the calling time of the PDU constructor;

[0116] S105. Generate the name of the log file according to the calling time.

[0117] Specifically, when the log recording function is started, the time point of calling the PDU constructor is obtained, and the name of the log file is generated according to the calling time point.

[0118] For example, the time to call the PDU constructor is 10:10 on August 1, 2021, and the corresponding log file name is 2021813101000-DPDU-LOG.txt.

[0119] In an embodiment, the name of the log fil...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is suitable for the technical field of vehicle diagnosis, and provides a log recording method and device, a terminal device and a readable storage medium. The method comprises the steps of analyzing a PDU construction interface parameter corresponding to a PDU construction function, obtaining a log state parameter and a log storage path carried by the PDU construction interface parameter, and when it is detected that the log state parameter is started, starting a log recording function, generating a log file and storing the log file in the log storage path, and generating the corresponding log information and storing the log information in the log file when the calling of a D-PDU API interface is detected. The log state parameter and the log storage path of the log recording function can be obtained according to the PDU construction interface parameter corresponding to the PDU construction function, and the starting state of the log recording function is adjusted, so that the log information can be obtained in real time and stored, the abnormal reason in the vehicle diagnosis process can be analyzed according to the log information, and the vehicle diagnosis efficiency is improved.

Description

technical field [0001] The present application belongs to the technical field of vehicle diagnosis, and in particular relates to a log recording method, device, terminal equipment and readable storage medium. Background technique [0002] Recently, vehicle manufacturers often use MVCI (Modular vehicle communication interface, modular vehicle communication interface) equipment to diagnose and configure the vehicle electronic control unit of the vehicle, and call the diagnostic protocol data unit application program interface (Diagnostic protocol data unit, D-PDU API) to control MVCI devices. [0003] However, due to the different diagnostic test environments of different vehicles, abnormal situations are prone to occur during operation, and the cause and location of the fault cannot be accurately determined. Contents of the invention [0004] Embodiments of the present application provide a log recording method, device, terminal equipment, and readable storage medium, whic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/07
CPCG06F11/0787
Inventor 刘均喻东
Owner LAUNCH TECH CO LTD