Vehicle machine log pulling method, device and equipment and storage medium

By using encryption and blockchain technology in the vehicle computer log pull system and combining the log index table, the safe and efficient pull of vehicle computer logs is achieved, solving the problems of inefficiency and security risks in traditional methods.

CN119538285AInactive Publication Date: 2025-02-28ZHEJIANG GEELY HLDG GRP CO LTD +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411602733.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-02-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art cannot pull the car machine log safely and efficiently, resulting in low pulling efficiency and the risk of logs being stolen.

Method used

By receiving the user's log pull instructions, the target encrypted file is pulled from the database based on the log pull instructions and the log index table, and decrypting and decompressing it to obtain the target vehicle log. This method uses encryption and blockchain technology to ensure data security, and combines log index tables to improve pulling efficiency.

Benefits of technology

It realizes safe and efficient pulling of vehicle computer logs, avoids the risk of plaintext data transmission, and improves pulling efficiency through index table technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119538285A_ABST
    Figure CN119538285A_ABST
Patent Text Reader

Abstract

The invention discloses an in-vehicle infotainment device log pulling method, device and equipment and a storage medium, and relates to the technical field of intelligent in-vehicle infotainment devices, and the method comprises the steps: when a log pulling instruction sent by a user is received, pulling a target encrypted file from a database based on the log pulling instruction and a log index table, the log index table is a data structure integrating index entries contained in the original vehicle machine log; and decrypting and decompressing the target encrypted file to obtain a target in-vehicle machine log. According to the method, the plaintext data of the target in-vehicle machine log is not directly pulled, and the target in-vehicle machine log is pulled by decrypting and decompressing the target encrypted file corresponding to the target in-vehicle machine log, so that the security of the log pulling process is ensured; meanwhile, all original in-vehicle machine logs do not need to be pulled, the target encrypted file is pulled from the database in combination with the log pulling instruction and the log index table to obtain the target in-vehicle machine log, and the pulling efficiency of the target in-vehicle machine log is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent vehicle computer technology, and in particular to a vehicle computer log extraction method, device, equipment and storage medium. Background Art

[0002] With the development of intelligent cockpit systems for commercial vehicles, the functions of vehicle systems are becoming more and more complex, and the amount of data in vehicle logs is also increasing. However, the traditional method of pulling vehicle logs usually starts uploading and downloading vehicle logs only when an abnormality occurs in the vehicle, and the original plaintext data is used in both uploading and downloading the vehicle logs. This traditional method has the following technical drawbacks: First, the pulled vehicle logs are original data with a large amount of data, resulting in low pulling efficiency; second, the pulled vehicle logs are plaintext data, which makes the vehicle logs at risk of being stolen. Therefore, the industry is in urgent need of a method that can safely and efficiently pull vehicle logs. Summary of the invention

[0003] The main purpose of this application is to provide a method, device, equipment and storage medium for pulling vehicle logs, aiming to solve the technical problem that the prior art cannot pull vehicle logs safely and efficiently.

[0004] To achieve the above purpose, the present application provides a method for extracting vehicle logs, the method comprising the following steps:

[0005] When receiving a log pull instruction from a user, a target encrypted file is pulled from a database based on the log pull instruction and a log index table, where the log index table is a data structure that aggregates index items contained in the original vehicle computer log;

[0006] The target encrypted file is decrypted and decompressed to obtain the target vehicle computer log.

[0007] In one embodiment, when a log pull instruction issued by a user is received, before the step of pulling the target encrypted file from the database based on the log pull instruction and the log index table, it also includes:

[0008] Arrange the log files in the original vehicle computer log in chronological order, and randomly generate encryption keys with the same number as the arranged log files;

[0009] The encryption key is stored in the blockchain, and the arranged log files are compressed and encrypted in sequence based on the encryption key to obtain an encrypted file.

[0010] In one embodiment, the database includes a master database and a slave database, and the method further includes:

[0011] The encrypted file is stored in a main database, and the file name, file identifier and vehicle parts corresponding to the encrypted file contained in the main database are read from the database;

[0012] A preset table is created, and the file name, the file identifier and the vehicle parts are filled into the preset table to obtain a log index table corresponding to the original vehicle log.

[0013] In one embodiment, when a log pull instruction issued by a user is received, the step of pulling a target encrypted file from a database based on the log pull instruction and the log index table includes:

