CN107590241A - Log information report method, device and storage medium, ADSP and terminal - Google Patents
Log information report method, device and storage medium, ADSP and terminal Download PDFInfo
- Publication number
- CN107590241A CN107590241A CN201710824053.9A CN201710824053A CN107590241A CN 107590241 A CN107590241 A CN 107590241A CN 201710824053 A CN201710824053 A CN 201710824053A CN 107590241 A CN107590241 A CN 107590241A
- Authority
- CN
- China
- Prior art keywords
- log
- log information
- signal processor
- digital signal
- 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.)
- Granted
Links
Abstract
The embodiment of the present application discloses a kind of log information report method, device and storage medium, ADSP and terminal.Methods described includes:Present video digital signal processor generates log information;The log information is stored in the log buffer area of the audio digital signal processor;Log information in the log buffer area is reported into time interval according to corresponding to respective log properties, the application processor of terminal where reporting to present video digital signal processor.The technical scheme that the embodiment of the present application provides, it can reasonably report the log information of audio digital signal processor.
Description
Technical field
The invention relates to the daily record control technology field of mobile terminal, more particularly to a kind of log information side of reporting
Method, device and storage medium, ADSP and terminal.
Background technology
An audio digital signal processor (advanced digital signal are typically provided with mobile terminals
Processor, ADSP), the processor can manage all the sensors on mobile terminal concentratedly, can save mobile terminal application
Many resources of processor (Application Processor, AP).Because ADSP and AP are two independent processors, institute
Very complicated with the transmission memory mechanism of sensor logs (log) information, the daily record method for controlling reporting in correlation technique, which exists, to be lacked
Fall into, it is necessary to improve.
The content of the invention
The embodiment of the present application provides a kind of log information report method, device and storage medium, ADSP and terminal, can be with excellent
The log information for changing ADSP reports scheme.
In a first aspect, the embodiment of the present application provides a kind of log information report method, including:
Present video digital signal processor generates log information;
The log information is stored in the log buffer area of the audio digital signal processor;
Log information in the log buffer area is reported into time interval according to corresponding to respective log properties, reported
The application processor of terminal where to present video digital signal processor.
In second aspect, the embodiment of the present application provides a kind of log information reporting device, including:
Log information generation module, log information is generated for present video digital signal processor;
Log information is stored in module, and the daily record for the log information to be stored in the audio digital signal processor is delayed
Rush in area;
Log information reporting module, for by the log information in the log buffer area according to respective log properties pair
That answers reports time interval, the application processor of terminal where reporting to present video digital signal processor.
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 provided such as first aspect is realized when the program is executed by processor.
In fourth aspect, the embodiment of the present application provides a kind of mobile terminal, including memory, processor and is stored in
The day that such as first aspect is provided is realized on reservoir and the computer program that can run on a processor, during the computing device
Will information uploading method.
The log information that the embodiment of the present application is generated by audio digital signal processor part is stored in log buffer area, is pressed
Time interval is reported according to corresponding to the respective log properties of the log information, application processor is reported to, application can be slowed down
The response pressure of processor, reasonably report the log information on audio digital signal processor.
Brief description of the drawings
Fig. 1 is the schematic diagram that a kind of log information that the embodiment of the present application provides reports process;
Fig. 2 is a kind of flow chart for log information report method that the embodiment of the present application provides;
Fig. 3 is the flow chart for another log information report method that the embodiment of the present application provides;
Fig. 4 is the flow chart for another log information report method that the embodiment of the present application provides;
Fig. 5 is a kind of structural representation 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 a kind of another structural representation for mobile terminal that the embodiment of the present application provides.
Embodiment
In order that the purpose, technical scheme and advantage of the application are clearer, below in conjunction with the accompanying drawings to the specific reality of the application
Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the application,
Rather than the restriction to the application.It also should be noted that for the ease of describing, illustrate only in accompanying drawing related to the application
Part rather than full content.It should be mentioned that some exemplary realities before exemplary embodiment is discussed in greater detail
Apply processing or method that example is described as describing as flow chart.Although operations (or step) are described as order by flow chart
Processing, but many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations
It can be rearranged.The processing can be terminated when its operations are completed, it is also possible to being not included in accompanying drawing
Additional step.The processing can correspond 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) ADSP log transmissions process 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.The log information generated on ADSP is mainly the log information of sensor, in addition to the system day such as electricity, power-down state on ADSP
Will information.
ADSP it is upper can the sensor such as carry ambient light sensor, proximity transducer, gyroscope and acceleration transducer, these
Sensor can generate sensor logs (Sensor Log), wherein, sensor logs may include the status information of sensor (in this way
No failure, in which kind of working condition etc.) and the course of work in various data (such as the data of collection and each that are related to
Kind decision threshold etc.), for different sensors, the sensor logs generated there may be difference, and the embodiment of the present application is not
An another citing.Fig. 1 is that a kind of log information that the embodiment of the present application provides reports process schematic.Sensor logs are by sensing
Device generates, because sensor carry is on ADSP, so needing to transmit to AP by ADSP.After ADSP generates log information
Be directly stored in ADSP log buffer area, after being filled with log buffer area according to certain reporting schemes by ADSP with
Communication path between AP, the log information in log buffer area is reported into AP, wherein, the communication path can be to pass through
Shared drive (Shared Memory Driver, SMD), interprocess communication (Inter-Process Communication,
IPC) and log information is sent to AP's by high pass message interface (Qualcom Message Interface, QMI)
Diagnostic task, and then it is sent to AP file system or QXDM instruments.Wherein, Diagnostic task are one
Diagnosis process, QXDM (The QUALCOMM Extensible Diagnostic Monitor) be Qualcomm can to move
Dynamic terminal sends out the instrument that data are tracked, and can carry out dependence test or diagnosis by the analysis to data.Daily record is opened to open
After pass, in the transmitting procedure of log information, log information is usually to be transmitted in the form of character string, and its data volume is ratio
Larger, and the limited storage space in log buffer area, log buffer area will soon be filled, and be caused in log buffer area
Log information is reported to AP ends always, and AP ends will be gone to respond after the log information that ADSP reports is received, and cause
AP can not dormancy, and need frequently to go to receive and handle log information, make the power consumption of mobile terminal larger.If closing journal is opened
Close, then the problem of may result in many sensor correlations, need to carry out repeatedly due to lacking the log information of bottom layer driving
Pressure test, increase the testing time on foot, have a strong impact on the analysis to sensor relevant issues and solve efficiency.
Next, related data structures and the reading scene of log information that log information will be introduced respectively.
1st, the related data structures of log information.
Struct logger_entry are a structures for being used to describe a Log record.Len member variables record
The length of the pay(useful) load of this record, the length of the log recording that pay(useful) load is specified in itself._ _ pad member variables are to use
Carry out alignment structures body.It is which bar process is written with this record that pid and tid member variables, which are respectively intended to record,.Sec and nsec
The time that member variable log is write.What msg member variables recorded is exactly the content of pay(useful) load, and its size is by len
Member variable determines.
Structure struct logger_log are exactly the place for being really used for preserving daily record.Buffer member variables become
It is to be determined with the core buffer for preserving log information, its size by size member variables.Can from misc member variables
Go out, the equipment that the equipment that daily record driver uses belongs to misc types, wq member variables are a waiting lists, for preserving
The process of the daily record to be read such as.Readers member variables are used for preserving the current process for reading daily record, read
The process of daily record is described by structure logger_reader.Mutex member variables are a mutexs, for protecting log's
Concurrently access.W_off member variables should wherefrom start to write for recording a daily record.Head member variables are used for representing
Which open in journal file, it should daily record is read since position.
2nd, the reading scene of log information.
The method for reading logging device file is logger_read:
It is from log- during new opening logging device file>Head positions start to read daily record, are stored in struct
In logger_reader member variable r_off.While circulations at start labels are to wait daily record readable, if
It is readable through not new daily record, then the process of reading will enter resting state, wait new daily record to be waken up again after writing, this is
Call to realize by prepare_wait and schedule two.If it is readable without new daily record, and device file
It is not to be opened in a manner of non-obstruction O_NONBLOCK or at this moment have signal to handle (signal_pending
(current)), then just directly return, be no longer waiting for new daily record write-in.Whether judgement currently has the readable side of new daily record
Method is:Ret=(log->W_off==reader->r_off);Judge current buffer writing position and it is current read into
Whether the reading position of journey is equal, if unequal, illustrates have new daily record readable.Continue to look down, if new day
Will is readable, then just obtains the length of next readable log recording, it can be seen, log read process can be with
Log recording is read out for unit, once only reads a record.It should be noted that reading and the daily record letter of log information
Reporting for breath is two relative processes, is actively read in some cases by application processor in audio digital signal processor
Log information, log information is actively reported to application processor from audio digital signal processor in some situations time, but
It is that reading and the log information of log information reports mechanism similar with principle.
Fig. 2 gives a kind of flow chart of log information report method of the embodiment of the present application offer, the side of the present embodiment
Method can be performed by log information reporting device, and the device can realize that described device can by way of hardware and/or software
The inside of the mobile terminal is arranged on as a mobile terminal part.Such as it is arranged at the audio digital signals of mobile terminal
Manage in device.Audio digital signal processor generation log information of the method that the present embodiment provides suitable for mobile terminal, to
The situation that application processor is reported.
As shown in Fig. 2 the log information report method that the present embodiment provides comprises the following steps:
Step 101, present video digital signal processor generation log information.
Audio digital signal processor (ADSP) the generation log information of mobile terminal.The log information exists including carry
Some log informations of the log information and ADSP itself of sensor on ADSP, such as ADSP upper electricity and power down process process
Log information, the log information of the sensor generates by sensor.Mobile terminal described in the present embodiment is included but not
It is defined in the equipment that mobile phone, notebook or tablet personal computer etc. are provided with ADSP and AP.
Also include the operation for opening daily record switch before this step, the operation for opening daily record switch can be by ADSP
AP in the terminal of place is performed, and informs ADSP, and ADSP starts to generate the daily record on ADSP after the advertisement message is received
The operation of information.
Step 102, the log information is stored in the log buffer area of the audio digital signal processor.
The log information of generation is delayed by the daily record of while recurrent wrItings to the audio digital signal processor
Rush in area.
Step 103, the log information in the log buffer area called time according on corresponding to respective log properties
Interval, the application processor of terminal where reporting to present video digital signal processor.
Wherein, the log properties include daily record generation time either Log Label or daily record reporting types.Can be advance
Set the various log informations with different log properties reports time interval, and log information is called time on corresponding
Interval reports once.
The daily record generation time, the Log Label was for identifying daily record hair to generate the timestamp of the log information
Play person and facilitate the log properties of daily record filtering screening, such as Log Label BroadcastQueue, represent the daily record on wide
Broadcast queue.
The daily record reporting types can be based on sensor device type, daily record rank, log information content or ADSP frameworks
Functional domain is classified.
Optionally, when being classified based on sensor type, can according to the name class of sensor, such as sensor name with
Log Types correspond;Also can be according to the function classification of sensor, for example, the sensor such as gyroscope and acceleration transducer is
For detecting the exercise data of mobile terminal, motion Log Types can be corresponded to, ambient light sensor and proximity transducer are to use
In detection external environment change, environment Log Types can be corresponded to;It can also be classified according to the priority of sensor, this is preferential
Level can be used for characterizing the priority that sensor logs report.
Optionally, can be according to the classification of type of log information content, for example, passing when based on log information classifying content
The working condition of sensor is a kind of, and the abnormal conditions of sensor are one kind, and the data of sensor collection is a kind of, the school of sensor
Quasi- data are one kind, and the decision threshold of sensor is one kind etc.;Also can classify according to the significance level of log information content, example
Such as, the significance level of the status information of sensor, can be by different sensors higher than the data and decision threshold of sensor collection
The corresponding Log Types of status information, the data of different sensors collection and decision threshold are corresponded into another daily record class
Type.
Optionally, when based on daily record grade classification, typically it may include following a few classes from low to high from daily record rank:
DEBUG (debugging, represents all rational debugging daily records), and INFO (information, represents daily record during normal use), and WARN is (alert
Accuse, representing may be problematic, does not make a mistake also), ERROR (mistake, represents problematic and causes to malfunction), FATAL (it is fatal,
Representing problematic causes fatal error occurs during operation, typically results in and restarts).
Optionally, can be by daily record caused by difference in functionality domain (functional module) when being classified based on ADSP form and functions domain
Information corresponds to a kind of Log Types respectively.A kind of for example, sensor management module (Sensors Manager, Smgr) corresponding day
Will type, a kind of corresponding Log Types of pick up calibration management module (Sensors Calibration Manager), sensor
Corresponding a kind of Log Types of algorithm management module (Sensors Alorithm Manager) etc..
Certainly, the classification of the Log Types can also be classified based on other factors, such as log information is based on working as
The application program and audio digital signal processor system of preceding operation are divided into two classes etc. in itself, can also be based on other classification sides
Method is classified to Log Types, and the present embodiment is to this and is not limited.
The step can specifically include:Obtain the log information to be reported in the buffering area;Whether judge current time
Reach and report time interval corresponding to the log information to be reported;If so, the log information to be reported is then reported into institute
State application processor;If it is not, then obtain next log information to be reported.Wherein, described obtain is treated in the buffering area
Report log information can include:The each of log information to be reported in the log buffer area is obtained in real time according to setting acquisition order
Individual log recording, recorded each log recording as current log.It is described to judge whether current time reaches institute
State and report time interval corresponding to log information to be reported, if so, the log information to be reported then is reported into the application
Processor, if it is not, then obtaining next log information to be reported includes:Determine that the first Log Types of current log record are corresponding
First report time interval, judge whether the current time reaches described first and report time interval, if so, then will described in
Current log record reports to the application processor, if it is not, then obtaining next log recording.
The log information report method that the present embodiment provides, the log information generated by audio digital signal processor part
It is stored in log buffer area, reports time interval according to corresponding to the respective log properties of the log information, report to application
Processor, can slow down the response pressure of application processor, reasonably report the log information on audio digital signal processor.
On the basis of above-mentioned technical proposal, it can also comprise the following steps:Stop if it is determined that the application processor is in
Dormancy state, then the log information of generation is stored into the setting memory space of the present video digital signal processor;
When detecting that log information reported event is triggered, target journaling information is obtained from the setting memory space, and by described in
Target journaling information is stored in the log buffer area.
Optionally, however, it is determined that the application processor in a dormant state, then arrives the log information storage of generation described
It can include in the setting memory space of present video digital signal processor:Detecting present video digital signal processor
The application processor (AP) of place terminal in a dormant state or is received at the application that the application processor is sent
When managing the message of device in a dormant state, the setting that the log information of generation is deposited to the audio digital signal processor is deposited
Store up in space.So set the reason for be:Application processor in a dormant state when, log information is not stored in log buffer
Area but first deposit setting memory space, audio digital signal processor can be avoided to enter the log information in log buffer area
Row report and application processor caused to bother so that application processor can not dormancy the problem of.
Optionally, it is described when detecting that log information reported event is triggered, obtained from the setting memory space
Target journaling information can include:When the log information for receiving the application processor obtains instruction, deposited from the setting
The log information is obtained in storage space and obtains the corresponding log information of instruction as target journaling information;Or detecting
When current time reaches setting time interval, day corresponding with the setting time interval is obtained from the setting memory space
Will information is as target journaling information.
Fig. 3 gives the flow chart of another log information report method of the embodiment of the present application offer.As shown in figure 3,
The method that the present embodiment provides comprises the following steps:
Step 201, present video digital signal processor generation log information.
Step 202, the log information is stored in the log buffer area of the audio digital signal processor.
Step 203, according to setting acquisition order obtain each log recording in the log buffer area in real time, will described in
Each log recording records respectively as current log, and the setting acquisition order is deposited into the daily record including log recording and delayed
Rush the time order and function order in area.
It can be obtained in the acquisition process of log information in units of log recording, i.e., once obtain a daily record note
Record.The time order and function order that log buffer area can be so deposited into according to log recording is obtained in log buffer area in real time
Each log recording.For example, the log recording being first stored in first obtains, or the log recording being stored in afterwards first obtains.
Step 204, determine first to report time interval corresponding to the first Log Types of current log record, according to described
First reports time interval that current log record is reported into the application processor.
When current log record is got when getting a log recording, the belonging to current log record is determined
One Log Types, and first report time interval corresponding to the first Log Types.Wherein, first corresponding to each log recording
Log Types may be different, and first reports time interval different corresponding to corresponding each log recording.
It is described according to described first report time interval by the current log record report to the application processor can
With including:Judge whether current time reaches described first and report time interval;If so, then current log record is reported
To the application processor.Recorded if it is not, then obtaining next log recording as current log.
Exemplary, Log Types can be pre-set and be divided into sensor logs type and ADSP system journal types, and passed
First to report time interval be 1 second corresponding to sensor Log Types, first corresponding to ADSP system journal types on call time between
It is divided into 5 seconds.So when the Log Types of the current log record got are sensor type, then judge that last time reports sensing
Whether the time gap current time of device type log information reaches 1 second, if current log record then is reported into institute
Application processor is stated, if otherwise continuing to obtain next log recording.When the Log Types of the current log record got are
ADSP system journal types, then judge last time report ADSP system journal type log informations time gap current time whether
Reach 5 seconds, if current log record then is reported into the application processor, if otherwise continuing to obtain next daily record
Record.
It should be noted that obtain each log recording in the present embodiment, using each log recording as current
Log recording;Determine first to report time interval corresponding to current log record, a kind of simply each daily record to getting is remembered
Record performs respectively to be determined to report the describing mode of time interval, be not used to limit determine each log recording on call time between
Every idiographic flow.Step 203 and step 204 in the present embodiment include obtaining a log recording in log buffer area;
Determine corresponding to this log recording that first reports time interval;Obtain next log recording in log buffer area;It is determined that
First reports time interval corresponding to this log recording, until the reality that each log recording in log buffer area has been acquired
Apply mode.
The report method for the log information that the present embodiment provides, by obtaining the daily record in real time according to setting acquisition order
Each log recording in buffering area, recorded each log recording as current log, determine that current log is remembered
First reports time interval corresponding to first Log Types of record, and time interval is reported by the current log according to described first
Record reports to the application processor, can reasonably report the log information on audio digital signal processor.
Fig. 4 gives the flow chart of another log information report method of the embodiment of the present application offer.As shown in figure 4,
The log information report method that the present embodiment provides comprises the following steps:
Step 301, present video digital signal processor generation log information.
Step 302, the log information is stored in the log buffer area of the audio digital signal processor.
Step 303, using set timer obtain meet second report time interval the second Log Types daily record believe
Breath.
Optionally, to be multiple, the utilization sets timer acquisition and met between being called time on second the timer that sets
Every the log informations of the second Log Types can include:Detect and reached in multiple setting timers with the presence or absence of timing time in real time
Report time interval to corresponding second first sets timer;If detecting the presence of the first setting timer, obtain
Take the described second log information for reporting the second Log Types corresponding to time interval.Wherein, each timer corresponds to one kind
Log Types report time interval to carry out timing, and corresponding one second of each timer reports time interval, and described first sets
It may be one or more timer to determine timer.
Exemplary, Log Types are divided into A, B and C three types, it is each it is self-corresponding to report time interval be 1 second, 2 seconds, 5
Second, then 3 timers can be set, each timer is used to report interval time to carry out timing a kind of Log Types.It is real
When the timing time that detects in 3 timers whether reach respective and report interval time, for example, detecting that timer 1 reaches
By 1 second, timer 2 reached 5 seconds, i.e. the first timer is timer 1 and timer 2, and corresponding second reports time interval as 2
Second and 5 seconds, then Log Types A log information and Log Types C log information are obtained from log buffer area.Wherein, institute
Stating the quantity of acquisition log information can preset, such as obtain the daily record note of one or more of second Log Types every time
Record.
Step 304, the log information of second Log Types in the log buffer area reported into the application
Processor.
Exemplary, the log information of Log Types A log information and Log Types C is reported to and told using processing
Device.
The method that the present embodiment provides, meet to call time on second to obtain by using multiple timers set in advance
The log information of second Log Types at interval, by the log information of second Log Types in the log buffer area
Reporting to the application processor, can reasonably report the log information of audio digital signal processor.
Fig. 5 is a kind of structural representation for log information reporting device that the embodiment of the present application provides, and the device can be by soft
Part and/or hardware are realized, are integrated in the terminal, such as be integrated in the audio digital signal processor of mobile terminal.Such as
Shown in Fig. 5, the device includes log information generation module 41, log information deposit module 42 and log information reporting module 43.
Log information generation module 41, log information is generated for present video digital signal processor;
Log information is stored in module 42, for the log information to be stored in the daily record of the audio digital signal processor
In buffering area;
Log information reporting module 43, for by the log information in the log buffer area according to respective log properties
It is corresponding to report time interval, the application processor of terminal where reporting to present video digital signal processor.
The device that the present embodiment provides, the log information generated by audio digital signal processor part are stored in log buffer
Qu Zhong, time interval is reported according to corresponding to the respective log properties of the log information, application processor is reported to, can subtract
The response pressure of slow application processor, reasonably reports the log information on audio digital signal processor.
On the basis of the various embodiments described above, the log properties include daily record reporting types, and the log information reports
Module includes:
Log recording acquiring unit, for obtaining each day in the log buffer area in real time according to setting acquisition order
Will is recorded, and is recorded each log recording as current log, and the setting acquisition order is deposited including log recording
Enter the time order and function order to the log buffer area;
Log recording reporting unit, for determining to call time on first corresponding to the first Log Types of current log record
Interval, report time interval that current log record is reported into the application processor according to described first.
On the basis of the various embodiments described above, the log properties include daily record reporting types, and the log information reports
Module includes:
Log information acquiring unit, for the second daily record for obtaining satisfaction second using timer is set and reporting time interval
The log information of type;
Log information reporting unit, for by the log information of second Log Types in the log buffer area
Report to the application processor.
On the basis of the various embodiments described above, the log recording reporting unit is specifically used for:
Judge whether current time reaches described first and report time interval;
If so, current log record is then reported into the application processor.
On the basis of the various embodiments described above, for the timer that sets to be multiple, the log information acquiring unit is specific
For:
Detect in real time and reach corresponding second with the presence or absence of timing time in multiple setting timers and report time interval
First setting timer;
If detecting the presence of the first setting timer, obtain described second and report second day corresponding to time interval
The log information of will type.
On the basis of the various embodiments described above, the daily record reporting types are based on sensor device type, daily record rank, daily record
The information content or ADSP form and functions domain are classified.
On the basis of the various embodiments described above, described device can also include:
Log information memory module, for if it is determined that the application processor in a dormant state, then by the daily record of generation
Information is stored into the setting memory space of the present video digital signal processor;
Log information acquisition module, for when detecting that log information reported event is triggered, being stored from the setting
Target journaling information is obtained in space, and the target journaling information is stored in the log buffer area.
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 to perform a kind of log information report method when being performed by computer processor, and this method includes:Present video number
Word signal processor generates log information;The log information is stored in the log buffer area of the audio digital signal processor
In;Log information in the log buffer area is reported into time interval according to corresponding to respective log properties, reports to and works as
The application processor of terminal where preceding audio digital signal processor.
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, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums
(such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other
The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed,
Or can be located in different second computer systems, second computer system is connected to the by network (such as internet)
One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term
Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or
More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement
For computer 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.
A kind of audio digital signal processor is present embodiments provided, is stored thereon with computer program, the program is by institute
State when audio digital signal processor performs and realize the log information report method that the application any embodiment is provided.
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 mobile terminal
It can include:Sensor 501, memory 502, (processor includes audio digital signal processor 503 and application to processor
Processor 504) and storage on a memory and can audio digital signal processor 504 operation computer program, the sound
Frequency word signal processor realizes any one log information as described in the embodiment of the present application when performing the computer program
Report method.Wherein, the memory 502 includes the shared drive of audio digital signal processor 503 and application processor, also
Including the respective independent memory space of audio digital signal processor 503 and application processor.
Fig. 7 is a kind of another structural representation for mobile terminal that the embodiment of the present application provides, and the mobile terminal can wrap
The log information reporting device of the application any embodiment offer is included, as shown in fig. 7, the mobile terminal can include:Memory
601st, central processing unit (Central Processing Unit, CPU) 602 (also known as processor, hereinafter referred to as CPU), described
CPU includes application processor AP, the memory 601, for storing executable program code;The processor 602 passes through reading
The executable program code stored in the memory 601 is taken to run program corresponding with the executable program code, with
For performing:Present video digital signal processor generates log information;The log information is stored in the digital audio letter
In the log buffer area of number processor;By the log information in the log buffer area according on corresponding to respective log properties
Call time interval, the application processor of terminal where reporting to present video digital signal processor.
The mobile terminal also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric
Road 606, audio digital signal processor 613, sensor 614, loudspeaker 611, power management chip 608, input/output (I/
O) subsystem 609, touch-screen 612, other input/control devicess 610 and outside port 604, these parts by one or
Multiple communication bus or signal wire 607 communicate.
It should be understood that diagram mobile terminal 600 is only an example of mobile terminal, and mobile terminal 600
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 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 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 CPU502 and deposited by Peripheral Interface 603, the Peripheral Interface 603
Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals in equipment, such as touch-screen 612
With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include the He of display controller 6091
For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls
Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610,
Other input/control devicess 610 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 6092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 are the input interface and output interface between user terminal and user, can
It can include figure, text, icon, video etc. to user, visual output depending on output display.
Display controller 6091 in I/O subsystems 609 receives electric signal from touch-screen 612 or sent out to touch-screen 612
Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 6091
The interaction of user interface object on touch-screen 612, that is, realize man-machine interaction, the user interface being shown on touch-screen 612
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 605, 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 605 receive and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 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 605 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 606, it is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 611.
Audio digital signal processor (ADSP) 613, for control and management of sensor.
Sensor 614, including ambient light sensor, proximity transducer, gyroscope and acceleration transducer etc..
Loudspeaker 611, for the voice signal for receiving mobile phone from wireless network by RF circuits 605, it is reduced to sound
And play the sound to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface 603 are supplied
Electricity and power management.
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.
The technical principle that above are only the preferred embodiment of the application and used.The application is not limited to spy described here
Determine embodiment, the various significant changes that can carry out for a person skilled in the art, readjust and substitute all without departing from
The protection domain of the application.Therefore, although being described in further detail by above example to the application, this Shen
Above example please be not limited only to, in the case where not departing from the application design, other more equivalence enforcements can also be included
Example, and scope of the present application is determined by the scope of claim.
Claims (11)
- A kind of 1. log information report method, it is characterised in that including:Present video digital signal processor generates log information;The log information is stored in the log buffer area of the audio digital signal processor;Log information in the log buffer area is reported into time interval according to corresponding to respective log properties, reports to and works as The application processor of terminal where preceding audio digital signal processor.
- 2. according to the method for claim 1, it is characterised in that the log properties include daily record reporting types, described to incite somebody to action Log information in the log buffer area reports time interval according to corresponding to respective log properties, reports to present video The application processor of terminal includes where digital signal processor:Each log recording in the log buffer area is obtained in real time according to setting acquisition order, by each log recording Recorded respectively as current log, the setting acquisition order includes the time elder generation that log recording is deposited into the log buffer area Order afterwards;First time interval is reported corresponding to the first Log Types for determining current log record, called time according on described first Current log record is reported to the application processor by interval.
- 3. according to the method for claim 1, it is characterised in that the log properties include daily record reporting types, described to incite somebody to action Log information in the log buffer area reports time interval according to corresponding to respective log properties, reports to present video The application processor of terminal includes where digital signal processor:The log information for obtaining satisfaction second using timer is set and reporting the second Log Types of time interval;The log information of second Log Types in the log buffer area is reported into the application processor.
- 4. according to the method for claim 2, it is characterised in that described to report time interval described work as according to described first Preceding log recording, which reports to the application processor, to be included:Judge whether current time reaches described first and report time interval;If so, current log record is then reported into the application processor.
- 5. according to the method for claim 3, it is characterised in that the timer that sets is described to utilize setting meter to be multiple When device obtain and meet that second reports the log information of the second Log Types of time interval to include:Detect in real time and reach corresponding second with the presence or absence of timing time in multiple setting timers and report the first of time interval Set timer;If detecting the presence of the first setting timer, obtain described second and report the second daily record class corresponding to time interval The log information of type.
- 6. according to the method described in claim any one of 2-5, it is characterised in that the daily record reporting types are based on sensor device Type, daily record rank, log information content or ADSP form and functions domain are classified.
- 7. according to the method for claim 1, it is characterised in that also include:If it is determined that the application processor is in a dormant state, then by the log information storage of generation to present video numeral In the setting memory space of signal processor;When detecting that log information reported event is triggered, target journaling information is obtained from the setting memory space, and The target journaling information is stored in the log buffer area.
- A kind of 8. log information reporting device, it is characterised in that including:Log information generation module, log information is generated for present video digital signal processor;Log information is stored in module, for the log information to be stored in the log buffer area of the audio digital signal processor In;Log information reporting module, for by the log information in the log buffer area according to corresponding to respective log properties Time interval is reported, the application processor of terminal where reporting to present video digital signal processor.
- 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The log information report method as described in any in claim 1-7 is realized during row.
- 10. a kind of audio digital signal processor, is stored thereon with computer program, it is characterised in that the program is by the sound The log information report method as described in any in claim 1-7 is realized when frequency word signal processor performs.
- 11. a kind of mobile terminal, including memory, audio digital signal processor, application processor and storage are on a memory And the computer program that can be run on audio digital signal processor, it is characterised in that the audio digital signal processor The log information report method as described in any in claim 1-7 is realized when performing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710824053.9A CN107590241B (en) | 2017-09-13 | 2017-09-13 | Log information reporting method and device, storage medium, ADSP and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710824053.9A CN107590241B (en) | 2017-09-13 | 2017-09-13 | Log information reporting method and device, storage medium, ADSP and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107590241A true CN107590241A (en) | 2018-01-16 |
CN107590241B CN107590241B (en) | 2021-07-09 |
Family
ID=61051428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710824053.9A Active CN107590241B (en) | 2017-09-13 | 2017-09-13 | Log information reporting method and device, storage medium, ADSP and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107590241B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272276A (en) * | 2008-04-22 | 2008-09-24 | 深圳国人通信有限公司 | Log management implementing method |
CN103228031A (en) * | 2013-05-02 | 2013-07-31 | 黄晓峰 | Low power consumption wireless data acquisition device |
CN104461844A (en) * | 2014-10-31 | 2015-03-25 | 大唐移动通信设备有限公司 | Log service method based on rule |
CN104883275A (en) * | 2015-05-15 | 2015-09-02 | 烽火通信科技股份有限公司 | Log cache method and system of communication device |
CN105843365A (en) * | 2016-03-24 | 2016-08-10 | 广东欧珀移动通信有限公司 | Sensor control method and device |
CN106201844A (en) * | 2016-06-29 | 2016-12-07 | 北京智能管家科技有限公司 | A kind of log collecting method and device |
CN106484615A (en) * | 2016-09-29 | 2017-03-08 | 青岛海信移动通信技术股份有限公司 | The method and apparatus of log |
CN106776385A (en) * | 2016-12-06 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of transmission method of daily record log information, device and terminal |
-
2017
- 2017-09-13 CN CN201710824053.9A patent/CN107590241B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272276A (en) * | 2008-04-22 | 2008-09-24 | 深圳国人通信有限公司 | Log management implementing method |
CN103228031A (en) * | 2013-05-02 | 2013-07-31 | 黄晓峰 | Low power consumption wireless data acquisition device |
CN104461844A (en) * | 2014-10-31 | 2015-03-25 | 大唐移动通信设备有限公司 | Log service method based on rule |
CN104883275A (en) * | 2015-05-15 | 2015-09-02 | 烽火通信科技股份有限公司 | Log cache method and system of communication device |
CN105843365A (en) * | 2016-03-24 | 2016-08-10 | 广东欧珀移动通信有限公司 | Sensor control method and device |
CN106201844A (en) * | 2016-06-29 | 2016-12-07 | 北京智能管家科技有限公司 | A kind of log collecting method and device |
CN106484615A (en) * | 2016-09-29 | 2017-03-08 | 青岛海信移动通信技术股份有限公司 | The method and apparatus of log |
CN106776385A (en) * | 2016-12-06 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of transmission method of daily record log information, device and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107590241B (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107545067A (en) | Log information report method, device and storage medium, ADSP and terminal | |
US11397590B2 (en) | Method for preloading application, storage medium, and terminal | |
CN108512695B (en) | Method and device for monitoring application blockage | |
CN105264456B (en) | Move fence | |
CN108810057B (en) | User behavior data acquisition method and device and storage medium | |
WO2019019818A1 (en) | Method and apparatus for accelerating black screen gesture processing, storage medium, and mobile terminal | |
CN106791120A (en) | Mobile terminal puts out the control method and device of screen | |
CN103150248A (en) | Method and device for measuring and calculating startup time consumption | |
CN109753425A (en) | Pop-up processing method and processing device | |
CN107609114A (en) | Log information report method, device and storage medium, ADSP and terminal | |
CN104866416A (en) | Method and device for performance analysis of application program | |
CN107562602A (en) | Log information report method, device and storage medium, ADSP and terminal | |
CN111078523A (en) | Log obtaining method and device, storage medium and electronic equipment | |
CN107609120A (en) | Log information report method, device and storage medium, ADSP and terminal | |
CN107943570B (en) | Application management method and device, storage medium and electronic equipment | |
CN107577542B (en) | Log information reporting method and device, storage medium and mobile terminal | |
WO2019019810A1 (en) | Method, device, storage medium and mobile terminal for recognizing off-screen gesture | |
CN110418004A (en) | Screenshot processing method, terminal and computer readable storage medium | |
CN111970671B (en) | Control method and device of near field communication module and electronic equipment | |
CN107609118A (en) | Log information report method, device and storage medium, ADSP and terminal | |
CN106527685A (en) | Control method and device for terminal application | |
CN107609117A (en) | Log information report method, device and storage medium, ADSP and terminal | |
CN107491349A (en) | Applied program processing method and device, computer equipment, storage medium | |
CN107621999B (en) | Log information reporting method and device, storage medium and mobile terminal | |
CN107590241A (en) | Log information report method, device and storage medium, ADSP and terminal |
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. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |