CN106878551A - A kind of power switch method and mobile terminal - Google Patents

A kind of power switch method and mobile terminal Download PDF

Info

Publication number
CN106878551A
CN106878551A CN201710056823.XA CN201710056823A CN106878551A CN 106878551 A CN106878551 A CN 106878551A CN 201710056823 A CN201710056823 A CN 201710056823A CN 106878551 A CN106878551 A CN 106878551A
Authority
CN
China
Prior art keywords
mobile terminal
weightlessness
state
duration
power supply
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
Application number
CN201710056823.XA
Other languages
Chinese (zh)
Other versions
CN106878551B (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710056823.XA priority Critical patent/CN106878551B/en
Publication of CN106878551A publication Critical patent/CN106878551A/en
Application granted granted Critical
Publication of CN106878551B publication Critical patent/CN106878551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The invention provides a kind of power switch method and mobile terminal.Methods described includes:The acceleration information on gravity direction of the mobile terminal is obtained in real time;If judging that the mobile terminal is in state of weightlessness according to the acceleration information, close the power supply of target devices and start timing;If the closing duration of the power supply reaches the first setting duration, and the mobile terminal is in non-state of weightlessness, then open the power supply of the target devices.The short circuit risk fallen reliability, evade under the limit accelerates scene of mobile terminal, the space availability ratio of lifting electronics stacking are improved by the embodiment of the present invention.

Description

A kind of power switch method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of power switch method and mobile terminal.
Background technology
In existing mobile terminal, in addition to processor runs necessary circuit structure, also plug-in many sensors And human-computer interaction device, to enrich the function and lifting Consumer's Experience of terminal.But with the increase of plug-in device, external circuit Become increasingly complex, stack more and more closeer.
In limit accelerator is born, being easily deformed for microstructure causes the short circuit of device or failure.Work as movement During terminal drop impact, it is easier to cause the instantaneous of circuit to connect, such as screening cover stress bending is possible to can be with internal electricity Sub- component is touched together, in turn results in system short-circuit.Mobile terminal bears limit acceleration or drop impact for being It is a very big hidden danger for the reliability of system.
The content of the invention
The embodiment of the present invention provides a kind of power switch method, and bearing the limit solving mobile terminal accelerates or fall Collision causes the problem of system short-circuit or failure.
On the one hand, there is provided a kind of power switch method, mobile terminal is applied to, methods described includes:
Acceleration information of the mobile terminal on gravity direction is obtained in real time;
If judging that the mobile terminal is in state of weightlessness according to the acceleration information, the power supply of target devices is closed And start timing;
If the closing duration of the power supply reaches the first setting duration, and the mobile terminal is in non-state of weightlessness, Then open the power supply of the target devices.
On the other hand, there is provided a kind of mobile terminal, the mobile terminal includes:
Acceleration information acquisition module, for obtaining acceleration information of the mobile terminal on gravity direction in real time;
Power-off module, if for judging that the mobile terminal is in state of weightlessness according to the acceleration information, Close the power supply of target devices and start timing;
Electric power starting module, if the first setting duration is reached for the closing duration of the power supply, and it is described mobile whole End is in non-state of weightlessness, then open the power supply of the target devices
According to the embodiment of the present invention, mobile terminal obtains mobile terminal acceleration information on gravity direction in real time;If root Judge that mobile terminal is in state of weightlessness according to acceleration information, then close the power supply of target devices and start timing, to protect mesh Even if mark device circuit in drop impact is instantaneously connected, system short-circuit or failure are not resulted in yet;If the closing duration of power supply The first setting duration is reached, and the mobile terminal is in non-state of weightlessness, then open the power supply of the target devices.Pass through The embodiment of the present invention improves the short circuit risk fallen reliability, evade under the limit accelerates scene of mobile terminal, lifting The space availability ratio of electronics stacking.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention, And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below by institute in the description to the embodiment of the present invention The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of power switch method of the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of power switch method of the embodiment of the present invention two;
Fig. 3 is a kind of one of structured flowchart of mobile terminal of the embodiment of the present invention three;
Fig. 4 a are the two of the structured flowchart of a kind of mobile terminal of the embodiment of the present invention three;
Fig. 4 b are the structured flowcharts of the state of weightlessness decision sub-module of the embodiment of the present invention three;
Fig. 5 is the structured flowchart of the mobile terminal of the embodiment of the present invention four;
Fig. 6 is the structural representation of the mobile terminal of the embodiment of the present invention five.
Specific embodiment
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 carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Embodiment one
A kind of power switch method provided in an embodiment of the present invention is discussed in detail.
Reference picture 1, shows a kind of flow chart of the power switch method in the embodiment of the present invention, is applied to mobile whole End, methods described includes:
Step 101, obtains acceleration information of the mobile terminal on gravity direction in real time.
In the present embodiment, when falling, the gravitational conditions suffered by mobile terminal can change mobile terminal, in gravity side Upward acceleration information also changes therewith.The mode of acceleration information of the mobile terminal on gravity direction is obtained in real time Can be obtained using acceleration transducer, it would however also be possible to employ gravity sensor is obtained, the embodiment of the present invention is for adopting Which kind of acquisition modes not make restriction in detail with, can be configured according to actual conditions.
Step 102, if judging that the mobile terminal is in state of weightlessness according to the acceleration information, closes object machine The power supply of part simultaneously starts timing.
In the present embodiment, after getting acceleration information of the mobile terminal on gravity direction, sentenced according to acceleration information Whether disconnected mobile terminal is state of weightlessness.If mobile terminal is in state of weightlessness, illustrate that mobile terminal is in jerky motion shape State or fall state, now close the power supply of target devices, and start timing.Target devices could be arranged to falling Collision does not make restriction in detail to target devices than more sensitive device, such as the touch-screen of mobile terminal, the embodiment of the present invention, can Chosen with according to actual conditions.
Step 103, if the closing duration of the power supply reaches the first setting duration, and the mobile terminal is in non-mistake Weight state, then open the power supply of the target devices.
In the present embodiment, when judgement mobile terminal is in state of weightlessness, after closing the power supply of target devices, object machine is recorded The power off time of part, and judge mobile whole according to acceleration information of the mobile terminal for obtaining in real time on gravity direction Whether end is in state of weightlessness.When the closing duration of power supply reaches the first setting duration, and mobile terminal is in non-weightless shape During state, illustrate that mobile terminal has been not at jerky motion state or has fallen state, now open the power supply of target devices.It is excellent Selection of land, when the closing duration of power supply reaches the first setting duration, mobile terminal still in state of weightlessness, then until judging to move When terminal is in non-state of weightlessness, the power supply of target devices is then turned on.
In sum, in the embodiment of the present invention, mobile terminal obtains acceleration of the mobile terminal on gravity direction in real time Data;If judging that mobile terminal is in state of weightlessness according to acceleration information, close the power supply of target devices and start timing, Even if to protect target devices circuit in drop impact instantaneously to connect, not resulting in system short-circuit or failure yet;If power supply Close duration and reach the first setting duration, and the mobile terminal is in non-state of weightlessness, then open the target devices Power supply.The short circuit for falling reliability, evading under the limit accelerates scene of mobile terminal is improved by the embodiment of the present invention Risk, the space availability ratio of lifting electronics stacking.
Embodiment two
Reference picture 2, shows a kind of flow chart of the power switch method in another embodiment of the present invention.
Step 201, three axial vector data of acceleration transducer described in Real-time Collection.
In the present embodiment, mobile terminal is provided with acceleration transducer, three axial vectors of Real-time Collection acceleration transducer Data, such as the acceleration information of the axle of X, Y, Z tri-.
Whether step 202, judge the mobile terminal in state of weightlessness according to the three axial vectors data.
In the present embodiment, after collecting three axial vector data of acceleration transducer, judged to move according to three axial vector data Whether dynamic terminal is in state of weightlessness.For example, whether the acceleration according to Z axis judges mobile terminal in state is fallen, if Z The acceleration of axle is more than certain setting value, then judge that mobile terminal is in state of weightlessness.
Preferably, judge whether mobile terminal specifically may include steps of in state of weightlessness:
Step one, calculates the sum of the three axial vectors data.
Whether step 2, judge the absolute value of three axial vector data sums less than given threshold.
Step 3, if the absolute value is less than the given threshold, judges that the mobile terminal is in state of weightlessness.Tool Body ground, if the absolute value of three axial vector data sums is less than given threshold, judges that mobile terminal is in state of weightlessness, if three The absolute value of axial vector data sum is more than or equal to given threshold, then judge that mobile terminal is in non-state of weightlessness.The present invention is implemented Do not make restriction in detail in example for given threshold, can be configured according to actual conditions.
Step 203, relatively more described mobile terminal is in the duration and the second setting duration of state of weightlessness.
In the present embodiment, it is contemplated that height that mobile terminal falls is different, the influence of the collision of generation to target devices Differ, to avoid mobile terminal from repeatedly closing the power supply of target devices, the safe altitude that setting mobile terminal falls, in movement The height that terminal is fallen just enters the protection mechanism for closing destination device power when being more than safe altitude.What mobile terminal fell sets Fixed height correspondence second sets duration, therefore, compare mobile terminal and be in the duration of state of weightlessness and second and set duration, can be with Judge the falling height of mobile terminal whether more than safe altitude according to comparative result.The embodiment of the present invention is for the second setting Duration does not make restriction in detail, can be configured according to actual conditions.
Step 204, if comparative result be the mobile terminal be in state of weightlessness duration less than described second setting when It is long, then the duration that the mobile terminal is in state of weightlessness is reset, execution is described to obtain the mobile terminal in gravity in real time The step of acceleration information on direction.
In the present embodiment, if the mobile terminal is in the duration of state of weightlessness less than the described second setting duration, The duration that mobile terminal is in state of weightlessness is reset, return obtains acceleration of the mobile terminal on gravity direction in real time The step of data.Specifically, according to mobile terminal be in state of weightlessness duration judge mobile terminal falling height whether More than safe altitude, mobile terminal is in the duration of state of weightlessness less than the second setting duration, illustrates if mobile terminal falls Safe altitude is highly less than, illustrates that mobile terminal falls smaller for the influence of target devices, the electricity without closing target devices Source, but return and perform the step of obtaining acceleration information in real time.The embodiment of the present invention does not make limit in detail to the second setting duration It is fixed, can be configured according to actual conditions.
Step 205, if comparative result be the mobile terminal be in state of weightlessness duration more than described second setting when It is long, then perform the step of closing the power supply of target devices and start timing.
In the present embodiment, if mobile terminal is in the duration of state of weightlessness more than the second setting duration, illustrate mobile whole End falling height is more than safe altitude, and mobile terminal falls may thus close off target devices for target devices than relatively hazardous Power supply.Specifically, the current operation information of the mobile terminal is stored, the power supply of target devices is closed and is started timing.Example Such as, user currently browses mail, or is editing document, and mobile terminal stores current operation information, can protect The operation information of user is not lost, and is moved easily terminal and is opened user's operation mobile terminal after target power.Closing object machine Before the power supply of part, other operations are can also carry out, the embodiment of the present invention is not construed as limiting to this, can be set according to actual conditions Put.
Step 206, if the closing duration of the power supply reaches the first setting duration, and the mobile terminal is in non-mistake Weight state, then open the power supply of the target devices.
Step 207, transfers the operation information of the mobile terminal of storage.
In the present embodiment, after the power supply that mobile terminal opens target devices, the mobile terminal of storage can be automatically transferred Operation information, by the display interface of mobile terminal recover to close power supply before, making the operation of user has continuation, improves The experience of user.
In sum, in the embodiment of the present invention mobile terminal Real-time Collection acceleration transducer three axial vector data;Root Judge mobile terminal whether in state of weightlessness according to three axial vector data;Mobile terminal is in state of weightlessness, then relatively mobile more whole Duration and second setting duration of the end in state of weightlessness;Judge whether to perform according to comparative result and close destination device power Step, if the step of performing the power supply for closing target devices and start timing, stores current operation letter before execution Breath;If the closing duration of power supply reaches the first setting duration, and mobile terminal is in non-state of weightlessness, then open object machine The power supply of part, transfers the operation information of storage.Fall reliability by what the embodiment of the present invention improved mobile terminal, evade pole Limit accelerates the short circuit risk under scene, the space availability ratio of lifting electronics stacking.
It should be noted that for foregoing embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, and the present invention is not limited by described sequence of movement, because according to According to the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know, Embodiment described in this description belongs to preferred embodiment, and involved action is not necessarily essential to the invention.
Embodiment three
A kind of mobile terminal provided in an embodiment of the present invention is discussed in detail, the electricity in embodiment one to embodiment two can be realized The details of source switch method, and reach identical effect.
Reference picture 3, shows a kind of structured flowchart of the mobile terminal in the embodiment of the present invention, it is characterised in that described Mobile terminal includes acceleration information acquisition module 301, power-off module 302, electric power starting module 303:
Acceleration information acquisition module 301, for obtaining the acceleration number of degrees of the mobile terminal on gravity direction in real time According to;
Power-off module 302, if for judging that the mobile terminal is in state of weightlessness according to the acceleration information, Then close the power supply of target devices and start timing;
Electric power starting module 303, if reaching the first setting duration, and the movement for the closing duration of the power supply Terminal is in non-state of weightlessness, then open the power supply of the target devices.
On the basis of Fig. 3, the mobile terminal is provided with acceleration transducer, the acceleration information acquisition module 301 include vector data collection submodule 3011, state of weightlessness decision sub-module 3012, see Fig. 4 a:
Vector data gathers submodule 3011, for three axial vector data of acceleration transducer described in Real-time Collection;
State of weightlessness decision sub-module 3012, for judging whether the mobile terminal is located according to the three axial vectors data In state of weightlessness.
On the basis of Fig. 4 a, the state of weightlessness decision sub-module 3012 include vector data and computing unit 30121, Vector data and judging unit 30122, state of weightlessness identifying unit 30123, are shown in Fig. 4 b:
Vector data and computing unit 30121, the sum for calculating the three axial vectors data;
Vector data and judging unit 30122, for judging the absolute value of three axial vector data sums whether less than setting threshold Value;
State of weightlessness identifying unit 30123, if being less than the given threshold for the absolute value, judges the movement Terminal is in state of weightlessness.
On the basis of Fig. 3, before the power-off module 302, the mobile terminal also includes weightless time length ratio Compared with module 304, power-off judge module 305, Fig. 4 a are seen:
Weightless duration comparison module 304, duration and second setting of state of weightlessness are in for comparing the mobile terminal Duration;
Power-off judge module 305, judges whether to perform the closing target devices for module according to comparative result Power supply and the step of start timing.
On the basis of Fig. 3, the power-off judge module 305 includes power-off implementation sub-module 3051, weightlessness Duration resets submodule 3052, sees Fig. 4 a:
Power-off implementation sub-module 3051, if being the duration that the mobile terminal is in state of weightlessness for comparative result More than the described second setting duration, then the step of closing the power supply of target devices and start timing is performed;
Weightless duration resets submodule 3052, if being the duration that the mobile terminal is in state of weightlessness for comparative result Less than the described second setting duration, then the duration that the mobile terminal is in state of weightlessness is reset, perform the real-time acquisition The step of acceleration information of the mobile terminal on gravity direction.
On the basis of Fig. 3, before the power-off module 302, the mobile terminal is also deposited including operation information Storage module 306, is shown in Fig. 4 a:
Operation information memory module 306, the operation information current for storing the mobile terminal;
After the electric power starting module 303, module 307 also is transferred including operation information, see Fig. 4 a:
Operation information transfers module 307, the operation information of the mobile terminal for transferring storage.
In sum, in the embodiment of the present invention, acceleration information of the mobile terminal on gravity direction is obtained in real time;If root Judge that mobile terminal is in state of weightlessness according to acceleration information, then store current operation information, close the power supply of target devices And start timing, even if to protect target devices circuit in drop impact instantaneously to connect, not resulting in system short-circuit or mistake yet Effect;If the closing duration of power supply reaches the first setting duration, and the mobile terminal is in non-state of weightlessness, then open described The power supply of target devices, transfers the operation information of storage.Fall reliability by what the embodiment of the present invention improved mobile terminal, Evade the short circuit risk under the limit accelerates scene, the space availability ratio of lifting electronics stacking.
Example IV
Fig. 5 is the structured flowchart of the mobile terminal of another embodiment of the present invention.Mobile terminal 500 shown in Fig. 5 includes: At least one processor 501, memory 502, at least one network interface 504 and user interface 503.In mobile terminal 500 Each component is coupled by bus system 505.It is understood that bus system 505 is used to realize the company between these components Connect letter.Bus system 505 in addition to including data/address bus, also including power bus, controlling bus and status signal bus in addition.But Be for clear explanation for the sake of, various buses are all designated as bus system 505 in Figure 5.
Wherein, user interface 503 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or flexible screen etc..
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) dodge Deposit.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as outside slow at a high speed Deposit.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 502 of the system and method for embodiment of the present invention description is intended to include but does not limit In these memories with any other suitable type.
In some embodiments, memory 502 stores following element, can perform module or data structure, or Person their subset, or their superset:Operating system 5021 and application program 5022.
Wherein, operating system 5021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for Realize various basic businesses and process hardware based task.Application program 5022, comprising various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program for calling memory 502 to store or instruction, specifically, can be application The program stored in program 5022 or instruction, processor 501 are used to obtain the mobile terminal adding on gravity direction in real time Speed data;If judging that the mobile terminal is in state of weightlessness according to the acceleration information, the electricity of target devices is closed Source simultaneously starts timing;If the closing duration of the power supply reaches the first setting duration, and the mobile terminal is in non-weightlessness State, then open the power supply of the target devices.
The method that the embodiments of the present invention are disclosed can apply in processor 501, or be realized by processor 501. Processor 501 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 501 or software form.Above-mentioned treatment Device 501 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), application specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammable GateArray, FPGA) or other PLDs, discrete gate or transistor logic Device, discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and box Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion, or use decoding processor In hardware and software module combination perform completion.Software module may be located at random access memory, and flash memory, read-only storage can In the ripe storage medium in this area such as program read-only memory or electrically erasable programmable memory, register.The storage Medium is located at memory 502, and processor 501 reads the information in memory 502, and the step of the above method is completed with reference to its hardware Suddenly.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other the electronics lists for performing herein described function In unit or its combination.
For software realize, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can To realize within a processor or outside processor.
Alternatively, the mobile terminal is provided with acceleration transducer, and the processor 660 is additionally operable to:Real-time Collection institute State three axial vector data of acceleration transducer;Judge the mobile terminal whether in weightlessness according to the three axial vectors data State.
Alternatively, the processor 501 is additionally operable to:Calculate the sum of the three axial vectors data;Judge three axial vector data Whether the absolute value of sum is less than given threshold;If the absolute value is less than the given threshold, judge at the mobile terminal In state of weightlessness.
Alternatively, the processor 501 is additionally operable to:Compare duration of the mobile terminal in state of weightlessness to be set with second Timing is long;The step of performing the power supply of the closing target devices and start timing is judged whether according to comparative result.
Alternatively, the processor 501 is additionally operable to:If comparative result is the duration that the mobile terminal is in state of weightlessness More than the described second setting duration, then the step of closing the power supply of target devices and start timing is performed;If comparative result is institute State mobile terminal and be in the duration of state of weightlessness less than the described second setting duration, then the mobile terminal is in state of weightlessness Duration reset, perform it is described obtain the mobile terminal in real time on gravity direction acceleration information the step of.
Alternatively, the processor 501 is additionally operable to:Store the current operation information of the mobile terminal;Transfer storage The operation information of the mobile terminal.
Mobile terminal 500 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, here Repeat no more.In the embodiment of the present invention, three axial vector data of mobile terminal Real-time Collection acceleration transducer;Sweared according to three axles Whether amount data judge mobile terminal in state of weightlessness;Mobile terminal is in state of weightlessness, then compare mobile terminal and be in mistake The duration of weight state and the second setting duration;Judged whether to perform the step of closing destination device power according to comparative result, such as The step of fruit performs the power supply of closing target devices and starts timing, then store current operation information before execution;If The closing duration of power supply reaches the first setting duration, and mobile terminal is in non-state of weightlessness, then open the electricity of target devices Source, transfers the operation information of storage.Fall reliability by what the embodiment of the present invention improved mobile terminal, evade limit acceleration Short circuit risk under scene, the space availability ratio of lifting electronics stacking.
Embodiment five
Fig. 6 is the structural representation of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 6 Can be mobile phone, panel computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal in Fig. 6 includes radio frequency (RadioFrequency, RF) circuit 610, memory 620, input block 630th, display unit 640, processor 660, voicefrequency circuit 670, WiFi (WirelessFidelity) module 680 and power supply 690.
Wherein, input block 630 can be used to receive the numeral or character information of user input, and produce and mobile terminal User set and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 630 can be with Including contact panel 631.Contact panel 631, user can be collected thereon or neighbouring touch operation (such as user uses hand The operation of any suitable object such as finger, stylus or annex on contact panel 631), and driven according to formula set in advance Corresponding attachment means.Optionally, contact panel 631 may include two parts of touch detecting apparatus and touch controller.Wherein, Touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, and transmit a signal to touch control Device;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives the processor 660, and the order sent of receiving processor 660 and can be performed.Furthermore, it is possible to use resistance-type, condenser type, infrared ray with And the polytype such as surface acoustic wave realizes contact panel 631.Except contact panel 631, input block 630 can also include other Input equipment 632, other input equipments 632 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, one or more in action bars etc..
Wherein, display unit 640 can be used for display by the information of user input or be supplied to information and the movement of user The various menu interfaces of terminal.Display unit 640 may include display panel 641, optionally, can use LCD or organic light emission The forms such as diode (OrganicLight-EmittingDiode, OLED) configure display panel 641.
It should be noted that contact panel 631 can cover display panel 641, touch display screen is formed, when touch display screen inspection Measure thereon or after neighbouring touch operation, processor 660 is sent to determine the type of touch event, with preprocessor 660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area be used for show utilization rate control higher, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 660 is the control centre of mobile terminal, using each of various interfaces and connection whole mobile phone Individual part, by running or performing software program and/or module of the storage in first memory 621, and calls storage to exist Data in second memory 622, perform the various functions and processing data of mobile terminal, so as to carry out entirety to mobile terminal Monitoring.Optionally, processor 660 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/ Or the data in the second memory 622, processor 660 for obtaining acceleration of the mobile terminal on gravity direction in real time Degrees of data;If judging that the mobile terminal is in state of weightlessness according to the acceleration information, the power supply of target devices is closed And start timing;If the closing duration of the power supply reaches the first setting duration, and the mobile terminal is in non-weightless shape State, then open the power supply of the target devices.
Alternatively, the mobile terminal is provided with acceleration transducer, and the processor 660 is additionally operable to:Real-time Collection institute State three axial vector data of acceleration transducer;Judge the mobile terminal whether in weightlessness according to the three axial vectors data State.
Alternatively, the processor 660 is additionally operable to:Calculate the sum of the three axial vectors data;Judge three axial vector data Whether the absolute value of sum is less than given threshold;If the absolute value is less than the given threshold, judge at the mobile terminal In state of weightlessness.
Alternatively, the processor 660 is additionally operable to:Compare duration of the mobile terminal in state of weightlessness to be set with second Timing is long;The step of performing the power supply of the closing target devices and start timing is judged whether according to comparative result.
Alternatively, the processor 660 is additionally operable to:If comparative result is the duration that the mobile terminal is in state of weightlessness More than the described second setting duration, then the step of closing the power supply of target devices and start timing is performed;If comparative result is institute State mobile terminal and be in the duration of state of weightlessness less than the described second setting duration, then the mobile terminal is in state of weightlessness Duration reset, perform it is described obtain the mobile terminal in real time on gravity direction acceleration information the step of.
Alternatively, the processor 660 is additionally operable to:Store the current operation information of the mobile terminal;Transfer storage The operation information of the mobile terminal.
It can be seen that, in the embodiment of the present invention, three axial vector data of mobile terminal Real-time Collection acceleration transducer;According to three Whether axial vector data judge mobile terminal in state of weightlessness;Mobile terminal is in state of weightlessness, then compare at mobile terminal In the duration of state of weightlessness and the second setting duration;Judge whether to perform the step for closing destination device power according to comparative result Suddenly, if the step of performing the power supply of closing target devices and start timing, stores current operation information before execution; If the closing duration of power supply reaches the first setting duration, and mobile terminal is in non-state of weightlessness, then open target devices Power supply, transfer the operation information of storage.Fall reliability by what the embodiment of the present invention improved mobile terminal, evade the limit Accelerate the short circuit risk under scene, the space availability ratio of lifting electronics stacking.
For above-mentioned mobile terminal embodiment, because it is substantially similar to embodiment of the method, so the comparing of description Simply, the relevent part can refer to the partial explaination of embodiments of method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It would have readily occurred to a person skilled in the art that be:Any combination application of above-mentioned each embodiment is all feasible, therefore Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited, This is not just detailed one by one.
Provided herein power switch scheme not with any certain computer, virtual system or the intrinsic phase of miscellaneous equipment Close.Various general-purpose systems can also be used together with based on teaching in this.As described above, construction has present invention side Structure required by the system of case is obvious.Additionally, the present invention is not also directed to any certain programmed language.Should be bright In vain, it is possible to use various programming languages realize the content of invention described herein, that and language-specific is done above retouches State is to disclose preferred forms of the invention.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body implementation method are expressly incorporated in the specific embodiment, wherein each claim conduct in itself Separate embodiments of the invention.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, power switch technical scheme essence of the invention On the part of the part that is contributed to prior art in other words or the technical scheme can be embodied in the form of software product Out, computer software product storage is in a storage medium, including some instructions are used to so that a computer equipment (can be personal computer, server, or network equipment etc.) perform each embodiment methods described of the invention whole or Part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be stored The medium of program code.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (12)