[0014] When receiving a log pull instruction issued by a user, parsing the log pull instruction to obtain a pull index word;

[0015] A target index item is determined in the log index table based on the pulled index word, and a target encrypted file is pulled from the database according to the target index item.

[0016] In one embodiment, the step of decrypting and decompressing the target encrypted file to obtain the target vehicle log includes:

[0017] Obtaining a target encryption key corresponding to the target encrypted file from the blockchain, and converting the target encryption key into a target decryption key based on a preset algorithm;

[0018] The target encrypted file is decrypted and decompressed according to the target decryption key to obtain the target vehicle computer log.

[0019] In one embodiment, after the step of decrypting and decompressing the target encrypted file to obtain the target vehicle machine log, the step further includes:

[0020] Extracting key information from the target vehicle log, and performing abnormality detection and abnormality prediction on the target vehicle based on the key information;

[0021] If an abnormality is detected in the target vehicle, or it is predicted that the target vehicle is about to have an abnormality, the abnormal parts in the target vehicle are located according to the target vehicle computer log, and the location information and abnormal data of the abnormal parts are displayed to the user.

[0022] In addition, to achieve the above purpose, the present application also proposes a vehicle log pulling device, the vehicle log pulling device comprising:

[0023] A log pulling module, configured to pull a target encrypted file from a database based on a log pulling instruction and a log index table when receiving a log pulling instruction issued by a user, wherein the log index table is a data structure that aggregates index items contained in an original vehicle computer log;

[0024] The data decryption module is used to decrypt and decompress the target encrypted file to obtain the target vehicle computer log.

[0025] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle log pulling device, which includes: a memory, a processor, and a vehicle log pulling program stored in the memory and runnable on the processor, and the vehicle log pulling program is configured to implement the steps of the vehicle log pulling method described above.

[0026] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a vehicle log pulling program is stored on the storage medium. When the vehicle log pulling program is executed by the processor, the steps of the vehicle log pulling method described above are implemented.

[0027] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, which includes a vehicle log pulling program, and when the vehicle log pulling program is executed by a processor, the steps of the vehicle log pulling method described above are implemented.

[0028] This application, when receiving a log pull instruction from a user, pulls the target encrypted file from the database based on the log pull instruction and the log index table, the log index table being a data structure that aggregates the index items contained in the original vehicle log; decrypts and decompresses the target encrypted file to obtain the target vehicle log. Compared with the traditional vehicle log pull method, since the above method of this application does not directly pull the plaintext data of the target vehicle log, but pulls the target vehicle log by decrypting and decompressing the target encrypted file corresponding to the target vehicle log, the security of the log pull process is ensured; at the same time, there is no need to pull all the original vehicle logs, but the target encrypted file is pulled from the database in combination with the log pull instruction and the log index table to obtain the target vehicle log, thereby improving the pulling efficiency of the target vehicle log. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of the structure of a vehicle log extraction device in a hardware operating environment involved in an embodiment of the present application;

[0030] Figure 2 This is a flow chart of the first embodiment of the vehicle log extraction method of the present application;

[0031] Figure 3 This is a flow chart of the second embodiment of the vehicle log extraction method of the present application;

[0032] Figure 4 This is a flow chart of the third embodiment of the vehicle log extraction method of the present application;

[0033] Figure 5 This is a structural block diagram of the first embodiment of the vehicle log pulling device of the present application.

[0034] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0035] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0036] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of the vehicle log pulling device in the hardware operating environment involved in the embodiment of the present application.

[0037] like Figure 1 As shown, the vehicle log pulling device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0038] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the vehicle log pulling device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0039] like Figure 1As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a vehicle log pulling program.

[0040] exist Figure 1 In the vehicle log pulling device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the vehicle log pulling device of the present application can be set in the vehicle log pulling device, and the vehicle log pulling device calls the vehicle log pulling program stored in the memory 1005 through the processor 1001, and executes the vehicle log pulling method provided in the embodiment of the present application.

[0041] The present application embodiment provides a method for extracting a vehicle log. Figure 2 , Figure 2 This is a flow chart of the first embodiment of the vehicle log extraction method of the present application.

[0042] In this embodiment, the vehicle log pulling method includes the following steps:

[0043] Step S10: When a log pull instruction issued by a user is received, a target encrypted file is pulled from the database based on the log pull instruction and a log index table, where the log index table is a data structure that aggregates index items contained in the original vehicle computer log.

