CN105718026A - Power failure processing method and device - Google Patents

Power failure processing method and device Download PDF

Info

Publication number
CN105718026A
CN105718026A CN201610038595.9A CN201610038595A CN105718026A CN 105718026 A CN105718026 A CN 105718026A CN 201610038595 A CN201610038595 A CN 201610038595A CN 105718026 A CN105718026 A CN 105718026A
Authority
CN
China
Prior art keywords
mobile terminal
vibration signal
down process
power down
storage card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610038595.9A
Other languages
Chinese (zh)
Inventor
张海平
王英茂
李应伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610038595.9A priority Critical patent/CN105718026A/en
Publication of CN105718026A publication Critical patent/CN105718026A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a power failure processing method and a device. The power failure processing method of the embodiment of the invention comprises the steps of acquiring a vibration signal for a mobile terminal when current electricity quantity is less than first preset electricity quantity; then identifying whether the vibration signal is a vibration signal generated by knocking the mobile terminal by a user, if so, carrying out power failure on a memory card of the mobile terminal according to the vibration signal. According to the scheme, the power failure can be automatically carried out on the memory card of the mobile terminal through the vibration signal generated by knocking the mobile terminal by the user, the user does not need to perform a series of power failure operations for the terminal and can achieve power failure of the memory card by only needing to knock the mobile terminal; compared with the prior art, the power failure processing efficiency of the memory card of the mobile terminal is improved.

Description