1. a kind of power switch method, is applied to mobile terminal, it is characterised in that methods described includes:
Acceleration information of the mobile terminal on gravity direction is obtained in real time;
If judging that the mobile terminal is in state of weightlessness according to the acceleration information, close the power supply of target devices and open Beginning timing;
If the closing duration of the power supply reaches the first setting duration, and the mobile terminal is in non-state of weightlessness, then open Open the power supply of the target devices.
2. method according to claim 1, it is characterised in that the mobile terminal is provided with acceleration transducer, described Obtaining acceleration information of the mobile terminal on gravity direction in real time includes:
Three axial vector data of acceleration transducer described in Real-time Collection;
Judge the mobile terminal whether in state of weightlessness according to the three axial vectors data.
3. method according to claim 2, it is characterised in that described to judge the movement according to the three axial vectors data Whether terminal includes in state of weightlessness:
Calculate the sum of the three axial vectors data;
Judge the absolute value of three axial vector data sums whether less than given threshold;
If the absolute value is less than the given threshold, judge that the mobile terminal is in state of weightlessness.
4. method according to claim 1, it is characterised in that the closing target devices power supply and start timing it Before, also include in methods described:
Compare duration and the second setting duration that the mobile terminal is in state of weightlessness;
The step of performing the power supply of the closing target devices and start timing is judged whether according to comparative result.
5. method according to claim 4, it is characterised in that described to be judged whether to perform the closing according to comparative result The power supply of target devices simultaneously includes the step of start timing:
If comparative result is the mobile terminal being in the duration of state of weightlessness more than the described second setting duration, closing is performed The power supply of target devices and the step of start timing;
If comparative result is the mobile terminal duration of state of weightlessness is in less than the described second setting duration, by the shifting The duration that dynamic terminal is in state of weightlessness resets, and performs the acceleration for obtaining the mobile terminal in real time on gravity direction The step of data.
6. method according to claim 1, it is characterised in that the closing target devices power supply and start timing it Before, methods described also includes:
Store the current operation information of the mobile terminal;
After the power supply for opening the target devices, also include:
Transfer the operation information of the mobile terminal of storage.
7. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Acceleration information acquisition module, for obtaining acceleration information of the mobile terminal on gravity direction in real time;
Power-off module, if for judging that the mobile terminal is in state of weightlessness according to the acceleration information, closing The power supply of target devices simultaneously starts timing;
Electric power starting module, if the first setting duration is reached for the closing duration of the power supply, and at the mobile terminal In non-state of weightlessness, then the power supply of the target devices is opened.
8. mobile terminal according to claim 7, it is characterised in that the mobile terminal is provided with acceleration transducer, The acceleration information acquisition module includes:
Vector data gathers submodule, for three axial vector data of acceleration transducer described in Real-time Collection;
State of weightlessness decision sub-module, for judging the mobile terminal whether in weightless shape according to the three axial vectors data State.
9. mobile terminal according to claim 8, it is characterised in that the state of weightlessness decision sub-module includes:
Vector data and computing unit, the sum for calculating the three axial vectors data;
Vector data and judging unit, for judging the absolute value of three axial vector data sums whether less than given threshold;
State of weightlessness identifying unit, if being less than the given threshold for the absolute value, judges that the mobile terminal is in State of weightlessness.
10. mobile terminal according to claim 7, it is characterised in that before the power-off module, in the shifting Dynamic terminal also includes:
Weightless duration comparison module, the duration and the second setting duration of state of weightlessness are in for comparing the mobile terminal;
Power-off judge module, the power supply for performing the closing target devices is judged whether simultaneously for module according to comparative result The step of starting timing.
11. mobile terminals according to claim 10, it is characterised in that the power-off judge module includes:
Power-off implementation sub-module, if being that the mobile terminal is in the duration of state of weightlessness more than described for comparative result Second setting duration, then perform the step of closing the power supply of target devices and start timing;
Weightless duration resets submodule, if being that the mobile terminal is in the duration of state of weightlessness less than described for comparative result Second setting duration, then reset the duration that the mobile terminal is in state of weightlessness, and execution is described to obtain the movement in real time The step of acceleration information of the terminal on gravity direction.
12. mobile terminals according to claim 7, it is characterised in that before the power-off module, the movement Terminal also includes:
Operation information memory module, the operation information current for storing the mobile terminal;
After the electric power starting module, also include:
Operation information transfers module, the operation information of the mobile terminal for transferring storage.
CN201710056823.XA 2017-01-25 2017-01-25 Power supply switching method and mobile terminal Active CN106878551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710056823.XA CN106878551B (en) 2017-01-25 2017-01-25 Power supply switching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710056823.XA CN106878551B (en) 2017-01-25 2017-01-25 Power supply switching method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106878551A true CN106878551A (en) 2017-06-20
CN106878551B CN106878551B (en) 2020-07-14