[0044] It should be noted that the execution subject of the method of this embodiment can be a terminal device with data processing and program running functions, such as an intelligent vehicle machine, a computer, etc., or an electronic device with the same or similar functions, such as the above-mentioned vehicle machine log pulling device. The following takes the vehicle machine log pulling device as an example to illustrate this embodiment and the following embodiments.

[0045] It is understandable that the above-mentioned vehicle log pull instruction refers to a command for extracting system logs or fault logs from the vehicle's onboard system (vehicle computer). These logs usually contain important information about vehicle status, fault information, sensor data, user operation records, etc., which can be used for troubleshooting, performance analysis and system maintenance. In particular, the above-mentioned log pull instruction can be an OBD-II (on-board diagnostic second generation) instruction, or a CAN (controller area network) instruction or other custom API instruction, etc., which is not limited in this embodiment.

[0046] It should be understood that the above log index table is a data structure for storing and managing the index items contained in the original vehicle log generated by the vehicle onboard system, which allows for quick search, access and retrieval of specific log information. The index items include but are not limited to the file name, file identifier, vehicle parts, etc. of the vehicle log.

[0047] In a specific implementation, a search may be performed in the database based on the log pulling instruction and the log index table, and the target encrypted file may be pulled according to the search result.

[0048] Step S20: decrypt and decompress the target encrypted file to obtain the target vehicle log.

[0049] It should be understood that the target encrypted file can be decrypted according to the decryption key corresponding to the target encrypted file to obtain a log file, and then the log file can be decompressed to obtain the above-mentioned target vehicle log. The log file can be stored according to the set file size (such as 10M). If the file size exceeds the set value, a new log file is created to continue to store.

[0050] This embodiment, when receiving a log pull instruction issued by a user, pulls the target encrypted file from the database based on the log pull instruction and the log index table, the log index table being a data structure that aggregates the index items contained in the original vehicle log; decrypts and decompresses the target encrypted file to obtain the target vehicle log. Compared with the traditional vehicle log pull method, the method of this embodiment does not directly pull the plaintext data of the target vehicle log, but pulls the target vehicle log by decrypting and decompressing the target encrypted file corresponding to the target vehicle log, thereby ensuring the security of the log pull process; at the same time, there is no need to pull all the original vehicle logs, but the target encrypted file is pulled from the database in combination with the log pull instruction and the log index table to obtain the target vehicle log, thereby improving the pulling efficiency of the target vehicle log.

[0051] refer to Figure 3 , Figure 3 This is a flow chart of the second embodiment of the vehicle log extraction method of the present application.

[0052] In a feasible implementation manner, before step S10, the following may also be included:

[0053] Step S1: Arrange the log files in the original vehicle log in chronological order, and randomly generate encryption keys with the same number as the arranged log files.

[0054] Step S2: storing the encryption key in the blockchain, and compressing and encrypting the arranged log files in sequence based on the encryption key to obtain an encrypted file.

[0055] It should be noted that the above-mentioned original vehicle computer log can represent the unprocessed log data directly generated and recorded by the vehicle computer during the operation of the vehicle, such as vehicle status information (including vehicle speed, engine speed, coolant temperature, oil pressure, etc.), fault codes, sensor data, driving records (including vehicle driving distance, driving time and fuel consumption, etc.), system events (including starting, shutting down, door switches, etc.) and other data.

[0056] It should be understood that the file name of the log file in the original vehicle log can be named according to its creation time. For example, if the creation time of a log file is 11:14:28 on June 13, 2023, its corresponding file name can be "20230613111428.log", and log is the file format of the log file. Based on this, the time sequence corresponding to all log files in the original vehicle log can be determined according to the file name, and then these log files can be arranged according to the time sequence.

[0057] In a feasible implementation manner, after step S20, the following may also be included:

[0058] Step S30: extract key information from the target vehicle log, and perform abnormality detection and abnormality prediction on the target vehicle based on the key information.

[0059] It should be noted that the above-mentioned key information may include fault information, sensor information, event type information, etc.