A kind of power down process method and apparatus
Technical field
The present invention relates to field of terminal technology, be specifically related to a kind of power down process method and apparatus.
Background technology
Universal along with mobile terminal, more and more users use mobile terminal to carry out learning, amusement etc., and not only abundant user's life, also brings advantage to the user.
Owing to the memory space ratio of mobile terminal is relatively limited, in order to obtain bigger memory space, user generally installs storage card in the terminal, such as SD card (SecureDigitalMemoryCard, safe digital card) extends the memory space (premise is that mobile terminal supports storage card) of mobile terminal.Wherein, data, when powering on, are written and read waiting operation by storage card.
In prior art, when there is electricity deficiency in mobile terminal, mobile terminal can be operated disconnecting the power supply of storage card with triggering mobile terminals, closing the big program of some power consumption, process or perform other power-save operation by user, to ensure the electricity of terminal, increase the flying power of mobile terminal.
To in the research of prior art and practice process, the inventors found that, when there is electricity deficiency in mobile terminal, user is needed to carry out a series of operation, (such as, open and interface be set, search storage card and arrange, select storage card power-off etc.) just triggering mobile terminals can disconnect the power supply of storage card, cause the power down process inefficiency of storage card.
Summary of the invention
The embodiment of the present invention provides a kind of power down process method and apparatus, it is possible to improve the power down process efficiency of the storage card of mobile terminal.
The embodiment of the present invention provides a kind of power down process method, including:
When the electricity that mobile terminal is current presets electricity less than first, obtain the vibration signal for described mobile terminal;
Identify whether described vibration signal is that user passes through to knock vibration signal produced by described mobile terminal;
If so, then according to described vibration signal, the storage card of described mobile terminal is carried out power down process.
Accordingly, the embodiment of the present invention also provides for a kind of power down process device, including:
Acquisition module, for when the current electricity of mobile terminal presets electricity less than first, obtaining the vibration signal for described mobile terminal;
Identification module, is used for identifying whether described vibration signal is that user passes through to knock vibration signal produced by described mobile terminal;
Power-off modular, for when vibration signal described in described identification module identification passes through to knock vibration signal produced by described mobile terminal for user, carrying out power down process according to described vibration signal to the storage card of described mobile terminal.
The embodiment of the present invention adopts when presetting electricity when the current electricity of mobile terminal less than first, obtain the vibration signal for mobile terminal, then, identify whether this vibration signal is that user passes through to knock vibration signal produced by this mobile terminal, if so, according to this vibration signal, the storage card of this mobile terminal is carried out power down process;The program can by user knock mobile terminal produce vibration signal automatically the storage card of mobile terminal is carried out power down process, a series of power operation is carried out for terminal without user, only need to knock mobile terminal for a user and can realize storage card power-off, in terms of existing technologies, improve the power down process efficiency of mobile terminal storage card.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of power down process method that the embodiment of the present invention one provides;
Fig. 2 is the structural representation of the signal processing apparatus that the embodiment of the present invention one provides;
Fig. 3 is the flow chart of a kind of power down process method that the embodiment of the present invention two provides;
Fig. 4 a is the structural representation of a kind of power down process device that the embodiment of the present invention three provides;
Fig. 4 b is the structural representation of the another kind of power down process device that the embodiment of the present invention three provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those skilled in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
The embodiment of the present invention provides a kind of power down process method and apparatus.To be described in detail respectively below.
Embodiment one,
Angle from power down process device is described by the present embodiment, this power down process device specifically can integrated in the terminal, this mobile terminal can be the equipment such as smart mobile phone, panel computer.
Wherein, the mode that this power down process device is integrated in mobile terminal has multiple, such as, integrated in the terminal with software form such as terminal applies.
As it is shown in figure 1, present embodiments provide a kind of power down process method, idiographic flow can be such that
101, when the electricity that mobile terminal is current presets electricity less than first, the vibration signal for this mobile terminal is obtained.
Specifically, can pass through to obtain mobile terminal current electric quantity, judge whether to preset electricity lower than first, the mode wherein obtaining the current electricity of mobile terminal has multiple, electricity as by detection battery storage, the electricity current to obtain mobile terminal, or from mobile terminal electric power detection process, obtain the electricity that mobile terminal is current.Wherein, first presets electricity can be set according to the actual requirements, is such as set to the 10 etc. of total electricity.
In actual applications, mobile terminal all can carry electric power detection process, and is shown on interface of mobile terminal by testing result, such as, shows electricity in the upper right corner of mobile phone;It addition, the present embodiment method can also obtain the electricity that mobile terminal is current from other managing electric quantities App.
Wherein, for the vibration signal of mobile terminal be this mobile terminal be subject to External Force Acting send vibration produce sound wave corresponding to the signal of telecommunication (such as, digital signal or analog electrical signal).Such as, when user knocks terminal, terminal can be vibrated, thus terminal can produce acoustic signals, the signal of telecommunication that this acoustic signals is corresponding is user by knocking the vibration signal that mobile terminal produces.
In the present embodiment, obtain the mode for the vibration signal of mobile terminal and can have multiple, such as can pass through the mike on mobile terminal, speaker or receiver obtain user and knock the vibration signal that mobile terminal produces, due to mike, speaker or receiver are with acoustic-electric converter, mobile terminal be subject to user knock generation vibration time, mike or speaker can sense the acoustic signals of mobile terminal, and this acoustic signals is converted into into the signal of telecommunication of correspondence, i.e. vibration signal, thus obtaining user by knocking the vibration signal that mobile terminal produces.Now, step " obtaining the vibration signal for this mobile terminal " may include that and obtains the vibration signal for this mobile terminal by the speaker of this mobile terminal, mike or receiver.
Wherein, this mike can comprise various types of mike, such as electret microphone, silicon microphone etc., and speaker can also include various types of speaker.If simulation mike or analog speakers, then can first obtain user by knocking analogue signal produced by terminal, then pass through D/A converter module and this analogue signal is converted to digital signal, obtain vibration signal;And if digital microphone or digital loudspeaker, then can direct output digit signals, it is not necessary to carry out digital-to-analogue conversion.
It should be noted that, except mike and speaker, it is also possible to include the device of any sound-electric conversion, do not repeat them here.
102, identify whether this vibration signal is that user passes through to knock vibration signal produced by this mobile terminal, if so, then perform step 103, if it is not, then perform step 104.
Wherein, knock and generally can produce by directly knocking terminal optional position with hands, or, it is also possible to it is by other hard things, such as knocks terminal with penholder, key etc. and realize;And, the position knocked can be not construed as limiting, and can be such as the screen of terminal, the back side or frame etc..
Wherein, identify that vibration signal is the principle that user passes through to knock the vibration signal that mobile terminal produces:
Owing to the hammer action time is very of short duration, and propagated by the solid of equipment, therefore, mobile terminal is subject to user, and to knock the vibration signal of generation be a kind of special vibration signal, itself and mobile terminal are subject to the vibration signal that other active forces produce, or the vibration signal that the outside vibration source of mobile terminal transmission produces differs.Analyze the vibration signal knocking generation from electrical point, such as, vibration signal carried out digital processing analysis, it can be deduced that analysis below result:
From signal time, this signal duration duration very short (millisecond rank);From signal amplitude size relatively, the level of this digital signal is relatively large, and (owing to sound wave is that solid is propagated, and by mobile terminal own propagation), the signal of the digital signal more corresponding than general sound wave is strong bigger;From the frequency spectrum of signal, the whole digital signal frequency range of frequency coverage, and the amplitude difference of each frequency is little.
Therefore, it can the feature based on above-mentioned vibration signal or feature, identify or judge whether the vibration signal got is that user knocks vibration signal produced by mobile terminal;That is, step " identifying whether this vibration signal is that user passes through to knock vibration signal produced by this mobile terminal " may include that
Obtain the signal characteristic information of this vibration signal;
Judge whether this signal characteristic information meets pre-conditioned;
If, it is determined that this vibration signal passes through to knock vibration signal produced by this mobile terminal for user;
If not, it is determined that this vibration signal does not pass through to knock vibration signal produced by this mobile terminal for user.
Such as, by the mike that mobile terminal carries, receiver or speaker convert this sound wave to analog electrical signal, then, this analog electrical signal is carried out analog digital conversion (such as, changed by analog-digital converter), obtain digital signal, i.e. vibration signal, this vibration signal is carried out digital processing (DSP), to obtain the signal characteristic information of this vibration signal, then, judge whether this signal characteristic information meets pre-conditioned, if, then judge that this vibration signal is subject to user as this mobile terminal and knocks the vibration signal of generation, if not, then judge that this vibration signal is not subject to user as this mobile terminal and knocks the vibration signal of generation.For the ease of judging, the present embodiment is after obtaining analog electrical signal, before carrying out analog digital conversion, can also be amplified analog electrical signal processing, it is amplified processing to this analog electrical signal as by PGA amplifier, wherein, the process of digital signal can be performed by dsp chip.
Wherein, the signal characteristic information of vibration signal may include that at least one in frequency information (including frequency distribution, bandwidth etc.), amplitude information (including average amplitude), temporal information (signal period), it is, of course, also possible to include other characteristic informations.
Such as, signal characteristic information includes: when frequency information, amplitude information, temporal information, judge whether this frequency information meets predeterminated frequency condition respectively, whether this amplitude information meets is preset amplitude perturbations, whether this temporal information meets Preset Time condition, wherein, predeterminated frequency condition, preset amplitude perturbations, Preset Time condition can respectively according to frequency information corresponding to preset number signal, amplitude information, temporal information is arranged, and this default vibration signal is that mobile terminal is subject to user and knocks the vibration signal of generation.Current embodiment require that to judge whether multiple signal characteristic information meets pre-conditioned, when identifying the vibration signal knocking generation, such as, said frequencies information, amplitude information, temporal information judges for three times, can identify based on judged result repeatedly, such as, when three judged results be time, just determine that vibration signal is the vibration signal knocking generation, or, when multiple judged results there being certain several judged result for being, determine that vibration signal is the vibration signal knocking generation, these all can set according to practical situation, the situation that judged result is yes is more many, accuracy of identification is more high.
Such as, judging that whether vibration signal is for the detailed process knocking the vibration signal that mobile terminal produces with Fig. 2 signal processing apparatus being somebody's turn to do to introduce the present embodiment, this signal processing apparatus includes:
Mike 201, for gathering the acoustic signals for mobile terminal, and convert this acoustic signals to analogue signal, specifically, when mobile terminal vibration produces acoustic signals, the vibrating diaphragm in mike 201 senses sound wave, and all can follow and vibrate together, vibrating diaphragm will drive the coil in mike 201 to do the motion of cutting magnetic line, thus will produce the current signal of correspondence, i.e. analogue signal in coil;The present embodiment can also replace this mike with receiver or speaker and realize same function, the work process type of its work process and mike, just repeat no more here.
Analog digital conversion (A/D) module 202, for the analogue signal that mike 201 exports converts to the digital signal of correspondence, obtains vibration signal, in order to subsequent treatment analysis.Certainly, owing to the kind of current mike has multiple, such as electret microphone, silicon microphone etc., even some mike also comprises analog-to-digital conversion module, if in such cases, it is possible to save analog-to-digital conversion module 202.
Employing rate modular converter 203, for according to circumstances adjusting the sample rate of digital signal, in order to reduce the computing requirement that following digital is analyzed, it is preferable that sample rate cannot be below 16Khz, and bit rate cannot be below 10bit, is otherwise likely to impact analysis precision.
Fourier transform (FFT) module 204, for digital signal is carried out Fourier transform, is converted to frequency-domain analysis.
Time series analysis module 205, after carrying out Fourier transform at digital signal, the time of digital signal is analyzed, specifically, obtain the temporal information of digital signal, and judge whether this temporal information meets Preset Time requirement, such as, obtain the time cycle of digital signal, judge that this time cycle is whether within the scope of preset time period, if, then meet Preset Time requirement, show that this digital signal meets the time requirement knocking the digital signal that mobile terminal generates, the vibration signal that this digital signal is corresponding is likely to be and knocks the vibration signal that mobile terminal produces.
In actual applications, it is possible to based on the construction features of the feature of hammer action and mobile terminal, provide the time cycle [T1, T2] of a hammer action, the explanation that goes beyond the scope is not normal hammer action;If meeting the time of hammer action feature, then output OK signal.Knock the recorded audio signals analysis of mobile phone according to actual finger first, T1 is generally no greater than 5ms, T2 and is not more than 20ms.
Frequency analysis module 206, for to analysis of frequency distribution, specifically, the frequency distribution of statistical data signal, then, it is judged that whether frequency distribution meets preset requirement, such as, frequency distribution is continuous and frequency band is broad, then it is assumed that the frequency distribution of this digital signal meets the frequency distribution of the digital signal knocking generation.Contrasting from reality, especially 6Khz is between highest frequency (sample rate frequency ÷ 2), and frequency distribution is continuous.
Amplitude analysis module 207, for the amplitude of digital signal is analyzed, specifically, analyze the averaged amplitude value of whole frequency range, and judge whether this averaged amplitude value meets default amplitude requirement, such as, judge that whether this averaged amplitude value is more than default amplitude, if so, then meet and preset amplitude requirement, otherwise, it is unsatisfactory for.
Identification module 208, for according to time series analysis module 205, frequency analysis module 206, the analysis result identification of amplitude analysis module 207 or judge whether current vibration signal is that user passes through to knock vibration signal produced by mobile terminal.
103, according to this vibration signal, the storage card of this mobile terminal is carried out power down process.
Wherein, storage card can the storage card of the based semiconductor fast-flash memory device such as SD card, this storage card can built-in in the terminal.
Specifically, the mode that storage card carries out power down process according to vibration signal has multiple, such as, corresponding cut-offing instruction can be obtained according to vibration signal, then, carry out call switching according to this cut-offing instruction, wherein, target storage card is carried out power down process by the instruction of this cut-offing instruction.
Wherein, the mode obtaining cut-offing instruction according to vibration signal is multiple, such as, determine whether mobile terminal exists the vibration signal mated with this vibration signal, if existing, obtain the cut-offing instruction that coupling vibration signal is corresponding, namely step " storage card of this mobile terminal being carried out power down process according to this vibration signal " may include that to determine whether there is the sample mated with this vibration signal in default sample set, if existing, then obtain the cut-offing instruction that matched sample is corresponding, and according to this cut-offing instruction, the storage card of mobile terminal is carried out power down process;Specifically, the signal characteristic information (time, frequency, amplitude) of vibration signal can be obtained, then, determine whether default sample set exists the sample mated with this signal characteristic information, if existing, then determine the sample that in this default sample set, existence is mated with this vibration signal, if being absent from, it is determined that this default sample set is absent from the sample mated with this vibration signal.Wherein, can including at least one sample of signal, be called for short sample in this default sample set, every kind of sample can corresponding a kind of instruction, the such as power-down mode etc. of every kind of corresponding a kind of storage card of sample.
Such as, may determine that the frequency spectrum of vibration signal, respectively the time of this frequency spectrum, frequency and amplitude are analyzed, obtain analyzing result, determine whether default sample set exists the sample mated with this analysis result, if existing, it is determined that this default sample set exists the sample mated with this vibration signal;If being absent from, it is determined that this default sample set is absent from the sample mated with this vibration signal.
Again such as, it is possible to obtain corresponding number of taps according to vibration signal, then, it is judged that number of taps and preset times compare, if identical, then the cut-offing instruction that preset times is corresponding is obtained;Namely step " storage card of this mobile terminal being carried out power down process according to this vibration signal " may include that
Obtain user according to this vibration signal and knock the number of taps of this terminal;
Judge that whether this number of taps is identical with preset times, if so, then obtain the cut-offing instruction that this preset times is corresponding, and according to this cut-offing instruction, the storage card of mobile terminal is carried out power down process.
The preset times set including at least one preset times can be set in actual applications, every kind of number of times correspondence one operational order.
Such as, when user knocks mobile terminal continuous three times, the vibration signal that acquisition for mobile terminal is corresponding, and identify that whether this vibration signal is the vibration signal that mobile terminal is subject to knocking generation, if, this vibration signal is analyzed by mobile terminal, and the number of taps of this mobile terminal is knocked according to analysis result acquisition active user, here it is 3 for number of taps, when assuming preset times for being also 3, the number of taps obtained is identical with preset times, now, then obtain the cut-offing instruction that preset times is corresponding, and according to this cut-offing instruction, the storage card of mobile terminal is carried out power down process, assume when preset times is 4, so, number of taps and preset times differ, now, do not carry out the power down process of storage card, avoid mobile terminal generation maloperation.Specifically, preset times can be set according to practical situation, such as arranges and just triggers storage card power down process etc. when number of taps is 5,6 or 7 times.
Vibration signal can be analyzed to obtain user and knock the number of taps of mobile terminal by the present embodiment, such as, obtains the frequency spectrum of vibration signal, and time and amplitude to frequency are analyzed, and obtains corresponding number of taps according to analyzing result.
Wherein, the mode that the storage card of mobile terminal carries out power down process has multiple, such as, controls mobile terminal power supply and stops powering to storage card, or disconnects the supply line of storage card etc..Consider the interval of the hammer action of user, differ with the interval of the hammer action of non-user (such as robot etc.), actually, the hammer action of user is not as fast, alternatively, for improve vibration signal identification accuracy, judge key feature information meet pre-conditioned after, in addition it is also necessary to the time that hammer action is corresponding is analyzed;Specifically, judge key feature information meet pre-conditioned after, this call handover method can also include:
The interval knocking this mobile terminal for adjacent twice is obtained according to this vibration signal;
Judge that this interval is whether in preset range, if so, then judge that this vibration signal passes through to knock the vibration signal that this mobile terminal produces as user, if it is not, then judge that this vibration signal does not pass through to knock the vibration signal that this mobile terminal produces as user.
Interval due to user's hammer action, it is possible to embody in the temporal information of vibration digital signal, therefore, vibration digital signal can be carried out time series analysis, obtain adjacent twice knocking the interval of this mobile terminal, then, it is judged that whether this interval is in preset range;In actual applications, it is possible to arrange a time range [T3, T4], it is preferable that T3 is 50ms, T4 is 500ms, if not within the scope of this, this shows that this vibration signal is not the vibration signal that people knocks that mobile terminal produces.
Alternatively, in order to storage card can be used after recovering electricity at mobile terminal, the present embodiment method is after carrying out power down process to the storage card of mobile terminal, can also include: when detecting that the current electricity of this mobile terminal presets electricity more than second, the storage card of this mobile terminal is powered.
Such as, after disconnecting the power supply of storage card, user charges to mobile terminal, now, and the electricity that mobile terminal detection is current, this electricity and second are preset electricity contrast, if preset electricity more than second, then automatically the storage card of mobile terminal can be powered, namely recover the power supply of storage card, this second default electricity can set according to the actual requirements, such as could be arranged to total electricity 30 percent etc..
As from the foregoing, the embodiment of the present invention adopts when presetting electricity when the current electricity of mobile terminal less than first, obtain the vibration signal for mobile terminal, then, identify whether this vibration signal is that user passes through to knock vibration signal produced by this mobile terminal, if so, according to this vibration signal, the storage card of this mobile terminal is carried out power down process;The program can by user knock mobile terminal produce vibration signal automatically the storage card of mobile terminal is carried out power down process, a series of power operation is carried out for terminal without user, only need to knock mobile terminal for a user and can realize storage card power-off, in terms of existing technologies, improve the power down process efficiency of mobile terminal storage card, improve Consumer's Experience.
Embodiment two,
According to the method described by embodiment one, below citing is described in further detail.
In the present embodiment, will with this power down process device specifically integrated in the terminal, to obtain vibration signal by mike, and be described in detail for storage card for SD card.
As it is shown on figure 3, a kind of power down process method, idiographic flow can be such that
301, when mobile terminal detects current electricity lower than default electricity, open the mike carried and obtain the vibration signal for this mobile terminal.
It should be noted that, this mike can comprise various types of mike, such as electret microphone, silicon microphone etc..If simulation mike or analog speakers, then can first obtain user by knocking analogue signal produced by mobile terminal, then pass through D/A converter module and this analogue signal is converted to digital signal, obtain vibration signal;And if digital microphone or digital loudspeaker, then can direct output digit signals, it is not necessary to carry out digital-to-analogue conversion.
302, the signal characteristic information of this vibration signal of acquisition for mobile terminal.
This signal characteristic information includes: frequency information, amplitude information, temporal information etc., specifically, vibration signal can be carried out Fourier transformation (FFT), obtain corresponding frequency-region signal, i.e. frequency spectrum, also referred to as spectrum signal, then this frequency spectrum being analyzed obtaining the temporal information of this frequency spectrum, frequency information and amplitude information, concrete analysis process is referred to above-described embodiment one associated description.
Such as, mobile terminal converts this acoustic signals to analog electrical signal (such as, changed by mike, speaker etc.), then this analog electrical signal is converted the digital signal of correspondence to (such as, pass through A/D converter), i.e. vibration signal, and this digital signal is carried out dsp process, to obtain the signal characteristic information (such as, frequency information, amplitude information, temporal information etc.) of this digital signal.Specifically, Digital Signal Processing is referred to the associated description in embodiment one, repeats no more herein.
303, to judge whether this signal characteristic information meets pre-conditioned for mobile terminal, to judge whether this vibration signal passes through to knock the vibration signal that this mobile terminal produces for user, if so, performs step 304, if it is not, flow process terminates.
Specifically, include in key feature information: when frequency information, amplitude information and temporal information, the pre-conditioned condition that may include that frequency information, amplitude information and temporal information meet various correspondence, such as, the frequency distribution of vibration digital signal continuously and bandwidth reach predetermined width value, the average amplitude of vibration digital signal is more than default amplitude, and the cycle of vibration digital signal is in preset range.Wherein, pre-conditioned can based on the user obtained in advance knock smart mobile phone a produce vibration signal obtain, now, key feature information meets pre-conditioned, then think that this vibration signal is the vibration signal knocking generation, otherwise, not for knocking the vibration signal of generation.
304, this vibration signal is analyzed by mobile terminal, and knocks the number of taps of this mobile terminal according to analysis result acquisition user.
Specifically, the frequency spectrum that vibration signal is corresponding can be analyzed by mobile terminal, and such as, time and amplitude to frequency spectrum are analyzed, and obtains corresponding number of taps according to this analysis result.
305, mobile terminal judges that whether this number of taps is identical with preset times, if so, then performs step 306, if it is not, flow process terminates.
Specifically, after obtaining number of taps, smart mobile phone calls the number of times set pre-set from local data base, and the number of times extracting preset times and step 305 acquisition from this set contrasts.
306, the cut-offing instruction that this preset times of acquisition for mobile terminal is corresponding, the instruction of this cut-offing instruction needs target SD card is carried out power down process.
307, target SD card is carried out power down process according to this cut-offing instruction by mobile terminal.
Alternatively, after step 307, it is also possible to include, when mobile terminal detects that current electricity presets electricity more than second, this target SD card being powered, namely recovering the power supply of this target SD card.
As from the foregoing, the embodiment of the present invention adopts when mobile terminal detects current electricity less than default electricity, acquisition for mobile terminal is for its vibration signal, then, identify whether this vibration signal is that user passes through to knock vibration signal produced by this mobile terminal, if so, according to this vibration signal, the storage card of this mobile terminal is carried out power down process;The program can by user knock mobile terminal produce vibration signal automatically the storage card of mobile terminal is carried out power down process, a series of power operation is carried out for terminal without user, only need to knock mobile terminal for a user and can realize storage card power-off, in terms of existing technologies, improve the power down process efficiency of mobile terminal storage card, and, also it is more convenient for realizing one-handed performance, improves Consumer's Experience.
Embodiment three,
In order to implement above method better, the embodiment of the present invention also provides for a kind of power down process device, this power down process device can integrated in the terminal, this mobile terminal specifically can include the equipment such as mobile phone, panel computer, notebook computer or individual calculus (PC, PersonalComputer).As shown in fig. 4 a, this power down process device can also include acquisition module 401, identification module 402 and power-off modular 403, as follows:
(1) acquisition module 401;
Acquisition module 401, for when the current electricity of mobile terminal presets electricity less than first, obtaining the vibration signal for this mobile terminal.
Generally have mike, speaker and receiver due to mobile terminal, the mike, speaker or the receiver that therefore, it can utilize mobile terminal to carry are to receive acoustical signal, and this acoustical signal is converted into vibration signal, it may be assumed that
This acquisition module 401, specifically may be used for obtaining the vibration signal for this mobile terminal by the speaker of this mobile terminal, mike or receiver.
Wherein, this mike can comprise various types of mike, such as electret microphone, silicon microphone etc., and speaker can also include various types of speaker.If simulation mike or analog speakers, then can first obtain user by knocking analogue signal produced by mobile terminal, then pass through D/A converter module and this analogue signal is converted to digital signal, obtain vibration signal;And if digital microphone or digital loudspeaker, then can direct output digit signals, it is not necessary to carry out digital-to-analogue conversion.
It should be noted that, except mike and speaker, it is also possible to include the device of any sound-electric conversion, do not repeat them here.
(2) identification module 402;
Identification module 402, is used for identifying whether this vibration signal is that user passes through to knock vibration signal produced by this mobile terminal;
For example, it is possible to extract the characteristics of signals information of vibration signal, identify vibration signal according to this information characteristics information, it may be assumed that
This identification module 402, it is possible to specifically for:
Obtain the signal characteristic information of this vibration signal;
Judge whether this signal characteristic information meets pre-conditioned;
If, it is determined that this vibration signal passes through to knock vibration signal produced by this mobile terminal for user;
If not, it is determined that this vibration signal does not pass through to knock vibration signal produced by this mobile terminal for user.
Wherein, signal characteristic information may include that at least one in frequency information (including frequency distribution, bandwidth etc.), amplitude information (including average amplitude), temporal information (signal period), it is, of course, also possible to include other characteristic informations.
Such as, signal characteristic information includes: when frequency information, amplitude information, temporal information, judge whether this frequency information meets predeterminated frequency condition respectively, whether this amplitude information meets is preset amplitude perturbations, whether this temporal information meets Preset Time condition, wherein, predeterminated frequency condition, preset amplitude perturbations, Preset Time condition can respectively according to frequency information corresponding to preset number signal, amplitude information, temporal information is arranged, and this default vibration signal is that mobile terminal is subject to user and knocks the vibration signal of generation.Current embodiment require that to judge whether multiple signal characteristic information meets pre-conditioned, when identifying the vibration signal knocking generation, such as, said frequencies information, amplitude information, temporal information judges for three times, can identify based on judged result repeatedly, such as, when three judged results be time, just determine that vibration signal is the vibration signal knocking generation, or, when multiple judged results there being certain several judged result for being, determine that vibration signal is the vibration signal knocking generation, these all can set according to practical situation, the situation that judged result is yes is more many, accuracy of identification is more high.
(3) power-off modular 403;
Power-off modular 403, for when this identification module 402 identifies that this vibration signal passes through to knock vibration signal produced by this mobile terminal for user, carrying out power down process according to this vibration signal to the storage card of this mobile terminal.
This power-off modular 403 can specifically include: determines submodule and power-off submodule;
This determines submodule, for determining whether there is the sample mated with this vibration signal in default sample set;
This power-off submodule, for when determining that submodule determines the sample that in default sample set, existence is mated with this vibration signal, obtaining the cut-offing instruction that matched sample is corresponding, and according to this cut-offing instruction, the storage card of this mobile terminal carried out power down process.
Such as, it is determined that submodule, specifically may be used for: obtain the signal characteristic information of this vibration signal;Determine whether default sample set exists the sample mated with this signal characteristic information;If existing, it is determined that this default sample set exists the sample mated with this vibration signal;If being absent from, it is determined that this default sample set is absent from the sample mated with this vibration signal.
Wherein, can including at least one sample in this default sample set, this sample can be configured according to the demand of practical application.
Alternatively, this power-off modular 403 can specifically include number of times acquisition submodule, judge submodule and power-off submodule;
This number of times obtains submodule, knocks the number of taps of this mobile terminal for obtaining user according to this vibration signal;
This judgement submodule, is used for judging that whether this number of taps is identical with preset times;
This power-off submodule, for when this judgement submodule is judged as YES, obtaining the cut-offing instruction that this preset times is corresponding, and according to this cut-offing instruction, the storage card of this mobile terminal carried out power down process.
With reference to Fig. 4 b, on the basis of said apparatus, it is also possible to include supply module 404;
This supply module 404, for after the storage card of this mobile terminal is carried out power down process by power-off modular 403, when detecting that the current electricity of this mobile terminal presets electricity more than second, is powered the storage card of this mobile terminal.
When being embodied as, above modules can realize as independent entity, it is also possible to carries out combination in any, realizes as same or several entities, and being embodied as of above modules referring to embodiment of the method above, can not repeat them here.
As from the foregoing, the power down process device of the present embodiment is when the electricity that mobile terminal is current presets electricity less than first, acquisition module 401 is adopted to obtain the vibration signal for this mobile terminal, then, identified whether this vibration signal is that user passes through to knock vibration signal produced by this mobile terminal by identification module 402, by power-off modular 403 this this vibration signal of identification module identification be user pass through to knock vibration signal produced by this mobile terminal time, according to this vibration signal, the storage card of this mobile terminal is carried out power down process;The program can by user knock mobile terminal produce vibration signal automatically the storage card of mobile terminal is carried out power down process, a series of power operation is carried out for terminal without user, only need to knock mobile terminal for a user and can realize storage card power-off, in terms of existing technologies, improve the power down process efficiency of mobile terminal storage card, improve Consumer's Experience.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can be by the hardware that program carrys out instruction relevant and completes, this program can be stored in a computer-readable recording medium, storage medium may include that read only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), disk or CD etc..
A kind of power down process the method and apparatus above embodiment of the present invention provided is described in detail, principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for those skilled in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (12)

