Vehicle log processing method and device
By using a vehicle controller in an intelligent vehicle system to acquire and collect log data based on log collection form information, the problem of inaccurate and difficult processing in the prior art is solved, and efficient and accurate log data collection and processing is achieved.
Patent Information
- Application Number
- CN202510087784.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-05-06
AI Technical Summary
In existing intelligent vehicle systems, log data collection is usually divided into modules, resulting in a large amount of useless information uploading, increasing the burden of data processing, and it is difficult to collect interactive log information between various vehicle systems in a coherent manner.
The log collection form information is obtained through the vehicle controller, and the log collection time information is based on the log collection level information and the log collection time information, and the log data of the target vehicle system module is accurately collected and uploaded to the cloud server.
It realizes the precise collection of log data required, reduces the amount of data collection, improves the efficiency of data processing, reduces the collection and processing of invalid interferes with logs, and retains more detailed data.
Smart Images

Figure CN119942675A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and in particular to a vehicle log processing method and device. Background Art
[0002] The operation log data generated by the intelligent vehicle system is crucial for vehicle monitoring and fault diagnosis. The effective collection and use of this data is of great significance for improving vehicle performance and optimizing user experience.
[0003] Due to the large number of vehicle configuration items and the complex and ever-changing usage scenarios, in current intelligent vehicle systems, the collection of log data is usually divided by modules. Specifically, the intelligent vehicle system is divided into multiple independent modules, and the full amount of log data is collected and uploaded for each module.
[0004] However, the above log processing method will result in a large amount of useless information being uploaded, increasing the burden of data processing. Summary of the invention
[0005] The embodiments of the present application provide a vehicle log processing method and device to achieve the effect of accurately collecting vehicle logs and reducing the difficulty of data processing.
[0006] In a first aspect, an embodiment of the present application provides a vehicle log processing method, which is applied to a vehicle controller, where the vehicle controller is used to control multiple vehicle systems, each of which includes at least one vehicle system module; the method includes:
[0007] Obtaining log collection form information, where the log collection form information includes identification information corresponding to a target vehicle system module, log collection level information, and log collection time information, where the target vehicle system module is at least one of a plurality of vehicle system modules;
[0008] Collect log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information;
[0009] Upload log data to the cloud server.
[0010] In a possible implementation, obtaining log collection form information includes:
[0011] According to the log collection identification information, a form acquisition request is sent to the cloud server, and the form acquisition request is used to enable the cloud server to send the log collection form information to the vehicle controller according to the form acquisition request;
[0012] Receive log collection form information sent by the cloud server.
[0013] In a possible implementation, uploading log data to a cloud server includes:
[0014] Upload log data to the cloud database of the cloud server;
[0015] Send log data upload information to the cloud server.
[0016] In a second aspect, an embodiment of the present application provides a vehicle log processing method, which is applied to a cloud server, and the method includes:
[0017] Sending log collection form information to a vehicle controller; the vehicle controller is used to control multiple vehicle systems, each vehicle system includes at least one vehicle system module; the log collection form information includes identification information, log collection level information and log collection time information corresponding to the target vehicle system module; the target vehicle system module is at least one of the multiple vehicle system modules; the log collection form information is used to instruct the vehicle controller to collect log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information;
[0018] Receive log data uploaded by the vehicle controller;
[0019] Process the log data.
[0020] In a possible implementation manner, before sending the log collection form information to the vehicle controller, the method further includes:
[0021] Generate log collection tasks according to vehicle log collection instructions;
[0022] When it is determined that the log collection task is different from the historical log collection task, log collection form information and log collection identification information corresponding to the log collection form information are generated according to the vehicle log collection instruction.
[0023] In a possible implementation, sending log collection form information to the vehicle controller includes:
[0024] Sending log collection identification information to the vehicle controller, the log collection identification information is used to enable the vehicle controller to send a form acquisition request to the cloud server according to the log collection identification information when the vehicle is powered on;
[0025] Receive form get request;
[0026] According to the form acquisition request, the log collection form information is sent to the vehicle controller.
[0027] In a possible implementation, processing the log data includes:
[0028] Obtaining unencrypted log data from the first data unit of the cloud database;
[0029] Decrypt the undecrypted log data;
[0030] The decrypted log data is stored in the second data unit of the cloud database.
[0031] In a third aspect, an embodiment of the present application provides a vehicle log processing device, including:
[0032] An acquisition module, used to acquire log collection form information, the log collection form information including identification information corresponding to a target vehicle system module, log collection level information and log collection time information, the target vehicle system module being at least one of a plurality of vehicle system modules;
[0033] A collection module, used to collect log data of a target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information;
[0034] The upload module is used to upload log data to the cloud server.
[0035] In a fourth aspect, an embodiment of the present application provides a vehicle log processing device, including:
[0036] A sending module is used to send log collection form information to a vehicle controller; the vehicle controller is used to control multiple vehicle systems, each vehicle system includes at least one vehicle system module; the log collection form information includes identification information, log collection level information and log collection time information corresponding to the target vehicle system module; the target vehicle system module is at least one of the multiple vehicle system modules; the log collection form information is used to instruct the vehicle controller to collect log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information;
[0037] A receiving module, used for receiving log data uploaded by the vehicle controller;
[0038] The processing module is used to process the log data.
[0039] In a fifth aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0040] Memory stores computer-executable instructions;
[0041] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and various possible implementations of the first aspect.
[0042] In a sixth aspect, an embodiment of the present application provides a vehicle, comprising the electronic device of the fifth aspect.
[0043] In a seventh aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;
[0044] Memory stores computer-executable instructions;
[0045] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above second aspect and various possible implementations of the second aspect.
[0046] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the first aspect and various possible implementation methods of the first aspect, or the second aspect and various possible implementation methods of the second aspect.
[0047] In a ninth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and various possible implementations of the first aspect, or the second aspect and various possible implementations of the second aspect.
[0048] The vehicle log processing method and device provided in the embodiment of the present application, the vehicle controller obtains the log collection form information, and collects the log data of the target vehicle system module according to the log collection level information and log collection time information indicated in the log collection form information, thereby accurately collecting the required log data, reducing the amount of data collection, and improving the efficiency of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0050] Figure 1 A schematic diagram of the vehicle architecture provided for this application;
[0051] Figure 2 Schematic diagram of the vehicle log processing method provided in this application Figure 1 ;
[0052] Figure 3 Schematic diagram of the vehicle log processing method provided in this application Figure 2 ;
[0053] Figure 4 Schematic diagram of the vehicle log processing method provided in this application Figure 3 ;
[0054] Figure 5 The structure of the vehicle log processing device provided in this application is shown as follows: Figure 1 ;
[0055] Figure 6 The structure of the vehicle log processing device provided in this application is shown as follows: Figure 2 ;
[0056] Figure 7 A schematic diagram of the structure of an electronic device provided in this application.
[0057] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0058] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0059] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0060] With the vigorous development of the smart car industry and technological innovation, smart driving and smart car systems have become an important part of modern cars. These systems not only improve the convenience and safety of driving, but also greatly enrich the user's driving experience.
[0061] Due to the large number of vehicle configuration items and the complex and varied usage scenarios, the various systems of the vehicle work together, and a large amount of operation log data is generated during operation. These log data play a vital role in monitoring vehicle status, diagnosing system faults, optimizing system performance, and improving user experience. In current smart car systems, log data collection is usually divided according to modules. That is, the vehicle system is divided into multiple independent modules, and then log data is collected and uploaded for each module, and finally the operation log data generated by multiple vehicle systems is collected and uploaded.
[0062] In order to achieve comprehensive log records, this method adopts the method of full system collection, which will result in the uploading of a large amount of useless information, which not only wastes network bandwidth resources, but also increases the burden of data processing and reduces the efficiency of data processing. In addition, due to the complex communication interactions between the various systems of the vehicle, dividing the collection granularity according to modules will lead to incoherent interaction log information between the various systems of the vehicle, increasing the difficulty of log analysis and processing. In order to save storage resources, the collected vehicle system log level is often at the warning (WARN) level, which results in a large number of missing details in the collected log data, and cannot fully reflect the operating status and fault information of the system.
[0063] Based on the above problems, the present application provides a vehicle log processing method and device, in which the vehicle controller collects the log data of the target vehicle system module according to the log collection form information configured by the user, and uploads it to the cloud server, so that the collected log data is accurate and effective, thereby saving the transmission and processing costs of data collection.
[0064] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0065] First, the vehicle architecture on which vehicle log collection is based is introduced. Figure 1 As shown, the vehicle includes multiple vehicle systems, and there is interactive communication between the multiple vehicle systems. The multiple vehicle systems may run in the form of process applications on the same or different systems on chips (System on Chip, SOC), and the vehicle systems use data frames containing multiple signals to communicate. The vehicle system coordinates and unifies the log generation method in each vehicle system by adding information such as the log level and log function required by the vehicle-side log management module in the interactive signal.
[0066] Multiple vehicle systems use the same log management library. The management and processing logic of the logs generated by each vehicle system are implemented in the log management library and are uniformly managed by the vehicle-side log management module.
[0067] When the vehicle controller receives a log collection task from the cloud server, the vehicle-side log management module instructs the vehicle system to generate logs of specified log levels and formats according to the default configuration or the configuration of the log collection task. The vehicle-side log collection module collects log data from the vehicle system according to the default configuration or the configuration of the log collection task, and summarizes and packages it for uploading to the cloud. In other words, when the vehicle receives a log collection task, the vehicle-side log management module completes the log configuration, triggers the trigger source, and the vehicle system generates the corresponding log. When the vehicle-side log collection module detects that the required logs have met the requirements, it packages the logs and uploads them to the cloud server.
[0068] In addition, the vehicle-side log management module, as a vehicle system log management executor, also has functions such as log segmentation, log level management, and timed log cleaning.
[0069] By applying the above vehicle architecture, the log data generated by vehicle systems running under the same or different SOCs can be managed in a unified manner. Through the trigger source identification, the operation information of this trigger in each system can be quickly determined, that is, the log data that needs to be collected can be determined.
[0070] Figure 2 Schematic diagram of the vehicle log processing method provided in this application Figure 1 ,like Figure 2 As shown, the method of this embodiment includes the following steps:
[0071] S101. The cloud server sends log collection form information to the vehicle controller.
[0072] In this embodiment, the vehicle controller is used to control multiple vehicle systems, and each vehicle system includes at least one vehicle system module.
[0073] The log collection form information is generated by the cloud server according to the user's input instructions, including the identification information corresponding to the target vehicle system module specified by the user, the log collection level information and the log collection time information, and may also include other signal values such as the collection path. Where there is identification information corresponding to multiple target vehicle system modules, the target vehicle system modules may be modules of the same vehicle system or modules of different vehicle systems.
[0074] S102: The vehicle controller collects log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information.
[0075] Specifically, the vehicle controller collects and packages the log data of the target vehicle system module according to the log collection time information and log collection level information indicated in the log collection form information. The collected logs can be historical logs or newly added logs.
[0076] Optionally, for newly added logs, the vehicle controller may control the target vehicle system module to generate logs of target level, target format and target time period according to the signal value in the log collection form information.
[0077] S103: The vehicle controller uploads log data to the cloud server.
[0078] S104: The cloud server processes the log data.
[0079] Optionally, the cloud server can desensitize and store the log data.
[0080] Specifically, the cloud server obtains the unencrypted log data from the first data unit of the cloud database, decrypts the unencrypted log data, and stores the decrypted log data in the second data unit of the cloud database. Optionally, the first data unit is an unencrypted data unit, and the second data unit is a decrypted data unit.
[0081] In the vehicle log processing method provided in this embodiment, the vehicle controller collects the log data of the target vehicle system module according to the log collection requirements configured by the user, thereby completing the log data collection task more accurately and effectively, reducing the collection and processing of invalid interference logs, retaining more detailed data, reducing the difficulty of data processing, and improving the efficiency of data transmission and processing. By collecting the log data of the target vehicle system module specified by the user, the interactive data can be collected coherently, which also reduces the difficulty of log analysis and processing and improves the convenience of log data analysis.
[0082] Figure 3 Schematic diagram of the vehicle log processing method provided in this application Figure 2 ,like Figure 3 As shown, the method of this embodiment includes the following steps:
[0083] S201. The cloud server generates a log collection task according to the vehicle log collection instruction.
[0084] In this embodiment, the cloud server is used to provide the management capability of log collection tasks, including task creation, issuance and status monitoring, among which task creation is the key function of the cloud server and the key to realizing flexible collection of vehicle log data. Operators can create tasks on the cloud management platform, that is, input vehicle log collection instructions. Among them, the cloud management platform is the front end of the task management platform, which can be used to configure tasks, issue tasks, view task status, download and upload data, etc.
[0085] The collected logs can be historical logs or newly added logs. The collection instructions for historical logs include the target vehicle system module and the log collection time range. The collection instructions for newly added logs include the target vehicle system module, the log collection time range, the log collection level, and may also include the link for log collection.
[0086] S202: When the cloud server determines that the log collection task is different from the historical log collection task, it generates log collection form information and log collection identification information corresponding to the log collection form information according to the vehicle log collection instruction.
[0087] Specifically, after the cloud server generates a log collection task, it first determines whether there is a duplicate task. If there is a duplicate task, the cloud server feeds back task error information to the cloud management platform. When the cloud server determines that there is no duplicate task, it generates log collection identification information and log collection form information for the log collection task. It should be understood that the log collection identification information and the log collection form information correspond one to one.
[0088] S203: The cloud server sends log collection identification information to the vehicle controller.
[0089] Optionally, the cloud server can send the log collection identification information to the vehicle controller via the Message Queuing Telemetry Transport (MQTT) protocol.
[0090] Optionally, the cloud server may also send the log collection form information together with the log collection identification information to the vehicle controller. In this case, if the vehicles remain powered on during the time period from when the vehicle controller receives the log collection form information to when the log collection upload is completed, there is no need to execute steps S204 and S205.
[0091] S204: The vehicle controller sends a form acquisition request to the cloud server according to the log collection identification information.
[0092] S205. The cloud server sends the log collection form information to the vehicle controller according to the form acquisition request.
[0093] In this embodiment, the cloud server sends the log collection form information and the log collection identification information to the vehicle controller together. If the vehicle is powered off before uploading the log data, the vehicle controller cannot save the log collection form information. It is necessary to obtain the log collection identification information from the vehicle database when the vehicle is powered on, and send a form acquisition request to the cloud server based on the log collection identification information.
[0094] Optionally, the vehicle controller may send log collection identification information through a Hypertext Transfer Protocol Secure (HTTPS) interface of a cloud server, and the cloud server determines corresponding log collection form information according to the log collection identification information and sends it to the vehicle controller.
[0095] In this embodiment, in view of the situation where the log collection form information cannot be stored when the vehicle is powered off, a method for the vehicle controller to obtain the log collection form information is provided, ensuring that the vehicle controller can collect log data according to the log collection form information and ensuring that the log collection task can be completed smoothly.
[0096] Figure 4 Schematic diagram of the vehicle log processing method provided in this application Figure 3 ,like Figure 4 As shown, the method of this embodiment includes the following steps:
[0097] S301. The cloud server generates a log collection task according to the vehicle log collection instruction.
[0098] In this embodiment, the operator can create a task through the cloud management platform, that is, input a vehicle log collection instruction.
[0099] S302: The cloud server determines whether there is a task that is the same as the log collection task. If so, execute step S315; if not, execute step S303.
[0100] Specifically, the cloud server may compare the log collection task with the tasks being executed or completed to determine whether the log collection task is repeated.
[0101] S303: The cloud server generates log collection form information and log collection identification information corresponding to the log collection form information according to the log collection instruction.
[0102] Optionally, the cloud server can also generate a TOKEN for uploading the cloud database and send it to the vehicle controller.
[0103] S304. The cloud server sends log collection identification information to the vehicle controller via MQTT.
[0104] When the vehicle is online or powered on next time, the vehicle controller can receive the log collection identification information through the MQTT client. When the vehicle is online, the vehicle controller can also receive the log collection form information.
[0105] S305: The vehicle controller queries the log collection form information according to the log collection identification information.
[0106] If it is found from the vehicle database, step S308 is executed; if it is not found from the vehicle database, step S306 is executed.
[0107] Specifically, when the vehicle is not online, the vehicle controller cannot receive the log collection identification information and the log collection form information. When the vehicle is powered on next time, the vehicle controller can receive the log collection identification information and obtain the log collection form information from the cloud server according to the log collection identification information, that is, execute step S306.
[0108] If the vehicle is online, the vehicle controller may receive the log collection identification information and the log collection form information, and then the log collection form information may be queried in the vehicle database, ie, step S308 is executed.
[0109] It should be understood that if the vehicle receives a log collection task while it is powered on, and is powered off before the task is completed, the log collection form information cannot be saved, and step S306 should be executed at this time.
[0110] S306: The vehicle controller sends a form acquisition request to the cloud server according to the log collection identification information.
[0111] Specifically, the vehicle controller can send a form acquisition request to the cloud server through the HTTPS interface. After receiving the request, the cloud server can send the TOKEN used to upload the cloud database to the vehicle controller again.
[0112] S307: The cloud server sends the log collection form information to the vehicle controller according to the form acquisition request.
[0113] The log collection form information includes identification information, log collection level information and log collection time information corresponding to the target vehicle system module, and the target vehicle system module is at least one of the multiple vehicle system modules.
[0114] Optionally, the cloud server can perform task timing and feedback the task status to the cloud management platform when the task times out. The operator can manually control the task to stop, otherwise, the vehicle controller can continue the log collection task.
[0115] S308. The vehicle controller collects log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information.
[0116] S309: The vehicle controller uploads log data to the cloud database.
[0117] In this embodiment, the cloud database is an object storage service (OSS). It can be understood that the log data stored at this time is not desensitized data.
[0118] S310: The vehicle controller sends information about uploading log data to the cloud server.
[0119] The vehicle controller can notify the cloud server through the cloud HTTPS interface.
[0120] S311, the cloud server determines whether the log data is uploaded successfully. If the upload is successful, step S312 is executed; if the upload is not successful, step S315 is executed.
[0121] S312: The cloud server obtains unencrypted log data from the first data unit of the cloud database.
[0122] S313. The cloud server decrypts the log data.
[0123] S314: The cloud server determines whether the log data is successfully decrypted. If the decryption is successful, S315 is executed; if the decryption is not successful, S316 is executed.
[0124] S315. The cloud server stores the successfully decrypted log data in the second data unit of the cloud database.
[0125] S316: The cloud server modifies the status of the log collection task and sends a task status notification to the cloud management platform, ending the log collection task.
[0126] In this embodiment, by configuring the log collection scheme on the cloud management platform, the log collection task can be managed more conveniently, and the ability to collect vehicle log data in a customized manner is realized. The task of collecting log data is completed through dynamic log collection task configuration, thereby ensuring that the log data obtained from the vehicle is accurate and effective, saving the transmission and processing costs of data collection, and effectively managing and using the vehicle-cloud collaborative link.
[0127] Figure 5 The structure of the vehicle log processing device provided in this application is shown as follows: Figure 1 ,like Figure 5 As shown, the vehicle log processing device 10 of this embodiment is used to implement the operation corresponding to the vehicle controller in any of the above method embodiments. The vehicle log processing device 10 provided in this embodiment includes:
[0128] An acquisition module 11 is used to acquire log collection form information, where the log collection form information includes identification information corresponding to a target vehicle system module, log collection level information, and log collection time information, where the target vehicle system module is at least one of a plurality of vehicle system modules;
[0129] A collection module 12, used to collect log data of a target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information;
[0130] The uploading module 13 is used to upload log data to the cloud server.
[0131] The vehicle log processing device 10 provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0132] Figure 6 The structure of the vehicle log processing device provided in this application is shown as follows: Figure 2 ,like Figure 6 As shown, the vehicle log processing device 20 of this embodiment is used to implement the operation corresponding to the cloud server in any of the above method embodiments. The vehicle log processing device 20 provided in this embodiment includes:
[0133] The sending module 21 is used to send log collection form information to the vehicle controller; the vehicle controller is used to control multiple vehicle systems, each vehicle system includes at least one vehicle system module; the log collection form information includes identification information, log collection level information and log collection time information corresponding to the target vehicle system module; the target vehicle system module is at least one of the multiple vehicle system modules; the log collection form information is used to instruct the vehicle controller to collect log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information;
[0134] A receiving module 22, used for receiving log data uploaded by the vehicle controller;
[0135] The processing module 23 is used to process the log data.
[0136] The vehicle log processing device 20 provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0137] Figure 7 This is a schematic diagram of the structure of an electronic device provided in this application. Figure 7 As shown, the electronic device 30 provided in this embodiment includes: a memory 31 and at least one processor 32. Optionally, the device 30 also includes a communication component 33. The memory 31, the processor 32 and the communication component 33 are connected via a bus 34.
[0138] In the specific implementation process, at least one processor 32 executes the computer execution instructions stored in the memory 31, so that at least one processor 32 executes the above-mentioned method corresponding to the vehicle controller or the method corresponding to the cloud server.
[0139] The specific implementation process of the processor 32 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0140] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the invention may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0141] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
[0142] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0143] The present application also provides a vehicle, including a vehicle log processing device corresponding to a vehicle controller or an electronic device corresponding to a vehicle controller.
[0144] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0145] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0146] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0147] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in a device as discrete components.
[0148] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0149] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0150] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0151] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0152] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0153] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A vehicle log processing method, characterized in that: Applied to a vehicle controller, the vehicle controller is used to control a plurality of vehicle systems, each of the vehicle systems includes at least one vehicle system module; the method comprises: Obtaining log collection form information, wherein the log collection form information includes identification information corresponding to a target vehicle system module, log collection level information, and log collection time information, wherein the target vehicle system module is at least one of the plurality of vehicle system modules; Collecting log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information; Upload the log data to the cloud server.
2. The method according to claim 1, characterized in that Get log collection form information, including: Sending a form acquisition request to the cloud server according to the log collection identification information, wherein the form acquisition request is used to enable the cloud server to send the log collection form information to the vehicle controller according to the form acquisition request; Receive the log collection form information sent by the cloud server.
3. The method according to claim 1 or 2, characterized in that: Uploading the log data to the cloud server includes: Uploading the log data to a cloud database of the cloud server; Send the log data upload information to the cloud server.
4. A vehicle log processing method, characterized in that: Applied to a cloud server, the method includes: Sending log collection form information to a vehicle controller; the vehicle controller is used to control multiple vehicle systems, each of which includes at least one vehicle system module; the log collection form information includes identification information, log collection level information and log collection time information corresponding to a target vehicle system module; the target vehicle system module is at least one of the multiple vehicle system modules; the log collection form information is used to instruct the vehicle controller to collect log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information; receiving the log data uploaded by the vehicle controller; The log data is processed.
5. The method according to claim 4, characterized in that Before sending the log collection form information to the vehicle controller, it also includes: Generate log collection tasks according to vehicle log collection instructions; When it is determined that the log collection task is different from the historical log collection task, the log collection form information and the log collection identification information corresponding to the log collection form information are generated according to the vehicle log collection instruction.
6. The method according to claim 5, characterized in that Send log collection form information to the vehicle controller, including: Sending the log collection identification information to the vehicle controller, wherein the log collection identification information is used to enable the vehicle controller to send a form acquisition request to the cloud server according to the log collection identification information when the vehicle is powered on; Receiving the form acquisition request; According to the form acquisition request, the log collection form information is sent to the vehicle controller.
7. The method according to any one of claims 4 to 6, characterized in that: Processing the log data includes: Acquire the unencrypted log data from the first data unit of the cloud database; Decrypting the undecrypted log data; The decrypted log data is stored in the second data unit of the cloud database.
8. A vehicle log processing device, characterized in that: include: An acquisition module, used to acquire log collection form information, wherein the log collection form information includes identification information corresponding to a target vehicle system module, log collection level information, and log collection time information, wherein the target vehicle system module is at least one of the plurality of vehicle system modules; A collection module, used for collecting log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information; The uploading module is used to upload the log data to the cloud server.
9. A vehicle log processing device, characterized in that: include: A sending module, used for sending log collection form information to the vehicle controller; The vehicle controller is used to control a plurality of vehicle systems, each of the vehicle systems comprising at least one vehicle system module; The log collection form information includes identification information corresponding to the target vehicle system module, log collection level information and log collection time information; the target vehicle system module is at least one of the multiple vehicle system modules; The log collection form information is used to instruct the vehicle controller to collect the log data of the target vehicle system module corresponding to the identification information according to the log collection level information and the log collection time information; A receiving module, used for receiving the log data uploaded by the vehicle controller; A processing module is used to process the log data.
10. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 3.
11. A vehicle, characterized in that: The vehicle includes the electronic device as claimed in claim 10.