CN107577542A - Log information report method, device, storage medium and mobile terminal - Google Patents

Log information report method, device, storage medium and mobile terminal Download PDF

Info

Publication number
CN107577542A
CN107577542A CN201710823532.9A CN201710823532A CN107577542A CN 107577542 A CN107577542 A CN 107577542A CN 201710823532 A CN201710823532 A CN 201710823532A CN 107577542 A CN107577542 A CN 107577542A
Authority
CN
China
Prior art keywords
sensor
data
log information
reported
default
Prior art date
Application number
CN201710823532.9A
Other languages
Chinese (zh)
Inventor
张强
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to CN201710823532.9A priority Critical patent/CN107577542A/en
Publication of CN107577542A publication Critical patent/CN107577542A/en

Links

Abstract

The embodiment of the present application discloses log information report method, device, storage medium and mobile terminal.This method includes:Obtain the first log information of target physical sensor generation;First log information is converted into the first reported data of preset data type according to default corresponding relation, wherein, the data volume of the first reported data is less than the data volume of the first log information;Default virtual-sensor is called, and the first reported data is reported into application processor using default virtual-sensor, wherein, default virtual-sensor is located at audio digital signal processor ADSP driving layers;The first received reported data is parsed based on default corresponding relation by application processor, obtains first log information.For the embodiment of the present application by using above-mentioned technical proposal, the log information that can effectively improve physical sensors reports efficiency.

Description

Log information report method, device, storage medium and mobile terminal

Technical field

The invention relates to field of terminal, more particularly to log information report method, device, storage medium and movement Terminal.

Background technology

With the development of the communication technology, the use of various mobile terminals is increasingly popularized, and mobile terminal has become people Live in indispensable instrument.

At present, the mobile terminal such as mobile phone and tablet personal computer can be all configured with each to realize more abundant function Kind sensor, such as ambient light sensor, proximity transducer, gyroscope and acceleration transducer.Sensor can produce daily record Information, log information are needed to report to processor from bottom, and working condition of sensor etc. is carried out with will pass through log information Analysis.And current log information reports scheme to require further improvement.

The content of the invention

The embodiment of the present application provides log information report method, device, storage medium and mobile terminal, can optimize sensing The log information of device reports scheme.

In a first aspect, the embodiment of the present application provides a kind of log information report method, including:

Obtain the first log information of target physical sensor generation;

First log information is converted into the first reported data of preset data type according to default corresponding relation, its In, the data volume of first reported data is less than the data volume of first log information;

Default virtual-sensor is called, and first reported data is reported to using the default virtual-sensor and answered With processor, wherein, the default virtual-sensor is located at audio digital signal processor ADSP driving layers;

The first received reported data is solved based on the default corresponding relation by the application processor Analysis, obtains first log information.

Second aspect, the embodiment of the present application provide a kind of log information reporting device, including:

Log information acquisition module, for obtaining the first log information of target physical sensor generation;

Log information conversion module, for first log information to be converted into preset data according to default corresponding relation First reported data of type, wherein, the data volume of first reported data is less than the data volume of first log information;

Daily record reporting module, for calling default virtual-sensor, and using the default virtual-sensor by described the One reported data reports to application processor, wherein, the default virtual-sensor is located at audio digital signal processor ADSP Drive layer;

Log information parsing module, for being based on the default corresponding relation to received by the application processor The first reported data parsed, obtain first log information.

The third aspect, the embodiment of the present application provide a kind of computer-readable recording medium, are stored thereon with computer journey Sequence, the log information report method as described in the embodiment of the present application is realized when the program is executed by processor.

Fourth aspect, the embodiment of the present application provide a kind of mobile terminal, including sensor, memory, processor and deposit The computer program that can be run on a memory and in processor is stored up, is realized such as during computer program described in the computing device Log information report method described in the embodiment of the present application.

The log information provided in the embodiment of the present application reports scheme, according to default corresponding relation by target physical sensor First log information of generation is converted into the first reported data of preset data type, wherein, the data volume of the first reported data Less than the data volume of the first log information;The default virtual-sensor positioned at ADSP driving layers is called, and utilizes and presets virtual pass First reported data is reported to application processor by sensor, then is based on default corresponding relation to received by application processor The first reported data parsed, the first log information is obtained, so as to complete reporting for the first log information, due to default Virtual-sensor is located at ADSP driving layers, can be reported by the transmission channel of the sensing data of physical sensors on first Count off evidence, and the data volume of the first reported data is less than the data volume of the first log information, reduces the data volume that needs transmit, Can speeding up data transmission speed, and then effectively improve the log information of physical sensors reports efficiency.

Brief description of the drawings

Fig. 1 is that a kind of log information reports process schematic in the correlation technique that the embodiment of the present application provides;

Fig. 2 is a kind of schematic flow sheet for log information report method that the embodiment of the present application provides;

Fig. 3 is the schematic flow sheet for another log information report method that the embodiment of the present application provides;

Fig. 4 is that a kind of log information that the embodiment of the present application provides reports block schematic illustration;

Fig. 5 is a kind of structured flowchart for log information reporting device that the embodiment of the present application provides;