[0060] In the specific implementation, characteristic indicators (such as average speed within 10 minutes, maximum engine oil temperature, average throttle position, etc.) can be generated based on key information, and then the characteristic indicators can be compared with the abnormal threshold to achieve abnormal detection of the target vehicle. In addition, key information can also be input into the abnormal prediction model, and the target vehicle can be predicted to be abnormal based on the output of the model. Among them, the abnormal prediction model can be constructed based on the following steps: construct training sets, test sets, and validation sets based on historical data marking anomalies (such as mechanical failures, abnormal operations); select machine learning algorithms for abnormal prediction, such as Random Forest, Gradient Boosting, LSTM (Long Short-Term Memory Network), etc.; use the labeled training sets, test sets, and validation sets to train the prediction model, and adjust the hyperparameters to optimize the model performance, so as to obtain the above-mentioned abnormal prediction model.

[0061] Step S40: If an abnormality is detected in the target vehicle, or it is predicted that the target vehicle is about to have an abnormality, the abnormal parts in the target vehicle are located according to the target vehicle log, and the location information and abnormal data of the abnormal parts are displayed to the user.

[0062] This embodiment arranges the log files in the original vehicle log in chronological order, and randomly generates encryption keys with the same number of arranged log files; stores the encryption keys in the blockchain, and compresses and encrypts the arranged log files in sequence based on the encryption keys to obtain encrypted files; extracts key information from the target vehicle log, and performs abnormality detection and abnormality prediction on the target vehicle based on the key information; if an abnormality is detected in the target vehicle, or it is predicted that the target vehicle is about to have an abnormality, the abnormal parts in the target vehicle are located according to the target vehicle log, and the location information and abnormal data of the abnormal parts are displayed to the user. Compared with the traditional vehicle log pulling method, the above method of this embodiment performs compression and encryption operations through randomly generated encryption keys, and stores the encryption keys in the blockchain, which ensures the security of the vehicle log in the pulling process; at the same time, the target vehicle is detected and predicted according to the key information in the target vehicle log, so that the abnormality of the target vehicle can be discovered in time.

[0063] refer to Figure 4 , Figure 4 This is a flow chart of the third embodiment of the vehicle log extraction method of the present application.

[0064] In a feasible implementation manner, the database includes a master database and a slave database, and the vehicle log pulling method may further include:

[0065] Step S0: storing the encrypted file in a main database, and reading the file name, file identifier and vehicle parts corresponding to the encrypted file contained in the main database from the database.

[0066] It should be noted that the above-mentioned file identifiers may include file storage path identifiers (for example, sdcard / log / 20240828110202.log), file creation time identifiers (for example, 20240828110202 indicates that the file creation time is 11:02:02 on August 28, 2024), vehicle power on / off identifiers (for example, start, end), etc.; the above-mentioned vehicle parts may include power parts, brake parts, suspension parts, temperature control parts, safety protection parts, etc.

[0067] It is understandable that the above-mentioned master database is a database node for processing data write requests, and the above-mentioned slave database is a backup of the master database and is used to process data read requests. In the process of pulling the vehicle log, the slave database, as a backup of the master database, can provide data recovery services when the master database fails. The master database is responsible for write operations, and the slave database is responsible for read operations, which can effectively reduce the load on the master database and improve the overall performance of the system. In addition, through the deployment of multiple slave databases, load balancing can be achieved and the concurrent processing capability of the system can be improved.

[0068] Step S0': creating a preset table, and filling the file name, the file identifier and the vehicle parts into the preset table, to obtain a log index table corresponding to the original vehicle log.

[0069] In a feasible implementation manner, the step S10 may include:

[0070] Step S101: when a log pulling instruction issued by a user is received, the log pulling instruction is parsed to obtain a pulling index word.

[0071] Step S102: determining a target index item in the log index table based on the pulled index word, and pulling a target encrypted file from the database according to the target index item.

[0072] For example, assuming that the log pull instruction issued by the user is to pull the car computer log of the most recent power-on cycle, after parsing the log pull instruction, the pull index word can be obtained as pulling the car computer log between the last car computer power on and off mark start and end. Then, based on the index word, the target index item can be determined in the log index table, that is, the file creation time mark and file storage path mark corresponding to the car computer log between the last car computer power on and off mark start and end in the log index table, and then the target encrypted file can be pulled from the database according to the file creation time mark and file storage path mark.

[0073] In a feasible implementation manner, the step S20 may include:

[0074] Step S201: Obtain a target encryption key corresponding to the target encrypted file from the blockchain, and convert the target encryption key into a target decryption key based on a preset algorithm.

[0075] Step S202: decrypt and decompress the target encrypted file according to the target decryption key to obtain a target vehicle log.

