Log exporting method and device for in-vehicle infotainment system

Automatically exporting vehicle system logs through external storage devices and controlling log export using configuration description files solves the difficulty of fault locating caused by remote control failure and enables efficient log collection and fault analysis in a network-free environment.

CN120743869APending Publication Date: 2025-10-03CHINA FAW CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510763219.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

When remote control fails, the transmission link is long and unstable, making it difficult to locate the cause of the fault. Especially in an environment without network coverage, it is impossible to obtain the log information of the vehicle system in time for fault analysis.

Method used

By inserting an external storage device, logs can be automatically exported to the external storage device, and the log export can be controlled by using the configuration description file. It supports multi-type and multi-level log collection and displays the export progress in real time.

Benefits of technology

It improves the efficiency and flexibility of log file collection, is suitable for fault analysis in a network-free environment, and solves the problem of difficulty in fault location caused by unstable transmission links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120743869A_ABST
    Figure CN120743869A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Vehicles, in particular to an in-vehicle infotainment system log exporting method and device.The method comprises the steps that whether external storage equipment is accessed or not is monitored in real time, if access is monitored, a pre-defined configuration description file is read, and whether the accessed external storage equipment needs to export logs or not is judged; if yes, corresponding logs are collected and exported based on configuration of the configuration description file, and a log file is generated; and copying the log file to an external storage device, and displaying a log export prompt. The proposal of the scheme has important significance for improving the log exporting efficiency and flexibility of the vehicle-mounted terminal system, the mode of directly exporting the log file through the USB flash disk is more efficient and reliable, and the influence of network delay and interruption on log collection is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle networking technology, and in particular to a method and device for exporting a vehicle system log. Background Art

[0002] With the rapid development of intelligent connected vehicle technology, the number of electronic control units (ECUs) in vehicles continues to increase, and the complexity of vehicle control systems is growing. This trend has made remote control capabilities a standard feature of vehicles. Users can send remote control commands through mobile phones, tablets, and other terminal devices. These commands are transmitted to the vehicle via cloud platforms and operator platforms, and then control the corresponding devices on the vehicle to perform operations.

[0003] In existing technologies, remote control commands require a long transmission link from the terminal device to the vehicle through multiple intermediate links. During this process, factors such as unstable network signals and processing delays on the operator platform can cause remote control failures.

[0004] When remote control fails, locating the cause becomes extremely difficult due to long transmission links and the involvement of multiple systems. This is especially true when remote control failures are caused by internal vehicle issues, such as system software failures or ECU communication anomalies. Traditional network remote log upload methods often fail to obtain detailed log information in a timely manner, resulting in inefficient troubleshooting.

[0005] In some special environments, such as underground garages and remote mountainous areas, vehicles may be without network coverage or with extremely weak network signals. In such cases, remote log upload based on network commands will not meet the needs, and it will be impossible to obtain the vehicle system log information in a timely manner for fault analysis. Summary of the Invention

[0006] In order to solve the above problems, the present invention provides a vehicle system log export method, system and electronic device. By inserting an external storage device and automatically exporting the log to the external storage device, the problem of difficulty in fault locating caused by the long and unstable remote transmission link and network environment limitations during remote control in the prior art is solved; the efficiency of log file collection is improved, and fault analysis is facilitated in a non-network environment.

[0007] To achieve the above-mentioned purpose, the present invention adopts the following technical solutions:

[0008] In a first aspect, the present invention provides a method for exporting a vehicle system log, the method comprising:

[0009] Real-time monitoring of whether external storage devices are connected. If detected, the pre-defined configuration description file is read to determine whether the connected external storage device needs to export logs;

[0010] If necessary, collect and export corresponding logs based on the configuration of the configuration description file to generate log files;

[0011] The log file is copied to an external storage device, and a log export prompt is displayed.

[0012] Optionally, the pre-definition of the configuration description file includes:

[0013] Obtain multiple functions mapped to different application resources of the vehicle system and generate a function list;

[0014] Describe the operation contents corresponding to different functions in the function list to obtain a description file; locate a solution configuration area in the description file, and configure the description file in the solution configuration area to obtain a configuration description file.