Fig. 6 is a kind of structural representation for mobile terminal that the embodiment of the present application provides;

Fig. 7 is the structural representation for another mobile terminal that the embodiment of the present application provides.

Embodiment

The technical scheme of the application is further illustrated below in conjunction with the accompanying drawings and by embodiment.It is appreciated that It is that specific embodiment described herein is used only for explaining the application, rather than the restriction to the application.Further need exist for illustrating , for the ease of description, the part related to the application rather than entire infrastructure are illustrate only in accompanying drawing.

It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to the additional step being not included in accompanying drawing.The processing can be with Corresponding to method, function, code, subroutine, subprogram etc..

For the ease of understanding the embodiment of the present application, below with high-pass platform audio digital signal processor (Audio Digital Dignal Processor, ADSP) sensor logs transmitting procedure is briefly introduced exemplified by framework.Wherein, ADSP frameworks refer to:Sensor carry is on ADSP, all the sensors in ADSP management terminals, under this framework, owns Sensor interacted with ADSP, then ADSP and application processor (Application Processor, AP) are handed over Mutually.

ADSP it is upper can the sensor such as carry ambient light sensor, proximity transducer, gyroscope and acceleration transducer, this Shen Please by these entity scales be physical sensors in embodiment.Physical sensors can generate sensor logs (Sensor Log) and sensing data (Sensor Data), wherein, sensor logs may include the status information of sensor (such as whether going out Existing failure, in which kind of working condition etc.) and the course of work in be related to various data (as collection data and various sentence Determine threshold value etc.), sensing data may include the data of sensor collection, for different physical sensors, the sensing generated Device daily record and sensing data there may be difference, and the embodiment of the present application is no longer illustrated one by one.Fig. 1 provides for the embodiment of the present application Correlation technique in a kind of log information report process schematic.Sensor logs and sensing data are given birth to by physical sensors Into, because physical sensors carry is on ADSP, so need to transmit to AP by ADSP, and sensor logs and sensor number According to transmission channel it is different.For sensor logs, the path transmitted in correlation technique is by shared drive (Shared Memory Driver, SMD), interprocess communication (Inter-Process Communication, IPC) and high pass message interface Sensor logs are sent to Diagnostic task by (Qualcom Message Interface, QMI), and then are sent to text Part system and QXDM instruments.Wherein, Diagnostic task are a diagnosis processes, QXDM (The QUALCOMM Extensible Diagnostic Monitor) it is that Qualcomm can send out mobile terminal the work that data are tracked Tool, dependence test or diagnosis can be carried out by the analysis to data.For sensing data, in correlation technique, the path of transmission It is by SMD, IPC/QMI message communicating, sensing data is sent to Sensor daemon, then pass to Sensor hal, most Zhongdao reaches file system.Wherein, Sensor daemon are sensor background process, and Sensor hal are hard corresponding to sensor The interface of part level of abstraction (hal).In above-mentioned two transmission channel, sensor logs are usually to be transmitted in the form of character string , sensing data is usually to be transmitted in the form of numerical value, and the transmitted data amounts of sensor logs is apparently higher than sensor number According to transmitted data amount.When AP needs dormancy, if opening the passage of transmission sensor daily record, then sensor logs can be real-time Be transmitted, and because the transmission speed of character string is slower, may result in AP can not dormancy, increase power consumption;If closing transmission The passage of sensor logs, then the problem of may result in many sensor correlations, due to lacking the log information of bottom layer driving And need to carry out pressure test repeatedly, increase the testing time on foot, have a strong impact on the analysis to sensor relevant issues and solve efficiency.

Fig. 2 is a kind of schematic flow sheet for log information report method that the embodiment of the present application provides, and this method can be by Log information reporting device performs, and wherein the device can be realized by software and/or hardware, can typically integrate in the terminal. As shown in Fig. 2 this method includes:

Step 201, the first log information for obtaining the generation of target physical sensor.

Exemplary, the mobile terminal in the embodiment of the present application may include that mobile phone, tablet personal computer and intelligent watch etc. are set It is equipped with the mobile device of sensor.One or more physical sensors are may be provided with mobile terminal, physical sensors for example may be used To be ambient light sensor, proximity transducer, gyroscope and acceleration transducer etc., target physical sensor may include to move One or more of all physical sensors set in terminal.

Exemplary, the log information that can be currently generated target physical sensor is defined as the first log information; It is the first log information that (as generated at first) log information to be reported can be obtained from multiple log informations generated, Such as fail situation about reporting in time because the daily record of generation is more.One or more sensor can be included in first log information Daily record, the embodiment of the present application do not limit.

Step 202, according to default corresponding relation first log information is converted on the first of preset data type Count off evidence.

Wherein, the data volume of first reported data is less than the data volume of first log information

Exemplary, the first log information is converted into count off on the first of preset data type according to default corresponding relation According to also the first log information being converted into sensor data transmission passage pair according to the default corresponding relation that AP is appointed The data format answered, obtain the first reported data.

