CN108307071A - A kind of terminal control method and terminal - Google Patents

A kind of terminal control method and terminal Download PDF

Info

Publication number
CN108307071A
CN108307071A CN201810091446.8A CN201810091446A CN108307071A CN 108307071 A CN108307071 A CN 108307071A CN 201810091446 A CN201810091446 A CN 201810091446A CN 108307071 A CN108307071 A CN 108307071A
Authority
CN
China
Prior art keywords
terminal
battery
case
user
safe handling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810091446.8A
Other languages
Chinese (zh)
Inventor
蒋宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810091446.8A priority Critical patent/CN108307071A/en
Publication of CN108307071A publication Critical patent/CN108307071A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of terminal control method and terminals, it is related to field of terminal technology, it can solve when user is in sleep state, user can not timely check prompt message, so that user possibly can not be operated for the problem that terminal security risk that may be present, so as to cause terminal still have security risk.Concrete scheme is:In the case where detecting that user is in sleep state, the distance between user and terminal are obtained;In the case where distance is less than or equal to the first predetermined threshold value, the battery status of detection terminal;In the case where battery status meets preset condition, according to safe handling strategy, terminal is controlled.The embodiment of the present invention is applied to terminal there may be under the scene of security risk, during terminal-pair terminal is controlled.

Description

