Log information processing method and device and related equipment

By running coded log code statements in the vehicle operating system, integrating and compressing log information, the problem of large amount of log information and large amount of compressed computing is solved, and the effect of reducing computing resource usage is achieved.

CN119493781APending Publication Date: 2025-02-21BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311054835.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The existing vehicle terminal has a large amount of log information data, which leads to high bandwidth requirements for log information during transmission, and the existing log information is compressed and calculated, which occupies a lot of computing resources.

Method used

By obtaining the encoded executable file of the vehicle operating system, the encoded executable file is run, which includes the encoded log code statement, and the encoding of the encoded log code statement contains the log type information. Obtain the timestamp encoding of each coded log code statement during the execution of the coded executable file, integrate the log type encoding and timestamp encoding, obtain the encoded log information, and compress it.

Benefits of technology

It reduces the amount of computing processing log information, reduces the use of system resources, and improves the efficiency of log information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119493781A_ABST
    Figure CN119493781A_ABST
Patent Text Reader

Abstract

The invention discloses a log information processing method and device and related equipment. The method comprises the steps that under the condition that a coding executable file of a vehicle operating system is obtained, the coding executable file is operated, the coding executable file comprises at least one coding log code statement, and the coding log code statement is a code statement obtained by coding log type information in log code statements of the vehicle operating system; the coded log code statement comprises a log type code; obtaining a timestamp code when each coding log code statement is executed in the running process of the coding executable file; integrating the log type code of each coded log code statement and the timestamp code during execution to obtain coded log information of each coded log code statement; and compressing the coded log information of the at least one coded log code statement to obtain compressed log information of the vehicle operating system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicle technology, and in particular, relates to a log information processing method, device and related equipment. Background Art

[0002] As vehicles have more and more functions and their intelligence is getting higher and higher, in order to better understand the operating status and abnormal conditions of various functional applications of the vehicle and improve the stability and reliability of the applications, it is necessary to collect various log data generated during the operation of the applications. The log information data volume of existing vehicle terminals is large, which makes the bandwidth requirements for log information high during transmission. Therefore, the log information needs to be compressed, but the existing log information compression calculation is very large, resulting in more computing resources occupied by the vehicle terminal. Summary of the invention

[0003] The embodiments of the present application provide a log information processing method, apparatus and related equipment, which can eliminate the need to encode log type information, thereby reducing the amount of calculation for processing log information and further reducing the occupation of system resources.

[0004] In a first aspect, an embodiment of the present application provides a log information processing method, including:

[0005] In the case of acquiring a coding executable file of the vehicle operating system, running the coding executable file, the coding executable file includes at least one coding log code statement, the coding log code statement is a code statement obtained by encoding log type information in each log code statement of the vehicle operating system, and the coding log code statement includes a log type code;

[0006] Obtaining the timestamp code when each of the coding log code statements is executed during the running of the coding executable file;

[0007] Integrate the log type code and the execution timestamp code of each of the coding log code statements to obtain coding log information of each of the coding log code statements;

[0008] The coded log information of the at least one coded log code statement is compressed to obtain compressed log information of the vehicle operating system.

[0009] In a second aspect, an embodiment of the present application provides a log information processing device, including:

[0010] an operation module, configured to, when a coding executable file of a vehicle operating system is acquired, execute the coding executable file, wherein the coding executable file includes at least one coding log code statement, wherein the coding log code statement is a code statement obtained by encoding log type information in each log code statement of the vehicle operating system, and the coding log code statement includes a log type code;

[0011] A first acquisition module is used to acquire the timestamp code when each of the encoding log code statements is executed during the running of the encoding executable file;

[0012] An integration module, used for integrating the log type code and the execution timestamp code of each of the coding log code statements to obtain the coding log information of each of the coding log code statements;

[0013] The compression module is used to compress the coded log information of the at least one coded log code statement to obtain compressed log information of the vehicle operating system.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the log information processing method as described in any one of the above is implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the log information processing method as described in any one of the above is implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the log information processing method as described in any one of the above.