Preset data type is not limited in the embodiment of the present application, optionally, the data type of the first log information is Character string type, preset data type are value type (such as integer), and so setting is advantageous in that, can be with existing ADSP Framework sensor data transmission mechanism is compatible, and the data volume of value type data is small, and transmission speed is fast.Exemplary, this step The first log information is converted into value type by character string type according to default corresponding relation in rapid, obtains count off on first According to.For example, by taking proximity transducer as an example, it is assumed that the first log information is " open prox sensor ", corresponding first reports Data are " 100 ".

Step 203, default virtual-sensor is called, and utilize the default virtual-sensor by first reported data Report to application processor.

Wherein, the default virtual-sensor is located at audio digital signal processor ADSP driving layers.

In the embodiment of the present application, virtual-sensor can be set up in ADSP driving layer, default virtual-sensor can be with physics The same carry of sensor possesses the energy to AP reported datas as physical sensors on ADSP, making default virtual-sensor Power.Virtual-sensor can be designated as daily record sensor (Log Sensor), preset virtual-sensor using this to report sensor number According to mode report sensor logs, i.e., sensor logs are reported by the transmission channel of transmission sensor data.It is exemplary , for example can be that the data for calling default virtual-sensor report interface to the calling for presetting virtual-sensor, in the data Interface is reported to exist with functional form or other forms.

Step 204, by the application processor based on the default corresponding relation to count off on received first According to being parsed, first log information is obtained.

After AP receives the first reported data, default corresponding relation can be based on by AP and is reduced to the first reported data First log information, successfully to realize reporting for the first log information.Illustrate, will be received based on default corresponding relation as described above The first data " 100 " to be reduced to the first log information be " open prox sensor ".

The log information report method provided in the embodiment of the present application, according to default corresponding relation by target physical sensor First log information of generation is converted into the first reported data of preset data type, wherein, the data volume of the first reported data Less than the data volume of the first log information;The default virtual-sensor positioned at ADSP driving layers is called, and utilizes and presets virtual pass First reported data is reported to application processor by sensor, then is based on default corresponding relation to received by application processor The first reported data parsed, the first log information is obtained, so as to complete reporting for the first log information, due to default Virtual-sensor is located at ADSP driving layers, can be reported by the transmission channel of the sensing data of physical sensors on first Count off evidence, and the data volume of the first reported data is less than the data volume of the first log information, reduces the data volume that needs transmit, Can speeding up data transmission speed, and then effectively improve the log information of physical sensors reports efficiency.

In certain embodiments, it is described to call default virtual-sensor, and using the default virtual-sensor by described in First reported data reports to application processor, it may include:Data corresponding to default virtual-sensor are called to report function, and profit Report function that first reported data is reported into application processor with the data.In the embodiment of the present application, tune can be passed through Function is reported with the data of default virtual-sensor to realize reporting for the first reported data, further improves report speed.

In certain embodiments, it is described to report function to report to first reported data at using the data Manage device, it may include:Report function by first reported data via on sensor hardware abstraction layer interface using the data Report to application processor.Above-mentioned way is advantageous in that, reports log information corresponding using the reporting schemes of sensing data Reported data, take full advantage of sensing data and report passage, realize that data report the multiplexing of passage, to system architecture change It is few, cost of implementation is reduced, compatibility is high, and can effectively improve log information and report efficiency.Specifically, using default virtual Data corresponding to sensor report function that the first reported data is reported to AP sensor hardware level of abstraction via shared drive Interface (Sensor hal), then by Sensor hal by the first reported data via on Sensor Service (sensor-service) Check-in system service (such as Java Service).Accordingly, the default corresponding relation pair is based on by the application processor The first received reported data is parsed, and can be specifically, and default corresponding relation is based on by the system service in AP The first received reported data is parsed.Optionally, realized by Sensor Service to default virtual biography The registration or cancellation of sensor, when default virtual-sensor is in login state, it is allowed to call the default virtual-sensor corresponding Data report function, and when being in exit state, then do not allow to call.Optimizing herein is advantageous in that, can be according to actual need Registration or the exit state of the default virtual-sensor of selection are sought, the upper time signal machine of log information is controlled with realizing.

In certain embodiments, the data report the parameter defined in function to include physical sensors mark and upper count off According to content, the reported data content is corresponding with first reported data.After physical sensors mark is defined, same Reported data represents different implications for different physical sensors, that is, represents different log informations, can be further Reduce the digit or data volume of reported data.Reported data content may include that character string identification such as (can be used for expression to need to upload Daily record corresponding to id values, the id values can the different working condition of respective sensor), may also include the data reported, i.e. physics The data of sensor collection.In addition, data, which report, can also include its dependent variable, such as timestamp (timestamp) in function. When reporting the function the first reported data is reported into AP using data, parameter value therein can be also compressed, be beaten with realizing Biography is wrapped, can further reduce transmitted data amount, accelerates report speed.

In certain embodiments, before the first log information of the acquisition target physical sensor generation, can also wrap Include:Default virtual-sensor is set in ADSP driving layers, function is reported as in daily record for default virtual-sensor configuration data Report interface function.Default virtual-sensor drives layer with the equal carry of physical sensors in ADSP, can be it is determined that day to be reported During will information, the data that virtual-sensor is preset corresponding to quick calling report function, to realize that daily record reports.Specifically, can Structure corresponding to the default virtual-sensor of increase, for the initialization for realizing default virtual-sensor and follow-up data Report.

