Log capturing system and vehicle

By designing a log grabbing system on the vehicle cockpit host, the log grabbing process is simplified by using key modules, microcontrol modules and file management modules, the problem of complex log grabbing operations in the existing technology is solved, and fault diagnosis and analysis is significantly improved efficiency.

CN119003301APending Publication Date: 2024-11-22SMART MOTOR (ZHEJIANG) SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411051195.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the prior art, when the software of the on-board cockpit host fails, the log grab operation is complicated, time-consuming and labor-intensive, and it is difficult to quickly and effectively troubleshoot.

Method used

A log grabbing system was designed, including a key module on the steering wheel, a microcontrol module on the cockpit host, and a file management module. The key module responds to user triggering operations to generate a trigger signal, the microcontrol module generates a crawling instruction, and the log processing module Crawl and package log information, the file management module monitors the USB interface status and transfers log files to external storage media.

Benefits of technology

Simplifies the log crawling process, improves the efficiency of fault diagnosis and analysis, and reduces operational complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003301A_ABST
    Figure CN119003301A_ABST
Patent Text Reader

Abstract

The invention relates to a log capturing system and a vehicle. The capturing system is used for capturing logs of a cabin host and comprises a key module arranged on a steering wheel, a micro-control module arranged on the cabin host, a log processing module and a file management module, and the key module is used for responding to trigger operation acting on the steering wheel and generating a trigger signal; the micro-control module is in communication connection with the key module and is used for responding to the trigger signal and generating a grabbing instruction; the log processing module is used for responding to the capturing instruction, capturing log information in the cabin host and packaging the log information to generate a log file; and the file management module is used for monitoring the state of the USB interface of the vehicle and transmitting the log file to an external storage medium when the insertion operation acting on the USB interface is monitored. And the log information can be captured more simply and quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-mounted information systems, and in particular to a log capture system and a vehicle. Background Art

[0002] As the functions of the car cockpit continue to increase, the software code of the cockpit host is also becoming increasingly large, and the software complexity is gradually increasing, resulting in an increase in the software failure rate of the cockpit host. When the cockpit host fails, it is necessary to capture the software log inside the host to analyze and locate the problem.

[0003] The traditional log capture method requires the cockpit host to be removed from the vehicle and connected to the computer using special diagnostic equipment and cables to export log files. This method is not only complicated, time-consuming and labor-intensive, but also requires high technical staff and is not conducive to fast and effective troubleshooting. Therefore, it is necessary to provide a log capture system and vehicle. Summary of the invention

[0004] The present invention provides a log capture system to improve the problem of high operation complexity when capturing logs in the prior art.

[0005] The present invention provides a log capture system for capturing logs of a cockpit host. The system comprises a button module arranged on a steering wheel, a microcontroller module, a log processing module and a file management module arranged on the cockpit host, wherein: the button module is used to generate a trigger signal in response to a trigger operation acting on the steering wheel; the microcontroller module is communicatively connected with the button module, and is used to generate a capture instruction in response to the trigger signal; the log processing module is used to capture the log information in the cockpit host in response to the capture instruction and package it to generate a log file; the file management module is used to monitor the status of a vehicle USB interface, and when an insertion operation acting on the USB interface is detected, the log file is transferred to an external storage medium.

[0006] In one embodiment of the present invention, the button module includes: a button input unit, which is used to monitor the button operation acting on the steering wheel, and when a preset button operation is detected, continuously generates a button signal until the preset button operation ends, and generates the duration of the button operation; a signal generating unit, which is used to monitor the button signal, and when the duration of the button signal reaches a preset duration threshold, generates a trigger signal; a first communication unit, which is used to send the trigger signal to the microcontroller module based on a preset communication protocol.

[0007] In one embodiment of the present invention, the microcontrol module includes: a second communication unit, used to receive the trigger signal sent by the key module based on a preset communication protocol; an instruction generation unit, used to read the signal identifier of the trigger signal and generate a grabbing instruction when the signal identifier is a preset grabbing identifier.

[0008] In an embodiment of the present invention, the communication protocol is a LIN communication protocol.

[0009] In one embodiment of the present invention, the log processing module includes: a log collection unit, used to collect log information from various applications of the cockpit host after receiving the capture instruction; a log processing unit, used to organize, compress and package the collected log information, generate a log file, and send the log file to the file management module.

[0010] In an embodiment of the present invention, the log processing module further includes: a filtering unit, configured to filter all collected log information based on a preset filtering rule to obtain filtered log information.