1. a power down process method, it is characterised in that including:
When the electricity that mobile terminal is current presets electricity less than first, obtain the vibration signal for described mobile terminal;
Identify whether described vibration signal is that user passes through to knock vibration signal produced by described mobile terminal;
If so, then according to described vibration signal, the storage card of described mobile terminal is carried out power down process.
2. power down process method as claimed in claim 1, it is characterised in that whether the described vibration signal of described identification is that user passes through to knock the step of vibration signal produced by described mobile terminal and specifically includes:
Obtain the signal characteristic information of described vibration signal;
Judge whether described signal characteristic information meets pre-conditioned;
If, it is determined that described vibration signal passes through to knock vibration signal produced by described mobile terminal for user;
If not, it is determined that described vibration signal does not pass through to knock vibration signal produced by described mobile terminal for user.
3. power down process method as claimed in claim 1, it is characterised in that the described step storage card of described mobile terminal being carried out power down process according to described vibration signal specifically includes:
Determine whether default sample set exists the sample mated with described vibration signal;
If existing, then obtain the cut-offing instruction that matched sample is corresponding, and according to described cut-offing instruction, the storage card of described mobile terminal is carried out power down process.
4. power down process method as claimed in claim 3, it is characterised in that described determine that the step that whether there is the sample mated with described vibration signal in default sample set specifically includes:
Obtain the signal characteristic information of described vibration signal;
Determine whether default sample set exists the sample mated with described signal characteristic information;
If existing, it is determined that described default sample set exists the sample mated with described vibration signal;
If being absent from, it is determined that described default sample set is absent from the sample mated with described vibration signal.
5. power down process method as claimed in claim 1, it is characterised in that the described step storage card of described mobile terminal being carried out power down process according to described vibration signal specifically includes:
Obtain user according to described vibration signal and knock the number of taps of described mobile terminal;
Judge that whether described number of taps is identical with preset times, if so, then obtain the cut-offing instruction that described preset times is corresponding, and according to described cut-offing instruction, the storage card of described mobile terminal is carried out power down process.
6. power down process method as claimed in claim 1, it is characterised in that after the storage card of described mobile terminal is carried out power down process, described method for disconnection process also includes:
When detecting that the current electricity of described mobile terminal presets electricity more than second, the storage card of described mobile terminal is powered.
7. power down process method as claimed in claim 1, it is characterised in that described acquisition specifically includes for the step of the vibration signal of mobile terminal:
The vibration signal for described mobile terminal is obtained by the speaker of described mobile terminal, mike or receiver.
8. a power down process device, it is characterised in that including:
Acquisition module, for when the current electricity of mobile terminal presets electricity less than first, obtaining the vibration signal for described mobile terminal;
Identification module, is used for identifying whether described vibration signal is that user passes through to knock vibration signal produced by described mobile terminal;
Power-off modular, for when vibration signal described in described identification module identification passes through to knock vibration signal produced by described mobile terminal for user, carrying out power down process according to described vibration signal to the storage card of described mobile terminal.
9. power down process device as claimed in claim 8, it is characterised in that described identification module specifically for:
Obtain the signal characteristic information of described vibration signal;
Judge whether described signal characteristic information meets pre-conditioned;
If, it is determined that described vibration signal passes through to knock vibration signal produced by described mobile terminal for user;
If not, it is determined that described vibration signal does not pass through to knock vibration signal produced by described mobile terminal for user.
10. power down process device as claimed in claim 8, it is characterised in that described power-off modular specifically includes: determine submodule and power-off submodule;
Described determine submodule, for determining whether default sample set exists the sample mated with described vibration signal;
Described power-off submodule, for when determining that submodule determines the sample that in default sample set, existence is mated with described vibration signal, obtaining the cut-offing instruction that matched sample is corresponding, and according to described cut-offing instruction, the storage card of described mobile terminal carried out power down process.
11. power down process device as claimed in claim 8, it is characterised in that described power-off modular specifically includes: number of times obtains submodule, judges submodule and power-off submodule;
Described number of times obtains submodule, knocks the number of taps of described mobile terminal for obtaining user according to described vibration signal;
Described judgement submodule, is used for judging that whether described number of taps is identical with preset times;
Described power-off submodule, for when described judgement submodule is judged as YES, obtaining the cut-offing instruction that described preset times is corresponding, and according to described cut-offing instruction, the storage card of described mobile terminal carried out power down process.
12. power down process device as claimed in claim 8, it is characterised in that also include: supply module;
Described supply module, for after the storage card of described mobile terminal is carried out power down process by power-off modular, when detecting that the current electricity of described mobile terminal presets electricity more than second, is powered the storage card of described mobile terminal.
CN201610038595.9A 2016-01-20 2016-01-20 Power failure processing method and device Pending CN105718026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610038595.9A CN105718026A (en) 2016-01-20 2016-01-20 Power failure processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610038595.9A CN105718026A (en) 2016-01-20 2016-01-20 Power failure processing method and device