In certain embodiments, the default corresponding relation is based on to received by the application processor described The first reported data parsed, after obtaining first log information, in addition to:By first log information and work as In preceding system time write-in journal file.The first log information parsed is write into daily record text together with present system time It is convenient that according to journal file physical sensors relevant issues are tracked with analysis and processing in part.

In certain embodiments, before the first log information of the acquisition target physical sensor generation, can also wrap Include:Log information and the corresponding relation of reported data are set, to form default corresponding relation.

In certain embodiments, first log information for obtaining the generation of target physical sensor, including:Monitor mesh When mark physical sensors are in default operating condition, the first log information of the target physical sensor generation is obtained.Physics Sensor is under different working conditions, it is necessary to which the possible gap of the quantity of the log information uploaded is larger, in the embodiment of the present application Default operating condition may include corresponding working condition when the quantity for the log information that needs upload exceedes predetermined threshold value.

Optionally, the default operating condition includes:Pick up calibration state, electrostatic reset state and other with it is described It is at least one in assigned work state corresponding to target physical sensor.For physical sensors, pick up calibration is being carried out Or substantial amounts of data and log information can be typically produced during electrostatic reset, using the log information side of reporting provided herein Case, the quick upload of log information can be achieved, avoid log information from overstocking the generation of situation, and application processor can be made timely Get log information and analyze and handle accordingly.For different physical sensors, can typically exist and itself work Make the working condition of the related a large amount of log informations of generation of principle, by taking proximity transducer as an example, when proximity values with close to threshold value it Between gap when being less than predetermined threshold value and the less and less gap, it is also less and less to produce the interval of proximity values, therefore during unit The interior log information for needing to report also can be more and more, it is seen that the working condition of proximity transducer now is set close to pass The default operating condition of sensor.

In certain embodiments, it is described when monitoring that target physical sensor is in default operating condition, in addition to:Obtain Second log information of the target physical sensor generation.The default virtual-sensor is utilized by described first described While count off evidence reports to application processor, in addition to:Using log transmission passage by the second daily record information reporting extremely The application processor.Log transmission passage is the traditional transmission channel of log information, such as can be warp as described above By SMD, IPC/QMI and Diagnostic task, the passage of file system is reached.First that target physical sensor is generated Log information and the second log information are transmitted parallel by two different transmission channels respectively, can further improve daily record Information reports efficiency, avoids because producing day when target physical sensor is in generation log information more default operating condition Overstocking for will information, ensures the real-time that daily record reports.

Fig. 3 is the schematic flow sheet for another log information report method that the embodiment of the present application provides, and this method includes Following steps:

Step 301, set in ADSP driving layers and preset virtual-sensor, letter is reported for default virtual-sensor configuration data Number reports interface function as daily record.

Step 302, log information and the corresponding relation of reported data are set, to form default corresponding relation.

Step 303, monitor that receiving log information when target physical sensor is in default operating condition reports instruction, Obtain the first log information of target physical sensor generation.

Exemplary, receive log information and report instruction to may include to detect that target physical sensor generates new daily record Information.

Optionally, AP in a dormant state when receive log information and report instruction, obtain the life of target physical sensor Into the first log information, herein optimization this programme can be made to be applied to the application scenarios of AP in a dormant state.

Step 304, the first log information of character string type is converted into the of value type according to default corresponding relation One reported data.

Step 305, call data corresponding to default virtual-sensor to report function, and report function will using the data First reported data reports to AP via sensor hardware abstraction layer interface.

Optionally, if now AP is in a dormant state, AP is waken up.

It should be noted that function is reported to carry out the first reported data when calling data to report function, or using data Report during, if there is the second log information to need to report, the second log information can be obtained, and use traditional log transmission Passage reports the second log information, to realize that the parallel of log information reports.

Step 306, by AP the first received reported data is parsed based on default corresponding relation, obtain One log information.

Step 307, by the first log information and present system time write-in journal file in.

Optionally, if AP receives the second log information, also the second log information and present system time can be write day In will file.

Optionally, it after step 307, may also include, recover AP to resting state.So, AP is receiving new report Before data, it can continue to keep resting state, save power consumption.

The log information report method that the embodiment of the present application provides, need to upload more day when target physical sensor is in During the default operating condition of will information, the data of the default virtual-sensor of layer are driven to report function positioned at ADSP by calling, The smaller reported data of data volume corresponding with log information is reported into AP, transmission speed is fast, so as to shorten log information Transmission time, AP dormancy time can be increased, save power consumption., can when being used cooperatively with traditional log transmission passage Further shorten transmission time, improve daily record and report efficiency.

