Vehicle-mounted vehicle-cloud integrated log collection and analysis method, vehicle and cloud server
By using the log collection component of a single Master multi-Slave architecture in cars, unified management and uploading log data in the on-board system, the problem of decentralized log management is solved, and the log retrieval and analysis of vehicle-cloud is realized, ensuring data security and integrity meet the needs of log acquisition and query.
Patent Information
- Application Number
- CN202210890761.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-07-27
AI Technical Summary
Existing automotive technologies are difficult to manage the distributed log data in the on-board system uniformly, and cannot meet the needs of local log acquisition on the vehicle side and cloud vehicle log acquisition. They lack effective log retrieval and analysis capabilities.
Log collection components using a single Master multi-Slave architecture are equipped with log collection Master components and Slave components on the controller platform of the vehicle terminal. Log collection, subcontracting, encrypting and uploading log data through cloud configuration information to realize the integrated logging of the vehicle and cloud. Unified management and storage, and parsing and analysis in the cloud.
It realizes the integrated log retrieval and analysis of vehicle-cloud, supports local acquisition of vehicle-side and cloud-based vehicle log acquisition, ensures the security and integrity of data, and provides the function of querying according to custom conditions, which facilitates users to check vehicle status and maintain.
Smart Images

Figure CN115333800B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a log collection and analysis method, a vehicle and a cloud server, and in particular to a vehicle-mounted, vehicle-cloud integrated log collection and analysis method, a vehicle and a cloud server. Background Art
[0002] At present, the automobile industry has entered an era of transformation and innovation, and the role that software assumes or plays in automobiles is becoming increasingly important. From the initial "mechanically defined automobiles" to "electrically defined automobiles", then to "electronically defined automobiles" and finally to the current "software defined automobiles", software will be deeply involved in the entire life cycle of automobiles. The log data generated by the software running on the vehicle will play an important role in vehicle safety, after-sales service, and continuous optimization of software.
[0003] Traditional automotive technology is based on the development and maintenance model of parts. After entering the SDV (Software Define Vehicle) era, the domain controller and central computing platform were introduced, thus evolving into a development and maintenance model based on the whole vehicle. In the current vehicle system, the vehicle-mounted Android has system log data, and the vehicle-mounted ECU application also has local log data, but these log data are scattered everywhere and need to be viewed using different technical means. They cannot be managed in a unified manner and can no longer meet people's requirements. Summary of the invention
[0004] The purpose of the present invention is to provide a vehicle-cloud integrated log collection and analysis method, system, vehicle and cloud server. The first technical problem to be solved by the present invention is to uniformly collect, parse and store the application logs of various platforms on the vehicle side and the application logs on the cloud side, support the local acquisition of the logs on the vehicle side and the acquisition of the whole vehicle logs on the cloud side, realize the log retrieval and analysis of the vehicle-cloud integration, and provide support for business development;
[0005] The second technical problem to be solved by the present invention is to draw on the current mainstream log collection architecture technology of distributed systems, with the help of software-defined automobile hardware platforms (central computing platform, regional controller, advanced automatic driving controller, cockpit controller), and use the above hardware platforms to build a vehicle-side platform log collection framework, complete the vehicle-side platform application log collection, support local terminals such as OBD to obtain the whole vehicle log in real time, and regularly upload the whole vehicle log to the cloud. The cloud log service parses and stores the full amount of vehicle log data, which can be retrieved and analyzed in the cloud.
[0006] The present invention provides the following scheme:
[0007] A vehicle-mounted vehicle-cloud integrated log collection and analysis method specifically includes:
[0008] The controller platform on the vehicle side is equipped with a log collection component based on a single-master and multiple-slave architecture;
[0009] The CSC controller is equipped with a log collection Master component, and each controller is equipped with a log collection Slave component;
[0010] The log collection Slave component receives the log collection configuration information sent by the cloud, collects application logs on the controller according to the configuration rules, and uploads them to the log collection Master component;
[0011] The log collection Master component receives the log collection configuration information sent by the cloud, and stores the log data reported by the Slave component locally;
[0012] The Master component packages the log data in a lossless compressed form according to the configuration rules, encrypts the packaged data, and uploads the log data packets to the cloud after encryption.
[0013] Furthermore, the log collection Master component receives configuration information sent from the cloud, and the configuration information specifically includes: upload data packet size, upload frequency;
[0014] The log data reported by the Slave component is stored locally, specifically stored in a local cache;
[0015] The Master component packages the log data in a lossless compressed form according to the configuration rules. After the log data is packaged, the Master component encrypts the packaged data. The encryption is performed in a combination of DES+RSA. The improved DES session key is used to encrypt the log information, and the RSA key is used to encrypt the session key and the information summary.
[0016] Furthermore, it also includes:
[0017] View the real-time log information on the Master component through the vehicle terminal, and display the log data from the whole vehicle, controller to a single application;
[0018] The Master component uploads log data packets to the cloud and supports breakpoint resumption during the upload process.
[0019] A vehicle-mounted vehicle-cloud integrated log collection and analysis method specifically includes:
[0020] The cloud server sends log collection configuration information to the log collection slave component, wherein the configuration information specifically includes: upload data packet size and upload frequency;
[0021] The cloud server receives the log data packet, which is divided and encrypted by the Master component according to the configuration rules, and the log data packet is uploaded to the cloud after encryption;
[0022] After receiving the data, the cloud server uses the key to decrypt and verify the information summary, decompress the log data, and parse and store the log data according to the SDK.
[0023] A vehicle-mounted vehicle-cloud integrated log collection and analysis system, specifically comprising:
[0024] The log collection component is equipped with a module. The log collection component based on a single-master and multiple-slave architecture is installed on the vehicle-side controller platform. The log collection Master component is installed on the CSC controller, and the log collection Slave component is installed on each controller.
[0025] Log collection configuration information module: The log collection Master component receives the configuration information sent by the cloud and stores the log data reported by the Slave component locally;
[0026] In the data packetization and encryption transmission module, the Master component packets the log data in the form of lossless compression according to the configuration rules, encrypts the packetized data, and uploads the log data packet to the cloud after encryption.
[0027] A vehicle-mounted vehicle-cloud integrated log collection and analysis system, specifically comprising:
[0028] The log collection configuration information sending module, the cloud server sends the log collection configuration information to the log collection slave component, and the configuration information specifically includes: upload data packet size, upload frequency;
[0029] Log data packetization and encryption module: the cloud server receives the log data packet, and the master component packetizes and encrypts the log data according to the configuration rules, and uploads the log data packet to the cloud after encryption;
[0030] Data decryption, parsing and storage module: After receiving the data, the cloud server uses the key to decrypt and verify the information summary, decompress the log data, and parse and store the log data according to the SDK.
[0031] An electronic device, characterized in that it includes: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method.
[0032] A computer-readable storage medium stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the method.
[0033] A vehicle, comprising:
[0034] Electronic equipment for realizing a vehicle-car-cloud integrated log collection and analysis method;
[0035] A processor, the processor runs a program, and when the program runs, the steps of the vehicle-mounted vehicle-cloud integrated log collection and analysis method are executed from the data output by the electronic device;
[0036] A storage medium is used to store a program, which, when running, executes the steps of a vehicle-mounted vehicle-cloud integrated log collection and analysis method for data output from an electronic device.
[0037] A cloud server, specifically comprising: a processor, a communication interface, a memory and a communication bus, wherein:
[0038] The processor, the communication interface, and the memory communicate with each other via a communication bus; the memory stores a vehicle-mounted vehicle-cloud integrated log collection and analysis system, and when the computer program is executed by the processor, the processor executes the steps of the method.
[0039] Compared with the prior art, the present invention has the following advantages:
[0040] The present invention uniformly collects, parses and stores the application logs of various vehicle-side platforms and cloud-side application logs, supports local acquisition of vehicle-side logs and acquisition of whole vehicle logs in the cloud, realizes vehicle-cloud integrated log retrieval and analysis, and provides support for business development and expansion.
[0041] The present invention draws on the current mainstream log collection architecture technology of distributed systems, installs a log collection component based on a single Master and multiple Slave architecture on the vehicle-side controller platform, installs a log collection Master component on the CSC controller, and installs a log collection Slave component on various other controllers to uniformly manage, store, manage, package, encrypt and upload logs to the cloud. The cloud log service combines cloud application logs to analyze and display the full amount of vehicle log data for user use. The cloud log service provides the function of querying vehicle log data according to custom conditions. Users can classify and retrieve log data according to information such as application, controller, log level, etc., which is convenient for users to check the vehicle status and maintain the vehicle.
[0042] The vehicle-side platform supported by the present invention utilizes local vehicle-mounted terminals such as OBD to obtain the vehicle log in real time, and can display the log data from the whole vehicle, controller to a single application; during the log data transmission process, it is packaged and encrypted to ensure security and encryption efficiency, and supports breakpoint resumption to ensure data integrity. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is a flow chart of the vehicle-car-cloud integrated log collection and analysis method (vehicle side).
[0045] Figure 2 This is the architecture diagram of the vehicle-mounted, vehicle-cloud integrated log collection and analysis system (vehicle side).
[0046] Figure 3 It is a flow chart of the vehicle-car-cloud integrated log collection and analysis method (cloud side).
[0047] Figure 4 This is the architecture diagram of the vehicle-mounted and vehicle-cloud integrated log collection and analysis system (cloud side).
[0048] Figure 5 It is a system architecture diagram of a specific embodiment.
[0049] Figure 6 It is a system architecture diagram of an electronic device. DETAILED DESCRIPTION
[0050] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] like Figure 1The vehicle-mounted vehicle-cloud integrated log collection and analysis method process (vehicle side) of the present invention shown specifically includes: in this embodiment, the log level can support multiple levels, and can perform different operations according to the priority from high to low. For example: the log level is 7 levels, and the priority of the log level is OFF, ERROR, WARN, INFO, DEBUG, TRACE, ALL from high to low. Based on the log level, a vehicle-mounted application is developed according to the log collection SDK, and the vehicle-mounted application is installed on the vehicle-side controller.
[0052] Step V1: Install a log collection component based on a single-master and multiple-slave architecture on the vehicle-side controller platform;
[0053] Step V2: Install the log collection Master component on the CSC controller and the log collection Slave component on each controller; the log collection component is set up on the vehicle side to store, manage, package, encrypt and upload the logs to the cloud;
[0054] Preferably, the log collection Slave component receives the log collection configuration information sent from the cloud, collects the application logs on the controller according to the configuration rules, and uploads them to the log collection Master component;
[0055] Preferably, the configuration information specifically includes: upload data packet size, upload frequency;
[0056] Step V3: The log collection Master component receives the log collection configuration information sent by the cloud, and locally stores the log data reported by the Slave component, preferably storing the log data in a local cache;
[0057] Preferably, the locally cached log data is cleaned up regularly according to a configured period.
[0058] Step V4: The Master component packages the log data in the form of lossless compression according to the configuration rules. Preferably, the log data can be packaged in the form of lossless compression in the zip package format, and the packaged data is encrypted. After the encryption is completed, the log data packet is uploaded to the cloud. In this embodiment, the log upload supports breakpoint resumption to ensure the integrity of the data. The Master component uploads the log data packet to the cloud and supports breakpoint resumption during the upload process.
[0059] Preferably, the Master component encrypts the sub-package data, and the encryption is performed in a combination of DES+RSA, using an improved DES session key to encrypt log information, and an RSA key to encrypt session keys and information digests.
[0060] Preferably, it also includes: viewing real-time log information on the Master component through the vehicle-mounted terminal, and displaying the log data in a manner from the entire vehicle, the controller to a single application.
[0061] For the method steps disclosed in the above embodiments, the method steps are described as a series of action combinations for the purpose of simple description, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0062] like Figure 2 The architecture diagram of the vehicle-mounted vehicle-cloud integrated log collection and analysis system (vehicle side) shown in the figure specifically includes:
[0063] The log collection component is equipped with a module. The log collection component based on a single-master and multiple-slave architecture is installed on the vehicle-side controller platform. The log collection Master component is installed on the CSC controller, and the log collection Slave component is installed on each controller.
[0064] Log collection configuration information module: The log collection Master component receives the configuration information sent by the cloud and stores the log data reported by the Slave component locally;
[0065] In the data packetization and encryption transmission module, the Master component packets the log data in the form of lossless compression according to the configuration rules, encrypts the packetized data, and uploads the log data packet to the cloud after encryption.
[0066] It is worth noting that although only the log collection component mounting module, the log collection configuration information module and the data packet encryption transmission module are disclosed in this system, it does not mean that the composition of this system is limited to the above basic functional modules. On the contrary, what the present invention wants to express is: on the basis of the above basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with the prior art to form an infinite number of embodiments or technical solutions. In other words, this system is open rather than closed. Just because this embodiment only discloses individual basic functional modules, it cannot be considered that the scope of protection of the claims of the present invention is limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above devices are described in terms of functions and are described separately in various units and modules. Of course, when implementing the present invention, the functions of each unit and module can be implemented in the same or one or more software and / or hardware.
[0067] The device implementation described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present implementation scheme. Those of ordinary skill in the art may understand and implement it without creative work.
[0068] like Figure 3 The flowchart of the vehicle-mounted vehicle-cloud integrated log collection and analysis method shown (cloud), the method steps specifically include:
[0069] Step C1: The cloud server sends log collection configuration information to the log collection Slave component, wherein the configuration information specifically includes: upload data packet size and upload frequency;
[0070] Step C2: The cloud server receives the log data packet, and the Master component divides and encrypts the log data according to the configuration rules, and uploads the log data packet to the cloud after encryption;
[0071] Step C3: After receiving the data, the cloud server uses the key to decrypt and verify the information summary, decompress the log data, and parse and store the log data according to the SDK.
[0072] For the method steps disclosed in the above embodiments, the method steps are described as a series of action combinations for the purpose of simple description, but those skilled in the art should know that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0073] like Figure 4 The architecture diagram of the vehicle-car-cloud integrated log collection and analysis system shown in the figure (cloud) specifically includes:
[0074] The log collection configuration information sending module, the cloud server sends the log collection configuration information to the log collection slave component. The configuration information specifically includes: upload data packet size, upload frequency;
[0075] Log data packetization and encryption module: the cloud server receives the log data packet, and the master component packetizes and encrypts the log data according to the configuration rules, and uploads the log data packet to the cloud after encryption;
[0076] Data decryption, parsing and storage module: After receiving the data, the cloud server uses the key to decrypt and verify the information summary, decompress the log data, and parse and store the log data according to the SDK.
[0077] It is worth noting that, although only the log collection configuration information sending module, the log data subpackaging and encryption module and the data decryption parsing storage module are disclosed in this system, it does not mean that the composition of this system is limited to the above basic functional modules. On the contrary, what the present invention wants to express is: on the basis of the above basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with the prior art to form an infinite number of embodiments or technical solutions. In other words, this system is open rather than closed. It cannot be considered that the scope of protection of the claims of the present invention is limited to the disclosed basic functional modules just because this embodiment discloses only individual basic functional modules. At the same time, for the convenience of description, the above devices are described by functions divided into various units and modules. Of course, when implementing the present invention, the functions of each unit and module can be implemented in the same or one or more software and / or hardware.
[0078] The device implementation described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present implementation scheme. Those of ordinary skill in the art may understand and implement it without creative work.
[0079] like Figure 5 As shown, this implementation is based on other embodiments of the present application and their combination, and integrates the vehicle-side and cloud-side log collection and analysis methods and systems to form an overall solution that includes the vehicle-side and cloud-side log collection and analysis methods and systems.
[0080] In this embodiment, a vehicle-mounted vehicle-cloud integrated log collection and analysis technology is proposed, the purpose of which is to build a vehicle-mounted log collection system for a variety of vehicle-mounted systems and vehicle-mounted platforms, support regular reporting according to the rules configured and issued by the cloud, and obtain the whole vehicle log information on demand, and use cloud data analysis technology to analyze and display the complete vehicle log, control the operation information of the whole vehicle or vehicle-mounted software, and provide support for the subsequent optimization and improvement of the application of each platform of the whole vehicle. The present invention can form different vehicle-mounted log collection systems for a variety of vehicle-mounted systems and vehicle-mounted platforms. The exemplary hardware platform classification is shown in the following table:
[0081] Serial number Proposed controller operating system 1 Central computing platform A core linux M / C core ROTS 2 Cockpit Domain Controller A core QNX, android 3 Advanced autonomous driving system A core linux M / C core ROTS 4 Cockpit Controller A core linux M / C core ROTS 5 ... ....
[0082] Step S1: The log level in this embodiment supports 7 levels, and the priority from high to low is OFF, ERROR, WARN, INFO, DEBUG, TRACE, and ALL;
[0083] Step S2: The application developer on each controller develops the vehicle application according to the log collection SDK of the corresponding system and installs the application on the vehicle-side controller;
[0084] Step S3: Each controller platform of the car is equipped with a log collection component. The component adopts a single-Master-multiple-Slave architecture. Each controller hardware platform is equipped with a log collection Slave component to collect application logs on the controller. The CSC controller is equipped with a log collection Master component to uniformly store, manage, package, encrypt and finally upload the logs collected by the Slave components of each controller to the cloud.
[0085] Step S4: The log collection Slave component receives the log collection configuration information sent from the cloud, such as log level, collection frequency, reporting frequency, data packet size, etc., and collects the application logs on the controller according to the configuration rules and reports them to the log collection Master component;
[0086] Step S5: The log collection Master component receives the configuration information sent from the cloud, such as the upload data packet size, upload frequency, etc., and stores the log data reported by the Slave component in the local cache;
[0087] Step S6: The real-time log information on the Master component can be viewed through an on-board terminal similar to OBD, and the log data can be displayed from the entire vehicle, controller to a single application;
[0088] Step S7: Before uploading the data to the cloud, the Master component packages the log data in the form of lossless compression into zip packages according to the configuration rules;
[0089] Step S8: After the log data is sub-packed, the Master component encrypts the sub-packed data. To ensure security and encryption efficiency, encryption is performed in a combination of DES+RSA, using an improved DES session key to encrypt log information and an RSA key to encrypt session keys and information digests;
[0090] Step S9: After encryption is completed, the Master component uploads the log data packet to the cloud. The log upload supports breakpoint resumption to ensure data integrity.
[0091] Step S10: After receiving the data, the cloud log service decrypts it with a key and verifies the information summary, decompresses the log data, and performs data analysis on the log according to the SDK, and finally stores it in the cloud system;
[0092] Step S11: The vehicle-side log collection Master component cleans up the locally cached log data according to the configured period. If the local space is not full, the collection operation will also be triggered;
[0093] Step S11: The cloud log service provides the function of querying the vehicle log data according to custom conditions. Users can classify and retrieve log data according to information such as application, controller, log level, etc.
[0094] Step S12: The cloud log service combines the cloud application log to analyze and display the full amount of vehicle log data for user use.
[0095] It can be seen from the accompanying drawings that the present invention is based on a single Master and multiple Slave architecture on the vehicle side, and log collection components are installed in the vehicle driving dynamics control system VDS, the cockpit domain controller CSC (Cockpit Space Center) and the automatic driving control system HAD on the vehicle side, wherein a log collection Master component is installed on the CSC, and a log collection Slave component is installed on each other controller, and each different controller fully or partially executes the log collection and analysis method of steps S1 to S12 in this embodiment. The cloud includes cloud applications and cloud log servers. The cloud applications fully or partially execute the log collection and analysis method of steps S1 to S12 in this embodiment. The cloud applications interact with the cloud log servers. The log servers parse, store, query / analyze and display logs from cloud applications and / or vehicle-side applications. The log collection and analysis method of steps S1 to S12 in this embodiment is fully or partially executed to uniformly collect, parse and store the vehicle-side application logs of various platforms and cloud application logs. The vehicle-side local acquisition of logs and the cloud-based vehicle log acquisition are supported to realize vehicle-cloud integrated log retrieval and analysis, and provide support for business development and business expansion.
[0096] It can be seen from this embodiment that a log collection component based on a single-Master-Multiple-Slave architecture is installed on the vehicle-side controller platform. The vehicle-side platform can also use local vehicle terminals such as OBD to obtain the vehicle log in real time. The cloud log service provides the function of querying the vehicle log data according to custom conditions. Users can classify and retrieve log data according to information such as application, controller, log level, etc., which is convenient for users to check the vehicle status and maintain the vehicle.
[0097] like Figure 6 As shown, the present invention also discloses electronic equipment and storage media corresponding to the vehicle-mounted vehicle-cloud integrated log collection and analysis method and system:
[0098] An electronic device, characterized in that it includes: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of a vehicle-mounted vehicle-cloud integrated log collection and analysis method.
[0099] A computer-readable storage medium is characterized in that it stores a computer program that can be executed by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of a vehicle-mounted vehicle-cloud integrated log collection and analysis method.
[0100] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0101] The electronic device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory. The operating system can be any one or more computer operating systems that implement electronic device control through a process, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. In addition, in an embodiment of the present invention, the electronic device can be a handheld device such as a smart phone or a tablet computer, or can be an electronic device such as a desktop computer or a portable computer, which is not particularly limited in the embodiment of the present invention.
[0102] The execution subject of the electronic device control in the embodiment of the present invention may be an electronic device, or a functional module in the electronic device that can call and execute a program. The electronic device may obtain the firmware corresponding to the storage medium. The firmware corresponding to the storage medium is provided by the supplier. The firmware corresponding to different storage media may be the same or different, which is not limited here. After the electronic device obtains the firmware corresponding to the storage medium, the firmware corresponding to the storage medium may be written into the storage medium, specifically, the firmware corresponding to the storage medium may be burned into the storage medium. The process of burning the firmware into the storage medium may be implemented using existing technology, which will not be described in detail in the embodiment of the present invention.
[0103] The electronic device may also obtain a reset command corresponding to the storage medium. The reset command corresponding to the storage medium is provided by the supplier. The reset commands corresponding to different storage media may be the same or different, and are not limited here.
[0104] At this time, the storage medium of the electronic device is a storage medium in which the corresponding firmware is written, and the electronic device can respond to the reset command corresponding to the storage medium in the storage medium in which the corresponding firmware is written, so that the electronic device resets the storage medium in which the corresponding firmware is written according to the reset command corresponding to the storage medium. The process of resetting the storage medium according to the reset command can be implemented by the existing technology and will not be described in detail in the embodiments of the present invention.
[0105] The present invention also discloses a vehicle, which specifically comprises:
[0106] Electronic equipment for realizing a vehicle-car-cloud integrated log collection and analysis method;
[0107] A processor, the processor runs a program, and when the program runs, the steps of the vehicle-mounted vehicle-cloud integrated log collection and analysis method are executed from the data output by the electronic device;
[0108] A storage medium is used to store a program, which, when running, executes the steps of a vehicle-mounted vehicle-cloud integrated log collection and analysis method for data output from an electronic device.
[0109] Obviously, those skilled in the art will understand that, in the present embodiment, the electronic equipment, processor and storage medium of the vehicle execute an on-board vehicle-cloud integrated log collection and analysis method applicable to the vehicle side.
[0110] The present invention also discloses a cloud server, which specifically includes: a processor, a communication interface, a memory and a communication bus, wherein:
[0111] The processor, the communication interface, and the memory communicate with each other via a communication bus; the memory stores a vehicle-mounted vehicle-cloud integrated log collection and analysis system, and when the computer program is executed by the processor, the processor executes the steps of the vehicle-mounted vehicle-cloud integrated log collection and analysis method.
[0112] Obviously, those skilled in the art will understand that, in this embodiment, the system stored in the cloud server and the method of execution are a vehicle-mounted vehicle-cloud integrated log collection and analysis method and system applicable to the cloud.
[0113] Those skilled in the art will appreciate that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined.
[0114] It should be noted that certain words are used in this specification and claims to refer to specific components. Those skilled in the art should understand that vehicle manufacturers may use different nouns to refer to the same component. This specification and claims do not use the difference in nouns as a way to distinguish components, but use the difference in the functions of the components as the criterion for distinction. As mentioned throughout the specification and claims, "including" or "comprising" is an open term, so it should be understood as "including but not limited to". The preferred embodiment of the present invention will be described later, but the description is based on the general principles of the specification and is not used to limit the scope of the present invention. The scope of protection of the present invention shall be based on the definition of the claims attached thereto.
[0115] The technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0116] In several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method can also be implemented in other ways. The apparatus embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the apparatus, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0117] Taking the single Master and multiple Slave architecture of the present invention as an example, those skilled in the art can understand that the remote network device used here includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud consisting of a plurality of servers. Here, the cloud server is composed of a large number of computers or network servers based on cloud computing, wherein cloud computing is a type of distributed computing, a super virtual computer consisting of a group of loosely coupled computer sets. In the embodiments of the present invention, communication between the remote network device, the terminal device and the WNS server can be achieved through any communication method, including but not limited to mobile communications based on 3GPP, LTE, and WIMAX, computer network communications based on TCP / IP and UDP protocols, and short-range wireless transmission methods based on Bluetooth and infrared transmission standards.
[0118] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0119] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0120] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the device for distributing messages according to an embodiment of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0121] In addition, to simplify the description and discussion, and in order not to obscure one or more embodiments of the present specification, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, devices may be shown in the form of block diagrams to avoid obscuring one or more embodiments of the present specification, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which one or more embodiments of the present specification will be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that one or more embodiments of the present specification may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A vehicle-mounted vehicle-cloud integrated log collection and analysis method, characterized in that: Specifically include: The controller platform on the vehicle side is equipped with a log collection component based on a single-master and multiple-slave architecture. The CSC controller is equipped with a log collection master component, and each controller is equipped with a log collection slave component. The cloud server sends log collection configuration information to the log collection slave component, wherein the configuration information specifically includes: upload data packet size and upload frequency; The log collection Slave component receives the log collection configuration information sent by the cloud, collects application logs on the controller according to the configuration rules, and uploads them to the log collection Master component; The log collection Master component receives the log collection configuration information sent by the cloud, and stores the log data reported by the Slave component locally; The cloud server receives the log data packet, which is divided and encrypted by the Master component according to the configuration rules, and the log data packet is uploaded to the cloud after encryption; The Master component packages the log data in a lossless compressed form according to the configuration rules, encrypts the packaged data, and uploads the log data packets to the cloud after encryption. After receiving the data, the cloud server uses the key to decrypt and verify the information summary, decompress the log data, and parse and store the log data according to the SDK; The cloud application interacts with the cloud log server for data exchange. The log server parses, stores, queries / analyzes and displays logs from the cloud application and / or vehicle-side application, fully or partially executes the log collection and analysis method, and uniformly collects, parses and stores the vehicle-side application logs and cloud application logs, supporting the vehicle-side local acquisition of logs and the cloud-based vehicle log acquisition.
2. The vehicle-mounted vehicle-cloud integrated log collection and analysis method according to claim 1 is characterized in that: The log collection Master component receives configuration information sent from the cloud, and the configuration information specifically includes: upload data packet size and upload frequency; The log data reported by the Slave component is stored locally, specifically stored in a local cache; The Master component packages the log data in a lossless compressed form according to the configuration rules. After the log data is packaged, the Master component encrypts the packaged data. The encryption is performed in a combination of DES+RSA. The improved DES session key is used to encrypt the log information, and the RSA key is used to encrypt the session key and the information summary.
3. The vehicle-mounted vehicle-cloud integrated log collection and analysis method according to claim 1 is characterized in that: Also includes: View the real-time log information on the Master component through the vehicle terminal, and display the log data from the whole vehicle, controller to a single application; The Master component uploads log data packets to the cloud and supports breakpoint resumption during the upload process.
4. A vehicle-mounted vehicle-cloud integrated log collection and analysis system, characterized in that: Specifically include: The log collection component is equipped with a module. The log collection component based on a single-master and multiple-slave architecture is installed on the vehicle-side controller platform. The log collection Master component is installed on the CSC controller, and the log collection Slave component is installed on each controller. The cloud server sends log collection configuration information to the log collection slave component, wherein the configuration information specifically includes: upload data packet size and upload frequency; Log collection configuration information module: The log collection Slave component receives the log collection configuration information sent by the cloud, collects application logs on the controller according to the configuration rules, and uploads them to the log collection Master component; The log collection Master component receives the log configuration information sent by the cloud and stores the log data reported by the Slave component locally; The cloud server receives the log data packet, which is divided and encrypted by the Master component according to the configuration rules, and the log data packet is uploaded to the cloud after encryption; The Master component packages the log data in a lossless compressed form according to the configuration rules, encrypts the packaged data, and uploads the log data packets to the cloud after encryption. Data packet encryption transmission module: The Master component packets the log data in the form of lossless compression according to the configuration rules, encrypts the packet data, and uploads the log data packet to the cloud after encryption. After receiving the data, the cloud server uses the key to decrypt and verify the information summary, decompress the log data, and parse and store the log data according to the SDK; The cloud application interacts with the cloud log server for data exchange. The log server parses, stores, queries / analyzes and displays logs from the cloud application and / or vehicle-side application, fully or partially executes the log collection and analysis method, and uniformly collects, parses and stores the vehicle-side application logs and cloud application logs, supporting the vehicle-side local acquisition of logs and the cloud-based vehicle log acquisition.
5. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: It stores a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the method described in any one of claims 1 to 3.
7. A vehicle, characterized in that: Specifically include: An electronic device, used to implement the vehicle-mounted vehicle-cloud integrated log collection and analysis method as described in any one of claims 1 to 3; A processor, wherein the processor runs a program, and when the program runs, the data output from the electronic device executes the steps of the vehicle-mounted vehicle-cloud integrated log collection and analysis method according to any one of claims 1 to 3; A storage medium for storing a program, wherein the program, when running, executes the steps of the vehicle-mounted vehicle-cloud integrated log collection and analysis method as described in any one of claims 1 to 3 for data output from an electronic device.
8. A cloud server, characterized in that: Specifically include: A processor, a communication interface, a memory, and a communication bus, wherein: The processor, the communication interface, and the memory communicate with each other via a communication bus; The memory stores the vehicle-mounted vehicle-cloud integrated log collection and analysis system as described in claim 4. When the computer program is executed by the processor, the processor executes the steps of any one of the methods described in claims 1 to 3.