[0015] Optionally, configuring the description file in the solution configuration area to obtain the configuration description file includes:

[0016] Using a custom text format, add an operation type identifier to the description file to characterize the operation that the description file needs to perform; if the operation type identifier is LOG, it indicates a log operation;

[0017] Set an operation switch for the description file, and set whether the operation of the description file is executed by switching the operation switch on or off; and add a status flag representing whether the operation switch is in the on and off modes; if the value of the status flag is YES, it means that the operation switch is in the on mode; if the value is NO, it means that the operation switch is in the off mode;

[0018] When the operation switch is switched to the on mode, the operation of the description file is executed; when the operation switch is switched to the off mode, the operation of the description file does not need to be executed;

[0019] In the solution configuration area, set the log type and log level parameters corresponding to the operation type identifier, define the log path for log file export, and generate a configuration description file.

[0020] Optionally, the log types include logcat system logs, bluetooth logs, QNX operating system logs, tomestone crash logs, and anr application unresponsiveness logs;

[0021] The log level parameters include debug level, information level, warning level and error level.

[0022] Optionally, determining whether the connected external storage device needs to export logs includes:

[0023] Reading a status identifier representing whether the operation switch is in an on mode or an off mode in the configuration description file;

[0024] When the value of the status flag is YES, it indicates that the connected external storage device needs to export logs; if the value is NO, it does not need to export logs.

[0025] Optionally, the configuration collection based on the configuration description file and exporting corresponding logs to generate log files includes:

[0026] Collect the corresponding log data from the vehicle system according to the log type and log level parameters in the configuration description file;

[0027] The collected log data is packaged and processed to generate log files.

[0028] Optionally, collecting corresponding log data in the vehicle system according to the log type and log level parameters in the configuration description file includes:

[0029] Read the operation type identifier in the configuration description file to identify the operation performed by the configuration description file;

[0030] Under the current operation, determine what the exported logs need to include based on the log type and log level parameters of the configuration description file.

[0031] Log content and log level output by the vehicle computer;

[0032] Collect the corresponding logs in the vehicle system according to the log content that needs to be included in the exported log and the log level output by the vehicle

[0033] Information; obtain log data in the vehicle system that matches the requirements of the configuration description file.

[0034] Optionally, copying the log file to the external storage device includes: copying the exported log file to a directory connected to the external storage device according to a log path predefined in the configuration description file.

[0035] Optionally, the log export prompt is displayed: the progress signal of the log collection and file copying process is received in real time, and the log collection progress and log file copying progress are displayed on the central control screen; after the log file is copied to the external storage device, the log export result is prompted on the central control screen.

[0036] In a second aspect, the present invention provides a vehicle system log exporting device, the device comprising:

[0037] The judgment module is used to monitor in real time whether an external storage device is connected. If the connection is detected, the pre-defined configuration description file is read to determine whether the connected external storage device needs to export logs;

[0038] The log export module is used to collect and export corresponding logs based on the configuration of the configuration description file and generate log files if necessary;

[0039] The display module is used to copy log files to an external storage device and display log export prompts.

[0040] Compared with the closest prior art, the present invention has the following beneficial effects:

[0041] The present invention proposes a method and device for exporting vehicle system logs. Compared with the instability of network transmission during log export in the prior art, the present invention is more efficient and reliable in directly exporting log files through an external storage device, avoiding the impact of network delays and interruptions on log collection and improving log collection efficiency.

[0042] The present invention proposes a method and device for exporting vehicle system logs, which can be used in environments without a network, such as underground garages and remote mountainous areas. Users can quickly export the log information of the vehicle system by inserting a USB flash drive, which facilitates fault analysis and troubleshooting.

[0043] This invention allows users to freely select the log content and log level to be exported by developing a descriptive configuration file, and then update the existing configuration according to their own needs, making the solution more flexible and applicable to various application scenarios. It improves the flexibility and pertinence of log export. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly describes the drawings required for the specific embodiments or the description of the prior art. Similar elements or parts are generally identified by similar reference numerals throughout the drawings. Elements or parts in the drawings are not necessarily drawn to scale.

[0045] Figure 1 This is a flow chart of a vehicle system log export method provided by the present invention;