Family

ID=59158326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710056823.XA Active CN106878551B (en) 2017-01-25 2017-01-25 Power supply switching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106878551B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108227840A (en) * 2018-01-09 2018-06-29 广东欧珀移动通信有限公司 Electronic device and related product
CN113038410A (en) * 2020-12-28 2021-06-25 四川科瑞纳信息技术有限公司 Activation and dormancy control method and system for vehicle detection sensor
CN113312681A (en) * 2020-02-26 2021-08-27 神讯电脑(昆山)有限公司 Electronic device and circuit protection method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070121236A1 (en) * 2004-06-03 2007-05-31 Sony Corporation Portable apparatus having head retracting function and head retracting method
CN101819615A (en) * 2010-03-15 2010-09-01 湖南德沐数码科技有限公司 Method for protecting multimedia product through gravity acceleration
CN103279719A (en) * 2013-06-20 2013-09-04 上海华勤通讯技术有限公司 Mobile terminal and method for preventing falling-caused failure of touch screen of mobile terminal
CN103458099A (en) * 2012-06-05 2013-12-18 国龙信息技术(上海)有限公司 Protecting method for dropping power failure of hand-held terminal
CN104869244A (en) * 2015-05-12 2015-08-26 广东欧珀移动通信有限公司 Mobile terminal and power-off protection method in time of the mobile phone drops
CN105120108A (en) * 2015-09-11 2015-12-02 上海斐讯数据通信技术有限公司 Electronic device and fall protection method thereof
CN106331254A (en) * 2016-09-06 2017-01-11 广东欧珀移动通信有限公司 Protection processing method and device for mobile terminal drop

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070121236A1 (en) * 2004-06-03 2007-05-31 Sony Corporation Portable apparatus having head retracting function and head retracting method
CN101819615A (en) * 2010-03-15 2010-09-01 湖南德沐数码科技有限公司 Method for protecting multimedia product through gravity acceleration
CN103458099A (en) * 2012-06-05 2013-12-18 国龙信息技术(上海)有限公司 Protecting method for dropping power failure of hand-held terminal
CN103279719A (en) * 2013-06-20 2013-09-04 上海华勤通讯技术有限公司 Mobile terminal and method for preventing falling-caused failure of touch screen of mobile terminal
CN104869244A (en) * 2015-05-12 2015-08-26 广东欧珀移动通信有限公司 Mobile terminal and power-off protection method in time of the mobile phone drops
CN105120108A (en) * 2015-09-11 2015-12-02 上海斐讯数据通信技术有限公司 Electronic device and fall protection method thereof
CN106331254A (en) * 2016-09-06 2017-01-11 广东欧珀移动通信有限公司 Protection processing method and device for mobile terminal drop

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108227840A (en) * 2018-01-09 2018-06-29 广东欧珀移动通信有限公司 Electronic device and related product
CN108227840B (en) * 2018-01-09 2021-03-09 Oppo广东移动通信有限公司 Electronic device and related product
CN113312681A (en) * 2020-02-26 2021-08-27 神讯电脑(昆山)有限公司 Electronic device and circuit protection method thereof
CN113038410A (en) * 2020-12-28 2021-06-25 四川科瑞纳信息技术有限公司 Activation and dormancy control method and system for vehicle detection sensor