A kind of terminal control method and terminal
Technical field
The present embodiments relate to field of terminal technology more particularly to a kind of terminal control method and terminals.
Background technology
With popularizing for terminal, terminal has become a part indispensable in user's life.With user's using terminal Time be continuously increased, the remaining capacity of terminal is constantly reduced.
In general, use of the user in order to facilitate terminal, often charges terminal placement at one's side.And terminal is charging In the process, it is understood that there may be some security risks, when as excessively high such as the battery temperature of terminal, the battery of terminal may explode Deng.Currently, when terminal is there may be when security risk, terminal can on display interface display reminding information, to be carried to user Showing may cause terminal the information of security risk occur.
But in the above method, when user is in sleep state, user can not timely check prompt message, such as This makes user possibly can not be operated for terminal security risk that may be present, and safety is still had so as to cause terminal Hidden danger.
Invention content
A kind of terminal control method of offer of the embodiment of the present invention and terminal, can solve when user is in sleep state, User can not timely check prompt message so that user possibly can not be directed to terminal security risk that may be present into Row operation, so as to cause terminal still have security risk the problem of.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme that:
The first aspect of the present invention provides a kind of terminal control method, is applied to terminal, which includes: In the case where detecting that user is in sleep state, the distance between user and terminal are obtained;It is less than or equal in distance In the case of first predetermined threshold value, the battery status of detection terminal;In the case where battery status meets preset condition, according to peace Full processing strategy, controls terminal.
The second aspect of the present invention provides a kind of terminal, which includes:Acquiring unit, detection unit and control unit. Wherein, acquiring unit, in the case where detecting that user is in sleep state, obtaining the distance between user and terminal. Detection unit is used in the case where the distance that acquiring unit obtains is less than or equal to the first predetermined threshold value, detection terminal Battery status.Control unit, in the case that the battery status for being detected in detection unit meets preset condition, according to safe place Reason strategy, controls terminal.
The third aspect of the present invention provides a kind of terminal, which includes processor, memory and store on a memory And the computer program that can be run on a processor, it is realized as described in relation to the first aspect when which is executed by processor The step of terminal control method.
The fourth aspect of the present invention provides a kind of computer readable storage medium, is deposited on the computer readable storage medium Computer program is stored up, the step of terminal control method as described in relation to the first aspect is realized when which is executed by processor Suddenly.
In embodiments of the present invention, in the case where user is in sleep state, terminal can meet pre- in battery status If in the case of condition, according to safe handling strategy, controlling terminal.Due to, when battery status meets preset condition, Characterizing terminal, there are some security risks, and terminal can control terminal according to safe handling strategy, therefore can evade Terminal some security risks that may be present, to improve the security performance of terminal.
Description of the drawings
Fig. 1 is a kind of configuration diagram of Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of terminal control method flow chart one provided in an embodiment of the present invention;
Fig. 3 is a kind of terminal control method flowchart 2 provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal control method flow chart 3 provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram one of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram two of terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of hardware architecture diagram of terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Term " first " and " second " in the specification and claims of the embodiment of the present invention etc. are for distinguishing not Same object, rather than for the particular order of description object.For example, the first predetermined threshold value and the second predetermined threshold value etc. are to be used for Different predetermined threshold values is distinguished, rather than is used to describe the particular order of predetermined threshold value.In the description of the embodiment of the present invention, remove Non- to be otherwise noted, the meaning of " plurality " is refer to two or more.
The terms "and/or" is a kind of incidence relation of description affiliated partner, indicates may exist three kinds of relationships, For example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.Symbol herein "/" indicates that affiliated partner is relationship such as A/B expressions A or B either.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
A kind of terminal control method of offer of the embodiment of the present invention and terminal, can be applied to terminal, there may be security risks Scene under, during terminal-pair terminal is controlled, can solve in the prior art when user is in sleep state, use Family can not timely check prompt message, be carried out so that user possibly can not be directed to terminal security risk that may be present Operation, so as to cause terminal still have security risk the problem of.
Terminal in the embodiment of the present invention can be the terminal with operating system.The operating system can be Android (Android) operating system can be ios operating systems, can also be other possible operating systems, the embodiment of the present invention is not Make specific limit.
Below by taking Android operation system as an example, introduce what terminal control method provided in an embodiment of the present invention was applied Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, respectively:Application layer, application framework layer, system operation library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation of the frame in accordance with application program In the case of principle, some application programs are developed based on application framework layer.
System operation library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour All kinds of resources needed for it are provided as system.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of terminal control method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that The terminal control method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal can by The software program is run in Android operation system realizes terminal control method provided in an embodiment of the present invention.
In the first embodiment of the present invention, Fig. 2 shows a kind of terminal control method provided in an embodiment of the present invention, This method can be applied to the terminal for the Android operation system for having as shown in Figure 1.As shown in Fig. 2, the terminal control method packet Include step 201- steps 203:
Step 201, terminal in the case where detecting that user is in sleep state, obtain between user and terminal away from From.
In the embodiment of the present invention, terminal can obtain user's by intelligent wearable device (such as Intelligent bracelet etc.) Sleep info, and determine whether user is in sleep state according to the sleep info of user;Also, terminal is detecting at user In the case of sleep state, the distance between user and terminal are obtained by intelligent wearable device.
Step 202, distance be less than or equal to the first predetermined threshold value in the case of, the battery shape of terminal detection terminal State.
Optionally, in the embodiment of the present invention, battery status includes the voltage of battery, the connection status of battery and battery At least one of temperature.
Step 203, in the case where battery status meets preset condition, terminal according to safe handling strategy, to terminal into Row control.
Wherein, safe handling strategy can be what terminal pre-saved, or terminal meets default in battery status In the case of condition, generated according to battery status.
Optionally, in the embodiment of the present invention, preset condition includes at least one of following condition A, condition B and condition C.
Condition A:The voltage of battery is more than the second predetermined threshold value.
In the embodiment of the present invention, the second predetermined threshold value is the safeguard protection voltage of the preset battery of terminal.
In the embodiment of the present invention, in the case where distance is less than or equal to the first predetermined threshold value, terminal can detect end Whether the voltage of the battery at end is more than the safeguard protection voltage (i.e. the second predetermined threshold value) of battery, is more than safety in the voltage of battery In the case of protecting voltage, there may be some security risks, terminals to be carried out to terminal according to safe handling strategy for characterization terminal Control.
Condition B:The connection status of battery occurs abnormal.
Optionally, in the embodiment of the present invention, the connection status of battery occurs abnormal may include any one of following:Battery connects Wrong mistake, battery terminal connections mouth contact bad etc. with battery connecting line.
In the embodiment of the present invention, in the case where distance is less than or equal to the first predetermined threshold value, terminal can detect end Whether the connection status of the battery at end there is exception, and in the case where exception occurs in the connection status of battery, characterization terminal may There are some security risks, terminal controls terminal according to safe handling strategy.
Condition C:The temperature of battery is more than third predetermined threshold value.
In the embodiment of the present invention, third predetermined threshold value is that the highest for the temperature that the preset battery of terminal can bear is critical Point.
In the embodiment of the present invention, in the case where distance is less than or equal to the first predetermined threshold value, terminal can detect end Whether the temperature of the battery at end is more than the highest critical point (i.e. third predetermined threshold value) of temperature, is more than temperature in the temperature of battery In the case of highest critical point, characterization terminal there may be some security risks, terminal according to safe handling strategy, to terminal into Row control.
Optionally, in the embodiment of the present invention, safe handling strategy include it is following at least one of:
(1), with predetermined manner to user reminding battery status.
In the embodiment of the present invention, predetermined manner can be used for triggering user and be switched to waking state from sleep state.
Wherein, the waking state in the embodiment of the present invention is the state opposite with sleep state, and waking state can be to use The wide-awake state in family, or user is in the state of semiconsciousness.
Optionally, include with predetermined manner to user reminding battery status in safe handling strategy in the embodiment of the present invention In the case of, predetermined manner may include:At least one of default the tinkle of bells and vibrations mode;Alternatively, default the tinkle of bells and vibrations At least one of and show the mode of battery status on the display interface of terminal.
It is understood that in the embodiment of the present invention, in terminal with predetermined manner to after user reminding battery status, eventually End receives the input of user, which stops for triggering terminal to user reminding battery status;Terminal is defeated in response to this Enter, stops to user reminding battery status.
(2), control terminal switches to safe mode.
In the embodiment of the present invention, in the secure mode, the battery status of terminal is unsatisfactory for preset condition, and safe mode is energy Enough reduce the pattern of security risk probability of happening.
Optionally, in the embodiment of the present invention, in the secure mode, the voltage of battery is less than or equal to the second predetermined threshold value, And/or the connection status of battery does not occur exception, and/or, the temperature of battery is less than or equal to third predetermined threshold value.
Illustratively, after terminal switches under safe mode, terminal can be with automatic sensing external temperature and battery status, certainly To rational state, (such as terminal reduces the power consumption of battery and closes the application program etc. in terminal dynamic regulating cell, with reduction The load of battery);And/or terminal can detect whether the voltage of battery is more than whether protection voltage and battery connection are correct Deng if the voltage of battery, more than protecting voltage or battery malunion true, terminal, which passes through, generates interrupt signal disconnection charging Access;And/or terminal can be arranged fan control and cool down to battery, so that battery keeps normal condition.
Optionally, in the embodiment of the present invention, in conjunction with Fig. 2, as shown in figure 3, before above-mentioned steps 203, the present invention is implemented The terminal control method that example provides further includes step 301:
Whether step 301, terminal detection battery are in charged state.
Wherein, in the case where battery is in charged state, safe handling strategy includes the charging path for disconnecting battery; In the case that battery is not at charged state, safe handling strategy includes control terminal shutdown.
Illustratively, in the case where battery status meets preset condition and battery is in charged state, terminal can be controlled Terminal processed generates interrupt signal, and CHRCTRL is called to cut off charging path, the power management integrated circuit (Power of terminal Management IC, PMIC) BATDET pins and Metal-Oxide Semiconductor field-effect transistor (Metal- Oxide-Semiconductor Field-Effect Transistor, MOSFET) it is closed, and in display circle of terminal The prompt message of " charger does not connect " is shown on face.
Optionally, in the embodiment of the present invention, in the case where battery is in charged state, safe handling strategy may include It is switched in the charging path of safe mode and disconnection battery to user reminding battery status, control terminal with predetermined manner At least one of.
Optionally, in the embodiment of the present invention, in the case where battery is not at charged state, safe handling strategy can wrap It includes and is switched in safe mode and control terminal shutdown at least to user reminding battery status, control terminal with predetermined manner One.
Optionally, in an implementation of the embodiment of the present invention, i.e., in the case where battery is in charged state, peace Full processing strategy includes at least the charging path for disconnecting battery.Specifically, in conjunction with Fig. 3, as shown in figure 4, above-mentioned steps 203 it Before, terminal control method provided in an embodiment of the present invention further includes step 401, and corresponding step 203 can specifically pass through step 203a is realized:
Step 401, terminal the display reminding information on display interface.
Wherein, which is used to indicate whether to disconnect the charging path of battery.
In the embodiment of the present invention, terminal is in the case where battery is in charged state, display interface of the terminal in terminal The prompt message of upper display " charging path for whether disconnecting battery ", and judge whether that control terminal disconnects according to the input of user The charging path of battery.
Step 203a, in the case where receiving the input of user, in the case where battery status meets preset condition, eventually End controls terminal according to safe handling strategy.
Wherein, input is for triggering the charging path for disconnecting battery.
In the embodiment of the present invention, the safe handling strategy in step 203a may include the charging path for disconnecting battery, with And with predetermined manner to user reminding battery status and control terminal switch in safe mode at least one of.
Illustratively, terminal can with control terminal disconnect battery charging path and control terminal with predetermined manner to User reminding battery status.
The embodiment of the present invention provides a kind of terminal control method, and in the case where user is in sleep state, terminal can be with In the case where battery status meets preset condition, according to safe handling strategy, terminal is controlled.Due to when battery shape When state meets preset condition, there are some security risks, terminals to be carried out to terminal according to safe handling strategy for characterization terminal Control, therefore terminal some security risks that may be present can be evaded, to improve the security performance of terminal.
In second of embodiment of the present invention, Fig. 5 shows a kind of possibility of the terminal involved in the embodiment of the present invention Structural schematic diagram, as shown in figure 5, the terminal 50 may include:Acquiring unit 51, detection unit 52 and control unit 53.
Wherein, acquiring unit 51, in the case where detecting that user is in sleep state, obtain user and terminal it Between distance.Detection unit 52, for the case where the distance that acquiring unit 51 obtains is less than or equal to the first predetermined threshold value Under, the battery status of detection terminal.Control unit 53, the battery status for being detected in detection unit 52 meet preset condition In the case of, according to safe handling strategy, terminal is controlled.
In one possible implementation, battery status includes the voltage of battery, the connection status of battery and battery At least one of temperature;Preset condition includes at least one of following condition A, condition B and condition C;Condition A:Battery Voltage be more than the second predetermined threshold value;Condition B:The connection status of battery occurs abnormal;Condition C:The temperature of battery is more than third Predetermined threshold value.
In one possible implementation, safe handling strategy include it is following at least one of:With predetermined manner to User reminding battery status, predetermined manner are switched to waking state for triggering user from sleep state;And control terminal is cut Safe mode is shifted to, in the secure mode, battery status is unsatisfactory for preset condition.
In one possible implementation, include with predetermined manner to user reminding battery status in safe handling strategy In the case of, predetermined manner includes:At least one of default the tinkle of bells and vibrations mode;Alternatively, in default the tinkle of bells and vibrations The mode of battery status is shown at least one and display interface in terminal.
In one possible implementation, detection unit 52 are additionally operable in control unit 53 according to safe handling strategy, Before controlling terminal, whether detection battery is in charged state;In the case where battery is in charged state, safe place Reason strategy includes the charging path for disconnecting battery;In the case where battery is not at charged state, safe handling strategy includes control Terminal closedown processed.
In one possible implementation, safe handling strategy includes at least the charging path for disconnecting battery.Such as Fig. 6 institutes Show, terminal 50 shown in fig. 5 further includes:Display unit 54.Wherein, display unit 54 are used in control unit 53 according to safety Processing strategy, before controlling terminal, the display reminding information on display interface, the prompt message is used to indicate whether to break Open the charging path of battery;Control unit 53, is specifically used for:In the case where receiving the input of user, according to safe handling Strategy controls terminal, and input disconnects the charging path of battery for triggering terminal.
Terminal 50 provided in an embodiment of the present invention can realize each process that terminal is realized in above method embodiment, be It avoids repeating, which is not described herein again for detailed description and advantageous effect.
In the third embodiment of the present invention, a kind of hardware knot of Fig. 7 terminals of each embodiment to realize the present invention Structure schematic diagram.As shown in fig. 7, the terminal 100 includes but not limited to:Radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, The components such as processor 110 and power supply 111.
It should be noted that it will be understood by those skilled in the art that the not structure paired terminal of terminal structure shown in Fig. 7 Restriction, terminal may include either combining certain components or different component cloth than illustrating more or fewer components It sets.In the embodiment of the present application, terminal includes but not limited to mobile phone, tablet computer, laptop, palm PC, vehicle-mounted end End, wearable device and pedometer etc..
Wherein, processor 110, in the case where detecting that user is in sleep state, obtain user and terminal it Between distance;In the case where distance is less than or equal to the first predetermined threshold value, the battery status of detection terminal;In battery status In the case of meeting preset condition, according to safe handling strategy, terminal is controlled.
Terminal 100 provided by the embodiments of the present application can realize each process that terminal is realized in above method embodiment, To avoid repeating, which is not described herein again for detailed description and advantageous effect.
It should be understood that the embodiment of the present application in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by radio communication system and network and other set Standby communication.
Terminal has provided wireless broadband internet to the user by network module 102 and has accessed, and such as user is helped to receive and dispatch electricity Sub- mail, browsing webpage and access streaming video etc..
It is that audio output unit 103 can receive radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 100 executes.Sound Frequency output unit 103 includes loud speaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Process ing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 in video to capturing mould The image data of the static images or video that are obtained by image capture apparatus (such as camera) in formula or image capture mode carries out Processing.Treated, and picture frame may be displayed on display unit 106.It can be with through treated the picture frame of graphics processor 1041 It is stored in memory 109 (or other storage mediums) or is sent via radio frequency unit 101 or network module 102.Wheat Gram wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be with The format output of mobile communication base station can be sent to via radio frequency unit 101 by being converted in the case of telephone calling model.
Terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 1061, and proximity sensor can close display panel when terminal 100 is moved in one's ear 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 105 can be with Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensor etc., details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 107 include touch panel 1071 and other Input equipment 1072.Touch panel 1071, also referred to as touch screen, collect user on it or neighbouring touch operation (such as User is using any suitable objects or attachment such as finger, stylus on touch panel 1071 or near touch panel 1071 Operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receives processor 110 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072. Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, switch Button etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touch The type for touching event provides corresponding visual output on display panel 1061.Although in the figure 7, touch panel 1071 and display Panel 1061 is to realize the function that outputs and inputs of terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not limited herein specifically It is fixed.
Interface unit 108 is the interface that external device (ED) is connect with terminal 100.For example, external device (ED) may include it is wired or Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port, For connecting the port of device with identification module, the port audio input/output (I/O), video i/o port, ear port Etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will One or more elements that the input received is transferred in terminal 100 or can be used for terminal 100 and external device (ED) it Between transmission data.
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the software program and/or module being stored in memory 109, and call and be stored in memory 109 Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 110 may include one Or multiple processing units;Preferably, processor 110 can integrate application processor and modem processor, wherein application processing The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 110.
Terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be with It is logically contiguous by power-supply management system and processor 110, to by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
In addition, terminal 100 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present application also provides a kind of terminal, including processor 110, and memory 109 is stored in storage It is real when which is executed by processor 110 on device 109 and the computer program that can be run on the processor 110 Each process of existing above method embodiment, and identical technique effect can be reached, to avoid repeating, which is not described herein again.
The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, realizes each process of above method embodiment when which is executed by processor, and can reach identical Technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc Or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute each embodiment of the application described in method.
Embodiments herein is described above in conjunction with attached drawing, but the application be not limited to it is above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the enlightenment of the application, the application objective and scope of the claimed protection are not being departed from, can also made very much Form belongs within the protection of the application.

