A t-box log export method and system, and a storage medium
Patent Information
- Application Number
- CN202310197544.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2043-03-01
AI Technical Summary
[0003]本发明的目的在于提出一种T-BOX日志导出方法与系统、计算机可读存储介质,以解决目前T-BOX故障周期较长的技术问题
[0031] The T-BOX logs can be exported by operating the vehicle's AVNT system. This allows ordinary employees at 4S stores to quickly export T-BOX logs after simple training and send them remotely to professional engineers. Professional engineers no longer need to carry special tools to the location of the intelligent connected vehicle to export the logs, which greatly shortens the time for troubleshooting and reduces customer complaints.
Smart Images

Figure CN116331123B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of T-BOX log export technology, specifically to a T-BOX log export method and system, and a storage medium. Background Technology
[0002] Currently, T-BOX functions are increasingly involved in intelligent connected vehicles, leading to a rise in related functional failures due to various factors. Currently, when a T-BOX-related function in an intelligent connected vehicle malfunctions, specialized engineers need to travel to the vehicle's location with specialized tools to export logs. However, the exported logs are sometimes too large, resulting in lengthy export times and requiring significant manpower to locate the root cause of the failure from the complete logs. This work model leads to prolonged troubleshooting cycles and extended customer complaint periods. Summary of the Invention
[0003] The purpose of this invention is to propose a T-BOX log export method and system, and a computer-readable storage medium, in order to solve the technical problem of long failure cycles in current T-BOX systems.
[0004] To achieve the above objectives, according to a first aspect of the present invention, a method for exporting T-BOX logs is provided, the method comprising:
[0005] The T-BOX receives a first request message from the AVNT system, obtains the overall time period information of all T-BOX logs stored in the local memory based on the first request message, and sends the overall time period information to the AVNT system.
[0006] T-BOX receives a second request message sent by the AVNT system and determines whether to export the T-BOX log based on the second request message. The second request message includes target time period information and log file information. The log file information indicates whether the target log file exists on the external storage of the AVNT system and whether the target log file is empty.
[0007] When it is determined to export T-BOX logs, T-BOX selects a portion of T-BOX logs that match the target time period information from all T-BOX logs and exports the portion of T-BOX logs to the external storage.
[0008] Optionally, the T-BOX receives a second request message sent by the AVNT system, and determines whether to export the T-BOX log based on the second request message, including:
[0009] If the target log file does not exist, ensure that the T-BOX log is exported;
[0010] If a target log file exists and is empty, then export the T-BOX logs.
[0011] If a target log file exists and is not empty, determine that the T-BOX log will not be exported.
[0012] Optionally, the method further includes:
[0013] When it is determined that the T-BOX logs should not be exported, the T-BOX generates an error indication message and sends the error indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX log export has failed.
[0014] Optionally, the method further includes:
[0015] When T-BOX is in a wake-up state, T-BOX stores the T-BOX logs generated during T-BOX operation in a folder of the local storage and timestamps the folder.
[0016] When T-BOX is in hibernation mode, T-BOX stops storing T-BOX logs.
[0017] Optionally, the method further includes:
[0018] After the T-BOX logs are exported to the external storage device, the T-BOX generates an export success indication message and sends the export success indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX logs have been exported successfully.
[0019] According to a second aspect of the present invention, a T-BOX log export system is provided, the system being installed on a T-BOX, the system comprising:
[0020] The first information processing unit is configured to receive a first request message sent by the AVNT system, obtain the overall time period information of all T-BOX logs stored in the local memory according to the first request message, and send the overall time period information to the AVNT system.
[0021] The second information processing unit is used to receive the second request information sent by the AVNT system and determine whether to export the T-BOX log based on the second request information; wherein, the second request information includes target time period information and log file information, and the log file information indicates whether the target log file exists in the external storage of the AVNT system and whether the target log file is empty;
[0022] The log export unit is used to select a portion of the T-BOX logs that match the target time period information from all the T-BOX logs when it is determined to export the T-BOX logs, and export the portion of the T-BOX logs to the external storage.
[0023] Optionally, the second information processing unit is configured to determine whether to export the T-BOX log when the target log file does not exist; and to determine whether to export the T-BOX log when the target log file exists and is empty.
[0024] T-BOX Logs: If a target log file exists and is not empty, T-BOX logs will not be exported.
[0025] Optionally, the system further includes:
[0026] The feedback unit is configured to, when it is determined that the T-BOX logs should not be exported, generate an error indication message in the T-BOX and send the error indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX log export has failed; and, after the partial export of the T-BOX logs to the external storage is completed, generate an export success indication message in the T-BOX and send the export success indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX logs have been successfully exported.
[0027] Optionally, the system further includes:
[0028] The storage unit is used to store the T-BOX logs generated during the operation of the T-BOX in a folder of the local storage when the T-BOX is in a wake-up state, and to time-stamp the folder; when the T-BOX is in a sleep state, the T-BOX stops storing the T-BOX logs.
[0029] According to a third aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the T-BOX log export method as described above.
[0030] The aforementioned T-BOX log export method and system, and computer-readable storage medium, have the following beneficial effects:
[0031] The T-BOX logs can be exported by operating the vehicle's AVNT system. This allows ordinary employees at 4S stores to quickly export T-BOX logs after simple training and send them remotely to professional engineers. Professional engineers no longer need to carry special tools to the location of the intelligent connected vehicle to export the logs, which greatly shortens the time for troubleshooting and reduces customer complaints.
[0032] The aforementioned T-BOX log export method and system, as well as other features and advantages of the computer-readable storage medium, will be described in the following description. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings required in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a flowchart of a T-BOX log export method according to one embodiment of the present invention.
[0035] Figure 2 This is a schematic diagram of the communication principle between T-BOX and AVNT in one embodiment of the present invention.
[0036] Figure 3 This is a flowchart illustrating the communication authentication process between T-BOX and AVNT in one embodiment of the present invention.
[0037] Figure 4 This is a flowchart illustrating a T-BOX log export method according to one embodiment of the present invention.
[0038] Figure 5 This is a framework diagram of a T-BOX log export system according to one embodiment of the present invention. Detailed Implementation
[0039] The detailed description of the accompanying drawings is intended to illustrate the presently preferred embodiments of the invention and is not intended to represent only the forms in which the invention can be implemented. It should be understood that the same or equivalent functions can be accomplished by different embodiments intended to be included within the spirit and scope of the invention.
[0040] like Figure 1 As shown, one embodiment of the present invention provides a T-BOX log export method. This method is based on the interaction between the in-vehicle T-BOX and the in-vehicle AVNT system. Figure 2 As shown, T-
[0041] BOX and AVN communicate using request / response primitives: one party initiates a request, the other receives and processes it, and then provides a response. The request and response data packets contain the following: header, message length, encryption flag, protocol version, request code / response code, etc.
[0042] Before AVNT and T-BOX can communicate, authentication and synchronization are required. If the connection is lost during communication between T-BOX and AVNT, authentication and synchronization must be performed again upon reconnection. Both T-BOX and AVNT have a built-in initial session key, rootKey. During authentication, rootKey is used as the key for the AES128 encryption algorithm. During authentication, T-BOX also generates a new session key, AuthChallenge, and synchronizes it with AVNT. The authentication process is as follows: Figure 3 As shown.
[0043] See Figure 1 The method in this embodiment includes the following steps:
[0044] Step S1: T-BOX receives the first request information sent by the AVNT system, obtains the overall time period information of all T-BOX logs stored in the local memory according to the first request information, and sends the overall time period information to the AVNT system.
[0045] Specifically, under the user's operation, AVNT enters the set engineering mode. At this time, the user operates AVNT to send the first request information to T-BOX. After receiving the first request information, T-BOX sends back to AVNT the overall time period information T1 to T2 of all T-BOX logs stored therein. The overall time period information refers to the earliest storage time T1 and the latest storage time T2 of all T-BOX logs.
[0046] Step S2: T-BOX receives the second request information sent by the AVNT system, and determines whether to export the T-BOX log based on the second request information; wherein, the second request information includes target time period information and log file information, and the log file information indicates whether the target log file exists in the external storage of the AVNT system and whether the target log file is empty;
[0047] Specifically, after receiving the overall time period information T1 to T2 from the T-BOX, the AVNT system displays it on its monitor. The user can select the corresponding target time period information T3 to T4 from the overall time period information T1 to T2 fed back by the T-BOX according to the fault time. At the same time, AVNT checks whether the target log file tboxcfg exists in the root directory of the external storage. The result of whether the target log file exists is combined with the target time period information T3 to T4 to generate the second request information, and then fed back to the T-BOX through the communication protocol between the T-BOX and AVNT.
[0048] The external storage device can be a USB flash drive;
[0049] Step S3: When it is determined to export T-BOX logs, T-BOX selects a portion of T-BOX logs that match the target time period information from all T-BOX logs and exports the portion of T-BOX logs to the external storage.
[0050] Specifically, the T-BOX and AVNT use the FTP protocol, with AVNT acting as the FTP server and T-BOX acting as the FTP client. T-BOX confirms the specified target time period information T3 to T4 according to the second request information sent by AVNT, repackages the T-BOX logs for the time period T3 to T4, logs into AVNT's FTP server, and starts uploading the packaged T-BOX logs to AVNT's external storage device (such as a USB flash drive).
[0051] Optionally, in this embodiment, step S2 may include:
[0052] If the target log file does not exist, ensure that the T-BOX log is exported;
[0053] If a target log file exists and is empty, then export the T-BOX logs.
[0054] If a target log file exists and is not empty, determine that the T-BOX log will not be exported.
[0055] Optionally, the method in this embodiment may further include:
[0056] Step S4: When it is determined that the T-BOX logs will not be exported, the T-BOX generates an error indication message and sends the error indication message to the AVNT system so that the AVNT system outputs a preset prompt message indicating that the T-BOX log export has failed.
[0057] Specifically, the error message may be: Error: does not exit (path does not exist), and the preset message may be: "Path does not exist, export failed".
[0058] Optionally, the method in this embodiment may further include:
[0059] Step S5: When T-BOX is in wake-up state, T-BOX stores the T-BOX logs generated during T-BOX operation in a folder of the local storage and timestamps the folder; when T-BOX is in sleep state, T-BOX stops storing T-BOX logs.
[0060] Specifically, the T-BOX logs are stored in the vehicle's local storage. Storage begins when the T-BOX is woken up and stops when the T-BOX goes to sleep. In one example, the logs can be stored up to 1016MB in size, which can be divided into 254 files, each 4MB in size. When a file exceeds 4MB, a new file is created to continue storing the logs. When the total number of files exceeds 254, the first file is deleted and a new file is created for storage. Each file is time-stamped.
[0061] Optionally, the method in this embodiment may further include:
[0062] Step S6: After exporting the portion of the T-BOX logs to the external storage, the T-BOX generates an export success indication message and sends the export success indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX logs have been successfully exported.
[0063] Specifically, the success indication information is, for example, "Success," and the preset prompt information is, for example, "Export successful."
[0064] like Figure 4 The diagram shows a specific example of the method in this embodiment. (See attached document.) Figure 4 This will allow for a better understanding of the technical solution of the method in this embodiment.
[0065] It should be noted that the functions of T-BOX in intelligent connected vehicles are becoming increasingly common. Consequently, the failure of these functions due to various factors is also on the rise. Retrieving logs related to the time of the fault often takes too long and involves excessively large amounts of data, making it difficult to promptly identify the cause of the fault through log analysis. To address this, this embodiment provides the aforementioned T-BOX log export method, which can quickly export logs and accurately export the log segment at the time of the fault, reducing the size of the log data packet and significantly reducing troubleshooting time. This method is easy to implement and highly scalable.
[0066] Corresponding to the T-BOX log export method in the above embodiments, another embodiment of the present invention provides a T-BOX log export system, which is installed on the T-BOX. (See attached document.) Figure 4 The system in this embodiment includes:
[0067] The first information processing unit 1 is used to receive a first request information sent by the AVNT system, obtain the overall time period information of all T-BOX logs stored in the local memory according to the first request information, and send the overall time period information to the AVNT system.
[0068] The second information processing unit 2 is used to receive the second request information sent by the AVNT system and determine whether to export the T-BOX log based on the second request information; wherein, the second request information includes target time period information and log file information, and the log file information indicates whether the target log file exists in the external storage of the AVNT system and whether the target log file is empty;
[0069] Log export unit 3 is used to select a portion of the T-BOX logs that match the target time period information from all the T-BOX logs when it is determined to export the T-BOX logs, and export the portion of the T-BOX logs to the external storage.
[0070] Optionally, the second information processing unit 2 is configured to determine to export T-BOX logs when no target log file exists; determine to export T-BOX logs when a target log file exists and the target log file is empty; and determine not to export T-BOX logs when a target log file exists and the target log file is not empty.
[0071] Optionally, the system in this embodiment may further include:
[0072] Feedback unit 4 is configured to, when it is determined that the T-BOX logs should not be exported, generate an error indication message in the T-BOX and send the error indication message to the AVNT system so that the AVNT system outputs a preset prompt message indicating that the T-BOX log export has failed; and, after the partial export of the T-BOX logs to the external storage is completed, generate an export success indication message in the T-BOX and send the export success indication message to the AVNT system so that the AVNT system outputs a preset prompt message indicating that the T-BOX logs have been successfully exported.
[0073] Optionally, the system in this embodiment may further include:
[0074] Storage unit 5 is used to store the T-BOX logs generated during the operation of T-BOX in a folder of the local storage when T-BOX is in a wake-up state, and to time-stamp the folder; when T-BOX is in a sleep state, T-BOX stops storing T-BOX logs.
[0075] The T-BOX log export system described above is merely illustrative. The units described as separate components may or may not be physically separate. A unit may or may not be a physical unit; it may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the T-BOX log export system scheme according to actual needs.
[0076] It should be noted that the T-BOX log export system of this embodiment corresponds to the T-BOX log export method of the above embodiment. Therefore, the parts of the T-BOX log export system of the above embodiment that are not described in detail can be obtained by referring to the content of the T-BOX log export method of the above embodiment. That is, the specific steps recorded in the T-BOX log export method of the above embodiment can be understood as the functions that the T-BOX log export system of the above embodiment can achieve, so they will not be described again here.
[0077] Furthermore, if the T-BOX log export system described in the above embodiments is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0078] Another embodiment of the present invention provides a computer-readable storage medium storing a computer program that, when executed by the processor of a T-BOX, implements the T-BOX log export method as described in the above embodiments.
[0079] Specifically, the computer-readable storage medium may include any entity or recording medium capable of carrying the computer program instructions, such as a USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media.
[0080] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for exporting T-BOX logs, characterized in that, The method includes: T-BOX receives a first request message from the AVNT system, obtains the overall time period information of all T-BOX logs stored in the local memory according to the first request message, and sends the overall time period information to the AVNT system so that the AVNT system can display the overall time period information to the user. T-BOX receives a second request from the AVNT system and determines whether to export T-BOX logs based on the second request. The second request includes target time period information and log file information. The log file information indicates whether the target log file exists on the external storage of the AVNT system and whether the target log file is empty. The target time period information is selected by the user from the overall time period information. When it is determined to export T-BOX logs, T-BOX selects a portion of T-BOX logs that match the target time period information from all T-BOX logs and exports the portion of T-BOX logs to the external storage.
2. The T-BOX log export method according to claim 1, characterized in that, The T-BOX receives a second request message sent by the AVNT system, and determines whether to export the T-BOX log based on the second request message, including: If the target log file does not exist, ensure that the T-BOX log is exported; If a target log file exists and is empty, then export the T-BOX logs. If a target log file exists and is not empty, determine that the T-BOX log will not be exported.
3. The T-BOX log export method according to claim 1, characterized in that, The method further includes: When it is determined that the T-BOX logs should not be exported, the T-BOX generates an error indication message and sends the error indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX log export has failed.
4. The T-BOX log export method according to claim 1, characterized in that, The method further includes: When T-BOX is in a wake-up state, T-BOX stores the T-BOX logs generated during T-BOX operation in a folder of the local storage and timestamps the folder. When T-BOX is in hibernation mode, T-BOX stops storing T-BOX logs.
5. The T-BOX log export method according to claim 1, characterized in that, The method further includes: After the T-BOX logs are exported to the external storage device, the T-BOX generates an export success indication message and sends the export success indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX logs have been exported successfully.
6. A T-BOX log export system, characterized in that, The system is installed on a T-BOX, and the system includes: The first information processing unit is configured to receive a first request message sent by the AVNT system, obtain the overall time period information of all T-BOX logs stored in the local memory according to the first request message, and send the overall time period information to the AVNT system so that the AVNT system can display the overall time period information to the user. The second information processing unit is used to receive the second request information sent by the AVNT system and determine whether to export the T-BOX log based on the second request information; wherein, the second request information includes target time period information and log file information, the log file information indicates whether the target log file exists in the external storage of the AVNT system and whether the target log file is empty, and the target time period information is selected by the user from the overall time period information; The log export unit is used to select a portion of the T-BOX logs that match the target time period information from all the T-BOX logs when it is determined to export the T-BOX logs, and export the portion of the T-BOX logs to the external storage.
7. The T-BOX log export system according to claim 6, characterized in that, The second information processing unit is used to determine whether to export the T-BOX log when the target log file does not exist; to determine whether to export the T-BOX log when the target log file exists and is empty; and to determine whether to not export the T-BOX log when the target log file exists and is not empty.
8. The T-BOX log export system according to claim 6, characterized in that, The system also includes: The feedback unit is configured to, when it is determined that the T-BOX logs should not be exported, generate an error indication message in the T-BOX and send the error indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX log export has failed; and, after the partial export of the T-BOX logs to the external storage is completed, generate an export success indication message in the T-BOX and send the export success indication message to the AVNT system, so that the AVNT system outputs a preset prompt message indicating that the T-BOX logs have been successfully exported.
9. The T-BOX log export system according to claim 6, characterized in that, The system also includes: The storage unit is used to store the T-BOX logs generated during the operation of the T-BOX in a folder of the local storage when the T-BOX is in a wake-up state, and to time-stamp the folder; when the T-BOX is in a sleep state, the T-BOX stops storing the T-BOX logs.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the T-BOX log export method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for document management
CN106021246A
Log extraction method and related equipment
CN110362548A
Remote debugging method and system and vehicle
CN111775864A