CN108876963A - A kind of storage method, device, microprocessor and the storage medium of automobile log - Google Patents

A kind of storage method, device, microprocessor and the storage medium of automobile log Download PDF

Info

Publication number
CN108876963A
CN108876963A CN201810759743.5A CN201810759743A CN108876963A CN 108876963 A CN108876963 A CN 108876963A CN 201810759743 A CN201810759743 A CN 201810759743A CN 108876963 A CN108876963 A CN 108876963A
Authority
CN
China
Prior art keywords
log
automobile
static
log information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810759743.5A
Other languages
Chinese (zh)
Inventor
戎海峰
陈伟沃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Yuan Feng Automotive Electronics Co Ltd
Original Assignee
Guangdong Yuan Feng Automotive Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Yuan Feng Automotive Electronics Co Ltd filed Critical Guangdong Yuan Feng Automotive Electronics Co Ltd
Priority to CN201810759743.5A priority Critical patent/CN108876963A/en
Publication of CN108876963A publication Critical patent/CN108876963A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses storage method, device, microprocessor and the storage mediums of a kind of automobile log.This method is applied to microprocessor, including:Static log information and dynamic log information are extracted in each automobile log;Determine the corresponding log coding of the static log information of each automobile log;Each automobile log is stored according to the corresponding log coding of each automobile log and dynamic log information.Technical solution provided in an embodiment of the present invention, which uses to encode by log, replaces static log information, the method that log coding and dynamic log information are stored, to save more automobile logs in limited memory space.

Description