[0046] Figure 2 This is a structural diagram of a vehicle system log export device provided by the present invention;

[0047] Figure 3 It is a diagram of the internal structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0048] The following embodiments of the technical solution of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention and are therefore only examples and are not intended to limit the scope of protection of the present invention.

[0049] It should be noted that, unless otherwise specified, the technical or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the present invention belongs.

[0050] The present invention provides a method and device for exporting vehicle system logs, particularly suitable for quickly and efficiently exporting vehicle system logs for fault analysis in environments with limited vehicle network transmission. The vehicle system log export method of the present invention primarily includes the following aspects: USB port monitoring, log collection, file packaging, and human-computer interactive display. The following describes an embodiment of the present invention with reference to the accompanying drawings:

[0051] Please refer to Figure 1 , Figure 1 A method for exporting a vehicle system log provided in Example 1 of the present invention includes the following specific steps:

[0052] S101 monitors in real time whether an external storage device is connected. If an external storage device is detected, a predefined configuration description file is read to determine whether the connected external storage device needs to export logs.

[0053] S102, if necessary, collects and exports corresponding logs based on the configuration of the configuration description file to generate a log file;

[0054] S103 copies the log file to an external storage device and displays a log export prompt.

[0055] In the above step S101, the pre-definition of the configuration description file includes:

[0056] Obtain multiple functions mapped to different application resources of the vehicle system and generate a function list;

[0057] Describe the operation contents corresponding to different functions in the function list to obtain a description file; locate a solution configuration area in the description file, and configure the description file in the solution configuration area to obtain a configuration description file.

[0058] In the above embodiment, configuring the description file in the solution configuration area, obtaining the configuration description file includes:

[0059] Using a custom text format, add an operation type identifier to the description file to characterize the operation that the description file needs to perform; if the operation type identifier is LOG, it indicates a log operation;

[0060] Set an operation switch for the description file, and set whether the operation of the description file is executed by switching the operation switch on or off; and add a status flag representing whether the operation switch is in the on and off modes; if the value of the status flag is YES, it means that the operation switch is in the on mode; if the value is NO, it means that the operation switch is in the off mode;

[0061] When the operation switch is switched to the on mode, the operation of the description file is executed; when the operation switch is switched to the off mode, the operation of the description file does not need to be executed;

[0062] In the solution configuration area, set the log type and log level parameters corresponding to the operation type identifier, define the log path for log file export, and generate a configuration description file.

[0063] In the above embodiment, the log types include logcat system log, bluetooth log, QNX operating system log, tomestone crash log and anr application unresponsive log;

[0064] The log level parameters include debug level, information level, warning level and error level.

[0065] In the above step S101, the determination of whether the connected external storage device needs to export logs includes:

[0066] Reading a status identifier representing whether the operation switch is in an on mode or an off mode in the configuration description file;

[0067] When the value of the status flag is YES, it indicates that the connected external storage device needs to export logs; if the value is NO, it does not need to export logs.

[0068] In the above step S102, the configuration collection based on the configuration description file and exporting the corresponding log to generate the log file includes:

[0069] Collect the corresponding log data from the vehicle system according to the log type and log level parameters in the configuration description file;

[0070] The collected log data is packaged and processed to generate log files.

[0071] In the above embodiment, collecting corresponding log data from the vehicle system according to the log type and log level parameters in the configuration description file includes:

[0072] Read the operation type identifier in the configuration description file to identify the operation performed by the configuration description file;

[0073] Under the current operation, determine what the exported logs need to include based on the log type and log level parameters of the configuration description file.

[0074] Log content and log level output by the vehicle computer;

[0075] Collect the corresponding logs in the vehicle system according to the log content that needs to be included in the exported log and the log level output by the vehicle

[0076] Information; obtain log data in the vehicle system that matches the requirements of the configuration description file.

[0077] In the above step S103, copying the log file to the external storage device includes: copying the exported log file to a directory connected to the external storage device according to the log path predefined in the configuration description file.

[0078] In the above step S103, the log export prompt is displayed: the progress signal of the log collection and file copying process is received in real time, and the log collection progress and log file copying progress are displayed on the central control screen; after the log file is copied to the external storage device, the log export result is prompted on the central control screen.