Claims (14)

1. a kind of terminal control method is applied to terminal, which is characterized in that the method includes:
In the case where detecting that user is in sleep state, the distance between user and the terminal are obtained;
In the case where the distance is less than or equal to the first predetermined threshold value, the battery status of the terminal is detected;
In the case where the battery status meets preset condition, according to safe handling strategy, the terminal is controlled.
2. according to the method described in claim 1, it is characterized in that, the battery status includes the voltage, described of the battery At least one of the temperature of the connection status of battery and the battery;
The preset condition includes at least one of following condition A, condition B and condition C;
Condition A:The voltage of battery is more than the second predetermined threshold value;
Condition B:The connection status of battery occurs abnormal;
Condition C:The temperature of battery is more than third predetermined threshold value.
3. method according to claim 1 or 2, which is characterized in that the safe handling strategy include it is following at least One:
With predetermined manner to battery status described in user reminding;And
It controls the terminal and switches to safe mode, under the safe mode, the battery status is unsatisfactory for the default item Part.
4. according to the method described in claim 3, it is characterized in that, in the safe handling strategy including described with predetermined manner In the case of battery status described in user reminding, the predetermined manner includes:
At least one of default the tinkle of bells and vibrations mode;
Alternatively, presetting at least one of the tinkle of bells and vibrations and showing the battery status on the display interface of the terminal Mode.
5. according to the method described in claim 1, it is characterized in that, described according to safe handling strategy, the terminal is carried out Before control, the method further includes:
Detect whether the battery is in charged state;
In the case where the battery is in charged state, the safe handling strategy includes the charging path for disconnecting battery;
In the case where the battery is not at charged state, the safe handling strategy includes controlling the terminal closedown.
6. according to the method described in claim 5, it is characterized in that, the safe handling strategy, which includes at least, disconnects the battery Charging path;
It is described according to safe handling strategy, before controlling the terminal, the method further includes:
The display reminding information on display interface, the prompt message are used to indicate whether to disconnect the charging path of the battery;
It is described that the terminal is controlled according to safe handling strategy, including:
In the case where receiving the input of user, according to the safe handling strategy, the terminal is controlled, it is described defeated Enter the charging path that the battery is disconnected for triggering the terminal.
7. a kind of terminal, which is characterized in that the terminal includes:
Acquiring unit, in the case where detecting that user is in sleep state, obtain between user and the terminal away from From;
Detection unit, for the case where the distance that the acquiring unit obtains is less than or equal to the first predetermined threshold value Under, detect the battery status of the terminal;
Control unit, in the case that the battery status for being detected in the detection unit meets preset condition, according to peace Full processing strategy, controls the terminal.
8. terminal according to claim 7, which is characterized in that the battery status includes the voltage, described of the battery At least one of the temperature of the connection status of battery and the battery;
The preset condition includes at least one of following condition A, condition B and condition C;
Condition A:The voltage of battery is more than the second predetermined threshold value;
Condition B:The connection status of battery occurs abnormal;
Condition C:The temperature of battery is more than third predetermined threshold value.
9. terminal according to claim 7 or 8, which is characterized in that the safe handling strategy include it is following at least One:
With predetermined manner to battery status described in user reminding;And
It controls the terminal and switches to safe mode, under the safe mode, the battery status is unsatisfactory for the default item Part.
10. terminal according to claim 9, which is characterized in that with default side described in including in the safe handling strategy To in the case of battery status described in user reminding, the predetermined manner includes formula:
At least one of default the tinkle of bells and vibrations mode;
Alternatively, presetting at least one of the tinkle of bells and vibrations and showing the battery status on the display interface of the terminal Mode.
11. terminal according to claim 7, which is characterized in that the detection unit, be additionally operable to described control unit by According to safe handling strategy, before controlling the terminal, detect whether the battery is in charged state;
In the case where the battery is in charged state, the safe handling strategy includes the charging path for disconnecting battery;
In the case where the battery is not at charged state, the safe handling strategy includes controlling the terminal closedown.
12. terminal according to claim 11, which is characterized in that the safe handling strategy, which includes at least, disconnects the electricity The charging path in pond;
The terminal further includes:
Display unit, for, according to safe handling strategy, before controlling the terminal, being shown in described control unit Display reminding information on interface, the prompt message are used to indicate whether to disconnect the charging path of the battery;
Described control unit is specifically used for:
In the case where receiving the input of user, according to the safe handling strategy, the terminal is controlled, it is described defeated Enter the charging path that the battery is disconnected for triggering the terminal.
13. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory and can be at the place The computer program run on reason device is realized when the computer program is executed by the processor as appointed in claim 1 to 6 The step of terminal control method described in one.
14. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence is realized when the computer program is executed by processor such as terminal control method according to any one of claims 1 to 6 Step.
CN201810091446.8A 2018-01-30 2018-01-30 A kind of terminal control method and terminal Pending CN108307071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810091446.8A CN108307071A (en) 2018-01-30 2018-01-30 A kind of terminal control method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810091446.8A CN108307071A (en) 2018-01-30 2018-01-30 A kind of terminal control method and terminal