[0017] In a sixth aspect, an embodiment of the present application provides a vehicle, comprising: an electronic device, wherein the electronic device is used to implement the log information processing method as described in any one of the above.

[0018] The log information processing method, device and related equipment of the embodiment of the present application can run the coded executable file when the coded executable file of the vehicle operating system is obtained, and the coded executable file includes at least one coded log code statement, and the coded log code statement is a code statement obtained by encoding the log type information in each log code statement of the vehicle operating system, and the coded log code statement includes a log type code; and obtain the timestamp code when each coded log code statement is executed during the running of the coded executable file; then integrate the log type code of each coded log code statement and the timestamp code when executed to obtain the coded log information of each coded log code statement; finally, compress the coded log information of at least one coded log code statement to obtain the compressed log information of the vehicle operating system. In this way, in the embodiment of the present application, the coded log code statement includes the log type code obtained by encoding the log type information. When running the coded executable file, there is no need to encode the log type information, thereby reducing the amount of calculation for processing log information, and further reducing the occupation of system resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0020] Figure 1 It is a flow chart of the log information processing method provided in the embodiment of the present application;

[0021] Figure 2 It is a structural diagram of a log information processing device provided in an embodiment of the present application;

[0022] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0025] As vehicles have more and more functions and their intelligence is getting higher and higher, in order to better understand the operating status and abnormal conditions of various functional applications of the vehicle and improve the stability and reliability of the applications, it is necessary to collect various log data generated during the operation of the applications. The log information data volume of existing vehicle terminals is large, which makes the bandwidth requirements for log information high during transmission. Therefore, the log information needs to be compressed, but the existing log information compression calculation is very large, resulting in more computing resources occupied by the vehicle terminal.

[0026] In order to solve the problems of the prior art, the embodiments of the present application provide a log information processing method, apparatus and related equipment. The log information processing method provided by the embodiments of the present application is first introduced below.

[0027] Figure 1 FIG. 1 is a flow chart showing a log information processing method provided by an embodiment of the present application. Figure 1 As shown, a log information processing method may include the following steps S101 to S104:

[0028] S101. When a coding executable file of a vehicle operating system is obtained, the coding executable file is run, where the coding executable file includes at least one coding log code statement, where the coding log code statement is a code statement obtained by encoding log type information in each log code statement of the vehicle operating system, and the coding log code statement includes a log type code;

[0029] S102, obtaining the timestamp code of each code log code statement when it is executed during the running process of the code executable file;

[0030] S103, integrating the log type code and the execution timestamp code of each coding log code statement to obtain coding log information of each coding log code statement;

[0031] S104. Compress the encoding log information of at least one encoding log code statement to obtain compressed log information of the vehicle operating system.

[0032] The log information processing method of the embodiment of the present application can run the coded executable file when the coded executable file of the vehicle operating system is obtained, and the coded executable file includes at least one coded log code statement, and the coded log code statement is a code statement obtained by encoding the log type information in each log code statement of the vehicle operating system, and the coded log code statement includes a log type code; and obtains the timestamp code when each coded log code statement is executed during the running of the coded executable file; then integrates the log type code of each coded log code statement and the timestamp code when executed to obtain the coded log information of each coded log code statement; finally, compresses the coded log information of at least one coded log code statement to obtain the compressed log information of the vehicle operating system. In this way, in the embodiment of the present application, the coded log code statement includes the log type code obtained by encoding the log type information, and when running the coded executable file, there is no need to encode the log type information, thereby reducing the amount of calculation for processing log information, and further reducing the occupation of system resources.

[0033] The above log information processing method is mainly applied to vehicle-mounted terminals. This application is not limited to this, and can also be a terminal device with data processing capabilities such as a vehicle central control system.

[0034] The specific implementation methods of the above steps are introduced below.

[0035] In S101, the above-mentioned coded executable file is a computer file, which is a complete executable machine language code compiled by a compiler and can be executed or run as a program in a computer.

[0036] The coded executable file may include at least one coded log code statement, wherein the coded log code statement is a code statement obtained by encoding log type information in each log code statement of the vehicle operating system, and the coded log code statement includes a log type code.