A kind of storage method, device, microprocessor and the storage medium of automobile log
Technical field
The present embodiments relate to vehicle networking technical field more particularly to a kind of storage methods of automobile log, device, micro- Processor and storage medium.
Background technique
With the rapid development of technology of Internet of things and wireless communication technique, Applied D emonstration field of the car networking as Internet of Things One of, it has been concerned by all parties at present.Automobile remote diagnostic even more becomes numerous vapour as an important branch in car networking The hot spot technology that vehicle professional person pays close attention to jointly.
Automobile remote diagnostic refers to automobile on startup, knows the fault message of automobile, and error code is uploaded at data Reason center.System rechecks fault message in the case where leaving car owner alone.After determining failure, and implements remote auto and eliminate event Barrier, the failure that can not be eliminated are sent to car owner with short message mode, so that car owner is known fault message existing for vehicle in advance, be preventive from Possible trouble.Vehicle remote diagnosis system includes:Car-mounted terminal, interior bus, interior microprocessor and remote diagnosis backstage, it is vehicle-mounted Terminal is used for after user clicks " starting diagnosis " button, judges whether vehicle meets conditions for diagnostics, after meeting conditions for diagnostics, Car-mounted terminal passes through interior bus according to diagnosing protocol and initiates microprocessor in diagnosis request and collecting cart to interior microprocessor Error code, after car-mounted terminal is packaged all fault code indications being collected into and is sent to remote diagnosis by wireless communication module Platform, diagnosis report is back to car-mounted terminal or user after the information received is parsed and judged by remote diagnosis backstage to be made It is shown on mobile terminal.
Interior microprocessor is of crucial importance as the fault diagnosis component in vehicle remote diagnosis system. Interior microprocessor log information is the information that interior microprocessor exports in real time when operation, due to interior microprocessor Memory very little, a small amount of log information can only be stored.When the information stored in microprocessor is more than the memory space built in it When, the log information before covering causes a large amount of log informations to be lost.
Summary of the invention
The present invention provides storage method, device, microprocessor and the storage medium of a kind of automobile log, can be limited More automobile logs are saved in memory space.
In a first aspect, it is applied to microprocessor the embodiment of the invention provides a kind of storage method of automobile log, it is described Method includes:
Static log information and dynamic log information are extracted in each automobile log;
Determine the corresponding log coding of the static log information of each automobile log;
Each automobile log is stored according to the corresponding log coding of each automobile log and dynamic log information.
Second aspect, the embodiment of the invention also provides a kind of storage device of automobile log, described device includes:It extracts Module, determining module and memory module;Wherein,
The extraction module, for extracting static log information and dynamic log information in each automobile log;
The determining module, the corresponding log coding of static log information for determining each automobile log;
The memory module, for according to the corresponding log coding of each automobile log and dynamic log information by each vapour Vehicle log is stored.
The third aspect, the embodiment of the invention also provides a kind of microprocessors, including:
One or more sub-processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of sub-processors, so that one or more of places Manage the storage method for the automobile log that unit is realized as described in any one of above-mentioned first aspect.
Fourth aspect, the embodiment of the invention also provides a kind of storage mediums, are stored thereon with computer program, feature It is, the storage method of the automobile log as described in any one of above-mentioned first aspect is realized when which is executed by processor.
The embodiment of the present invention in each automobile log by extracting static log information and dynamic log information;It determines each The corresponding log coding of the static log information of a automobile log;According to the corresponding log coding of each automobile log and dynamic day Will information stores each automobile log.Technical solution provided in an embodiment of the present invention uses quiet by log coding replacement State log information, the method that log coding and dynamic log information are stored, to be saved more in limited memory space More automobile logs.
Detailed description of the invention
Fig. 1 is the flow chart of the storage method for the automobile log that the embodiment of the present invention one provides;
Fig. 2 is the schematic diagram of the storage method for the automobile log that the embodiment of the present invention one provides;
Fig. 3 is the flow chart of the storage method of automobile log provided by Embodiment 2 of the present invention;
Fig. 4 is the structural schematic diagram of the storage device for the automobile log that the embodiment of the present invention three provides;
Fig. 5 is the structural schematic diagram for the microprocessor that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart of the storage method for the automobile log that the embodiment of the present invention one provides, and the present embodiment is applicable to The case where log stores, this method can be executed by the storage device of automobile log, and the storage method of the automobile log can be with Include the following steps:
S110, static log information and dynamic log information are extracted in each automobile log.
In the present embodiment, the storage method of the automobile log is mainly used in interior microprocessor storage automobile log. Automobile log refer to developer be inserted into source code need microprocessor export microprocessor certain variable informations or The information of person's process status.Automobile log is generally made of two parts content, and a part is static log information, and another part is Dynamic log information.Static log information, which refers to, to be used to indicate character string or byte of certain information etc. in automobile log, Static log information is identical in certain automobile log informations, and illustratively, static log information includes at least the following contents, Generate the microprocessor and module of automobile log, the corresponding output level of automobile log, the content type of automobile log, automobile day The specific output content of will and argument structure etc..Dynamic log information, which refers to, to be used to indicate the real-time of dynamic variable in automobile log Output valve.In certain automobile logs, dynamic log information may be identical, it is also possible to be different.Illustratively, work as vapour When the parameter of vehicle log is temperature, dynamic log information is the specific value of temperature, such as 60 degrees Celsius.
In the present embodiment, it can be microprocessor and generate an automobile log, just extract static state from automobile log Log information and dynamic log information.After being also possible to a certain amount of automobile log of microprocessor generation, automobile day is successively extracted Static log information and dynamic log information in will.
S120, the corresponding log coding of the static log information of each automobile log is determined.
In the present embodiment, the corresponding relationship of static log information and log coding according to the pre-stored data, determines each The corresponding coding of static log information of automobile log.Further, pre-stored static log information and log encode Corresponding relationship can store in a corresponding relationship, and after extracting a static log information, it is quiet in corresponding table to search this State log information, and determine log coding corresponding with the static state log information.In addition, it is pre-stored static state log information with The corresponding relationship of log coding may also be stored in certain program codes, and static log is determined by the operation of program code The corresponding log coding of information.Further, static log information and log coding are only one-to-one correspondences.
S130, each automobile log is deposited according to the corresponding log coding of each automobile log and dynamic log information Storage.
In the present embodiment, static log information in original automobile log is replaced with the log coding determined in S120, Each automobile log is stored in the microprocessor according to the dynamic log information extracted in log coding and S110.
Further, each automobile log is drawn according to the corresponding log coding of each automobile log and dynamic log information It assigns in different logging levels;Wherein, logging level includes:Advanced tiers, intermediate grade and rudimentary grade.
In the present embodiment, the grade of the automobile log of each microprocessor generation is different, automobile log Grade is the one of them of static log information.Logging level generally comprises:Advanced tiers, intermediate grade and rudimentary grade.It is high Grade grade refers to the automobile log or the very high vapour of danger classes for detecting that the module at vehicle key position generates in microprocessor Vehicle log, key position refers to once device, which goes wrong, may cause the automobile component of major accident.Intermediate grade refers to inspection The automobile log or automobile for surveying the module generation of automobile general place can be with self by self fault correction system of itself The automobile log that the problem of reparation generates.Rudimentary grade be some automobile logs that automobile generates in conventional operation.
Each automobile log is stored according to the corresponding vehicular grade of each automobile log.According to static log information The grade of the determining log coding corresponding with static log information of the grade of middle automobile log, according to log coding and dynamic log Information is divided into different logging levels.The corresponding log of each automobile log is encoded and is moved by different according to logging level State log information carries out different storages.Such as:The log coding and dynamic log information of advanced tiers are stored in advanced tiers File or database in, the log coding and dynamic log information of intermediate grade be stored in intermediate grade file or In person's database, the log coding and dynamic log information of rudimentary grade are stored in the file or database of rudimentary grade In.When communication terminal reads log coding and dynamic log information in microprocessor, the text of advanced tiers can be preferentially read Part folder or log coding and dynamic log information in database.The higher grade of log coding and dynamic log information, defeated Priority out is higher, is read at first by communication terminal.
Further, the storage method of automobile log is illustrated with an example.Fig. 2 is during the embodiment of the present invention one provides Automobile log storage method schematic diagram.As shown in Figure 2.Contain multi-microprocessor, each micro- place in each automobile Numerous automobile logs can be generated in reason device, in the present embodiment, automobile log is C language source files of program.
Illustratively, it is illustrated so that encoding source code method realizes the storage method of automobile log as an example, the present embodiment The coding method of middle offer can be realized in the computer terminal that any one can become.The present embodiment uses INIT_LOG function To realize the coding of source code.INIT_LOG function is used to initialize the name of the module and microprocessor that generate automobile log. Such as:
INIT_LOG (" ECU1 ", " MOD1 ")
Wherein, ECU1 indicates the name of microprocessor, and MOD1 indicates the name of some specific module in microprocessor ECU1. As long as some source code file of some catalogue has this sentence, catalogue where it and its subdirectory will inherit and INIT_LOG The ECU name and module name registered.
LOG_XXX sentence in INIT_LOG function is the mode of specific module outlet terminal, and what XXX was indicated is log Scope.
A simple introduction is done to LOG_XXX sentence below, illustratively:
LOG_XXX (LOG_LEVEL_INFO, LOG_ID_XXX, " THIS IS A LOG, TEMPERATURE IS%d ", TEMPERATURE)
First parameter LOG_LEVEL_INFO in LOG_XXX sentence, expression is log output level.Current micro- place The grade that the output level that device allows is below or equal to current log sentence is managed, which can export.The grade of log from It is high to Low to be divided into:Fatal error, mistake, warning, information, common print, debugging printing.
The second parameter LOG_ID_XXX of function is the ID of log, and the sentence of each log can not be used identical Identifier.In the written in code stage, analysis tool can collect all log ID numbers, and be generated according to the ID number of distribution The header file of log ID number.There is this header file, software can compile.
" THIS IS A LOG, TEMPERATURE IS%d " are the specific interior of log output to the third parameter of function Hold.
4th parameter TEMPERATURE of function is the print parameters of log.Analysis tool can pass through contextual analysis The type of parameter, is then recorded.
5th parameter of function is the output format of log.It is similar with the printf format of POSIX C, is also simultaneously The most important part of log sentence.
Computer code's stage is being used, all source codes are analyzed, a log-structured file, file knot are obtained The log information of each log sentence source code is stored in structure file, including:Microprocessor ID number, module I D, content Type ID, message level, log ID, log specifically export content and argument structure, distributed log ID number etc..
The source code of end-of-encode is stored in all automobile microprocessors and is run, an available log ID number Header file.Log head size is 1 byte in log ID number header file, and log ID number is 2 bytes.
Illustrate the storage method of automobile log in microprocessor by taking an automobile log as an example below, it is assumed that automobile log Output format be " static log information+dynamic log information ", illustratively,
LOG_XXX sentence is:
LOG_MOD1 (Wichtig Fehler, LOG_ID_001, " Temperature [%d] DEG C, voltage [%d] V, Current [%d] A ")
One automobile log is:
A:Temperature [60] DEG C, voltage [5] V, Current [0.6] A.
Wherein, A indicates log recording number, and 60,5,0.6 indicates the dynamic log information of automobile log, i.e. dynamic variable Real-time output valve.Unique encodings 001 are substituted after indicating the corresponding character string of automobile log in above-mentioned automobile log, it can be with Obtaining the automobile log that microprocessor stores is:
A:001,60,5,0.6
It by above-mentioned example, can be evident that, byte number shared by coding 001 is much smaller than in expression automobile log The byte number of corresponding character string therefore can with the corresponding character string in unique coding replacing representation automobile log Greatly to save memory space, more automobile logs are saved in limited memory space.
The present embodiment in each automobile log by extracting static log information and dynamic log information;Determine each vapour The corresponding log coding of the static log information of vehicle log;Believed according to the corresponding log coding of each automobile log and dynamic log Breath stores each automobile log.Technical solution provided in this embodiment, which uses to encode by log, replaces static log letter Breath, the method that log coding and dynamic log information are stored, to save more automobiles in limited memory space Log.
Embodiment two
Fig. 3 is the flow chart of the storage method of automobile log provided by Embodiment 2 of the present invention, and the present embodiment is above-mentioned each On the basis of embodiment, the storage method of automobile log is optimized, as shown in figure 3, the automobile log after optimization is deposited Method for storing includes the following steps:
S210, static log information and dynamic log information are extracted in each automobile log.
S220, the corresponding static log information of each automobile log is searched in the static log information pre-saved.
In the present embodiment, the corresponding relationship that static log information and log encode is stored in a database or model In.
Specifically, all static log informations for calculating the corresponding static log information of each automobile log and pre-saving Matching value;
In the present embodiment, it should be noted that before coming into operation, developer has set micro- microprocessor The static log information for the automobile log that processor can export, microprocessor and module including automobile log, automobile log Corresponding output level, the content type of automobile log, the specific output content of automobile log and argument structure etc..Early development The static log information of all automobile logs of setting is collected arrangement by personnel, and assigns the static log of automobile log The corresponding coding of information only one.The corresponding relationship of static log information and log coding is stored in fixed file Perhaps the file that the corresponding relationship that static log information is encoded with log is stored in database can be copied or be passed through Network is transmitted.
According in S210, the static log information extracted in certain automobile log is calculated quiet in this automobile log The matching value of state log information and all static log information pre-saved.Static log information in automobile log and in advance The matching value of the static log information of preservation refers to static information in the automobile log currently generated and the static state that pre-saves The similarity of log information content.Static letter i.e. in the static log information pre-saved and the automobile log currently generated How many is identical to the particular content of breath.
Further, when all static state log informations each automobile log corresponding static log information and pre-saved In the matching value of any one static log information when being greater than preset threshold, determination is looked into the static log information pre-saved Find the corresponding static log information of each automobile log.
In the present embodiment, illustratively, preset threshold is set as 95.When the corresponding static log information of automobile log with The matching value of any one static log information in all static log information pre-saved, that is, what is pre-saved is all static 95% content static log corresponding with current automobile log is had more than in the static log information of any one in log information The information content is identical, and 95% content and in advance is had more than in the corresponding static log information content of current automobile log in other words Any one static log information content is identical in all static log information of preservation, it is determined that in the static day pre-saved The corresponding static log information of each automobile log is found in will information.S230, when in the static log information pre-saved In when finding the corresponding static log information of each automobile log, encoded according to predetermined static log information and log Corresponding relationship, determine the static log information of each automobile log corresponding log coding.
In the present embodiment, the corresponding relationship of predetermined static log information and log coding refers to assigns vapour in advance The corresponding log coding of static log information only one in vehicle log.It is searched when in the static log information pre-saved It is corresponding according to the static log information only one in automobile log when static log information corresponding to each automobile log Log coding, determine the static log information of each automobile log corresponding log coding.
S240, each automobile log is deposited according to the corresponding log coding of each automobile log and dynamic log information Storage.
In the present embodiment, quiet by the whole for calculating the corresponding static log information of each automobile log with pre-saving The matching value of state log information, when the corresponding static log information of each automobile log is believed with all static log pre-saved When the matching value of the static log information of any one in breath is greater than preset threshold, determine in the static log information pre-saved The corresponding static log information of each automobile log is found, when finding each vapour in the static log information pre-saved When the corresponding static log information of vehicle log, according to the corresponding relationship of predetermined static log information and log coding, really The corresponding log coding of the static log information of fixed each automobile log.Technical solution provided in this embodiment is provided according to quiet The method that state log information determines corresponding log coding, can reduce the requirement to microprocessor operational capability.
Embodiment three
Fig. 4 is the structural schematic diagram of the storage device for the automobile log that the embodiment of the present invention three provides, and the present embodiment can fit The case where for automobile log storage, the storage device of the automobile log may include such as flowering structure:Extraction module 310 determines Module 320 and memory module 330;Wherein,
Extraction module 310, for extracting static log information and dynamic log information in each automobile log.
Determining module 320, the corresponding log coding of static log information for determining each automobile log.
Memory module 330, for according to the corresponding log coding of each automobile log and dynamic log information by each vapour Vehicle log is stored.
Further, determining module 320 includes:Searching unit and determination unit;Wherein,
Searching unit, for searching the corresponding static log of each automobile log in the static log information pre-saved Information;Determination unit finds each automobile log corresponding static day for working as in the static log information pre-saved When will information, according to the corresponding relationship of predetermined static log information and log coding, the quiet of each automobile log is determined The corresponding log coding of state log information.
Specifically, searching unit, specifically for calculating the corresponding static log information of each automobile log and pre-saving All static log informations matching value;When the corresponding static log information of each automobile log and the whole that pre-saves are quiet When the matching value of the static log information of any one in state log information is greater than preset threshold, determine in the static day pre-saved The corresponding static log information of each automobile log is found in will information.
Further, memory module 330 includes:Division unit and storage unit;Wherein,
Division unit, for according to the corresponding log coding of each automobile log and dynamic log information by each automobile day Will is divided into different logging levels;Wherein, logging level includes:Advanced tiers, intermediate grade and rudimentary grade;Storage is single Member, for being stored each automobile log according to the corresponding vehicular grade of each automobile log.
A kind of storage device of automobile log is present embodiments provided, the storage device in each automobile log by mentioning Take static log information and dynamic log information;Determine the corresponding log coding of the static log information of each automobile log;Root Each automobile log is stored according to the corresponding log coding of each automobile log and dynamic log information.The present embodiment provides Technical solution use by log coding replace static state log information, log coding and dynamic log information are stored Method, to save more automobile logs in limited memory space.
The storage side of automobile log provided by any embodiment of the invention can be performed in the storage device of above-mentioned automobile log Method has the corresponding functional module of execution method and beneficial effect.The not technical detail of detailed description in the present embodiment, can join See the storage method for the automobile log that any embodiment of that present invention provides.
Example IV
Fig. 5 is the structural schematic diagram for the microprocessor that the embodiment of the present invention four provides.Fig. 5, which is shown, to be suitable for being used to realizing this The block diagram of the example microprocessor 412 of invention embodiment.The microprocessor 412 that Fig. 5 is shown is only an example, is not answered Any restrictions are brought to the function and use scope of the embodiment of the present invention.
As shown in figure 5, microprocessor 412 is showed in the form of general purpose microprocessor.The component of microprocessor 412 can wrap It includes but is not limited to:One or more processor or processing unit 416, system storage 428 connect different system components The bus 418 of (including system storage 428 and processing unit 416).
Bus 418 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Microprocessor 412 typically comprises a variety of computer system readable media.These media can be it is any can be by The usable medium that microprocessor 412 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 428 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 430 and/or cache memory 432.Microprocessor 412 may further include it is other it is removable/no Movably, volatile/non-volatile computer system storage medium.Only as an example, storage system 434 can be used for reading and writing Immovable, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").It, can although being not shown in Fig. 5 To provide the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk "), and it is non-volatile to moving Property CD (such as CD-ROM, DVD-ROM or other optical mediums) read and write CD drive.In these cases, each drive Dynamic device can be connected by one or more data media interfaces with bus 418.System storage 428 may include at least one A program product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform The function of various embodiments of the present invention.
Program/utility 440 with one group of (at least one) program module 442, can store and deposit in such as system In reservoir 428, such program module 442 include --- but being not limited to --- operating system, one or more application program, It may include the reality of network environment in other program modules and program data, each of these examples or certain combination It is existing.Program module 442 usually executes function and/or method in embodiment described in the invention.
Microprocessor 412 can also be with one or more external equipments 414 (such as keyboard, sensing equipment, display 424 Deng) communication, the equipment interacted with the equipment 412 communication can be also enabled a user to one or more, and/or set with this is made The standby 412 any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment are led to Letter.This communication can be carried out by input/output (I/O) interface 422.Also, microprocessor 412 can also be suitable by network Orchestration 420 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy Net) communication.As shown, network adapter 420 is communicated by bus 418 with other modules of equipment 412.It should be understood that the greatest extent Pipe is not shown in the figure, and other hardware and/or software module can be used with bonding apparatus 412, including but not limited to:Microcode is set Standby driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system System etc..
Processing unit 416 by the program that is stored in system storage 428 of operation, thereby executing various function application with And data processing, such as realize the storage method of automobile log provided by the embodiment of the present invention:
Static log information and dynamic log information are extracted in each automobile log;
Determine the corresponding log coding of the static log information of each automobile log;
Each automobile log is stored according to the corresponding log coding of each automobile log and dynamic log information.
Further, the corresponding log coding of the static log information of each automobile log is determined, including:It is pre-saving Static log information in search the corresponding static log information of each automobile log;When in the static log information pre-saved In when finding the corresponding static log information of each automobile log, encoded according to predetermined static log information and log Corresponding relationship, determine the static log information of each automobile log corresponding log coding.
Specifically, the corresponding static log information of each automobile log is searched in the static log information pre-saved, Including:Calculate the matching value of each automobile log corresponding static log information and all static log information pre-saved; When any one static day in the corresponding static log information of each automobile log and all static log informations pre-saved When the matching value of will information is greater than preset threshold, determination finds each automobile log in the static log information pre-saved Corresponding static state log information.
Further, according to the corresponding log coding of each automobile log and dynamic log information by each automobile log into Row storage, including:Each automobile log is divided into according to the corresponding log coding of each automobile log and dynamic log information In different logging levels;Wherein, logging level includes:Advanced tiers, intermediate grade and rudimentary grade;According to each automobile day The corresponding vehicular grade of will stores each automobile log.
Microprocessor provided in this embodiment, by extracting static log information and dynamic log in each automobile log Information;Determine the corresponding log coding of the static log information of each automobile log;According to the corresponding log of each automobile log Coding and dynamic log information store each automobile log.Technical solution provided in this embodiment is used to be compiled by log Code replaces static log information, the method that log coding and dynamic log information are stored, in limited memory space It is middle to save more automobile logs.
Embodiment five
The embodiment of the present invention five additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should The storage method of the automobile log provided such as all inventive embodiments of the application is provided when program is executed by processor:
Static log information and dynamic log information are extracted in each automobile log;
Determine the corresponding log coding of the static log information of each automobile log;
Each automobile log is stored according to the corresponding log coding of each automobile log and dynamic log information.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example can be -- but being not limited to -- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, Or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:With one The electrical connection of a or multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of storage method of automobile log, which is characterized in that it is applied to microprocessor, the method includes:
Static log information and dynamic log information are extracted in each automobile log;
Determine the corresponding log coding of the static log information of each automobile log;
Each automobile log is stored according to the corresponding log coding of each automobile log and dynamic log information.
2. the method according to claim 1, wherein the static log information pair of each automobile log of the determination The log coding answered, including:
The corresponding static log information of each automobile log is searched in the static log information pre-saved;
When finding the corresponding static log information of each automobile log in the static log information pre-saved, root According to the corresponding relationship of predetermined static log information and log coding, the static log information pair of each automobile log is determined The log coding answered.
3. according to the method described in claim 2, it is characterized in that, described search respectively in the static log information pre-saved The corresponding static log information of a automobile log, including:
Calculate the matching value of each automobile log corresponding static log information and all static log information pre-saved;
When any one in the corresponding static log information of each automobile log and all static state log informations pre-saved When the matching value of a static state log information is greater than preset threshold, determination is found in the static log information pre-saved The corresponding static log information of each automobile log.
4. the method according to claim 1, wherein it is described according to each automobile log corresponding log coding and Dynamic log information stores each automobile log, including:
Each automobile log is divided into different days according to the corresponding log coding of each automobile log and dynamic log information In will grade;Wherein, the logging level includes:Advanced tiers, intermediate grade and rudimentary grade;
Each automobile log is stored according to the corresponding vehicular grade of each automobile log.
5. a kind of storage device of automobile log, which is characterized in that described device includes:Extraction module, determining module and storage Module;Wherein,
The extraction module, for extracting static log information and dynamic log information in each automobile log;
The determining module, the corresponding log coding of static log information for determining each automobile log;
The memory module, for according to the corresponding log coding of each automobile log and dynamic log information by each automobile day Will is stored.
6. device according to claim 5, which is characterized in that the determining module includes:Searching unit and determination unit; Wherein,
The searching unit, for searching the corresponding static log of each automobile log in the static log information pre-saved Information;
The determination unit, for corresponding when finding each automobile log in the static log information pre-saved When static log information, according to the corresponding relationship of predetermined static log information and log coding, each automobile day is determined The corresponding log coding of the static log information of will.
7. device according to claim 6, it is characterised in that:
The searching unit, it is quiet specifically for the whole that calculates the corresponding static log information of each automobile log with pre-save The matching value of state log information;
When any one in the corresponding static log information of each automobile log and all static state log informations pre-saved When the matching value of a static state log information is greater than preset threshold, determination is found in the static log information pre-saved The corresponding static log information of each automobile log.
8. device according to claim 5, which is characterized in that the memory module includes:Division unit and storage unit; Wherein,
The division unit, for according to the corresponding log coding of each automobile log and dynamic log information by each automobile day Will is divided into different logging levels;Wherein, the logging level includes:Advanced tiers, intermediate grade and rudimentary grade;
The storage unit, for being stored each automobile log according to the corresponding vehicular grade of each automobile log.
9. a kind of microprocessor, which is characterized in that including:
One or more sub-processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of sub-processors, so that one or more of processing are single Member realizes the storage method of automobile log according to any one of claims 1 to 4.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the realization when program is executed by processor The storage method of automobile log according to any one of claims 1 to 4.
CN201810759743.5A 2018-07-11 2018-07-11 A kind of storage method, device, microprocessor and the storage medium of automobile log Pending CN108876963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810759743.5A CN108876963A (en) 2018-07-11 2018-07-11 A kind of storage method, device, microprocessor and the storage medium of automobile log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810759743.5A CN108876963A (en) 2018-07-11 2018-07-11 A kind of storage method, device, microprocessor and the storage medium of automobile log