[0079] It can be seen that the above embodiment improves the efficiency of log file collection by inserting an external storage device to automatically export logs to the external storage device. This solution is applicable to various network environments, especially for fault analysis in an environment without a network.

[0080] Example 1: Log export in a non-network environment

[0081] Scenario description: A faulty vehicle is located in an underground garage with no network coverage. It is necessary to export the vehicle system's log information for fault analysis.

[0082] Implementation steps: Prepare a USB drive and place the description configuration file for automatically exporting logs in it. Configure the log content and log level to be exported.

[0083] Insert the USB flash drive into the USB port of the CSC system;

[0084] After the CSC system detects the USB drive, it automatically reads the description configuration file and starts the log export process;

[0085] The log collection module and file packaging module collect and package log information according to the parameters of the configuration file;

[0086] After the log files are packaged and copied to the USB flash drive, the human-computer interaction display module prompts "Log export completed" on the central control screen;

[0087] Unplug the USB drive and take the log file to an area with network access for uploading or analysis.

[0088] For example, if a faulty vehicle is in an area without network coverage, such as an underground garage, and the vehicle's logs are needed for fault analysis, remote log upload based on network commands is clearly insufficient. In this case, using this solution, simply insert a USB drive into the vehicle computer, and the CSC will recognize it and automatically begin collecting and exporting logs. After the screen prompts that the export is complete, you can remove the USB drive and continue analyzing the logs or upload them to an area with network coverage.

[0089] Example 2: Log export in a network environment

[0090] Although the present invention is mainly aimed at log exporting in a non-network environment, it can also be applied in a network environment. Users can choose to export logs via a USB flash drive or upload logs via the network as needed.

[0091] Implementation steps: Prepare a USB drive and configure the description file (or choose to upload it via the Internet);

[0092] Insert a USB drive (or trigger log export through network commands);

[0093] The CSC system detects the USB drive and reads the description file (or receives network instructions) to start the log export process;

[0094] Collect and package log information;

[0095] Export logs to a USB drive (or upload to the cloud via the Internet);

[0096] Prompt to export results.

[0097] Furthermore, the above solution is also applicable to fault analysis in various application scenarios. Specifically, the following two embodiments fully cover the technical key points of S101-S103, especially the technical key points of flexible definition of configuration description files, differentiated collection of multi-type / multi-level logs, and intelligent interaction with external storage devices.

[0098] Example 3: Automatically export Bluetooth fault diagnosis scenario logs;

[0099] Application scenario: The in-vehicle Bluetooth module frequently disconnects, and maintenance personnel insert a dedicated USB flash drive for fault diagnosis.

[0100] Implementation steps:

[0101] 1. Device access detection: The vehicle system detects the access of a FAT32 format USB flash drive and triggers the configuration description file (log_export.cfg) to read the file content.

[0102] 2. Log collection:

[0103] After parsing the configuration, start the log collection service:

[0104] Use the `btmon` command to capture Bluetooth HCI layer logs (level ≥ WARNING)

[0105] Scan the ` / data / anr` directory to obtain the last three ANR records;

[0106] Automatically filter non-ERROR level QNX kernel logs;

[0107] 3. File processing:

[0108] Generate a compressed package named in the format: `bluetooth_debug_20240603_1437.zip`

[0109] Verify file integrity (e.g. MD5 checksum)

[0110] 4. Interactive feedback:

[0111] The progress bar is displayed on the central control screen (collection 80% → compression 15% → copy 5%)

[0112] Finally, a toast prompt pops up: "Log exported successfully, path: / mnt / usb / logs_202406031437"

[0113] Technical Effect: Compared with the traditional manual export method, the diagnostic time is shortened by 60%, and the HCI layer error code of the Bluetooth module (such as HCI_ERR_CONN_FAILED) is accurately captured.

[0114] Example 4: Dynamically configuring log collection (system stress testing scenario)

[0115] Application scenario: Engineers need to collect differentiated logs according to different test stages during bench testing.

[0116] Implementation steps:

[0117] 1. Dynamic configuration: Insert a writable SD card with a pre-set configuration file and set the file contents:

[0118] 2. Intelligent collection:

[0119] Enables full DEBUG level logging of QNX system logs (including process scheduling tracing)

[0120] Synchronously record CPU temperature sensor data and memory usage (sampled every 1 second);

[0121] Automatically skip unconfigured ANR log collection;

[0122] 3. Staged storage: Create a timestamp directory structure;

[0123] 4. Exception handling:

[0124] Triggered when storage space is insufficient:

[0125] Automatically delete the earliest historical log directory;

[0126] The central control screen displays a warning: Insufficient storage space, the oldest data has been automatically cleared.

[0127] Technical Effect: 24 / 7 unattended log collection is achieved during the test process, with 100% completeness of key parameter collection, supporting accurate tracing of test anomalies (such as memory leaks).

[0128] Based on the same inventive concept, embodiments of the present application also provide a vehicle system log exporting device for implementing the aforementioned vehicle system log exporting method. The solution provided by this device is similar to the solution described in the aforementioned embodiment method. Therefore, the specific limitations of one or more vehicle system log exporting device embodiments provided below can be found in the aforementioned limitations of the vehicle system log exporting method and will not be further elaborated here.

[0129] In one embodiment, the vehicle system log exporting device provided by the embodiment of the present invention is as follows: Figure 2 As shown, it includes: a judgment module 210, a log export module 220 and a display module 230, wherein:

[0130] The judgment module 210 is used to monitor in real time whether an external storage device is connected. If the connection is detected, the predefined configuration description file is read to determine whether the connected external storage device needs to export logs;

[0131] The log export module 220 is used to collect and export corresponding logs based on the configuration of the configuration description file and generate log files if necessary;

[0132] The display module 230 is used to copy the log file to an external storage device and display a log export prompt.

[0133] The working process of the above device is as follows: First, prepare an external storage device, such as a USB flash drive, and put the description configuration file for automatically exporting logs into the USB flash drive. The description configuration file is defined in text format and specifically includes the following contents:

[0134] Operation type: Identifies the operation to be performed by this description file. The current value is LOG, which indicates a log operation. Other automated operations can also be expanded.

[0135] Operation switch: Indicates whether this operation is enabled, with a value of YES or NO.

[0136] Log content: identifies the log content included in the log export. Users can freely select the log type to be exported, such as logcat (system log), bluetooth (Bluetooth log), qnx (QNX operating system log), tomestone (crash log), anr (application unresponsive log), etc., to improve export efficiency.

[0137] Log level: You can set the log level output by the vehicle computer. It can be set to four levels: D (debug level), I (information level), W (warning level), and E (error level). Users can choose the appropriate log level according to their needs.

[0138] Log path: defines the directory where the exported logs are stored in the USB flash drive, such as / log / log.zip.

[0139] Insert a USB flash drive: Insert the USB flash drive into the USB port of the CSC system. After the CSC system detects the insertion of the USB flash drive, it reads the description configuration file and starts the log export process according to the configuration of the description file.

[0140] Log collection and export: 1. Log collection: Collect the corresponding log information in the vehicle system according to the log content and log level parameters in the configuration file.

[0141] 2. File packaging: Package the collected log information and generate log files (such as ZIP format).

[0142] During the process of log collection and exporting to a USB flash drive, the log collection module and file packaging module will send progress signals to the human-computer interaction display module, and display the log collection progress and file copy progress to the user on the central control screen.

[0143] Export result prompt: After the log file is packaged and copied to the USB flash drive, the human-computer interaction display module prompts the log export result on the central control screen, such as "Log export completed".

[0144] In one embodiment, the present invention further provides an electronic device, which may be a terminal, and its internal structure diagram may be as follows: Figure 3As shown. The electronic device includes a processor, memory, a communication interface, a display, and an input device connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal via wired or wireless communication. The wireless communication can be achieved through Wi-Fi, a mobile cellular network, NFC (near-field communication), or other technologies. When executed by the processor, the computer program implements a method for exporting vehicle system logs as described in any one of steps S101 to S103. The display of the electronic device can be a liquid crystal display or an electronic ink display. The input device of the electronic device can be a touch layer covering the display, or keys, a trackball, or a touchpad provided on the electronic device housing, or an external keyboard, touchpad, or mouse.