[0037] The above log code statement may be the content output by calling the log output interface, for example, it corresponds to Log.i("Task%s assigned to container:[ContainerID:%s], operation took%fseconds", task, container, time) in the code.

[0038] The above log type information may be, for example, INF0 Task\x11 assigned to container:[ContainerID:\x11], operation took\x12 seconds, and the corresponding log type code ID is 4.

[0039] In S102, the above-mentioned timestamp coding can be to determine the timestamp coding of the timestamp when each coding log code statement is executed during the running of the coding executable file as the timestamp coding, or it can also be to encode the timestamp information when each coding log code statement is executed during the running of the coding executable file according to a preset first coding rule to obtain the timestamp coding of the execution of each coding log code statement.

[0040] In some embodiments, in order to facilitate the user to view the log information, the above S102 may specifically include:

[0041] Get the timestamp information of each code log code statement when it is executed during the running of the code executable file;

[0042] Each time stamp information is encoded according to a preset first encoding rule to obtain a time stamp code for the execution of each encoding log code statement.

[0043] The above timestamp information, illustratively, may be 2022-04-25-T00:00:01.000.

[0044] The above-mentioned timestamp information is encoded according to the preset first encoding rule to obtain the timestamp code of the execution of each encoded log code statement. For example, the timestamp information can be 2022-04-25-T00:00:01.000, and the increment is encoded in milliseconds using a variable length encoding scheme (compared with the timestamp code of the last log message), and 0xE3 is obtained, so the timestamp code only occupies one or two bytes.

[0045] In this embodiment, by obtaining the timestamp information of each encoding log code statement when it is executed during the running of the encoding executable file, it is convenient for users to view the log information, and encode each timestamp information according to the preset first encoding rule to obtain the timestamp code of the execution of each encoding log code statement, so as to reduce the data volume of the log information.

[0046] In S103, the above encoding log information may be, for example, an encoding log information table in a tabular form, as shown in the following table:

[0047] Timestamp Log Type 0xE3 4

[0048] As an implementation of the present application, during the running of the encoded executable file, when each encoded log code statement is executed, non-dictionary variable information may also be generated. In order to further reduce the data volume of the log information, before S103, the following may also be included:

[0049] Get the non-dictionary variable information when each encoding log code statement is executed during the running of the encoding executable file;

[0050] Encode each non-dictionary variable information according to a preset second encoding rule to obtain a non-dictionary variable encoding of each encoding log code statement;

[0051] The above S103 may specifically include:

[0052] The log type code, execution timestamp code and non-dictionary variable code of each coding log code statement are integrated to obtain the coding log information of each coding log code statement.

[0053] The above non-dictionary variable information, illustratively, may be a floating point number or an integer generated when each coding log code statement is executed during the running of the coding executable file. The non-dictionary variable information is non-repetitive.

[0054] The above-mentioned preset second encoding rule, for example, can be a hexadecimal encoding rule corresponding to an integer, or an existing floating-point encoding rule corresponding to a floating-point number. In the present application, the preset second encoding rule is not limited to this, and can also be other encoding rules, which are not specifically limited here.

[0055] The above-mentioned non-dictionary variable information is encoded according to the preset second encoding rule to obtain the non-dictionary variable encoding of each encoding log code statement. For example, the non-dictionary variable information 0.335 can be encoded according to the floating point encoding rule to obtain the non-dictionary variable encoding 0x000053DA of the encoding log code statement.

[0056] The above integrates the log type code, the execution timestamp code and the non-dictionary variable code of each coding log code statement to obtain the coding log information of each coding log code statement. For example, the coding log information table in tabular form is shown in the following table:

[0057]

[0058] In this embodiment, during the running of the encoded executable file, non-dictionary variable information may be generated when each encoded log code statement is executed. In order to further reduce the data volume of the log information, each non-dictionary variable information is converted into a non-dictionary variable code, thereby reducing the computational complexity of processing the log information.