Fig. 4 is that a kind of log information that the embodiment of the present application provides reports block schematic illustration, as illustrated, with default virtual Sensor is one, and physical sensors illustrate exemplified by being three.It should be noted that the embodiment of the present application is to default virtual The particular number of sensor and physical sensors is not construed as limiting.Three physical sensors are respectively Gyro in Fig. 4 (Gyroscope, gyroscope), Mag (Magnetic Field Sensors, magnetic field sensor) and Prox (Proximity Sensor, proximity transducer), default virtual-sensor is designated as Log Sensor, and data corresponding to Log Sensor report function Sensor_log_report interfaces are shown as in figure.So that current target physical sensor is Gyro as an example, when being deposited in Gyro In log information to be reported, the log information is converted into the reported data of numeric format, calls Log Sensor corresponding Data report function, Sensor Hal interfaces that reported data is reported in AP by shared drive SMD, and then be uploaded to Reported data is transferred to Java Service by Sensor Service, Sensor Service again, the upper count off to receiving After being parsed, obtain log information and preserve.Optionally, this report pattern can by user interface (User Interface, UI) switch is controlled.

The achievable mode conduct that involved data structure definition and interface define in the embodiment of the present application presented below Schematically illustrate.

In the newly-increased default virtual-sensor of ADSP driving layers, " Sensor_log " can be designated as or " Log Sensor ", preset The data of virtual-sensor report function to be available for other physical sensors to call to transmit respective physical sensing as interface function The log information of device.

It is as follows in ADSP driving layer definables Sensor_log structure struct sensors_log_dev:

The above-mentioned Sensor_log structures to increase newly, for the corresponding initialization driven and reported data, typically should Structure seldom needs to change.

For a few thing state of physical sensors, such as reset and calibrate, corresponding log information is with log characters String represents, can pre-define the corresponding relation of log character strings and numerical value.To approach optical sensor (normally close to sensor and ring Border optical sensor is integrated together) and gravity sensor exemplified by, log character strings are defined as follows:

All newly-increased log character strings all can refer to aforesaid way and be defined, and the embodiment of the present application does not limit.

Function is reported for data corresponding to default virtual-sensor, can be existed in the form of following:

void sensors_log_report(int sensor_id,int string_id,int argu3,int argu4,int argu5,int argu6,int argu7,uint64_t timestamp)

Wherein, it is explained as follows to entering ginseng:

sensor_id:The corresponding fixed sensor id of each sensor;

string_id:Need id values corresponding to the log that uploads;

Argu3~argu7:The data reported, such as settable number at most reported every time, 5;

timestamp:The timestamp at ADSP ends, logical hal layers and java layers are drawn by the timestamp.

Assuming that sensor_id represents ALS/PS, string_id value is 6, then it represents that proximity transducer is in calibration shape State, argu3~argu7 can be related data of the proximity transducer under align mode, such as proximity values.

Optionally, under some ADSP frameworks, sensor transmits the data that data disposably at most report and the upper limit, example be present Such as three, now argu can be subjected to packing upload, be parsed afterwards in hal layers.It is as follows:

dev_state->Data_ptr [0] .sample=sensor_id<<24|string_id<<16|argu3;

dev_state->Data_ptr [1] .sample=argu4<<16|argu5;

dev_state->Data_ptr [2] .sample=argu6<<16|argu7;

What Timestamp was represented is ADSP timestamp, and currently the real time is not related with system, is more to make For a flag bit, the time of hal layers and java layers is together in series, easy-to-look-up problem points.Available for proximity transducer When state change, if the timestamp need not be transmitted, 0 may be configured as.

In hal layers, Log sensor type, handle, and new hal layer file logger.cpp can be increased newly, used In the data for receiving driving upload.

Interface can be defined as follows in hal layers:ProcessReportInd, function corresponding to the interface are represented by:

In the function, data that parsing driving uploads, and the data after parsing are continued to upload to sensor service.

Exemplary, resolving is as follows:

The ginseng that enters in above-mentioned function can be smgr_data, and it can be sensor_data to go out ginseng.

It is as follows in Java layers, definable log string:

The data structure can drive the definition of log character strings in layer to correspond with ADSP, to be realized in Java layers Data (reported data) arrives the conversion of Log information.

It is as follows in Java layer definable log information structures:

It is as follows in Java layer definable log library functions:

String log_library(LogInfo logInfo)

The function is used to the data that Hal layers transmit changing into what is set according to sensor_id and string_id Character string.

It is logInfo that above-mentioned function, which enters ginseng, and return value needs to be saved in the character string inside file for final, including works as Preceding system time.

After log information is parsed, log information can be write as in journal file by such as minor function:void writeSensorLogToFile(String logString)。

For example, the character string for representing log information is written to data/oppo_log/ present system times/kernel/ Sensor_log.txt file.

Above description is only a kind of concrete implementation mode, is referred to for those skilled in the art, but to the embodiment of the present application Do not form and limit.

Fig. 5 is a kind of structured flowchart for log information reporting device that the embodiment of the present application provides, and the device can be by software And/or hardware is realized, is typically integrated in mobile terminal, can be reported log information by execution journal information uploading method. As shown in figure 5, the device includes:

Log information acquisition module 501, for obtaining the first log information of target physical sensor generation;

Log information conversion module 502, it is default for being converted into first log information according to default corresponding relation First reported data of data type, wherein, the data volume of first reported data is less than the number of first log information According to amount;