[0011] In one embodiment of the present invention, the file management module includes: a log storage unit for storing log files; a status monitoring unit for monitoring the vehicle USB interface in real time and generating an extraction instruction when it is detected that an external storage medium is inserted into the USB interface; a transmission unit for extracting the log file from the log storage unit in response to the extraction instruction and transmitting it to the external storage medium.

[0012] In one embodiment of the present invention, the file management module further includes: an error handling unit, which is used to monitor data errors during the transmission process of the log file to the external storage medium, and to perform data recovery according to a corresponding preset recovery mechanism when an error occurs.

[0013] In an embodiment of the present invention, the file management module further includes: a verification unit, configured to perform a consistency check on the log file in the external storage medium and the log file in the log storage unit after the transmission is completed.

[0014] In one embodiment of the present invention, a vehicle is further provided, on which the log capture system described in any one of the above items is installed.

[0015] The present invention proposes a log capture system. The key module responds to the user's trigger operation on the steering wheel to generate a trigger signal, and the microcontroller module generates a capture instruction. The log processing module captures the log information in the cockpit host according to the capture instruction and packages it to generate a log file. The file management module monitors the status of the vehicle's USB interface, and when it detects that the external storage medium is inserted, it transfers the log file to the external storage medium. In this way, the capture of log information can be achieved more simply and quickly, which improves the problem of high operational complexity when capturing logs in the prior art and greatly improves the efficiency of fault diagnosis and analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A structural block diagram of a log capture system provided by an embodiment of the present invention;

[0017] Figure 2 Shown is a structural block diagram of a key module in one embodiment of the present invention;

[0018] Figure 3 Shown is a structural block diagram of a microcontroller module in one embodiment of the present invention;

[0019] Figure 4 Shown is a structural block diagram of a log processing module in one embodiment of the present invention;

[0020] Figure 5 Shown is a structural block diagram of a log processing module in another embodiment of the present invention;

[0021] Figure 6 Shown is a structural block diagram of a file management module in one embodiment of the present invention;

[0022] Figure 7 Shown is a structural block diagram of a file management module provided by another embodiment of the present invention;

[0023] Figure 8 Shown is a structural block diagram of a file management module provided by another embodiment of the present invention;

[0024] Fig. 9 Shown is a connection diagram of a log capture system according to an embodiment of the present invention.

[0025] Component number description:

[0026] 100. Log capture system; 110. Key module; 111. Key input unit; 112. Signal generating unit; 113. First communication unit; 120. Microcontroller module; 121. Second communication unit; 122. Instruction generating unit; 130. Log processing module; 131. Log collection unit; 132. Log processing unit; 133. Filtering unit; 140. File management module; 141. Log storage unit; 142. Status monitoring unit; 143. Transmission unit; 144. Error handling unit; 145. Verification unit; 200. Steering wheel; 210. Trip button; 220. Down button; 300. External storage medium; 400. Cockpit host; 500. LIN line; 600. USB connection line. DETAILED DESCRIPTION

[0027] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0028] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0029] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0030] The present invention provides a log capture system, which generates a trigger signal by responding to the trigger operation of the user on the steering wheel through a button module, and generates a capture instruction through a microcontroller module. The log processing module captures the log information in the cockpit host according to the capture instruction and packages it to generate a log file. The file management module monitors the status of the vehicle's USB interface, and when it detects that the external storage medium is inserted, it transfers the log file to the external storage medium. In this way, the capture of log information can be achieved more simply and quickly, which improves the problem of high operational complexity when capturing logs in the prior art and greatly improves the efficiency of fault diagnosis and analysis.

[0031] See also Figure 1 and Fig. 9 The log capture system 100 is used to capture the logs of the cockpit host 400. The log capture system 100 includes a button module 110 provided on the steering wheel 200, a microcontroller module 120, a log processing module 130 and a file management module 140 provided on the cockpit host 400, wherein:

[0032] The button module 110 is used to generate a trigger signal in response to a trigger operation on the steering wheel 200. The button module 110 is set on the steering wheel 200. When detecting that the user performs a specific trigger operation, it will record the start time and end time of the trigger, thereby obtaining the duration of the trigger operation, and generate a trigger signal when the trigger duration reaches a preset duration threshold. The trigger operation includes but is not limited to pressing a preset area on the steering wheel 200, pinching a preset position of the steering wheel 200, or sliding along a preset direction on the surface of the steering wheel 200.