[0059] In S104, the encoding log information of at least one encoding log code statement is compressed to obtain compressed log information of the vehicle operating system. For example, the encoding log information of at least one encoding log code statement can be compressed using a fast lossless Zstandard compression method to obtain compressed log information of the vehicle operating system. In the present application, the compression method is not limited to this, and other compression methods can also be used, which are not specifically limited here.

[0060] As another implementation of the present application, in order to directly obtain the code of each log type, thereby reducing the amount of calculation for processing log information, before the above S101, the following may also be included:

[0061] Obtaining a source code file of a vehicle operating system, the source code file including at least one log code statement, the log code statement including log type information;

[0062] The source code file is compiled to generate a coding executable file of the vehicle operating system. The log type code of each coding log code statement in the coding executable file is obtained by encoding the log type information in each log code statement.

[0063] The above-mentioned source code file may refer to an uncompiled text file written in accordance with a certain programming language specification. For example, it may contain source code, the file name suffix of which is .c, and needs to be further compiled into machine language by a compiler.

[0064] In some embodiments, the above processing of the source code file to obtain a coded executable file of the vehicle operating system includes:

[0065] Encoding the log type information in each log code statement according to a preset first mapping table to obtain a log type code of each log code statement, wherein the preset first mapping table includes at least one set of preset first corresponding relationships, and each preset first corresponding relationship is used to characterize a corresponding relationship between the log type information and the log type code;

[0066] Compile the source code file to generate an executable file of the vehicle operating system;

[0067] Each log type code is set in each log code statement of the executable file to obtain a coded executable file of the vehicle operating system.

[0068] The above-mentioned preset first mapping table includes at least one set of preset first corresponding relationships, and each preset first corresponding relationship is used to represent the corresponding relationship between log type information and log type code.

[0069] The log type information in each log code statement is encoded according to the preset first mapping table to obtain the log type code of each log code statement. For example, the log type information may be INF0 Task\x11assigned to container:[ContainerID:\x11], operation took\x12 seconds, and the corresponding log type code is 4.

[0070] The source code file is compiled to generate the executable file of the vehicle operating system. Specifically, the source code file is compiled by a compiler to generate the executable file of the vehicle operating system.

[0071] In this embodiment, the log type information of each log code statement in the source code file is encoded according to a preset first mapping table to obtain the log type code of each log code statement, and each log type code is set in each log code statement of the executable file to obtain the encoded executable file of the vehicle operating system, so that when the vehicle-mounted terminal processes the log information, it can directly obtain each log type code, thereby reducing the computational amount of processing the log information.

[0072] As another implementation of the present application, in order to further reduce the amount of calculation for processing log information, the above log code statement may also include dictionary variable information;

[0073] Before the above-mentioned setting of each log type code in each log code statement of the executable file to obtain the coded executable file of the vehicle operating system, it also includes:

[0074] Encoding the dictionary variable information in each log code statement according to a preset second mapping table to obtain the dictionary variable code of each log code statement, wherein the preset second mapping table includes at least one set of preset second corresponding relationships, and each preset second corresponding relationship is used to represent the corresponding relationship between the dictionary variable information and the dictionary variable code;

[0075] The codes of each log type are set in each log code statement of the executable file to obtain the coded executable file of the vehicle operating system, including:

[0076] Each log type code and each dictionary variable code are set in each log code statement of the executable file to obtain a coded executable file of the vehicle operating system.

[0077] Since a dictionary is an unordered set of objects, it can be marked with curly brackets {}, which is a set of key:value. Among them, the key must use an immutable variable type, such as a string, a number, a tuple, and the value can be an object of any type. The above dictionary variable information can be the information of the key-value variable, for example, it can be the task ID and the container ID, but this application is not limited to this and is not specifically limited here.

[0078] The dictionary variable information in each log code statement is encoded according to the preset second mapping table to obtain the dictionary variable encoding of each log code statement. For example, the dictionary variable information is task_12, and is encoded according to the preset second mapping table, and the corresponding dictionary variable encoding is 0; the dictionary variable information is Container_15, and is encoded according to the preset second mapping table, and the corresponding dictionary variable encoding is 1.