Daily record reporting module 503, for calling default virtual-sensor, and using the default virtual-sensor by described in First reported data reports to application processor, wherein, the default virtual-sensor is located at audio digital signal processor ADSP drives layer;

Log information parsing module 504, for being based on the default corresponding relation to being connect by the application processor The first reported data received is parsed, and obtains first log information.

The log information reporting device that the embodiment of the present application provides, gives birth to target physical sensor according to default corresponding relation Into the first log information be converted into the first reported data of preset data type, wherein, the data volume of the first reported data is small In the data volume of the first log information;The default virtual-sensor positioned at ADSP driving layers is called, and utilizes default virtual sensing First reported data is reported to application processor by device, then by application processor based on default corresponding relation to received First reported data is parsed, and obtains the first log information, so as to complete reporting for the first log information, due to default void Intend sensor and be located at ADSP driving layers, by the transmission channel of the sensing data of physical sensors first can be reported to report Data, and the data volume of the first reported data is less than the data volume of the first log information, reduces the data volume that needs transmit, can Speeding up data transmission speed, and then effectively improve the log information of physical sensors reports efficiency.

Optionally, it is described to call default virtual-sensor, and reported using the default virtual-sensor by described first Data report to application processor, including:Call data corresponding to default virtual-sensor to report function, and utilize the data Report function that first reported data is reported into application processor.

Optionally, it is described to report function that first reported data is reported into application processor using the data, wrap Include:Function is reported to report to first reported data at via sensor hardware abstraction layer interface using the data Manage device.

Optionally, the data report the parameter defined in function to include physical sensors mark and reported data content, The reported data content is corresponding with first reported data.

Optionally, the preset data type is value type, and the data type of first log information is character string Type.

Optionally, first log information for obtaining the generation of target physical sensor, including:

When monitoring that target physical sensor is in default operating condition, the of target physical sensor generation is obtained One log information.

Optionally, the log information acquisition module is additionally operable to:Monitor that target physical sensor is in default work shape During state, the second log information of the target physical sensor generation is obtained;

The daily record reporting module is additionally operable to:The default virtual-sensor is utilized by first reported data described While reporting to application processor, the second daily record information reporting to the application is handled using log transmission passage Device.

Optionally, the default operating condition includes:Pick up calibration state, electrostatic reset state and other with it is described It is at least one in assigned work state corresponding to target physical sensor.

The embodiment of the present application also provides a kind of storage medium for including computer executable instructions, and the computer can perform Instruction is used for execution journal information uploading method when being performed by computer processor, and this method includes:

Obtain the first log information of target physical sensor generation;

First log information is converted into the first reported data of preset data type according to default corresponding relation, its In, the data volume of first reported data is less than the data volume of first log information;

Default virtual-sensor is called, and first reported data is reported to using the default virtual-sensor and answered With processor, wherein, the default virtual-sensor is located at audio digital signal processor ADSP driving layers;

The first received reported data is solved based on the default corresponding relation by the application processor Analysis, obtains first log information.

Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums (example Such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other types Memory or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed, or It can be located in different second computer systems, second computer system is connected to the first meter by network (such as internet) Calculation machine system.Second computer system can provide programmed instruction and be used to perform to the first computer.Term " storage medium " can With including may reside within diverse location (such as in different computer systems by network connection) two or more Storage medium.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as be implemented as counting Calculation machine program).

Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, its computer The log information that executable instruction is not limited to the described above reports operation, can also carry out what the application any embodiment was provided Associative operation in log information report method.

The embodiment of the present application provides a kind of mobile terminal, and the day of the embodiment of the present application offer can be integrated in the mobile terminal Will information reporting device.Fig. 6 is a kind of structural representation for mobile terminal that the embodiment of the present application provides.As shown in fig. 6, the shifting Dynamic terminal can include:Sensor 601, memory 602, processor 603 and storage can be run on a memory and in processor Computer program, realized when the processor 603 performs the computer program any one as described in the embodiment of the present application Kind log information report method.The sensor 601 include the embodiment of the present application described in physical sensors, particular type and Quantity the embodiment of the present application does not limit.

The mobile terminal that the embodiment of the present application provides, the default virtual-sensor of layer, profit are driven positioned at ADSP by calling The first reported data corresponding to the first log information is reported with the transmission channel of the sensing data of physical sensors, and first The data volume of reported data is less than the data volume of the first log information, reduces the data volume that needs transmit, and can accelerate data biography Defeated speed, and then effectively improve the log information of physical sensors reports efficiency.

Fig. 7 is the structural representation for another mobile terminal that the embodiment of the present application provides, as shown in fig. 7, the movement is whole End can include:Housing (not shown), memory 701, central processing unit (central processing unit, CPU) 702 (also known as processor, hereinafter referred to as CPU), sensor 713, circuit board (not shown) and power circuit (do not show in figure Go out).The circuit board is placed in the interior volume that the housing surrounds;The CPU702 and the memory 701 are arranged on institute State on circuit board;The power circuit, for each circuit or the device power supply for the mobile terminal;The memory 701, For storing executable program code;The CPU702 is by reading the executable program code stored in the memory 701 To run computer program corresponding with the executable program code, to realize following steps:

Obtain the first log information of target physical sensor generation;

First log information is converted into the first reported data of preset data type according to default corresponding relation, its In, the data volume of first reported data is less than the data volume of first log information;

Default virtual-sensor is called, and first reported data is reported to using the default virtual-sensor and answered With processor, wherein, the default virtual-sensor is located at audio digital signal processor ADSP driving layers;

The first received reported data is solved based on the default corresponding relation by the application processor Analysis, obtains first log information.

The mobile terminal also includes:Peripheral Interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio-frequency electric Road 706, loudspeaker 711, power management chip 708, input/output (I/O) subsystem 709, other input/control devicess 710, Touch-screen 712, other input/control devicess 710 and outside port 704, these parts pass through one or more communication bus Or signal wire 707 communicates.

It should be understood that diagram mobile terminal 700 is only an example of mobile terminal, and mobile terminal 700 Can have than more or less parts shown in figure, can combine two or more parts, or can be with Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.

Below with regard to the present embodiment offer for reporting the mobile terminal of log information to be described in detail, the movement is whole End is by taking mobile phone as an example.

Memory 701, the memory 701 can be accessed by CPU702, Peripheral Interface 703 etc., and the memory 701 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.

The input of equipment and output peripheral hardware can be connected to CPU702 and deposited by Peripheral Interface 703, the Peripheral Interface 703 Reservoir 701.

I/O subsystems 709, the I/O subsystems 709 can be by the input/output peripherals in equipment, such as touch-screen 712 With other input/control devicess 710, Peripheral Interface 703 is connected to.I/O subsystems 709 can include the He of display controller 7091 For controlling one or more input controllers 7092 of other input/control devicess 710.Wherein, one or more input controls Device 7092 processed receives electric signal from other input/control devicess 710 or sends electric signal to other input/control devicess 710, Other input/control devicess 710 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 7092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.

Touch-screen 712, the touch-screen 712 are the input interface and output interface between customer mobile terminal and user, Visual output display can be included into figure, text, icon, video etc. to user, visual output.

Display controller 7091 in I/O subsystems 709 receives electric signal from touch-screen 712 or sent out to touch-screen 712 Electric signals.Touch-screen 712 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 7091 The interaction of user interface object on touch-screen 712, that is, realize man-machine interaction, the user interface being shown on touch-screen 712 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.

RF circuits 705, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 705 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 705 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 705 can include being used to perform The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould Block (Subscriber Identity Module, SIM) etc..

Voicefrequency circuit 706, it is mainly used in receiving voice data from Peripheral Interface 703, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 711.

Loudspeaker 711, for the voice signal for receiving mobile phone from wireless network by RF circuits 705, it is reduced to sound And play the sound to user.

Power management chip 708, the hardware for being connected by CPU702, I/O subsystem and Peripheral Interface are powered And power management.

Sensor 713, including the physical sensors described in the embodiment of the present application, particular type and quantity the application are implemented Example does not limit.

It is any that log information reporting device, storage medium and the mobile terminal provided in above-described embodiment can perform the application The log information report method that embodiment is provided, possess and perform the corresponding functional module of this method and beneficial effect.Not upper The ins and outs of detailed description in embodiment are stated, reference can be made to the log information report method that the application any embodiment is provided.

Pay attention to, above are only preferred embodiment and the institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also Other more equivalent embodiments can be included, and scope of the present application is determined by scope of the appended claims.

Claims (11)

  1. A kind of 1. log information report method, it is characterised in that including:
    Obtain the first log information of target physical sensor generation;
    First log information is converted into the first reported data of preset data type according to default corresponding relation, wherein, The data volume of first reported data is less than the data volume of first log information;
    Default virtual-sensor is called, and is reported to first reported data at using the default virtual-sensor Device is managed, wherein, the default virtual-sensor is located at audio digital signal processor ADSP driving layers;
    The first received reported data is parsed based on the default corresponding relation by the application processor, obtained To first log information.
  2. 2. according to the method for claim 1, it is characterised in that it is described to call default virtual-sensor, and utilize described pre- If first reported data is reported to application processor by virtual-sensor, including:
    Call data corresponding to default virtual-sensor to report function, and report function to be reported described first using the data Data report to application processor.
  3. 3. according to the method for claim 2, it is characterised in that described to report function by described first using the data Count off evidence reports to application processor, including:
    Report function that first reported data is reported into application via sensor hardware abstraction layer interface using the data Processor.
  4. 4. according to the method for claim 2, it is characterised in that the data report the parameter defined in function to include physics Sensor identification and reported data content, the reported data content are corresponding with first reported data.
  5. 5. according to the method for claim 2, it is characterised in that the preset data type is value type, described first The data type of log information is character string type.
  6. 6. according to any described methods of claim 1-5, it is characterised in that described to obtain the of the generation of target physical sensor One log information, including:
    When monitoring that target physical sensor is in default operating condition, first day of the target physical sensor generation is obtained Will information.
  7. 7. according to the method for claim 6, it is characterised in that described to monitor that target physical sensor is in default work During state, in addition to:
    Obtain the second log information of the target physical sensor generation;
    While first reported data is reported to application processor by the utilization default virtual-sensor, also wrap Include:
    Using log transmission passage by the second daily record information reporting to the application processor.
  8. 8. according to the method for claim 6, it is characterised in that the default operating condition includes:Pick up calibration state, It is at least one in electrostatic reset state and other assigned work states corresponding with the target physical sensor.
  9. A kind of 9. log information reporting device, it is characterised in that including:
    Log information acquisition module, for obtaining the first log information of target physical sensor generation;
    Log information conversion module, for first log information to be converted into preset data type according to default corresponding relation The first reported data, wherein, the data volume of first reported data is less than the data volume of first log information;
    Daily record reporting module, for calling default virtual-sensor, and using the default virtual-sensor by described first Count off evidence reports to application processor, wherein, the default virtual-sensor is located at audio digital signal processor ADSP drivings Layer;
    Log information parsing module, for by the application processor based on the default corresponding relation to received One reported data is parsed, and obtains first log information.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The log information report method as described in any in claim 1-8 is realized during execution.
  11. 11. a kind of mobile terminal, it is characterised in that including sensor, memory, processor and storage are on a memory and can be The computer program of processor operation, is realized such as any institutes of claim 1-8 described in the computing device during computer program The log information report method stated.