Publications (1)

Publication Number Publication Date
CN108307071A true CN108307071A (en) 2018-07-20

Family

ID=62867346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810091446.8A Pending CN108307071A (en) 2018-01-30 2018-01-30 A kind of terminal control method and terminal

Country Status (1)

Country Link
CN (1) CN108307071A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109649308A (en) * 2018-12-12 2019-04-19 北京车联天下信息技术有限公司 Method for managing power supply and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812223A (en) * 2005-01-26 2006-08-02 兄弟工业株式会社 Telephones
CN101943942A (en) * 2010-08-24 2011-01-12 鸿富锦精密工业(深圳)有限公司 Electronic device with sleep function and method for wakening same
CN105207278A (en) * 2014-05-30 2015-12-30 小米科技有限责任公司 Charging method and terminal
CN105243799A (en) * 2015-09-30 2016-01-13 小米科技有限责任公司 Safety reminding processing method and device
CN105847561A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Environmental monitoring method, device and handset
CN106299516A (en) * 2016-09-21 2017-01-04 奇酷互联网络科技(深圳)有限公司 Smart machine and charging method thereof
US20170005486A1 (en) * 2014-01-16 2017-01-05 Boston Scientific Neuromodulation Corporation Determining and Forecasting End of Life for an Implantable Medical Device Having a Rechargeable Battery
CN107271918A (en) * 2017-07-21 2017-10-20 广东欧珀移动通信有限公司 Terminal device and its cell safety monitoring method and monitoring system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812223A (en) * 2005-01-26 2006-08-02 兄弟工业株式会社 Telephones
CN101943942A (en) * 2010-08-24 2011-01-12 鸿富锦精密工业(深圳)有限公司 Electronic device with sleep function and method for wakening same
US20170005486A1 (en) * 2014-01-16 2017-01-05 Boston Scientific Neuromodulation Corporation Determining and Forecasting End of Life for an Implantable Medical Device Having a Rechargeable Battery
CN105207278A (en) * 2014-05-30 2015-12-30 小米科技有限责任公司 Charging method and terminal
CN105243799A (en) * 2015-09-30 2016-01-13 小米科技有限责任公司 Safety reminding processing method and device
CN105847561A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Environmental monitoring method, device and handset
CN106299516A (en) * 2016-09-21 2017-01-04 奇酷互联网络科技(深圳)有限公司 Smart machine and charging method thereof
CN107271918A (en) * 2017-07-21 2017-10-20 广东欧珀移动通信有限公司 Terminal device and its cell safety monitoring method and monitoring system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109649308A (en) * 2018-12-12 2019-04-19 北京车联天下信息技术有限公司 Method for managing power supply and system