Publications (1)

Publication Number Publication Date
CN108876963A true CN108876963A (en) 2018-11-23

Family

ID=64301328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810759743.5A Pending CN108876963A (en) 2018-07-11 2018-07-11 A kind of storage method, device, microprocessor and the storage medium of automobile log

Country Status (1)

Country Link
CN (1) CN108876963A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971694A (en) * 2019-12-03 2020-04-07 广州乐摇摇信息科技有限公司 Remote control method and device for parameters of self-service equipment
CN113672484A (en) * 2021-08-09 2021-11-19 深圳市猿人创新科技有限公司 Equipment monitoring method, device, equipment and medium based on log information
CN113672483A (en) * 2021-08-09 2021-11-19 深圳市猿人创新科技有限公司 Equipment log storage method and device, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178709A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Diary record system and method
CN107391762A (en) * 2017-08-28 2017-11-24 京信通信系统(中国)有限公司 The processing method and processing device of daily record data
CN108228379A (en) * 2018-01-24 2018-06-29 广东远峰汽车电子有限公司 Log statistic method collects server, distributed server and summarizes server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178709A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Diary record system and method
CN107391762A (en) * 2017-08-28 2017-11-24 京信通信系统(中国)有限公司 The processing method and processing device of daily record data
CN108228379A (en) * 2018-01-24 2018-06-29 广东远峰汽车电子有限公司 Log statistic method collects server, distributed server and summarizes server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971694A (en) * 2019-12-03 2020-04-07 广州乐摇摇信息科技有限公司 Remote control method and device for parameters of self-service equipment
CN113672484A (en) * 2021-08-09 2021-11-19 深圳市猿人创新科技有限公司 Equipment monitoring method, device, equipment and medium based on log information
CN113672483A (en) * 2021-08-09 2021-11-19 深圳市猿人创新科技有限公司 Equipment log storage method and device, electronic equipment and medium
CN113672483B (en) * 2021-08-09 2024-05-31 深圳市猿人创新科技有限公司 Device log storage method and device, electronic device and medium