[0033] See also Figure 1 , Figure 2 and Fig. 9, in order to improve driving safety, the trigger operation is to press the preset area on the steering wheel 200. In one embodiment of the present invention, the button module 110 includes: a button input unit 111, which is used to monitor the button operation on the steering wheel 200, and when the preset button operation is detected, continuously generate a button signal until the preset button operation ends, and generate the duration of the button operation; a signal generating unit 112, which is used to monitor the button signal, and when the duration of the button signal reaches a preset duration threshold, generate a trigger signal; a first communication unit 113, which is used to send the trigger signal to the microcontroller module 120 based on a preset communication protocol. Specifically, the button input unit 111 can monitor the button operation on the steering wheel 200 in real time based on the sensor, and when it is detected that the user performs a preset button operation on the steering wheel 200 (such as pressing the Trip button 210 and the down button 220 in the steering wheel 200 at the same time), continuously generate a button signal until the button operation ends. At this time, the button input unit 111 will record the end time, and determine the duration of this button operation by the start time and the end time. After the key operation is completed, the key input unit 111 will send a key signal including the duration to the signal generating unit 112. The signal generating unit 112 receives the key signal and reads the duration of the key therein. When the duration is greater than or equal to a preset duration threshold (such as 5 seconds), a trigger signal including identification information of the key operation and a trigger time is generated, and the trigger signal is sent to the first communication unit 113. The first communication unit 113 sends the trigger signal to the microcontroller module 120 based on a preset communication protocol. Furthermore, in order to save manufacturing costs and reduce hardware complexity, in one embodiment of the present invention, the communication protocol is a LIN (Local Interconnect Network) communication protocol.

[0034] See also Figure 1 and Fig. 9 , the microcontrol module 120 is communicatively connected with the button module 110, and is used to generate a capture instruction in response to the trigger signal. The microcontrol module 120 is arranged on the cockpit host 400, and is connected to the button module 110 through a preset communication protocol. After the microcontrol module 120 receives the trigger signal sent by the button module 110, it determines whether the trigger signal meets the preset conditions through the identifier in the trigger signal. If it meets the conditions, a capture instruction containing control information is generated and sent to the log processing module 130 through the internal communication interface to instruct the log processing module 130 to start log capture. It should be noted that the communication protocol adopted by the "internal communication interface" described in the present invention can be the same as the communication protocol between the microcontrol module 120 and the button module 110, or it can be different, which is not limited here.

[0035] See also Figure 1 and Figure 3 In one embodiment of the present invention, the microcontroller module 120 includes: a second communication unit 121, which is used to receive the trigger signal sent by the button module 110 based on a preset communication protocol; and an instruction generation unit 122, which is used to read the signal identifier of the trigger signal and generate a capture instruction when the signal identifier is a preset capture identifier. The second communication unit 121 receives the trigger signal sent by the button module 110 through a preset communication protocol (such as a LIN protocol) and sends it to the instruction generation unit 122. After receiving the trigger signal sent by the second communication unit 121, the instruction generation unit 122 reads the signal identifier of the preset position therein, and compares the signal identifier with the preset capture identifier to determine whether the two match. If they match, a capture instruction is generated and sent to the log processing module 130 through the internal communication interface. If they do not match, no operation is performed. Among them, the capture instruction contains the necessary control information for starting the log capture process, and the capture instruction will be encoded into a format suitable for internal communication for transmission.

[0036] See also Figure 1 and Fig. 9 The log processing module 130 is used to respond to the capture instruction, capture the log information in the cockpit host 400 and package it to generate a log file. The log processing module 130 is set on the cockpit host 400. After receiving the capture instruction sent by the micro-control module 120, it starts to capture relevant log information from various subsystems and applications in the cockpit host 400 and package it to generate a log file. Among them, the types of log information include but are not limited to system event logs, error logs or application logs.

[0037] See also Figure 1 , Figure 4 and Fig. 9In one embodiment of the present invention, the log processing module 130 includes: a log collection unit 131, which is used to collect log information from various applications of the cockpit host 400 after receiving the capture instruction; a log processing unit 132, which is used to organize, compress and package the collected log information, generate a log file, and send the log file to the file management module 140. Specifically, after the log collection unit 131 receives the capture instruction sent by the micro-control module 120 through the internal communication interface, it reads the control information in the instruction, and accesses various types of log information through preset interfaces and protocols (such as system log interface, application log interface, etc.) according to the control information, so as to collect corresponding log information from various subsystems and applications of the cockpit host 400. After the collection is completed, all the collected log information is sent to the log processing unit 132. After receiving all the log information, the log processing unit 132 will convert the log information into a unified format and classify them according to the source of the log. After the arrangement is completed, the logs are compressed by a preset compression algorithm to improve the transmission speed. The compressed log information is packaged into one or more log files, and the packaged log files are sent to the file management module 140 through the internal communication interface.