[0079] In this embodiment, since the log code statement can also include dictionary variable information, the dictionary variable information in each log code statement is encoded, and each log type code and each dictionary variable code are set in each log code statement of the executable file to obtain the encoded executable file of the vehicle operating system, so that when the vehicle terminal processes the log information, it can directly obtain each log type code and dictionary variable code, further reducing the computational amount of processing the log information.

[0080] In order to facilitate the understanding of the log information processing method in the embodiment of the present application, the application process of the log information processing method is described here, as follows:

[0081] 1. During the compilation phase, the content output by calling the log output interface is preprocessed, and the log type and dictionary variables are directly translated into code.

[0082] For example, in the source code file, the corresponding log code statement is: Log.i ("Task task_12 assigned to container: [ContainerID: Container_15], operation took %f seconds", task, container, time). Data analysis is performed on the log code statement in the source code file, and a mapping table of log types and a mapping table of dictionary variables are pre-established. During compilation, the mapping table of log types and the mapping table of dictionary variables are combined, and the index value of the dictionary variable and the index value of the log type are directly inserted into the code statement of the compiled executable file to obtain the encoded executable file.

[0083] The log type information is INF0 Task\x11 assigned to container:[ContainerID:\x11], operation took\x12 seconds. In the log type mapping table, the corresponding log type code ID is 4.

[0084] The dictionary variable information is task_12, and in the pre-established dictionary variable mapping table, the corresponding dictionary variable code ID is 0; the dictionary variable information is Container_15, and in the dictionary variable mapping table, the corresponding dictionary variable code ID is 1.

[0085] 2. When the vehicle terminal executes the coded log code statement in the above coded executable file during the running stage, it is no longer necessary to query the mapping table to determine the corresponding index value for the log type and dictionary variable therein, because the index value has been brought into the compiled executable file during the compilation stage, that is, the coded executable file already includes the index value of the dictionary variable and the index value of the log type.

[0086] 3. Because timestamps and non-dictionary variables can only be passed in during the runtime and there is uncertainty, the vehicle terminal still needs to process them during the runtime.

[0087] In this embodiment, by pre-analyzing the log code statements in the source code file, a mapping table of log types and a mapping table of dictionary variables are established, so that in the source code file compilation stage, the index values ​​of the log types and dictionary variables are determined, and the index values ​​are preset to the compiled executable file. The log type code can be directly obtained in the running stage without establishing a mapping table of the log type and encoding it, thereby reducing the compression calculation amount of the vehicle terminal.

[0088] Based on the log information processing method provided in the above embodiment, the present application also provides a specific implementation of a log information processing device. Please refer to the following embodiment.

[0089] like Figure 2 As shown, an embodiment of the present application provides a log information processing device 200, and the device 200 may include the following modules: an operation module 201, a first acquisition module 202, an integration module 203 and a compression module 204.

[0090] The running module 201 is used to run the coded executable file when the coded executable file of the vehicle operating system is obtained, the coded executable file includes at least one coded log code statement, the coded log code statement is a code statement obtained by encoding log type information in each log code statement of the vehicle operating system, and the coded log code statement includes a log type code;

[0091] The first acquisition module 202 is used to obtain the timestamp code of each code log code statement when it is executed during the running of the code executable file;

[0092] An integration module 203 is used to integrate the log type code and the execution timestamp code of each coding log code statement to obtain the coding log information of each coding log code statement;

[0093] The compression module 204 is used to compress the coded log information of at least one coded log code statement to obtain compressed log information of the vehicle operating system.

[0094] The log information processing device of the embodiment of the present application can run the coded executable file after obtaining the coded executable file of the vehicle operating system, the coded executable file includes at least one coded log code statement, the coded log code statement is a code statement obtained by encoding the log type information in each log code statement of the vehicle operating system, and the coded log code statement includes a log type code; and obtains the timestamp code when each coded log code statement is executed during the running of the coded executable file; then integrates the log type code of each coded log code statement and the timestamp code when executed to obtain the coded log information of each coded log code statement; finally, compresses the coded log information of at least one coded log code statement to obtain the compressed log information of the vehicle operating system. In this way, in the embodiment of the present application, the coded log code statement includes the log type code obtained by encoding the log type information, and when running the coded executable file, there is no need to encode the log type information, thereby reducing the amount of calculation for processing log information, and further reducing the occupation of system resources.