Similar Documents

Publication Publication Date Title
CN108876963A (en) A kind of storage method, device, microprocessor and the storage medium of automobile log
CN109035831A (en) Recognition methods, device, equipment, storage medium and the vehicle of traffic light
CN108388517A (en) A kind of internal-memory detection method, device, equipment and storage medium
CN109885037B (en) Vehicle diagnosis method and related equipment
CN109408050B (en) Code generation method and device for equipment application program interface of railway vehicle
CN111694561A (en) Interface management method, device, equipment and storage medium
CN111258832A (en) Interface parameter checking method, device, equipment and medium
CN112367680A (en) External communication test method and device based on intelligent electric meter and computer equipment
CN110647318A (en) Method, device, equipment and medium for creating instance of stateful application
CN111835808B (en) Data storage method and device, data reading method and device, and storage medium
CN113485881A (en) Testing method and device of temporary speed limiting server, electronic equipment and medium
CN109766274B (en) Test script automatic fusion method and storage medium
CN107729172A (en) A kind of method for generating adjustment step by step daily record
CN113010208B (en) Version information generation method, device, equipment and storage medium
CN113934758A (en) Vehicle fault repairing method and device, vehicle-mounted terminal, server and storage medium
CN110020550A (en) Check appraisal procedure, device and the equipment of platform
CN109343993A (en) A kind of error message processing method and processing device of cloud platform
CN115022201B (en) Data processing function test method, device, equipment and storage medium
CN111694724A (en) Testing method and device of distributed table system, electronic equipment and storage medium
CN115859941A (en) Real-time analysis method and device for vehicle-mounted ATC log
CN113177011B (en) Spacecraft data analysis application method
CN115373366A (en) Interactive diagnosis system, diagnosis method and storage medium
CN114398475A (en) Data processing method, data processing device, electronic equipment and storage medium
CN112131611B (en) Data correctness verification method, device, equipment, system and storage medium
CN108920695B (en) A kind of data query method, apparatus, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123