CN201710823532.9A 2017-09-13 2017-09-13 Log information report method, device, storage medium and mobile terminal CN107577542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710823532.9A CN107577542A (en) 2017-09-13 2017-09-13 Log information report method, device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710823532.9A CN107577542A (en) 2017-09-13 2017-09-13 Log information report method, device, storage medium and mobile terminal

Publications (1)

Publication Number Publication Date
CN107577542A true CN107577542A (en) 2018-01-12

Family

ID=61036435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710823532.9A CN107577542A (en) 2017-09-13 2017-09-13 Log information report method, device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN107577542A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704342A (en) * 2019-09-20 2020-01-17 Oppo广东移动通信有限公司 Peripheral chip, application processor, terminal device and communication method

Citations (5)

* 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
US20090013335A1 (en) * 2007-07-06 2009-01-08 Aten International Co., Ltd. Sensor process management methods and systems
CN101572957A (en) * 2009-05-08 2009-11-04 深圳市宏电技术股份有限公司 Acquisition method and system of wireless terminal log based on WMMP
CN106776385A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 A kind of transmission method of daily record log information, device and terminal
CN107092483A (en) * 2017-03-24 2017-08-25 武汉斗鱼网络科技有限公司 The method and system of data type in a kind of automatic parsing daily record storehouse

Patent Citations (5)

* 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
US20090013335A1 (en) * 2007-07-06 2009-01-08 Aten International Co., Ltd. Sensor process management methods and systems
CN101572957A (en) * 2009-05-08 2009-11-04 深圳市宏电技术股份有限公司 Acquisition method and system of wireless terminal log based on WMMP
CN106776385A (en) * 2016-12-06 2017-05-31 广东欧珀移动通信有限公司 A kind of transmission method of daily record log information, device and terminal
CN107092483A (en) * 2017-03-24 2017-08-25 武汉斗鱼网络科技有限公司 The method and system of data type in a kind of automatic parsing daily record storehouse

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704342A (en) * 2019-09-20 2020-01-17 Oppo广东移动通信有限公司 Peripheral chip, application processor, terminal device and communication method

Similar Documents

Publication Publication Date Title
WO2019086043A1 (en) M ethods and systems for preloading applications and generating prediction models
US20200177726A1 (en) Method for switching applications in split screen mode, computer device and computer-readable storage medium
TW201543239A (en) Method and apparatus for grouping contacts
CN103473011B (en) A kind of mobile terminal performance detection method, device and mobile terminal
US9280451B2 (en) Testing device
CN104541231A (en) Method and device for preventing mistaken touch of touch screen
CN105493479B (en) More equipment wirelessly disable and enable
CN102662665B (en) Input subsystem enabling Android to support various sensors
US9354919B2 (en) Method and device for loading android virtual machine application
CN102053911A (en) Automated testing method and system based on Android and mobile terminal
CN100518198C (en) Method for increasing handset starting response speed
EP2713254A1 (en) Touch event reporting method, device and mobile terminal
CN107844189A (en) A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
WO2013185119A1 (en) Storing trace information
WO2017206902A1 (en) Application control method and related device
CN105227626B (en) A kind of content delivery method, device and terminal
CN103472996A (en) Method and device for receiving touch in mobile device
CN107632697B (en) Processing method, device, storage medium and the electronic equipment of application program
WO2015035947A1 (en) Method for realizing cellphone without card, cellphone and server
WO2019015435A1 (en) Speech recognition method and apparatus, and storage medium
CN105264456B (en) Move fence
CN104159294A (en) Cloud positioning platform based on Bluetooth 4.0 technology
CN104461048B (en) Electronic device and its control method
CN107942306B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
CN107172477B (en) Voting method and device

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.