CN106878551B - Power supply switching method and mobile terminal - Google Patents

Power supply switching method and mobile terminal Download PDF

Info

Publication number
CN106878551B
CN106878551B CN201710056823.XA CN201710056823A CN106878551B CN 106878551 B CN106878551 B CN 106878551B CN 201710056823 A CN201710056823 A CN 201710056823A CN 106878551 B CN106878551 B CN 106878551B
Authority
CN
China
Prior art keywords
mobile terminal
power supply
target device
weightlessness
module
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.)
Active
Application number
CN201710056823.XA
Other languages
Chinese (zh)
Other versions
CN106878551A (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a power supply switching method and a mobile terminal. The method comprises the following steps: acquiring acceleration data of the mobile terminal in the gravity direction in real time; if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, the power supply of the target device is turned off and timing is started; and if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device. The embodiment of the invention improves the falling reliability of the mobile terminal, avoids the risk of short circuit of the circuit in the extreme acceleration scene, and improves the space utilization rate of electronic stacking.

Description

Power supply switching method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a power supply switching method and a mobile terminal.
Background
In the existing mobile terminal, besides a circuit structure necessary for the operation of a processor, a plurality of sensors and human-computer interaction devices are also externally hung so as to enrich the functions of the terminal and improve the user experience. But with the increase of plug-in devices, the external circuit is more complex and more densely stacked.
The microstructure is easily deformed during the extreme acceleration, resulting in short-circuiting or failure of the device. When the mobile terminal falls and collides, instantaneous connection of a circuit is easily caused, for example, the shielding cover is stressed and bent to possibly touch with internal electronic components, so that a system short circuit is caused. The extreme acceleration or drop impact experienced by the mobile terminal is a significant concern for system reliability.
Disclosure of Invention
The embodiment of the invention provides a power supply switching method, which aims to solve the problem of short circuit or failure of a system caused by extreme acceleration or falling collision of a mobile terminal.
In one aspect, a power switching method is provided, which is applied to a mobile terminal, and includes:
acquiring acceleration data of the mobile terminal in the gravity direction in real time;
if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, the power supply of the target device is turned off and timing is started;
and if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device.
In another aspect, a mobile terminal is provided, which includes:
the acceleration data acquisition module is used for acquiring acceleration data of the mobile terminal in the gravity direction in real time;
the power supply closing module is used for closing the power supply of the target device and starting timing if the mobile terminal is judged to be in the weightless state according to the acceleration data;
a power supply opening module, configured to open the power supply of the target device if the off duration of the power supply reaches a first set duration and the mobile terminal is in a non-weightless state
According to the embodiment of the invention, the mobile terminal acquires acceleration data of the mobile terminal in the gravity direction in real time; if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, the power supply of the target device is turned off and timing is started so as to protect the target device from causing short circuit or failure of the system even if the circuit is instantly connected in a falling collision; and if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device. The embodiment of the invention improves the falling reliability of the mobile terminal, avoids the risk of short circuit of the circuit in the extreme acceleration scene, and improves the space utilization rate of electronic stacking.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flow chart of a power switching method according to a first embodiment of the invention;
fig. 2 is a flow chart of a power switching method according to a second embodiment of the invention;
fig. 3 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4a is a second block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4b is a block diagram of a weightless state determination submodule according to a third embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The embodiment of the invention provides a power switching method.
Referring to fig. 1, a flowchart of a power switching method in an embodiment of the present invention is shown, which is applied to a mobile terminal, and the method includes:
step 101, acquiring acceleration data of the mobile terminal in the gravity direction in real time.
In this embodiment, when the mobile terminal falls, the gravity condition borne by the mobile terminal changes, and the acceleration data in the gravity direction also changes accordingly. The method for acquiring the acceleration data of the mobile terminal in the gravity direction in real time can be realized by adopting an acceleration sensor, and can also be realized by adopting a gravity sensor.
And step 102, if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, turning off the power supply of the target device and starting timing.
In this embodiment, after the acceleration data of the mobile terminal in the gravity direction is acquired, whether the mobile terminal is in a weightless state is determined according to the acceleration data. If the mobile terminal is in the weightless state, the mobile terminal is in the rapid movement state or the falling state, at the moment, the power supply of the target device is turned off, and the timing is started. The target device can be set as a device sensitive to falling collision, such as a touch screen of a mobile terminal.
And 103, if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, turning on the power supply of the target device.
In this embodiment, when it is determined that the mobile terminal is in the weightless state, after the power of the target device is turned off, the power off time of the target device is recorded, and whether the mobile terminal is in the weightless state is determined according to the acceleration data of the mobile terminal in the gravity direction, which is obtained in real time. When the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightlessness state, the mobile terminal is not in a rapid movement state or a falling state, and the power supply of the target device is turned on at the moment. Preferably, when the off duration of the power supply reaches the first set duration, the mobile terminal is still in the weightless state, and the power supply of the target device is turned on until the mobile terminal is determined to be in the non-weightless state.
In summary, in the embodiment of the present invention, the mobile terminal obtains acceleration data of the mobile terminal in the gravity direction in real time; if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, the power supply of the target device is turned off and timing is started so as to protect the target device from causing short circuit or failure of the system even if the circuit is instantly connected in a falling collision; and if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device. The embodiment of the invention improves the falling reliability of the mobile terminal, avoids the risk of short circuit of the circuit in the extreme acceleration scene, and improves the space utilization rate of electronic stacking.
Example two
Referring to fig. 2, a flow chart of a power switching method in another embodiment of the invention is shown.
Step 201, collecting triaxial vector data of the acceleration sensor in real time.
In this embodiment, the mobile terminal is provided with an acceleration sensor, and acquires three-axis vector data of the acceleration sensor, for example, X, Y, Z three-axis acceleration data in real time.
Step 202, judging whether the mobile terminal is in a weightlessness state according to the triaxial vector data.
In this embodiment, after the three-axis vector data of the acceleration sensor is acquired, whether the mobile terminal is in a weightless state is determined according to the three-axis vector data. For example, whether the mobile terminal is in a falling state is judged according to the acceleration of the Z axis, and if the acceleration of the Z axis is greater than a certain set value, the mobile terminal is judged to be in a weightless state.
Preferably, the determining whether the mobile terminal is in the weightless state may specifically include the following steps:
step one, calculating the sum of the triaxial vector data.
And step two, judging whether the absolute value of the triaxial vector data sum is smaller than a set threshold value.
And step three, if the absolute value is smaller than the set threshold, determining that the mobile terminal is in a weightless state. Specifically, if the absolute value of the sum of the three-axis vector data is smaller than a set threshold, the mobile terminal is determined to be in a weightless state, and if the absolute value of the sum of the three-axis vector data is greater than or equal to the set threshold, the mobile terminal is determined to be in a non-weightless state. The setting threshold in the embodiment of the present invention is not limited in detail, and may be set according to actual situations.
Step 203, comparing the time length of the mobile terminal in the weightless state with a second set time length.
In this embodiment, considering that the falling heights of the mobile terminal are different and the impact of the generated collision on the target device is also different, in order to prevent the mobile terminal from turning off the power supply of the target device for many times, the falling safety height of the mobile terminal is set, and the mobile terminal enters a protection mechanism for turning off the power supply of the target device when the falling height of the mobile terminal is greater than the safety height. The set height of the mobile terminal falling corresponds to the second set duration, so that the duration that the mobile terminal is in the weightless state is compared with the second set duration, and whether the falling height of the mobile terminal is greater than the safety height can be judged according to the comparison result. The second set time period in the embodiment of the present invention is not limited in detail, and may be set according to actual conditions.
And 204, if the comparison result shows that the time length of the mobile terminal in the weightlessness state is less than the second set time length, clearing the time length of the mobile terminal in the weightlessness state, and executing the step of acquiring the acceleration data of the mobile terminal in the gravity direction in real time.
In this embodiment, if the duration of the mobile terminal in the weightlessness status is less than the second set duration, the duration of the mobile terminal in the weightlessness status is cleared, and the step of acquiring the acceleration data of the mobile terminal in the gravity direction in real time is returned. Specifically, whether the falling height of the mobile terminal is greater than the safety height or not is judged according to the time length of the mobile terminal in the weightlessness state, the time length of the mobile terminal in the weightlessness state is less than a second set time length, and if the falling height of the mobile terminal is less than the safety height, the influence of the falling of the mobile terminal on a target device is small, the power supply of the target device does not need to be turned off, and the step of obtaining the acceleration data in real time is returned to be executed. The second set time period is not limited in detail in the embodiment of the present invention, and may be set according to an actual situation.
And step 205, if the comparison result shows that the duration of the weightlessness status of the mobile terminal is longer than the second set duration, executing the steps of turning off the power supply of the target device and starting timing.
In this embodiment, if the duration of the weightlessness status of the mobile terminal is longer than the second set duration, it indicates that the falling height of the mobile terminal is greater than the safety height, and the falling of the mobile terminal may be dangerous for the target device, so the power supply of the target device is turned off. Specifically, the current running information of the mobile terminal is stored, the power supply of the target device is turned off, and the timing is started. For example, the user is browsing the mail currently or editing the document currently, and the mobile terminal stores the current running information, so that the operation information of the user can be protected from being lost, and the user can conveniently operate the mobile terminal after the mobile terminal turns on the target power supply. Other operations can be executed before the power supply of the target device is turned off, which is not limited in the embodiment of the present invention and can be set according to actual situations.
And step 206, if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, turning on the power supply of the target device.
And step 207, calling the stored running information of the mobile terminal.
In this embodiment, after the mobile terminal turns on the power supply of the target device, the stored running information of the mobile terminal can be automatically called, and the display interface of the mobile terminal is restored to the state before the power supply is turned off, so that the operation of the user is continuous, and the use experience of the user is improved.
In summary, in the embodiment of the present invention, the mobile terminal acquires the three-axis vector data of the acceleration sensor in real time; judging whether the mobile terminal is in a weightless state or not according to the triaxial vector data; if the mobile terminal is in the weightlessness state, comparing the duration of the mobile terminal in the weightlessness state with a second set duration; judging whether to execute the step of turning off the power supply of the target device according to the comparison result, and if the step of turning off the power supply of the target device and starting timing is executed, storing the current running information before execution; and if the closing time of the power supply reaches the first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device and calling the stored running information. The embodiment of the invention improves the falling reliability of the mobile terminal, avoids the risk of short circuit of the circuit in the extreme acceleration scene, and improves the space utilization rate of electronic stacking.
It should be noted that the foregoing method embodiments are described as a series of acts or combinations for simplicity in explanation, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
EXAMPLE III
The mobile terminal provided by the embodiment of the invention can realize the details of the power switching method in the first embodiment to the second embodiment, and achieve the same effect.
Referring to fig. 3, a block diagram of a mobile terminal in the embodiment of the present invention is shown, where the mobile terminal includes an acceleration data obtaining module 301, a power shutdown module 302, and a power turn-on module 303:
an acceleration data acquisition module 301, configured to acquire acceleration data of the mobile terminal in the gravity direction in real time;
a power shutdown module 302, configured to shut down a power supply of a target device and start timing if it is determined that the mobile terminal is in a weightless state according to the acceleration data;
a power supply turning-on module 303, configured to turn on a power supply of the target device if the turning-off duration of the power supply reaches a first set duration and the mobile terminal is in a non-weightless state.
On the basis of fig. 3, the mobile terminal is provided with an acceleration sensor, the acceleration data acquisition module 301 includes a vector data acquisition sub-module 3011 and a weightlessness status determination sub-module 3012, as shown in fig. 4 a:
the vector data acquisition submodule 3011 is configured to acquire triaxial vector data of the acceleration sensor in real time;
and a weightlessness status determination submodule 3012, configured to determine whether the mobile terminal is in a weightlessness status according to the three-axis vector data.
In addition to fig. 4a, the weight loss state determination module 3012 includes a vector data and calculation unit 30121, a vector data and determination unit 30122, and a weight loss state determination unit 30123, as shown in fig. 4 b:
a vector data sum calculation unit 30121 for calculating a sum of the three-axis vector data;
a vector data sum determination unit 30122 configured to determine whether an absolute value of the triaxial vector data sum is smaller than a set threshold;
a weightless state determination unit 30123, configured to determine that the mobile terminal is in a weightless state if the absolute value is smaller than the set threshold.
On the basis of fig. 3, before the power shutdown module 302, the mobile terminal further includes a weight loss duration comparison module 304 and a power shutdown determination module 305, see fig. 4 a:
a weightlessness duration comparison module 304, configured to compare a duration of the mobile terminal in the weightlessness status with a second set duration;
and a power-off determining module 305, configured to determine whether to execute the step of turning off the power of the target device and start timing according to the comparison result.
On the basis of fig. 3, the power-off determining module 305 includes a power-off execution sub-module 3051 and a zero-gravity duration sub-module 3052, as shown in fig. 4 a:
a power-off execution submodule 3051, configured to, if the comparison result indicates that the duration of the weightless state of the mobile terminal is longer than the second set duration, execute a step of turning off the power of the target device and starting timing;
a weightlessness duration clear submodule 3052, configured to clear the duration that the mobile terminal is in the weightlessness status if the comparison result indicates that the duration that the mobile terminal is in the weightlessness status is less than the second set duration, and execute the step of acquiring the acceleration data of the mobile terminal in the gravity direction in real time.
On the basis of fig. 3, before the power shutdown module 302, the mobile terminal further includes an operation information storage module 306, see fig. 4 a:
an operation information storage module 306, configured to store current operation information of the mobile terminal;
after the power-on module 303, an operation information retrieving module 307 is further included, see fig. 4 a:
and an operation information retrieving module 307, configured to retrieve the stored operation information of the mobile terminal.
In summary, in the embodiment of the present invention, acceleration data of the mobile terminal in the gravity direction is obtained in real time; if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, storing the current running information, closing the power supply of the target device and starting timing so as to protect the target device from causing short circuit or failure of the system even if the circuit is instantly connected in the falling collision; and if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device and calling the stored running information. The embodiment of the invention improves the falling reliability of the mobile terminal, avoids the risk of short circuit of the circuit in the extreme acceleration scene, and improves the space utilization rate of electronic stacking.
Example four
Fig. 5 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and a user interface 503. The various components in the mobile terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or flexible screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or non-volatile memory, or may include both volatile and non-volatile memory, wherein non-volatile memory may be Read-only memory (ROM), programmable Read-only memory (programmable ROM), erasable programmable Read-only memory (EPROM ), electrically erasable programmable Read-only memory (EEPROM), or flash memory volatile memory may be Random Access Memory (RAM), which serves as external cache memory, by way of example but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamicdram, SDRAM), synchronous dynamic random access memory (syncronous, SDRAM), double data rate synchronous dynamic random access memory (doubtatatare SDRAM, ddrsrssrem), Enhanced synchronous dynamic random access memory (Enhanced DRAM, Enhanced SDRAM), synchronous DRAM, or synchronous DRAM (e-random access DRAM, or DRAM), or may include any other types of RAM suitable for direct access systems including the present invention RAM, direct access DRAM, and DRAM L.
In some embodiments, memory 502 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, the processor 501 is configured to obtain acceleration data of the mobile terminal in the gravity direction in real time by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022; if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, the power supply of the target device is turned off and timing is started; and if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The processor 501 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
For a hardware implementation, the processing units may be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable logic devices (P L D), Field-Programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the mobile terminal is provided with an acceleration sensor, and the processor 660 is further configured to: acquiring triaxial vector data of the acceleration sensor in real time; and judging whether the mobile terminal is in a weightlessness state according to the triaxial vector data.
Optionally, the processor 501 is further configured to: calculating a sum of the three-axis vector data; judging whether the absolute value of the sum of the triaxial vector data is smaller than a set threshold value or not; and if the absolute value is smaller than the set threshold, determining that the mobile terminal is in a weightless state.
Optionally, the processor 501 is further configured to: comparing the time length of the mobile terminal in the weightlessness state with a second set time length; and judging whether to execute the steps of turning off the power supply of the target device and starting timing according to the comparison result.
Optionally, the processor 501 is further configured to: if the comparison result shows that the time length of the mobile terminal in the weightless state is longer than the second set time length, the power supply of the target device is turned off and timing is started; and if the comparison result shows that the time length of the mobile terminal in the weightlessness state is less than the second set time length, resetting the time length of the mobile terminal in the weightlessness state, and executing the step of acquiring the acceleration data of the mobile terminal in the gravity direction in real time.
Optionally, the processor 501 is further configured to: storing the current operation information of the mobile terminal; and calling the stored running information of the mobile terminal.
The mobile terminal 500 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here. In the embodiment of the invention, the mobile terminal acquires the three-axis vector data of the acceleration sensor in real time; judging whether the mobile terminal is in a weightless state or not according to the triaxial vector data; if the mobile terminal is in the weightlessness state, comparing the duration of the mobile terminal in the weightlessness state with a second set duration; judging whether to execute the step of turning off the power supply of the target device according to the comparison result, and if the step of turning off the power supply of the target device and starting timing is executed, storing the current running information before execution; and if the closing time of the power supply reaches the first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device and calling the stored running information. The embodiment of the invention improves the falling reliability of the mobile terminal, avoids the risk of short circuit of the circuit in the extreme acceleration scene, and improves the space utilization rate of electronic stacking.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal in fig. 6 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal in fig. 6 includes a Radio Frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a wifi (wireless fidelity) module 680, and a power supply 690.
The input unit 630 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal. Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631. The touch panel 631 may collect touch operations performed by a user (e.g., operations performed by the user on the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of L CD or an Organic light emitting diode (Organic L light-emitting diode, O L ED), etc.
It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 660 to determine the type of the touch event, and then the processor 660 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 660 is a control center of the mobile terminal, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions and processes data of the mobile terminal by operating or executing software programs and/or modules stored in the first memory 621 and calling data stored in the second memory 622, thereby performing overall monitoring of the mobile terminal. Optionally, processor 660 may include one or more processing units.
In the embodiment of the present invention, the processor 660 is configured to obtain acceleration data of the mobile terminal in the gravity direction in real time by calling a software program and/or a module stored in the first memory 621 and/or data stored in the second memory 622; if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, the power supply of the target device is turned off and timing is started; and if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device.
Optionally, the mobile terminal is provided with an acceleration sensor, and the processor 660 is further configured to: acquiring triaxial vector data of the acceleration sensor in real time; and judging whether the mobile terminal is in a weightlessness state according to the triaxial vector data.
Optionally, the processor 660 is further configured to: calculating a sum of the three-axis vector data; judging whether the absolute value of the sum of the triaxial vector data is smaller than a set threshold value or not; and if the absolute value is smaller than the set threshold, determining that the mobile terminal is in a weightless state.
Optionally, the processor 660 is further configured to: comparing the time length of the mobile terminal in the weightlessness state with a second set time length; and judging whether to execute the steps of turning off the power supply of the target device and starting timing according to the comparison result.
Optionally, the processor 660 is further configured to: if the comparison result shows that the time length of the mobile terminal in the weightless state is longer than the second set time length, the power supply of the target device is turned off and timing is started; and if the comparison result shows that the time length of the mobile terminal in the weightlessness state is less than the second set time length, resetting the time length of the mobile terminal in the weightlessness state, and executing the step of acquiring the acceleration data of the mobile terminal in the gravity direction in real time.
Optionally, the processor 660 is further configured to: storing the current operation information of the mobile terminal; and calling the stored running information of the mobile terminal.
Therefore, in the embodiment of the invention, the mobile terminal acquires the three-axis vector data of the acceleration sensor in real time; judging whether the mobile terminal is in a weightless state or not according to the triaxial vector data; if the mobile terminal is in the weightlessness state, comparing the duration of the mobile terminal in the weightlessness state with a second set duration; judging whether to execute the step of turning off the power supply of the target device according to the comparison result, and if the step of turning off the power supply of the target device and starting timing is executed, storing the current running information before execution; and if the closing time of the power supply reaches the first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device and calling the stored running information. The embodiment of the invention improves the falling reliability of the mobile terminal, avoids the risk of short circuit of the circuit in the extreme acceleration scene, and improves the space utilization rate of electronic stacking.
For the above-mentioned mobile terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As is readily imaginable to the person skilled in the art: any combination of the above embodiments is possible, and thus any combination between the above embodiments is an embodiment of the present invention, but the present disclosure is not necessarily detailed herein for reasons of space.
The power switching scheme provided herein is not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the power switch technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A power switching method is applied to a mobile terminal, and is characterized in that the mobile terminal is provided with an acceleration sensor, and the method comprises the following steps:
acquiring acceleration data of the mobile terminal in the gravity direction in real time;
if the mobile terminal is judged to be in the weightlessness state according to the acceleration data, the power supply of the target device is turned off and timing is started; the target device is a device which is deformed in the falling collision of the mobile terminal to cause instantaneous circuit bridging to cause system short circuit or failure of the mobile terminal;
if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state, starting the power supply of the target device;
the acquiring acceleration data of the mobile terminal in the gravity direction in real time comprises:
acquiring triaxial vector data of the acceleration sensor in real time;
judging whether the mobile terminal is in a weightlessness state according to the triaxial vector data;
the judging whether the mobile terminal is in a weightlessness state according to the triaxial vector data comprises:
calculating a sum of the three-axis vector data;
judging whether the absolute value of the sum of the triaxial vector data is smaller than a set threshold value or not;
and if the absolute value is smaller than the set threshold, determining that the mobile terminal is in a weightless state.
2. The method of claim 1, wherein prior to said powering down the target device and starting the timing, further comprising:
comparing the time length of the mobile terminal in the weightlessness state with a second set time length;
and judging whether to execute the steps of turning off the power supply of the target device and starting timing according to the comparison result.
3. The method of claim 2, wherein the step of determining whether to perform the step of turning off the power of the target device and starting timing according to the comparison result comprises:
if the comparison result shows that the time length of the mobile terminal in the weightless state is longer than the second set time length, the power supply of the target device is turned off and timing is started;
and if the comparison result shows that the time length of the mobile terminal in the weightlessness state is less than the second set time length, resetting the time length of the mobile terminal in the weightlessness state, and executing the step of acquiring the acceleration data of the mobile terminal in the gravity direction in real time.
4. The method of claim 1, wherein prior to said powering down the target device and starting timing, the method further comprises:
storing the current operation information of the mobile terminal;
after the turning on of the power supply of the target device, the method further comprises:
and calling the stored running information of the mobile terminal.
5. A mobile terminal, characterized in that the mobile terminal is provided with an acceleration sensor, the mobile terminal comprising:
the acceleration data acquisition module is used for acquiring acceleration data of the mobile terminal in the gravity direction in real time; the acceleration data acquisition module includes:
the vector data acquisition submodule is used for acquiring triaxial vector data of the acceleration sensor in real time;
the weightlessness status judging submodule is used for judging whether the mobile terminal is in the weightlessness status according to the triaxial vector data; the weightless state determination submodule includes:
a vector data sum calculation unit for calculating the sum of the three-axis vector data;
the vector data sum judgment unit is used for judging whether the absolute value of the triaxial vector data sum is smaller than a set threshold value or not;
a weightless state determination unit, configured to determine that the mobile terminal is in a weightless state if the absolute value is smaller than the set threshold;
the power supply closing module is used for closing the power supply of the target device and starting timing if the mobile terminal is judged to be in the weightless state according to the acceleration data; the target device is a device which is deformed in the falling collision of the mobile terminal to cause instantaneous circuit bridging to cause system short circuit or failure of the mobile terminal;
and the power supply starting module is used for starting the power supply of the target device if the closing time of the power supply reaches a first set time and the mobile terminal is in a non-weightless state.
6. The mobile terminal of claim 5, further comprising, before the power-off module, at the mobile terminal:
the weightlessness duration comparison module is used for comparing the duration of the mobile terminal in the weightlessness state with a second set duration;
and the power supply closing judgment module is used for judging whether to execute the step of closing the power supply of the target device and starting timing according to the comparison result.
7. The mobile terminal of claim 6, wherein the power-off determining module comprises:
the power supply closing execution submodule is used for executing the steps of closing the power supply of the target device and starting timing if the comparison result shows that the time length of the mobile terminal in the weightless state is greater than the second set time length;
and the zero clearing submodule of the weightlessness duration is used for clearing the duration of the weightlessness status of the mobile terminal and executing the step of acquiring the acceleration data of the mobile terminal in the gravity direction in real time if the comparison result shows that the duration of the weightlessness status of the mobile terminal is less than the second set duration.
8. The mobile terminal of claim 5, wherein before the power down module, the mobile terminal further comprises:
the operation information storage module is used for storing the current operation information of the mobile terminal;
after the power supply opening module, the method further comprises the following steps:
and the operation information calling module is used for calling the stored operation information of the mobile terminal.
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 CN106878551A (en) 2017-06-20
CN106878551B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120108A (en) * 2015-09-11 2015-12-02 上海斐讯数据通信技术有限公司 Electronic device and fall protection method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7190540B2 (en) * 2004-06-03 2007-03-13 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
CN103279719B (en) * 2013-06-20 2016-06-08 上海华勤通讯技术有限公司 Mobile terminal and prevent the method that the touch screen of mobile terminal falls inefficacy
CN104869244A (en) * 2015-05-12 2015-08-26 广东欧珀移动通信有限公司 Mobile terminal and power-off protection method in time of the mobile phone drops
CN106331254B (en) * 2016-09-06 2019-07-16 Oppo广东移动通信有限公司 A kind of protection processing method and processing device that mobile terminal falls

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120108A (en) * 2015-09-11 2015-12-02 上海斐讯数据通信技术有限公司 Electronic device and fall protection method thereof

Also Published As

Publication number Publication date
CN106878551A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106201632B (en) Application program access method and mobile terminal
US20140306898A1 (en) Key swipe gestures for touch sensitive ui virtual keyboard
US9256303B2 (en) Touch display device and control method thereof
CN107193438B (en) Method for managing desktop icons and mobile terminal
CN105144068B (en) Application program display method and terminal
CN107506130B (en) Character deleting method and mobile terminal
US20140306899A1 (en) Multidirectional swipe key for virtual keyboard
CN106250257B (en) Static recovery method and mobile terminal
US20140340204A1 (en) Interactive multi-touch remote control
EP3089433B1 (en) Apparatus and method for controlling operation of mobile terminal
CN106878551B (en) Power supply switching method and mobile terminal
CN107562345B (en) Information storage method and mobile terminal
US8797283B2 (en) Method and apparatus for performing user-defined macros
CN107566622B (en) Temperature control method and mobile terminal
CN107045470B (en) Safety prompting method of mobile terminal and mobile terminal
US8830196B2 (en) Information processing apparatus, information processing method, and program
CN106055242B (en) Operation processing method and mobile terminal
CN106408289B (en) Payment page switching method and mobile terminal
CN106325699B (en) Application program starting method and device
CN107562473B (en) Application program display method and mobile terminal
CN106873891B (en) Touch operation method and mobile terminal
CN107547738B (en) Prompting method and mobile terminal
CN106371595B (en) Method for calling out message notification bar and mobile terminal
CN107025173B (en) Method and device for testing function execution time
RU2600544C2 (en) Navigation user interface in support of page-focused, touch- or gesture-based browsing experience

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