Publications (1)

Publication Number Publication Date
CN105718026A true CN105718026A (en) 2016-06-29

Family

ID=56147513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610038595.9A Pending CN105718026A (en) 2016-01-20 2016-01-20 Power failure processing method and device

Country Status (1)

Country Link
CN (1) CN105718026A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040187042A1 (en) * 2003-03-20 2004-09-23 Canon Kabushiki Kaisha Printing apparatus and power supply control method in printing apparatus
CN101048725A (en) * 2004-10-25 2007-10-03 诺基亚公司 An apparatus and a method for tapping input to an electronic device, including an attachable tapping template
CN102438077A (en) * 2011-12-31 2012-05-02 深圳天珑无线科技有限公司 Method and device for switching working state of mobile phone
CN103248751A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 Electronic device and method for realizing functional control thereof
CN103558905A (en) * 2011-10-12 2014-02-05 亚旭电子科技(江苏)有限公司 Power management system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040187042A1 (en) * 2003-03-20 2004-09-23 Canon Kabushiki Kaisha Printing apparatus and power supply control method in printing apparatus
CN101048725A (en) * 2004-10-25 2007-10-03 诺基亚公司 An apparatus and a method for tapping input to an electronic device, including an attachable tapping template
CN103558905A (en) * 2011-10-12 2014-02-05 亚旭电子科技(江苏)有限公司 Power management system and method
CN102438077A (en) * 2011-12-31 2012-05-02 深圳天珑无线科技有限公司 Method and device for switching working state of mobile phone
CN103248751A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 Electronic device and method for realizing functional control thereof