[0095] As another implementation of the present application, in order to directly obtain the code of each log type, thereby reducing the amount of calculation for processing log information, the above-mentioned device 200 may also include:

[0096] A second acquisition module is used to acquire a source code file of the vehicle operating system, the source code file includes at least one log code statement, and the log code statement includes log type information;

[0097] The compiling module is used to compile the source code file to generate a coded executable file of the vehicle operating system. The log type code of each coded log code statement in the coded executable file is obtained by encoding the log type information in each log code statement.

[0098] In some embodiments, the compilation module may specifically include:

[0099] A first encoding unit, configured to encode the log type information in each log code statement according to a preset first mapping table to obtain a log type code of each log code statement, wherein the preset first mapping table includes at least one set of preset first corresponding relationships, and each preset first corresponding relationship is used to represent a corresponding relationship between the log type information and the log type code;

[0100] A compilation unit, used for compiling the source code file to generate an executable file of the vehicle operating system;

[0101] The setting unit is used to set each log type code in each log code statement of the executable file to obtain a coded executable file of the vehicle operating system.

[0102] As another implementation of the present application, in order to further reduce the amount of calculation for processing log information, the above log code statement may also include dictionary variable information;

[0103] The above compilation module may further include:

[0104] A second encoding unit is used to encode the dictionary variable information in each log code statement according to a preset second mapping table to obtain the dictionary variable code of each log code statement, wherein the preset second mapping table includes at least one set of preset second corresponding relationships, and each preset second corresponding relationship is used to represent the corresponding relationship between the dictionary variable information and the dictionary variable code;

[0105] The above setting unit is also used to set each log type code and each dictionary variable code in each log code statement of the executable file to obtain a coded executable file of the vehicle operating system.

[0106] In some embodiments, in order to facilitate users to view log information, the first acquisition module 202 may specifically include:

[0107] An acquisition unit, used to acquire the timestamp information of each code log code statement when it is executed during the running of the code executable file;

[0108] The encoding unit is used to encode each time stamp information according to a preset first encoding rule to obtain the time stamp code of each encoding log code statement execution.

[0109] As an implementation of the present application, during the running of the encoded executable file, when each encoded log code statement is executed, non-dictionary variable information may also be generated. In order to further reduce the data volume of the log information, the above-mentioned device 200 may also include:

[0110] The second acquisition module is used to obtain non-dictionary variable information when each encoding log code statement is executed during the running process of the encoding executable file;

[0111] A third encoding module is used to encode each non-dictionary variable information according to a preset second encoding rule to obtain a non-dictionary variable encoding of each encoding log code statement;

[0112] The integration module 203 is further used to integrate the log type code, the execution timestamp code and the non-dictionary variable code of each coding log code statement to obtain the coding log information of each coding log code statement.

[0113] Based on the log information processing method provided in the above embodiment, the present application also provides a specific implementation method of the electronic device. Please refer to the following embodiment.

[0114] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0115] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.

[0116] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0117] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 302 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory.

[0118] In certain embodiments, the memory 302 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0119] The processor 301 implements any one of the log information processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 302 .

[0120] In one example, the electronic device may further include a communication interface 303 and a bus 310. Figure 3 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.

[0121] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0122] Bus 310 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0123] The electronic device can execute the log information processing method in the embodiment of the present application, thereby realizing the combination Figure 1 and Figure 2 The log information processing method and device described.

[0124] In addition, in combination with the log information processing method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the log information processing methods in the above embodiment is implemented.

[0125] In combination with the log information processing method in the above embodiment, the embodiment of the present application may provide a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any of the log information processing methods above.

[0126] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0127] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0128] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0129] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0130] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.