Similar Documents

Publication Publication Date Title
CN108491123A (en) A kind of adjusting application program image target method and mobile terminal
CN110212877A (en) A kind of circuit control method, electronic equipment and radio circuit
CN108494030A (en) A kind of wireless charging method, terminal and transmitting end equipment
CN110048479A (en) A kind of battery control method and terminal device
CN110062372A (en) A kind of SIM card control method and terminal device
CN110058836A (en) A kind of output method and terminal device of audio signal
CN108616682A (en) A kind of camera head protecting method and terminal
CN108512980A (en) A kind of detection method and mobile terminal of mobile terminal
CN108712555A (en) A kind of method and device sending warning message
CN109085963A (en) A kind of interface display method and terminal device
CN109117054A (en) A kind of display control method and terminal
CN108718360A (en) A kind of charging method and mobile terminal
CN108235084A (en) A kind of video broadcasting method and mobile terminal
CN108366171A (en) A kind of temperature rise control method and mobile terminal
CN108449490A (en) A kind of terminal control method and terminal
CN108089935A (en) The management method and mobile terminal of a kind of application program
CN108307071A (en) A kind of terminal control method and terminal
CN110213439A (en) A kind of message treatment method and terminal
CN109828702A (en) A kind of interface display method and terminal device
CN108595352A (en) A kind of guard method of mobile terminal and device
CN109819502A (en) A kind of game on-hook method and apparatus
CN108874111A (en) A kind of battery over-discharge protection control method and mobile terminal
CN109618053A (en) A kind of screen light compensation method and terminal device
CN108399404A (en) A kind of infrared lamp control method and terminal
CN108459796A (en) A kind of response method and mobile terminal of function key

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180720

RJ01 Rejection of invention patent application after publication