[0076] It is understandable that the above-mentioned preset algorithm can be a character replacement algorithm, and the character A can be replaced with the character B based on the custom rule through the character replacement algorithm. Taking the target encryption key in this embodiment as an example, assuming that the custom rule is "swap the first character and the last character of the character to be replaced, and insert the letter x between the second character and the third character", the character to be replaced (that is, the target encryption key) is "a1b2c3d4", then the target decryption key obtained after the target encryption key is processed by the character replacement algorithm is "41xb2c3da", and then the target encrypted file is decrypted and decompressed according to the target decryption key to obtain the target vehicle log.

[0077] This embodiment stores the encrypted file in a main database, and at the same time reads the file name, file identifier and vehicle parts corresponding to the encrypted file contained in the main database from the database; creates a preset table, and fills the file name, the file identifier and the vehicle parts into the preset table to obtain a log index table corresponding to the original vehicle log; when a log pull instruction issued by a user is received, the log pull instruction is parsed to obtain a pull index term; based on the pull index term, a target index item is determined in the log index table, and a target encrypted file is pulled from the database according to the target index item; a target encryption key corresponding to the target encrypted file is obtained from the blockchain, and the target encryption key is converted into a target decryption key based on a preset algorithm; the target encrypted file is decrypted and decompressed according to the target decryption key to obtain a target vehicle log. Compared with the traditional vehicle log pulling method, the above method of this embodiment effectively reduces the load of the main database and improves the overall performance of the system by storing in the main database and reading from the database; at the same time, the pull index terms obtained by parsing the log pull instruction are used to determine the target index item corresponding to the target encrypted file in the log index table, thereby further improving the indexing efficiency.

[0078] In addition, an embodiment of the present application further proposes a storage medium, on which a vehicle log pulling program is stored. When the vehicle log pulling program is executed by a processor, the steps of the vehicle log pulling method described above are implemented.

[0079] Reference Figure 5 , Figure 5 This is a structural block diagram of the first embodiment of the vehicle log pulling device of the present application.

[0080] like Figure 5 As shown, the vehicle log pulling device proposed in the embodiment of the present application includes:

[0081] The log pulling module 501 is used to pull the target encrypted file from the database based on the log pulling instruction and the log index table when receiving the log pulling instruction issued by the user. The log index table is a data structure that aggregates the index items contained in the original vehicle computer log;

[0082] The data decryption module 502 is used to decrypt and decompress the target encrypted file to obtain the target vehicle computer log.

[0083] This embodiment, when receiving a log pull instruction issued by a user, pulls the target encrypted file from the database based on the log pull instruction and the log index table, the log index table being a data structure that aggregates the index items contained in the original vehicle log; decrypts and decompresses the target encrypted file to obtain the target vehicle log. Compared with the traditional vehicle log pull method, the method of this embodiment does not directly pull the plaintext data of the target vehicle log, but pulls the target vehicle log by decrypting and decompressing the target encrypted file corresponding to the target vehicle log, thereby ensuring the security of the log pull process; at the same time, there is no need to pull all the original vehicle logs, but the target encrypted file is pulled from the database in combination with the log pull instruction and the log index table to obtain the target vehicle log, thereby improving the pulling efficiency of the target vehicle log.

[0084] Based on the first embodiment of the vehicle log pulling device described above in the present application, a second embodiment of the vehicle log pulling device described above in the present application is proposed.

[0085] In this embodiment, the log pulling module 501 is also used to arrange the log files in the original vehicle log in chronological order, and randomly generate encryption keys with the same number as the arranged log files; store the encryption keys in the blockchain, and compress and encrypt the arranged log files in sequence based on the encryption keys to obtain encrypted files.

[0086] Furthermore, the database includes a main database and a slave database, and the log pulling module 501 is also used to store the encrypted file in the main database, and at the same time read the file name, file identifier and vehicle parts corresponding to the encrypted file contained in the main database from the slave database; create a preset table, and fill the file name, file identifier and vehicle parts into the preset table to obtain a log index table corresponding to the original vehicle log.

[0087] Furthermore, the log pulling module 501 is also used to parse the log pulling instruction issued by the user to obtain the pulling index word when receiving the log pulling instruction; determine the target index item in the log index table based on the pulling index word, and pull the target encrypted file from the database according to the target index item.