[0145] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0147] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0148] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.

[0150] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.

Claims

1. A method for exporting a vehicle system log, characterized in that: The method comprises: Real-time monitoring of whether external storage devices are connected. If detected, the pre-defined configuration description file is read to determine whether the connected external storage device needs to export logs; If necessary, collect and export corresponding logs based on the configuration of the configuration description file to generate log files; The log file is copied to an external storage device, and a log export prompt is displayed.

2. The method according to claim 1, wherein The pre-defined configuration description file includes: Obtain multiple functions mapped to different application resources of the vehicle system and generate a function list; Describe the operation contents corresponding to different functions in the function list to obtain a description file; locate a solution configuration area in the description file, and configure the description file in the solution configuration area to obtain a configuration description file.

3. The method according to claim 2, wherein Configuring the description file in the solution configuration area to obtain the configuration description file includes: Using a custom text format, add an operation type identifier to the description file to characterize the operation that the description file needs to perform; if the operation type identifier is LOG, it indicates a log operation; Set an operation switch for the description file, and set whether the operation of the description file is executed by switching the operation switch on or off; and add a status flag representing whether the operation switch is in the on and off modes; if the value of the status flag is YES, it means that the operation switch is in the on mode; if the value is NO, it means that the operation switch is in the off mode; When the operation switch is switched to the on mode, the operation of the description file is executed; when the operation switch is switched to the off mode, the operation of the description file does not need to be executed; In the solution configuration area, set the log type and log level parameters corresponding to the operation type identifier, define the log path for log file export, and generate a configuration description file.

4. The method according to claim 3, wherein The log types include logcat system logs, Bluetooth logs, QNX operating system logs, tomestone crash logs, and anr application unresponsiveness logs; The log level parameters include debug level, information level, warning level and error level.

5. The method according to claim 1, wherein The determining whether the connected external storage device needs to export logs includes: Reading a status identifier representing whether the operation switch is in an on mode or an off mode in the configuration description file; When the value of the status flag is YES, it indicates that the connected external storage device needs to export logs; if the value is NO, it does not need to export logs.

6. The method according to claim 1, wherein The configuration collection based on the configuration description file and exporting the corresponding log to generate the log file includes: Collect the corresponding log data from the vehicle system according to the log type and log level parameters in the configuration description file; The collected log data is packaged and processed to generate log files.

7. The method according to claim 6, wherein The collection of corresponding log data from the vehicle system according to the log type and log level parameters in the configuration description file includes: Read the operation type identifier in the configuration description file to identify the operation performed by the configuration description file; Under the current operation, determine what the exported logs need to include based on the log type and log level parameters of the configuration description file. Log content and log level output by the vehicle computer; Collect the corresponding logs in the vehicle system according to the log content that needs to be included in the exported log and the log level output by the vehicle Information; obtain log data in the vehicle system that matches the requirements of the configuration description file.

8. The method according to claim 1, wherein The copying of the log file to the external storage device includes: copying the exported log file to a directory connected to the external storage device according to a log path predefined in the configuration description file.

9. The method according to claim 1, wherein The log export prompt is displayed: the progress signal of the log collection and file copy process is received in real time, and the log collection progress and log file copy progress are displayed on the central control screen; After the log file is copied to the external storage device, the log export result is prompted on the central control screen.

10. A vehicle system log export device, characterized in that: The device comprises: The judgment module is used to monitor in real time whether an external storage device is connected. If the connection is detected, the pre-defined configuration description file is read to determine whether the connected external storage device needs to export logs; The log export module is used to collect and export corresponding logs based on the configuration of the configuration description file and generate log files if necessary; The display module is used to copy log files to an external storage device and display log export prompts.

Citation Information

Patent Citations

  • Equipment description file generation method and related equipment

    CN114546336A

  • Central control vehicle machine log acquisition method and system, computer and readable storage medium

    CN116610475A

  • Vehicle log configuration capturing method and device and computer readable storage medium

    CN116778607A

  • Method for checking log on vehicle machine, electronic equipment, vehicle machine and vehicle

    CN117931586A

  • Interaction method and communication management equipment

    CN118118571A