CN109743447A - Terminal control method, terminal and computer readable storage medium - Google Patents
Terminal control method, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN109743447A CN109743447A CN201811601433.7A CN201811601433A CN109743447A CN 109743447 A CN109743447 A CN 109743447A CN 201811601433 A CN201811601433 A CN 201811601433A CN 109743447 A CN109743447 A CN 109743447A
- Authority
- CN
- China
- Prior art keywords
- terminal
- user
- control method
- environmental parameter
- pressure
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of terminal control methods, are applied to terminal, which comprises judge whether the terminal is in grip state;If it is not, then further judging whether the terminal runs multimedia application;If so, detecting the environmental parameter of the terminal local environment;The terminal is controlled according to the environmental parameter.The present invention also provides a kind of terminal and computer readable storage mediums, by implementing above scheme, so that user is under special environment, even if during using terminal, user enters sleep state, still the flexible control of intelligence can be carried out to terminal, ensure that the safety of user without knowing it, the user experience is improved.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of terminal control methods, terminal and computer-readable storage
Medium.
Background technique
With the prevalence of smart phone, more and more users are on very close terms when using mobile phone, so that when sleeping
Mobile phone is also playing video or song is listened just to fall asleep, and in the case, most probably occur mobile phone be crushed on pillow or by
It is sub to lead to mobile phone abnormal heating (especially in the winter room for having heating or the interior in summer) below, and at this time in addition to have can
Can because mobile phone abnormal heating burnt to user's skin it is outer, as mobile phone generates heat to mobile phone self performance for a long time
It has an impact, it could even be possible to the probability of mobile phone spontaneous combustion or explosion can be increased, no matter for user either mobile phone itself
It all endangers huge.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of terminal control method, terminal and storage medium, it ensure that user exists
The safety of using terminal under indoor environment.
To solve the above problems, being applied to terminal the present invention provides a kind of terminal control method, which comprises
Judge whether the terminal is in grip state;If it is not, then further judging whether the terminal runs multimedia application;If
It is the environmental parameter for then detecting the terminal local environment;The terminal is controlled according to the environmental parameter.
Optionally, the circumferential side frame of the terminal is provided with pressure sensor, described to judge whether the terminal is in and hold
It include: the pressure distribution data for recording terminal pressure sensor record when user holds before the step of holding state;Base
In the pressure distributed area of pressure distribution data setting terminal grip state.
Optionally, described to judge that the step of whether terminal is in grip state includes: the pressure for obtaining the terminal
The current pressure data of sensor;Judge whether the current pressure data falls into the pressure distributed area;If so,
Judge that the terminal is in the grip state;If it is not, then judging that the terminal is not at the grip state.
Optionally, described to judge that the step of whether terminal runs multimedia application specifically includes: to obtain current application
Identifier and present video output function;Judge whether the identifier of the current application belongs to multimedia application classification;
If so, judging whether present video output function is called;If so, judging that the terminal is answered in the operation multimedia
With.
Optionally, the environmental parameter of the terminal local environment includes that the User Status of active user, the terminal are opposite
In the degree of heat of the distance of the user, the terminal.
Optionally, the environmental parameter of environment described in the detecting terminal includes detecting the User Status of active user,
The step of terminal connection intelligent wearable device, the User Status of the detecting active user includes: to be worn according to the intelligence
The User Status that equipment judges the active user is worn, the User Status includes sleep state and non-sleep state.
Optionally, described the step of being controlled according to the environmental parameter the terminal includes: when user's shape
State be sleep state when, and the terminal relative to the user distance less than the first preset value when, then to the terminal into
Row power-off operation.
Optionally, described the step of being controlled according to the environmental parameter the terminal includes: when user's shape
State be sleep state when, and the terminal relative to the user distance be greater than the first preset value when, then control the terminal
Breath shields and judges the degree of heat of the terminal;If the degree of heat of terminal is greater than the second preset value, it is clear to control the terminal
Manage the background application of the terminal.
Further, the present invention also provides a kind of terminal, the terminal is included at least: memory, communication bus and place
Manage device, in which: the memory, for storing terminal control program;The communication bus, for realizing processor and memory
Between connection communication;The processor, for executing the terminal control program stored in memory, to realize as described above eventually
The step of holding control method.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums
It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize
The step of described in any item terminal control methods as above.
By implementing above scheme, so that user is under special environment (such as in bedroom), even if in using terminal
In the process, user enters sleep state, and the flexible control of intelligence still can be carried out to terminal, ensure that user unwitting
In the case of safety, the user experience is improved.
Detailed description of the invention
In attached drawing (it is not necessarily drawn to scale), similar appended drawing reference can describe phase in different views
As component.Similar reference numerals with different letter suffix can indicate the different examples of similar component.Attached drawing with example and
Unrestricted mode generally shows each embodiment discussed herein.
A kind of hardware structural diagram of Fig. 1 terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of terminal control method of the present invention;
Fig. 4 is a kind of module diagram of terminal of the present invention;
Fig. 5 is that a kind of terminal of the present invention forms structural schematic diagram.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, terminal, Intelligent bracelet, pedometer etc. are mobile eventually
End, and the fixed terminals such as number TV, desktop computer.
It will be illustrated by taking terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to being used in particular for
Except the element of mobile purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its terminal of each embodiment to realize the present invention, the terminal
100 may include: radio frequency unit (Radio Frequency, RF) 101, WiFi module 102, audio output unit 103, A/V
(audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, storage
The components such as device 109, processor 110 and power supply 111.It will be understood by those skilled in the art that mobile terminal shown in Fig. 1
Structure does not constitute the restriction to mobile terminal, and terminal may include components more more or fewer than diagram, or combine certain
Component or different component layouts.
It is specifically introduced below with reference to all parts of the Fig. 1 to terminal 100:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code it is point more
Location 2000 (Code Division Multiple Access 2000, CDMA2000), wideband code division multiple access (Wideband
Code Division Multiple Access, WCDMA), TD SDMA (Time Division-
Synchronous Code Division Multiple Access, TD-SCDMA), frequency division duplex long term evolution
(Frequency Division Duplexing-Long Term Evolution, FDD-LTE) and time division duplex long term evolution
(Time Division Duplexing-Long Term Evolution, TDD-LTE) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, logging mode, language in terminal 100
It is radio frequency unit 101 or WiFi module 102 is received or depositing when under the isotypes such as sound recognition mode, broadcast reception mode
The audio data stored in reservoir 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 may be used also
To provide audio output relevant to the specific function that terminal 100 executes (for example, call signal receives sound, message sink sound
Sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
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 application (such as the horizontal/vertical screen of mobile phone posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone
Configurable fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, temperature
The other sensors such as meter, infrared sensor, 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 can 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 generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it 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 be used as at least one external device (ED) connect with terminal 100 can by interface.For example, external
Device may include wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless number
According to port, memory card port, port, the port audio input/output (I/O), view for connecting the device with identification module
The port frequency I/O, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, data are believed
Breath, electric power etc.) and by one or more elements that the input received is transferred in terminal 100 or can be used at end
Data are transmitted between end 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area 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, it 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 mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that 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, thus by power-supply management system realize management charging, electric discharge, with
And the functions such as power managed.
Although Fig. 1 is not shown, terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system being based below to terminal of the invention are retouched
It states.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes the user equipment (User of successively communication connection
Equipment, UE) 201, evolved UMTS Terrestrial radio access network (Evolved UMTS Terrestrial Radio
Access Network, E-UTRAN) 202, evolved packet-based core networks (Evolved Packet Core, EPC) 203 and operation
The IP operation 204 of quotient.
Generally, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include mobility management entity (Mobility Management Entity, MME) 2031, ownership
Client server (Home Subscriber Server, HSS) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and policy and rate functional entity
(Policy and Charging Rules Function, PCRF) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IP multimedia subsystem (IP Multimedia
Subsystem, IMS) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.Based on above-mentioned terminal hardware structure and communications network system, this is proposed
The each embodiment of inventive method.
Fig. 3 is the flow diagram of video broadcasting method of the embodiment of the present invention, is applied to terminal.It is understood that this
Flow chart in embodiment of the method, which is not used in, is defined the sequence for executing step.
As shown in figure 3, the terminal control method the following steps are included:
Step S300, judges whether the terminal is in grip state.
In the present embodiment, user represents the different grip states of terminal the different conditions of active user, than
When longitudinally holding terminal such as user, represent User Status is to see that the states such as news, such as user laterally hold terminal
When, it represents with User Status to play competitive game state, when without holding terminal, represents user and do not use at this time
Terminal.Certain the example above is not intended to limit the present invention, simply to illustrate that different grips represents different user's shapes
State.
In the present embodiment, the circumferential side frame of the terminal is provided with pressure sensor, and the judgement terminal is
It include: the pressure distribution for recording terminal pressure sensor record when user holds before no the step of being in grip state
Data;Pressure distributed area based on pressure distribution data setting terminal grip state.Specifically, the pressure sensor
It equidistant can be distributed in the circumferential side frame of the terminal, no matter user is longitudinal gripping or laterally holds, and can lead to
Over-voltage force snesor senses.The pressure data sensed when holding terminal by repeatedly recording user, record user press when holding
The pressure distribution data of force snesor.Therefore when user holds terminal again, the current number pressure of pressure sensor at this time is obtained
According to judging whether current pressure data drops into pressure distributed area, if having dropped into pressure distributed area, judge
Terminal is in user's grip state at this time.
Step S302 further judges whether the terminal runs multimedia application if terminal is in grip state.
In the present embodiment, multimedia application generally comprises Video Applications, also includes various music applications.It is described
Judge that the step of whether terminal runs multimedia application specifically includes: obtaining the identifier and present video of current application
Output function;Judge whether the identifier of the current application belongs to multimedia application classification;If so, judging that present video is defeated
Whether function is called out;If so, judging that the terminal is running the multimedia application.For example, if currently answered
With for video playing application, then the identifier of the application must be sorted out into multimedia application classification, while in video playing
In the case where operation, audio output function necessarily can also be called.
Step S304 detects the environmental parameter of the terminal local environment if the terminal operating multimedia application.
In the present embodiment, the environmental parameter of the terminal local environment includes the User Status, described of active user
Terminal is relative to the distance of the user, the degree of heat of the terminal.
Specifically, the environmental parameter of environment described in the detecting terminal includes detecting the User Status of active user,
The step of terminal connection intelligent wearable device, the User Status of the detecting active user includes: to be worn according to the intelligence
The User Status that equipment judges the active user is worn, the User Status includes sleep state and non-sleep state.Wherein, institute
Stating intelligent wearable device can be smartwatch or Intelligent bracelet, and the heart rate number of user is detected by such intelligent wearable equipment
According to then may determine that whether the user of present terminal is in sleep state.In addition, the terminal relative to the user away from
From can be detected by the preposition infrared sensor of terminal or other range sensor.And the degree of heat of terminal can
To be perceived using the temperature sensor of terminal built-in.
Step S306 controls the terminal according to the environmental parameter.
In the present embodiment, described the step of being controlled according to the environmental parameter the terminal includes: to work as institute
State User Status be sleep state when, and the terminal relative to the user distance less than the first preset value when, then to institute
It states terminal and carries out power-off operation.Illustrate that terminal user has fallen asleep at this time, but terminal still carry out multimedia application operation,
And terminal is closer with user distance at this time, may be close to the users cheek or other physical feelings, once terminal excessive heating or quick-fried
It is fried, then injury may be generated to user.So controlling terminal carries out power-off operation under kind situation.
In the present embodiment, the described the step of terminal is controlled according to the environmental parameter further include: when
The User Status be sleep state when, and the terminal relative to the user distance be greater than the first preset value when, then control
The terminal breath is made to shield and judge the degree of heat of the terminal;If the degree of heat of terminal is greater than the second preset value, control
The terminal clears up the background application of the terminal.In this case, although illustrating that terminal user has fallen asleep, at this time
Terminal is still in operation multimedia application, and only farther out from user, but terminal still may be at bright screen shape to terminal at this time at this time
State, if so operation always, necessarily causes consuming excessively for terminal electric energy, therefore carry out breath screen processing to this.Further,
If terminal fever at this time has been more than the second preset value, illustrate that fever is serious, then can controlling terminal close background application, and then drop
Low cpu load reduces calorific value.
It should be noted that above-mentioned first preset value and the second preset value can flexibly be set according to artificial needs
It sets, is limited in the present invention not to this.
By implementing aforesaid way, so that user is under special environment (such as in bedroom), even if in using terminal
In the process, user enters sleep state, and the flexible control of intelligence still can be carried out to terminal, ensure that user unwitting
In the case of safety, the user experience is improved.
Fig. 4 is a kind of module diagram of terminal of the present invention.The terminal is sentenced including gripping judgment module 400, multimedia
Disconnected module 402, environment detecting module 404, control module 406, memory 408 and processor 410, above procedure module is with journey
Sequence code is stored in memory 408 actually, and is executed by processor 410, with realize step in above-described embodiment or
Method.Wherein:
It holds judgment module 400 and judges whether the terminal is in grip state.
In the present embodiment, user represents the different grip states of terminal the different conditions of active user, than
When longitudinally holding terminal such as user, represent User Status is to see that the states such as news, such as user laterally hold terminal
When, it represents with User Status to play competitive game state, when without holding terminal, represents user and do not use at this time
Terminal.Certain the example above is not intended to limit the present invention, simply to illustrate that different grips represents different user's shapes
State.
In the present embodiment, the circumferential side frame of the terminal is provided with pressure sensor, and the judgement terminal is
It include: the pressure distribution for recording terminal pressure sensor record when user holds before no the step of being in grip state
Data;Pressure distributed area based on pressure distribution data setting terminal grip state.Specifically, the pressure sensor
It equidistant can be distributed in the circumferential side frame of the terminal, no matter user is longitudinal gripping or laterally holds, and can lead to
Over-voltage force snesor senses.The pressure data sensed when holding terminal by repeatedly recording user, record user press when holding
The pressure distribution data of force snesor.Therefore when user holds terminal again, the current number pressure of pressure sensor at this time is obtained
According to judging whether current pressure data drops into pressure distributed area, if having dropped into pressure distributed area, judge
Terminal is in user's grip state at this time.
Multimedia judgment module 402 is used for when terminal is in grip state, then further judges whether the terminal transports
Row multimedia application.
In the present embodiment, multimedia application generally comprises Video Applications, also includes various music applications.It is described
Judge that the step of whether terminal runs multimedia application specifically includes: obtaining the identifier and present video of current application
Output function;Judge whether the identifier of the current application belongs to multimedia application classification;If so, judging that present video is defeated
Whether function is called out;If so, judging that the terminal is running the multimedia application.For example, if currently answered
With for video playing application, then the identifier of the application must be sorted out into multimedia application classification, while in video playing
In the case where operation, audio output function necessarily can also be called.
Environment detecting module 404 is used in the terminal operating multimedia application, detects the terminal local environment
Environmental parameter.
In the present embodiment, the environmental parameter of the terminal local environment includes the User Status, described of active user
Terminal is relative to the distance of the user, the degree of heat of the terminal.
Specifically, the environmental parameter of environment described in the detecting terminal includes detecting the User Status of active user,
The step of terminal connection intelligent wearable device, the User Status of the detecting active user includes: to be worn according to the intelligence
The User Status that equipment judges the active user is worn, the User Status includes sleep state and non-sleep state.Wherein, institute
Stating intelligent wearable device can be smartwatch or Intelligent bracelet, and the heart rate number of user is detected by such intelligent wearable equipment
According to then may determine that whether the user of present terminal is in sleep state.In addition, the terminal relative to the user away from
From can be detected by the preposition infrared sensor of terminal or other range sensor.And the degree of heat of terminal can
To be perceived using the temperature sensor of terminal built-in.
Control module 406 is for controlling the terminal according to the environmental parameter.
In the present embodiment, described the step of being controlled according to the environmental parameter the terminal includes: to work as institute
State User Status be sleep state when, and the terminal relative to the user distance less than the first preset value when, then to institute
It states terminal and carries out power-off operation.Illustrate that terminal user has fallen asleep at this time, but terminal still carry out multimedia application operation,
And terminal is closer with user distance at this time, may be close to the users cheek or other physical feelings, once terminal excessive heating or quick-fried
It is fried, then injury may be generated to user.So controlling terminal carries out power-off operation under kind situation.
In the present embodiment, the described the step of terminal is controlled according to the environmental parameter further include: when
The User Status be sleep state when, and the terminal relative to the user distance be greater than the first preset value when, then control
The terminal breath is made to shield and judge the degree of heat of the terminal;If the degree of heat of terminal is greater than the second preset value, control
The terminal clears up the background application of the terminal.In this case, although illustrating that terminal user has fallen asleep, at this time
Terminal is still in operation multimedia application, and only farther out from user, but terminal still may be at bright screen shape to terminal at this time at this time
State, if so operation always, necessarily causes consuming excessively for terminal electric energy, therefore carry out breath screen processing to this.Further,
If terminal fever at this time has been more than the second preset value, illustrate that fever is serious, then can controlling terminal close background application, and then drop
Low cpu load reduces calorific value.
It should be noted that above-mentioned first preset value and the second preset value can flexibly be set according to artificial needs
It sets, is limited in the present invention not to this.
By implementing aforesaid way, so that user is under special environment (such as in bedroom), even if in using terminal
In the process, user enters sleep state, and the flexible control of intelligence still can be carried out to terminal, ensure that user unwitting
In the case of safety, the user experience is improved.
Fig. 5 is the composed structure schematic diagram of terminal of the present invention.As shown in figure 5, the terminal includes at least: memory 501,
Communication bus 502 and processor 503.Wherein:
The memory 501, for storing terminal control program;
The communication bus 502, for realizing the connection communication between processor and memory;
The processor 503, for executing the terminal control program stored in memory, to perform the steps of
Judge whether the terminal is in grip state.
In the present embodiment, user represents the different grip states of terminal the different conditions of active user, than
When longitudinally holding terminal such as user, represent User Status is to see that the states such as news, such as user laterally hold terminal
When, it represents with User Status to play competitive game state, when without holding terminal, represents user and do not use at this time
Terminal.Certain the example above is not intended to limit the present invention, simply to illustrate that different grips represents different user's shapes
State.
In the present embodiment, the circumferential side frame of the terminal is provided with pressure sensor, and the judgement terminal is
It include: the pressure distribution for recording terminal pressure sensor record when user holds before no the step of being in grip state
Data;Pressure distributed area based on pressure distribution data setting terminal grip state.Specifically, the pressure sensor
It equidistant can be distributed in the circumferential side frame of the terminal, no matter user is longitudinal gripping or laterally holds, and can lead to
Over-voltage force snesor senses.The pressure data sensed when holding terminal by repeatedly recording user, record user press when holding
The pressure distribution data of force snesor.Therefore when user holds terminal again, the current number pressure of pressure sensor at this time is obtained
According to judging whether current pressure data drops into pressure distributed area, if having dropped into pressure distributed area, judge
Terminal is in user's grip state at this time.
If terminal is in grip state, further judge whether the terminal runs multimedia application.
In the present embodiment, multimedia application generally comprises Video Applications, also includes various music applications.It is described
Judge that the step of whether terminal runs multimedia application specifically includes: obtaining the identifier and present video of current application
Output function;Judge whether the identifier of the current application belongs to multimedia application classification;If so, judging that present video is defeated
Whether function is called out;If so, judging that the terminal is running the multimedia application.For example, if currently answered
With for video playing application, then the identifier of the application must be sorted out into multimedia application classification, while in video playing
In the case where operation, audio output function necessarily can also be called.
If the environmental parameter of the terminal local environment is detected in the terminal operating multimedia application.
In the present embodiment, the environmental parameter of the terminal local environment includes the User Status, described of active user
Terminal is relative to the distance of the user, the degree of heat of the terminal.
Specifically, the environmental parameter of environment described in the detecting terminal includes detecting the User Status of active user,
The step of terminal connection intelligent wearable device, the User Status of the detecting active user includes: to be worn according to the intelligence
The User Status that equipment judges the active user is worn, the User Status includes sleep state and non-sleep state.Wherein, institute
Stating intelligent wearable device can be smartwatch or Intelligent bracelet, and the heart rate number of user is detected by such intelligent wearable equipment
According to then may determine that whether the user of present terminal is in sleep state.In addition, the terminal relative to the user away from
From can be detected by the preposition infrared sensor of terminal or other range sensor.And the degree of heat of terminal can
To be perceived using the temperature sensor of terminal built-in.
The terminal is controlled according to the environmental parameter.
In the present embodiment, described the step of being controlled according to the environmental parameter the terminal includes: to work as institute
State User Status be sleep state when, and the terminal relative to the user distance less than the first preset value when, then to institute
It states terminal and carries out power-off operation.Illustrate that terminal user has fallen asleep at this time, but terminal still carry out multimedia application operation,
And terminal is closer with user distance at this time, may be close to the users cheek or other physical feelings, once terminal excessive heating or quick-fried
It is fried, then injury may be generated to user.So controlling terminal carries out power-off operation under kind situation.
In the present embodiment, the described the step of terminal is controlled according to the environmental parameter further include: when
The User Status be sleep state when, and the terminal relative to the user distance be greater than the first preset value when, then control
The terminal breath is made to shield and judge the degree of heat of the terminal;If the degree of heat of terminal is greater than the second preset value, control
The terminal clears up the background application of the terminal.In this case, although illustrating that terminal user has fallen asleep, at this time
Terminal is still in operation multimedia application, and only farther out from user, but terminal still may be at bright screen shape to terminal at this time at this time
State, if so operation always, necessarily causes consuming excessively for terminal electric energy, therefore carry out breath screen processing to this.Further,
If terminal fever at this time has been more than the second preset value, illustrate that fever is serious, then can controlling terminal close background application, and then drop
Low cpu load reduces calorific value.
It should be noted that above-mentioned first preset value and the second preset value can flexibly be set according to artificial needs
It sets, is limited in the present invention not to this.
By implementing aforesaid way, so that user is under special environment (such as in bedroom), even if in using terminal
In the process, user carries out sleep state, and the flexible control of intelligence still can be carried out to terminal, ensure that user unwitting
In the case of safety, the user experience is improved.
The present invention also provides a kind of computer readable storage mediums.Terminal is stored on the computer readable storage medium
Program is controlled, the terminal control program realizes step as described above when being executed by processor.
It should be noted that the description of the above terminal embodiment, be with the description of above method embodiment it is similar, have
The similar beneficial effect with embodiment of the method.For undisclosed technical detail in terminal embodiment of the present invention, this hair is please referred to
The description of bright embodiment of the method and understand.
It should be noted that in the embodiment of the present invention, if realizing above-mentioned terminal control in the form of software function module
Method processed, and when sold or used as an independent product, it also can store in a computer readable storage medium.Base
In such understanding, substantially the part that contributes to existing technology can be in other words for the technical solution of the embodiment of the present invention
The form of software product embodies, which is stored in a storage medium, including some instructions to
So that a calculating equipment (can be personal computer, server or network equipment etc.) executes each embodiment of the present invention
The all or part of the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read Only
Memory, ROM), the various media that can store program code such as magnetic or disk.In this way, the embodiment of the present invention does not limit
It is combined in any specific hardware and software.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include 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 being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of terminal control method is applied to terminal, which is characterized in that the described method includes:
Judge whether the terminal is in grip state;
If it is not, then further judging whether the terminal runs multimedia application;
If so, detecting the environmental parameter of the terminal local environment;
The terminal is controlled according to the environmental parameter.
2. terminal control method as described in claim 1, which is characterized in that the circumferential side frame of the terminal is provided with pressure biography
Sensor, it is described to judge include: before the step of whether terminal is in grip state
Record the pressure distribution data of terminal pressure sensor record when user holds;
Pressure distributed area based on pressure distribution data setting terminal grip state.
3. terminal control method as claimed in claim 2, which is characterized in that described to judge whether the terminal is in gripping shape
The step of state includes:
Obtain the current pressure data of the pressure sensor of the terminal;
Judge whether the current pressure data falls into the pressure distributed area;
If so, judging that the terminal is in the grip state;
If it is not, then judging that the terminal is not at the grip state.
4. terminal control method as described in claim 1, which is characterized in that described to judge whether the terminal runs multimedia
Using the step of specifically include:
Obtain the identifier and present video output function of current application;
Judge whether the identifier of the current application belongs to multimedia application classification;
If so, judging whether present video output function is called;
If so, judging that the terminal is running the multimedia application.
5. terminal control method as described in claim 1, which is characterized in that the environmental parameter of the terminal local environment includes
The User Status of active user, the terminal are relative to the distance of the user, the degree of heat of the terminal.
6. terminal control method as claimed in claim 5, which is characterized in that the environment of environment described in the detecting terminal
Parameter includes detecting the User Status of active user, and the terminal connects intelligent wearable device, the use of the detecting active user
The step of family state includes:
Judge the User Status of the active user according to the intelligent wearable device, the User Status include sleep state and
Non-sleep state.
7. terminal control method as claimed in claim 6, which is characterized in that it is described according to the environmental parameter to the terminal
The step of being controlled include:
When the User Status be sleep state when, and the terminal relative to the user distance less than the first preset value
When, then power-off operation is carried out to the terminal.
8. terminal control method as claimed in claim 6, which is characterized in that it is described according to the environmental parameter to the terminal
The step of being controlled include:
When the User Status is sleep state, and the terminal is greater than the first preset value relative to the distance of the user
When, then it controls the terminal breath and shields and judge the degree of heat of the terminal;
If the degree of heat of terminal is greater than the second preset value, the background application that the terminal clears up the terminal is controlled.
9. a kind of terminal, which is characterized in that the terminal includes at least: memory, communication bus and processor, in which:
The memory, for storing terminal control program;
The communication bus, for realizing the connection communication between processor and memory;
The processor, for executing the terminal control program stored in memory, to realize the terminal as described in claim 1-8
The step of control method.
10. a kind of computer readable storage medium, it is stored with terminal control program on the computer readable storage medium, it is described
The step of terminal control method as described in claim 1 to 8 is realized when terminal control program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811601433.7A CN109743447B (en) | 2018-12-26 | 2018-12-26 | Terminal control method, terminal, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811601433.7A CN109743447B (en) | 2018-12-26 | 2018-12-26 | Terminal control method, terminal, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109743447A true CN109743447A (en) | 2019-05-10 |
CN109743447B CN109743447B (en) | 2020-10-30 |
Family
ID=66361307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811601433.7A Active CN109743447B (en) | 2018-12-26 | 2018-12-26 | Terminal control method, terminal, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109743447B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410747A (en) * | 2014-10-17 | 2015-03-11 | 广东欧珀移动通信有限公司 | A method and system for controlling automatically an audio and video application by a wearable intelligent device |
WO2015131550A1 (en) * | 2014-09-19 | 2015-09-11 | 中兴通讯股份有限公司 | Method and apparatus for controlling player to enter sleep mode and terminal device |
CN105183139A (en) * | 2015-10-23 | 2015-12-23 | 维沃移动通信有限公司 | Automatic closing method and system of application programs and mobile terminal |
CN105491217A (en) * | 2014-10-09 | 2016-04-13 | 中兴通讯股份有限公司 | Terminal audio control method, device and terminal |
CN105898027A (en) * | 2015-12-29 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Method and device for preventing overtemperature of mobile phone under dormant state |
CN107197099A (en) * | 2017-06-21 | 2017-09-22 | 上海传英信息技术有限公司 | A kind of method that utilization light sensation controls multimedia |
CN107291241A (en) * | 2017-06-30 | 2017-10-24 | 珠海市魅族科技有限公司 | Terminal operation method and device, computer installation and computer-readable recording medium |
-
2018
- 2018-12-26 CN CN201811601433.7A patent/CN109743447B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015131550A1 (en) * | 2014-09-19 | 2015-09-11 | 中兴通讯股份有限公司 | Method and apparatus for controlling player to enter sleep mode and terminal device |
CN105491217A (en) * | 2014-10-09 | 2016-04-13 | 中兴通讯股份有限公司 | Terminal audio control method, device and terminal |
CN104410747A (en) * | 2014-10-17 | 2015-03-11 | 广东欧珀移动通信有限公司 | A method and system for controlling automatically an audio and video application by a wearable intelligent device |
CN105183139A (en) * | 2015-10-23 | 2015-12-23 | 维沃移动通信有限公司 | Automatic closing method and system of application programs and mobile terminal |
CN105898027A (en) * | 2015-12-29 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Method and device for preventing overtemperature of mobile phone under dormant state |
CN107197099A (en) * | 2017-06-21 | 2017-09-22 | 上海传英信息技术有限公司 | A kind of method that utilization light sensation controls multimedia |
CN107291241A (en) * | 2017-06-30 | 2017-10-24 | 珠海市魅族科技有限公司 | Terminal operation method and device, computer installation and computer-readable recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN109743447B (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108566304A (en) | Interface control method, electronic equipment and computer readable storage medium | |
CN109538538A (en) | A kind of processing method of fan noise, mobile terminal and storage medium | |
CN107577332A (en) | A kind of power consumption control method, mobile terminal and computer-readable recording medium | |
CN109144441A (en) | A kind of screen adjustment method, terminal and computer readable storage medium | |
CN108196648A (en) | Detection method, device and the computer readable storage medium of febrile state | |
CN107656774A (en) | Adaptive regulation method, device, terminal device and the storage medium of systematic parameter | |
CN110086222A (en) | A kind of charging/discharging thereof, device and mobile terminal | |
CN110300435A (en) | A kind of communication pattern switching method, terminal and computer readable storage medium | |
CN110069167A (en) | Touch point sweep-out method, mobile terminal and computer readable storage medium | |
CN108459806A (en) | terminal control method, terminal and computer readable storage medium | |
CN109445547A (en) | A kind of wearable device heat dissipating method, wearable device and readable storage medium storing program for executing | |
CN110069122A (en) | A kind of screen control method, terminal and computer readable storage medium | |
CN108259233A (en) | Graphics processor GPU method for parameter configuration and mobile terminal in a kind of mobile terminal | |
CN110098651A (en) | A kind of charging method, device, electronic equipment and readable storage medium storing program for executing | |
CN110087267A (en) | Method for switching network, device, electronic equipment and readable storage medium storing program for executing | |
CN109545120A (en) | Screen photosensitive sensors adjusting method, mobile terminal and computer readable storage medium | |
CN109522276A (en) | Application icon management method, terminal and computer readable storage medium | |
CN108833666A (en) | Runing time based reminding method, flexible screen terminal and computer readable storage medium | |
CN108958932A (en) | A kind of control method of background application, terminal and computer readable storage medium | |
CN108259658A (en) | Flexible screen terminal and its electricity based reminding method, computer readable storage medium | |
CN110062448A (en) | Method, terminal and the storage medium of power-saving control | |
CN109151201A (en) | A kind of Anti-addiction method, mobile terminal and computer storage medium | |
CN110012158A (en) | A kind of charging reminding method, terminal and computer readable storage medium | |
CN109144577A (en) | A kind of screen awakening method, terminal and computer readable storage medium | |
CN108833712A (en) | A kind of message prompt method, terminal and computer readable storage medium |
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 |