[0088] Furthermore, the data decryption module 502 is also used to obtain a target encryption key corresponding to the target encrypted file from the blockchain, and convert the target encryption key into a target decryption key based on a preset algorithm; decrypt and decompress the target encrypted file according to the target decryption key to obtain a target vehicle log.

[0089] Furthermore, the data decryption module 502 is also used to extract key information from the target vehicle log, and perform abnormality detection and abnormality prediction on the target vehicle based on the key information; if an abnormality is detected in the target vehicle, or it is predicted that the target vehicle is about to have an abnormality, the abnormal parts in the target vehicle are located according to the target vehicle log, and the location information and abnormal data of the abnormal parts are displayed to the user.

[0090] Other embodiments or specific implementation methods of the vehicle log pulling device of the present application can refer to the above-mentioned method embodiments and will not be repeated here.

[0091] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0092] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0093] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0094] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for extracting vehicle logs, characterized in that: The method comprises the following steps: When receiving a log pull instruction from a user, a target encrypted file is pulled from a database based on the log pull instruction and a log index table, where the log index table is a data structure that aggregates index items contained in the original vehicle computer log; The target encrypted file is decrypted and decompressed to obtain the target vehicle computer log.

2. The vehicle log extraction method according to claim 1, characterized in that: When receiving a log pull instruction issued by a user, before the step of pulling a target encrypted file from a database based on the log pull instruction and the log index table, the method further includes: Arrange the log files in the original vehicle computer log in chronological order, and randomly generate encryption keys with the same number as the arranged log files; The encryption key is stored in the blockchain, and the arranged log files are compressed and encrypted in sequence based on the encryption key to obtain an encrypted file.

3. The vehicle log extraction method according to claim 2, characterized in that: The database includes a master database and a slave database, and the method further includes: The encrypted file is stored in a main database, and the file name, file identifier and vehicle parts corresponding to the encrypted file contained in the main database are read from the database; A preset table is created, and the file name, the file identifier and the vehicle parts are filled into the preset table to obtain a log index table corresponding to the original vehicle log.

4. The vehicle log extraction method according to claim 1, characterized in that: The step of pulling the target encrypted file from the database based on the log pulling instruction and the log index table when receiving the log pulling instruction issued by the user includes: When receiving a log pull instruction issued by a user, parsing the log pull instruction to obtain a pull index word; A target index item is determined in the log index table based on the pulled index word, and a target encrypted file is pulled from the database according to the target index item.

5. The vehicle log extraction method according to claim 2, characterized in that: The step of decrypting and decompressing the target encrypted file to obtain the target vehicle log includes: Obtaining a target encryption key corresponding to the target encrypted file from the blockchain, and converting the target encryption key into a target decryption key based on a preset algorithm; The target encrypted file is decrypted and decompressed according to the target decryption key to obtain the target vehicle computer log.

6. The vehicle log extraction method according to claim 1, characterized in that: After the step of decrypting and decompressing the target encrypted file to obtain the target vehicle machine log, the method further includes: Extracting key information from the target vehicle log, and performing abnormality detection and abnormality prediction on the target vehicle based on the key information; If an abnormality is detected in the target vehicle, or it is predicted that the target vehicle is about to have an abnormality, the abnormal parts in the target vehicle are located according to the target vehicle computer log, and the location information and abnormal data of the abnormal parts are displayed to the user.

7. A vehicle log pulling device, characterized in that: The vehicle log pulling device comprises: A log pulling module, configured to pull a target encrypted file from a database based on a log pulling instruction and a log index table when receiving a log pulling instruction issued by a user, wherein the log index table is a data structure that aggregates index items contained in an original vehicle computer log; The data decryption module is used to decrypt and decompress the target encrypted file to obtain the target vehicle computer log.

8. A vehicle log pulling device, characterized in that: The device includes: a memory, a processor, and a vehicle log pulling program stored in the memory and executable on the processor, wherein the vehicle log pulling program is configured to implement the steps of the vehicle log pulling method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a vehicle log pulling program is stored on the storage medium. When the vehicle log pulling program is executed by a processor, the steps of the vehicle log pulling method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product includes a vehicle log pulling program, and when the vehicle log pulling program is executed by a processor, the steps of the vehicle log pulling method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Log query method, log storage method and related equipment

    CN112084193A

  • Log processing method, device and equipment based on database

    CN113590556A

  • Vehicle operation log processing system and method

    CN115242841A