[0038] See also Figure 1 and Figure 5 In one embodiment of the present invention, the log processing module 130 also includes: a filtering unit 133, which is used to filter all collected log information based on preset filtering rules to obtain filtered log information. Specifically, the filtering unit 133 receives the capture instruction sent by the log collection unit 131, and screens and filters the collected log information according to the preset filtering rules, wherein the filtering rules include but are not limited to filtering based on the source of the log, filtering based on the generation time of the log, filtering based on the keyword of the log, etc. The technical personnel in this field can set the adaptiveness based on the actual needs, which is not limited here. Through the filtering unit 133, the log entries that do not meet the filtering rules can be filtered out, so that the obtained log information is more directional. After filtering, the filtering unit 133 sends the various log information retained after filtering to the log processing unit 132.

[0039] See also Figure 1 and Fig. 9, the file management module 140 is used to monitor the status of the vehicle USB interface, and when an insertion operation acting on the USB interface is detected, the log file is transferred to the external storage medium 300. The file management module 140 is set on the cockpit host 400, and continuously monitors the connection status of the vehicle USB interface. When the external storage medium 300 is detected to be inserted, the type and availability of the external storage medium 300 are automatically identified, and when the external storage medium 300 is available and confirmed to be in the inserted state, the packaged log file is sent to the storage medium. Among them, the external storage medium 300 includes but is not limited to a USB flash drive, a mobile hard disk, an SD card, etc.

[0040] See also Figure 1 and Figure 6 In one embodiment of the present invention, the file management module 140 includes: a log storage unit 141 for storing log files; a status monitoring unit 142 for real-time monitoring of the vehicle USB interface, and generating an extraction instruction when detecting that an external storage medium 300 is inserted into the USB interface; a transmission unit 143 for extracting the log file from the log storage unit 141 in response to the extraction instruction, and transmitting it to the external storage medium 300. The log storage unit 141 receives the log file sent by the log processing module 130 and stores it in a preset position of the internal memory. After the storage is completed, the storage completion information is sent to the status monitoring unit 142, and the information contains relevant information such as the specific storage location and name of the log file. The status monitoring unit 142 monitors the connection status of the USB interface in real time, and when detecting that the external storage medium 300 is inserted, it will detect the current insertion status and determine whether the storage medium is available. If it is available, when it is confirmed that the external storage medium 300 is still in the correct insertion state, the extraction instruction is generated according to the storage completion information sent by the log storage unit 141 and sent to the transmission unit 143. After receiving the extraction instruction sent by the status monitoring unit 142, the transmission unit 143 extracts the corresponding log file from the log storage unit 141. After the extraction is completed, the extracted log file is written to the external storage medium 300. After the writing is completed, the transmission status is updated to confirm that the log file has been successfully transmitted to the external storage medium 300.

[0041] See also Figure 1 and Figure 7In one embodiment of the present invention, the file management module 140 also includes: an error handling unit 144, which is used to monitor data errors during the transmission process of the log file to the external storage medium 300, and perform data recovery according to the corresponding preset recovery mechanism when an error occurs. The error handling unit 144 monitors the data transmission status in real time during the log file transmission. When errors such as data loss, data corruption or transmission interruption are identified during data transmission, data recovery will be performed according to the corresponding recovery mechanism based on the error type. Exemplarily, if the data is lost or damaged, the transmission is re-started from the data where the error occurred.

[0042] See also Figure 1 and Figure 8 In one embodiment of the present invention, the file management module 140 further includes: a verification unit 145, which is used to perform consistency verification on the log file in the external storage medium 300 and the log file in the log storage unit 141 after the transmission is completed. After the log file is transmitted, the verification unit 145 receives the transmission completion notification sent by the transmission unit 143, extracts the corresponding log files from the log storage unit 141 and the external storage medium 300 respectively, and verifies the two extracted log files to confirm whether the data of the two are consistent. If they are consistent, it means that the log file transmission is successful, otherwise, the corresponding processing mechanism is triggered according to the verification result, such as retransmission or direct correction of erroneous information.