Also Published As

Publication number Publication date
CN106878551B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN107368150A (en) A kind of photographic method and mobile terminal
CN106201321A (en) A kind of application control method and mobile terminal
CN106445392A (en) Operating method of status bar icon and mobile terminal
CN107302661A (en) A kind of camera control method and mobile terminal
CN107643912A (en) A kind of information sharing method and mobile terminal
CN102707861B (en) Electronic equipment and display method thereof
CN106878551A (en) A kind of power switch method and mobile terminal
CN106325753A (en) Payment interface display method and mobile terminal
CN106126101A (en) The operational approach of a kind of mobile terminal and mobile terminal
CN106446614B (en) A kind of right management method and mobile terminal of application program
CN106874046A (en) The operating method and mobile terminal of a kind of application program
CN107329687B (en) A kind of display methods and mobile terminal of virtual input keyboard
CN107450804A (en) A kind of method and terminal for responding touch control operation
CN106208206B (en) A kind of wireless charging method and mobile terminal
CN107643867A (en) A kind of display methods and mobile terminal
CN106681640A (en) Screen display control method of mobile terminal and mobile terminal
CN106371595A (en) Method for calling out message notification bar and mobile terminal
CN106055071B (en) A kind of display control method and mobile terminal of notification message
CN107643868A (en) One kind puts out screen and shows Switching method and mobile terminal
CN106684967B (en) A kind of charging method and mobile terminal of mobile terminal
CN106598408A (en) Method for switching navigation bar and mobile terminal
CN106066694A (en) The control method of a kind of touch screen operation response and terminal
CN106126535A (en) The processing method of a kind of text and terminal
CN106126231A (en) The control method of a kind of status bar notice ejection and terminal
CN106126071A (en) A kind of control method applying suspended window position and mobile 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
GR01 Patent grant
GR01 Patent grant