[0131] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A log information processing method, characterized in that: include: In the case of acquiring a coding executable file of the vehicle operating system, running the coding executable file, the coding executable file includes at least one coding log code statement, the coding log code statement is a code statement obtained by encoding log type information in each log code statement of the vehicle operating system, and the coding log code statement includes a log type code; Obtaining the timestamp code when each of the coding log code statements is executed during the running of the coding executable file; Integrate the log type code and the execution timestamp code of each of the coding log code statements to obtain coding log information of each of the coding log code statements; The coded log information of the at least one coded log code statement is compressed to obtain compressed log information of the vehicle operating system.

2. The method according to claim 1, characterized in that In the case where the encoded executable file of the vehicle operating system is obtained, before running the encoded executable file, the method further includes: Acquire a source code file of the vehicle operating system, wherein the source code file includes at least one log code statement, and the log code statement includes log type information; The source code file is compiled to generate a coding executable file of the vehicle operating system, wherein the log type code of each coding log code statement in the coding executable file is obtained by encoding the log type information in each log code statement.

3. The method according to claim 2, characterized in that The processing of the source code file to obtain the coded executable file of the vehicle operating system includes: Encoding the log type information in each of the log code statements according to a preset first mapping table to obtain a log type code of each of the log code statements, wherein the preset first mapping table includes at least one set of preset first corresponding relationships, and each of the preset first corresponding relationships is used to characterize a corresponding relationship between the log type information and the log type code; Compiling the source code file to generate an executable file of the vehicle operating system; Each of the log type codes is set in each log code statement of the executable file to obtain a coded executable file of the vehicle operating system.

4. The method according to claim 3, characterized in that The log code statement also includes dictionary variable information; Before setting each of the log type codes in each log code statement of the executable file to obtain the coded executable file of the vehicle operating system, the process further includes: Encoding the dictionary variable information in each of the log code statements according to a preset second mapping table to obtain the dictionary variable code of each of the log code statements, wherein the preset second mapping table includes at least one set of preset second corresponding relationships, and each of the preset second corresponding relationships is used to represent the corresponding relationship between the dictionary variable information and the dictionary variable code; The step of setting each of the log type codes in each log code statement of the executable file to obtain the coded executable file of the vehicle operating system includes: Each of the log type codes and each of the dictionary variable codes are set in each log code statement of the executable file to obtain a coded executable file of the vehicle operating system.

5. The method according to claim 1, characterized in that The obtaining of the timestamp code of each of the coding log code statements when executing during the running of the coding executable file includes: Obtaining timestamp information of each of the coding log code statements when they are executed during the running of the coding executable file; Each of the timestamp information is encoded according to a preset first encoding rule to obtain a timestamp code for the execution of each of the encoding log code statements.

6. The method according to claim 1, characterized in that Before integrating the log type code and the execution timestamp code of each of the coding log code statements to obtain the coding log information of each of the coding log code statements, the method further includes: Acquire non-dictionary variable information when each of the encoding log code statements is executed during the running of the encoding executable file; Encoding each of the non-dictionary variable information according to a preset second encoding rule to obtain a non-dictionary variable encoding of each of the encoding log code statements; The step of integrating the log type code and the execution timestamp code of each of the coding log code statements to obtain the coding log information of each of the coding log code statements includes: The log type code, the execution timestamp code and the non-dictionary variable code of each of the coding log code statements are integrated to obtain the coding log information of each of the coding log code statements.

7. A log information processing device, characterized in that: include: an operation module, configured to, when a coding executable file of a vehicle operating system is acquired, execute the coding executable file, wherein the coding executable file includes at least one coding log code statement, wherein the coding log code statement is a code statement obtained by encoding log type information in each log code statement of the vehicle operating system, and the coding log code statement includes a log type code; A first acquisition module is used to acquire the timestamp code when each of the encoding log code statements is executed during the running of the encoding executable file; An integration module, used for integrating the log type code and the execution timestamp code of each of the coding log code statements to obtain the coding log information of each of the coding log code statements; The compression module is used to compress the coded log information of the at least one coded log code statement to obtain compressed log information of the vehicle operating system.

8. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the log information processing method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the log information processing method according to any one of claims 1 to 6 is implemented.

10. A vehicle, characterized in that: include: An electronic device, wherein the electronic device is used to implement the log information processing method according to any one of claims 1 to 6.