Similar Documents

Publication Publication Date Title
CN104618595B (en) Talking mode switching method and apparatus
CN105338459A (en) MEMS (Micro-Electro-Mechanical System) microphone and signal processing method thereof
CN103248751A (en) Electronic device and method for realizing functional control thereof
CN105611064A (en) Mobile terminal mode switching method and device
CN105704839A (en) Bluetooth connection method and device
CN105719672A (en) Recording scene mode switching method and recording scene mode switching mode device
CN105682258B (en) A kind of switching method and apparatus of subscriber identification card
CN109121059A (en) Loudspeaker plug-hole detection method and Related product
CN105721676A (en) Terminal processing method and terminal processing device
CN104769966A (en) Receiver device
CN108108144B (en) Electronic equipment and information processing method
CN103826015B (en) A kind of method and mobile terminal utilizing two MIC to switch song
CN206672078U (en) A kind of sound card for possessing voice control function
CN105549744B (en) A kind of screen luminance of terminal adjusting method and device
CN105472172B (en) Switching method, device and the computer readable storage medium of call mode
CN105718165B (en) A kind of starting method and device of terminal background application
CN105577863B (en) The way of recording and device
CN105721679A (en) Conversation switching method and conversation switching device
CN105718026A (en) Power failure processing method and device
CN105718773A (en) Terminal unlocking method and device
CN105611065A (en) Application switching method and device
CN105721678A (en) Calling processing method and calling processing device
CN105516493B (en) A kind of mobile terminal and its alarm clock control method
CN105611066A (en) Communication switching method and device
CN208444595U (en) A kind of bright read apparatus with sound regulatory function

Legal Events

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

Application publication date: 20160629