[0043] See also Fig. 9 , the solution of the present invention is explained below through a specific key operation: when the user needs to extract the log, press the Trip button 210 and the down button 220 on the steering wheel at the same time and hold them for 5 seconds. After the key module 110 detects that the two keys are pressed at the same time for 5 seconds, it generates a trigger signal, thereby triggering the log capture operation. The key module 110 transmits the trigger signal to the microcontroller module 120 in the cockpit host 400 through the LIN line 500. The microcontroller module 120 generates a capture instruction and sends it to the log processing module 130. In response to the capture instruction, the log processing module 130 starts to capture and package the log information in the cockpit host 400 and generates a log file. The file management module 140 monitors the status of the USB interface through the USB connection cable 600, and when it detects that the external storage medium 300 is inserted, the packaged log file is automatically transferred to the external storage medium 300.

[0044] In one embodiment of the present invention, a vehicle is further provided, on which any of the above-mentioned log capture systems is provided, so as to realize log capture.

[0045] Each module in the above log capture system can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in hardware format, or can be stored in the memory in the computer device in software format, so that the processor can call the corresponding operations of each module above.

[0046] It should be noted that, in order to highlight the innovative part of the present invention, the present embodiment does not introduce modules that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other modules in the present embodiment.

[0047] In summary, the present invention discloses a log capture system and vehicle, which respond to the user's trigger operation on the steering wheel through the button module, generate a trigger signal, and generate a capture instruction through the microcontroller module. The log processing module captures the log information in the cockpit host according to the capture instruction and packages it to generate a log file. The file management module monitors the status of the vehicle's USB interface, and when it detects that an external storage medium has been inserted, it transfers the log file to the external storage medium. In this way, the capture of log information can be achieved more simply and quickly, which improves the problem of high operational complexity when capturing logs in the prior art and greatly improves the efficiency of fault diagnosis and analysis. Therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.

[0048] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A log capture system, characterized in that: Used to capture the log of the cockpit host, the system includes a button module arranged on the steering wheel, a microcontroller module, a log processing module and a file management module arranged on the cockpit host, wherein: The button module is used to generate a trigger signal in response to a trigger operation acting on the steering wheel; The microcontrol module is in communication with the key module and is used to generate a grabbing instruction in response to the trigger signal; The log processing module is used to capture the log information in the cockpit host in response to the capture instruction and package it to generate a log file; The file management module is used to monitor the status of the vehicle USB interface and transfer the log file to an external storage medium when an insertion operation acting on the USB interface is detected.

2. The log capture system according to claim 1, characterized in that: The button module comprises: A key input unit, used to monitor the key operation on the steering wheel, and when a preset key operation is detected, continuously generate a key signal until the preset key operation is completed, and generate a duration of the key operation; A signal generating unit, used to monitor the key signal and generate a trigger signal when the duration of the key signal reaches a preset duration threshold; The first communication unit is used to send the trigger signal to the micro control module based on a preset communication protocol.

3. The log capture system according to claim 1, characterized in that: The microcontroller module comprises: A second communication unit, configured to receive a trigger signal sent by the key module based on a preset communication protocol; The instruction generating unit is used to read the signal identifier of the trigger signal and generate a grabbing instruction when the signal identifier is a preset grabbing identifier.

4. The log capture system according to claim 2 or 3, characterized in that: The communication protocol is the LIN communication protocol.

5. The log capture system according to claim 1, characterized in that: The log processing module includes: A log collection unit, configured to collect log information from various applications of the cockpit host after receiving the capture instruction; The log processing unit is used to organize, compress and package the collected log information, generate log files, and send the log files to the file management module.

6. The log capture system according to claim 5, characterized in that: The log processing module also includes: The filtering unit is used to filter all collected log information based on preset filtering rules to obtain filtered log information.

7. The log capture system according to claim 1, characterized in that: The file management module includes: A log storage unit, used for storing log files; A status monitoring unit, used for real-time monitoring of the vehicle USB interface, and generating an extraction instruction when detecting that an external storage medium is inserted into the USB interface; The transmission unit is used to extract the log file from the log storage unit in response to the extraction instruction, and transmit the log file to the external storage medium.

8. The log capture system according to claim 7, characterized in that: The file management module also includes: The error processing unit is used to monitor data errors during the transmission of the log file to the external storage medium, and to perform data recovery according to a corresponding preset recovery mechanism when an error occurs.

9. The log capture system according to claim 7, characterized in that: The file management module also includes: The verification unit is used to perform consistency verification on the log file in the external storage medium and the log file in the log storage unit after the transmission is completed.

10. A vehicle, characterized in that: The vehicle is provided with a log capture system according to any one of claims 1 to 9.