Hold mode identification method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to the technical field of mobile terminal more particularly to a kind of gripping mode identification method, mobile terminal and
Computer readable storage medium.
Background technique
With the rapid development of mobile terminals, the configuration of mobile terminal is higher and higher, and popularity rate is also higher and higher, and with
The popularity rate of mobile terminal is higher and higher, and user puts forward new requirements the size of the touch screen of mobile terminal, and user is more next
More favor large-size screen monitors mobile terminal.
Although large-size screen monitors mobile terminal can bring preferable visual experience to user, due to the screen of large-size screen monitors mobile terminal
It is larger, and user is usually hold by one hand mobile terminal, so that user can not convenient and fast one-handed performance mobile terminal.Currently, usually
Singlehanded smaller screen is being set close to the position that user is hold by one hand, is being convenient for user's one-handed performance mobile terminal, however, in setting smaller screen
Before, the gripping mode to mobile terminal is needed to identify, it is not very accurate for holding the identification of mode at present, it is easy
There is mistake.
Therefore, how to accurately identify the gripping mode of mobile terminal is current urgent problem to be solved.
Summary of the invention
The main purpose of the present invention is to provide a kind of gripping mode identification method, mobile terminal and computer-readable storages
Medium, it is intended to how to accurately identify the gripping mode of mobile terminal.
To achieve the above object, the present invention provides a kind of gripping mode identification method, the gripping mode identification method packet
Include following steps:
When detecting the gripping action of mobile terminal, monitoring is set to first day of the upper-side area of the mobile terminal
First signal receiving strength of line, and monitoring are set to the second signal of the second antenna of the underside area of the mobile terminal
Receiving intensity;
According to first signal receiving strength and the second signal receiving intensity, the gripping of the mobile terminal is determined
Mode, wherein the gripping mode is to be hold by one hand mode or hands grasping mode;
If the gripping mode is to be hold by one hand mode, according to the gripping action to each side of the mobile terminal
The press points quantity of frame, determine described in be hold by one hand mode be that left-handed mode or the right hand hold mode.
Optionally, it according to first signal receiving strength and the second signal receiving intensity, determines described mobile whole
The step of gripping mode at end includes:
It determines whether first signal receiving strength is lower than the first preset threshold, and determines that the second signal receives
Whether intensity is lower than the second preset threshold;
If first signal receiving strength is lower than the first preset threshold, and the second signal receiving intensity is lower than second
Preset threshold, it is determined that the mobile terminal is in hands grasping mode;
If first signal receiving strength is lower than second lower than the first preset threshold or the second signal receiving intensity
Preset threshold, it is determined that the mobile terminal is in and is hold by one hand mode.
Optionally it is determined that whether first signal receiving strength is lower than the first preset threshold, and determine described second
After the step of whether signal receiving strength is lower than the second preset threshold, further includes:
If first signal receiving strength is lower than second lower than the first preset threshold or the second signal receiving intensity
Preset threshold then calculates the signal receiving strength difference of first signal receiving strength Yu the second signal receiving intensity,
And determine whether the signal receiving strength difference is more than third predetermined threshold value;
If the signal receiving strength difference is more than third predetermined threshold value, it is determined that the mobile terminal is in and is hold by one hand
Mode.
Optionally, according to the gripping action to the press points quantity of each side frame of the mobile terminal, determine described in
The mode of being hold by one hand is that the step of left-handed mode or the right hand hold mode includes:
Determine the gripping action to the press points quantity of each side frame of the mobile terminal;
By the second press points of Right Border in the first press points quantity of left border in each side frame and each side frame
Quantity is compared, and by the of downside frame in the third press points quantity of upside frame in each side frame and each side frame
Four press points quantity are compared;
If the first press points quantity is greater than the second press points quantity or the third press points quantity is greater than
The 4th press points quantity, and the grip position of the gripping action is located at the right end of the mobile terminal, it is determined that it is described
Mobile terminal is that the right hand holds mode;
If the first press points quantity is less than the second press points quantity or the third press points quantity is greater than
The 4th press points quantity, and the grip position of the gripping action is located at the left end of the mobile terminal, it is determined that it is described
Mobile terminal is left-handed mode.
Optionally it is determined that the gripping action wraps the step of press points quantity of each side frame of the mobile terminal
It includes:
The gripping action is obtained to the press points of each side frame of the mobile terminal, and reads respectively pressing for each side frame
The pressure value of pressure point and pressing duration;
Pressure value and pressing duration according to each press points, determine the press points quantity of each side frame.
Optionally, the pressure value according to each press points and pressing duration determine the pressing points of each side frame
Measuring step includes:
It is more than preset pressure value by the pressure value, and the pressing duration is more than the press points of preset duration, really
It is set to effective press points;
By the number of effective press points of each side frame, it is determined as the press points quantity of each side frame.
Optionally, it according to first signal receiving strength and the second signal receiving intensity, determines described mobile whole
After the step of gripping mode at end, further includes:
If the gripping mode of the mobile terminal is to be hold by one hand mode, it is determined that the current residual electricity of the mobile terminal
Whether amount is lower than default electricity;
If the current residual electricity of the mobile terminal is lower than default electricity, the grip position according to the gripping action
It determines to suspend mode antenna, and closes described to suspend mode antenna.
Optionally, it determines according to the grip position of the gripping action to the step of suspend mode antenna and includes:
The grip position for determining the gripping action is the upper-side area positioned at the mobile terminal, or is located at the shifting
The underside area of dynamic terminal;
If the grip position of the gripping action is located at the upper-side area of the mobile terminal, and the first antenna is true
It is set to suspend mode antenna;
If the grip position of the gripping action is located at the underside area of the mobile terminal, and second antenna is true
It is set to suspend mode antenna.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include: memory,
Processor and it is stored in the gripping pattern recognition program that can be run on the memory and on the processor, the gripping mould
The step of holding mode identification method as described above is realized when formula recognizer is executed by the processor.
The present invention also provides a kind of computer readable storage mediums, which is characterized in that the computer readable storage medium
On be stored with gripping pattern recognition program, as described above hold is realized when the gripping pattern recognition program is executed by processor
The step of mode identification method.
The present invention provides a kind of gripping mode identification method, mobile terminal and computer readable storage medium, when detecting
When the gripping action of mobile terminal, the signal receiving strength of first antenna and the signal receiving strength of the second antenna are monitored, and according to
The gripping mode that mobile terminal is determined according to the signal receiving strength of first antenna and the signal receiving strength of the second antenna, then exists
Gripping mode is further to count according to gripping action the pressing of each side frame of mobile terminal when being hold by one hand mode
Amount determines that the mode that is hold by one hand is that left-handed mode or the right hand hold mode, is connect by signal of the gripping action to antenna
The influence for receiving intensity can accurately determine that the gripping mode of mobile terminal is to be hold by one hand mode or hands grasping mode, together
When in gripping mode be to be hold by one hand mode, according to gripping action to the press points quantity of each side frame, further determine single
It is that left-handed mode or the right hand hold mode that hand, which holds mode, can accurately identify the gripping mode of mobile terminal, have
The identification accuracy of the raising gripping mode of effect.
Detailed description of the invention
A kind of hardware structural diagram of Fig. 1 mobile 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 the flow diagram that the present invention holds mode identification method first embodiment;
Fig. 4 is a schematic layout pattern of antenna in first embodiment of the invention;
Fig. 5 is the schematic diagram that mobile terminal is in hands grasping mode in first embodiment of the invention;
Fig. 6 is the schematic diagram that mobile terminal is in the mode that is hold by one hand in first embodiment of the invention;
Fig. 7 is the flow diagram that the present invention holds mode identification method 3rd embodiment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
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, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving 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 mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 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, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
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 GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) 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, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives 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.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, 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 mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 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.
Mobile 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 logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 109 of computer storage medium
Believe module, Subscriber Interface Module SIM and hold pattern recognition program, processor 110 can be used for calling to be stored in memory 109
Gripping pattern recognition program, and execute following steps:
When detecting the gripping action of mobile terminal, monitoring is set to first day of the upper-side area of the mobile terminal
First signal receiving strength of line, and monitoring are set to the second signal of the second antenna of the underside area of the mobile terminal
Receiving intensity;
According to first signal receiving strength and the second signal receiving intensity, the gripping of the mobile terminal is determined
Mode, wherein the gripping mode is to be hold by one hand mode or hands grasping mode;
If the gripping mode is to be hold by one hand mode, according to the gripping action to each side of the mobile terminal
The press points quantity of frame, determine described in be hold by one hand mode be that left-handed mode or the right hand hold mode.
Further, processor 110 can be used for calling the gripping pattern recognition program stored in memory 109, also hold
Row following steps:
It determines whether first signal receiving strength is lower than the first preset threshold, and determines that the second signal receives
Whether intensity is lower than the second preset threshold;
If first signal receiving strength is lower than the first preset threshold, and the second signal receiving intensity is lower than second
Preset threshold, it is determined that the mobile terminal is in hands grasping mode;
If first signal receiving strength is lower than second lower than the first preset threshold or the second signal receiving intensity
Preset threshold, it is determined that the mobile terminal is in and is hold by one hand mode.
Further, processor 110 can be used for calling the gripping pattern recognition program stored in memory 109, also hold
Row following steps:
If first signal receiving strength is lower than second lower than the first preset threshold or the second signal receiving intensity
Preset threshold then calculates the signal receiving strength difference of first signal receiving strength Yu the second signal receiving intensity,
And determine whether the signal receiving strength difference is more than third predetermined threshold value;
If the signal receiving strength difference is more than third predetermined threshold value, it is determined that the mobile terminal is in and is hold by one hand
Mode.
Further, processor 110 can be used for calling the gripping pattern recognition program stored in memory 109, also hold
Row following steps:
Determine the gripping action to the press points quantity of each side frame of the mobile terminal;
By the second press points of Right Border in the first press points quantity of left border in each side frame and each side frame
Quantity is compared, and by the of downside frame in the third press points quantity of upside frame in each side frame and each side frame
Four press points quantity are compared;
If the first press points quantity is greater than the second press points quantity or the third press points quantity is greater than
The 4th press points quantity, and the grip position of the gripping action is located at the right end of the mobile terminal, it is determined that it is described
Mobile terminal is that the right hand holds mode;
If the first press points quantity is less than the second press points quantity or the third press points quantity is greater than
The 4th press points quantity, and the grip position of the gripping action is located at the left end of the mobile terminal, it is determined that it is described
Mobile terminal is left-handed mode.
Further, processor 110 can be used for calling the gripping pattern recognition program stored in memory 109, also hold
Row following steps:
The gripping action is obtained to the press points of each side frame of the mobile terminal, and reads respectively pressing for each side frame
The pressure value of pressure point and pressing duration;
Pressure value and pressing duration according to each press points, determine the press points quantity of each side frame.
Further, processor 110 can be used for calling the gripping pattern recognition program stored in memory 109, also hold
Row following steps:
It is more than preset pressure value by the pressure value, and the pressing duration is more than the press points of preset duration, really
It is set to effective press points;
By the number of effective press points of each side frame, it is determined as the press points quantity of each side frame.
Further, processor 110 can be used for calling the gripping pattern recognition program stored in memory 109, also hold
Row following steps:
If the gripping mode of the mobile terminal is to be hold by one hand mode, it is determined that the current residual electricity of the mobile terminal
Whether amount is lower than default electricity;
If the current residual electricity of the mobile terminal is lower than default electricity, the grip position according to the gripping action
It determines to suspend mode antenna, and closes described to suspend mode antenna.
Further, processor 110 can be used for calling the gripping pattern recognition program stored in memory 109, also hold
Row following steps:
The grip position for determining the gripping action is the upper-side area positioned at the mobile terminal, or is located at the shifting
The underside area of dynamic terminal;
If the grip position of the gripping action is located at the upper-side area of the mobile terminal, and the first antenna is true
It is set to suspend mode antenna;
If the grip position of the gripping action is located at the underside area of the mobile terminal, and second antenna is true
It is set to suspend mode antenna.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
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 UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, 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 MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 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, IMS (IP Multimedia Subsystem, IP multimedia
System) 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 mobile terminal hardware configuration and communications network system, propose that the present invention holds mode identification method
Each embodiment.
It is the flow diagram that the present invention holds mode identification method first embodiment referring to Fig. 3, Fig. 3.
In the present embodiment, which includes:
Step S101, when detecting the gripping action of mobile terminal, monitoring is set to the upper-side area of mobile terminal
First signal receiving strength of first antenna, and monitoring are set to the second letter of the second antenna of the underside area of mobile terminal
Number receiving intensity;
In the present embodiment, which is applied to mobile terminal shown in FIG. 1, including first antenna and the
Two antennas, as shown in figure 4, first antenna is set to the upper-side area of mobile terminal, the second antenna is set under mobile terminal
Side region.It is understood that, since antenna is held, signal is blocked when the antenna of mobile terminal is held, so that antenna
Signal receiving strength reduces, and the change of the signal receiving strength of antenna when detecting gripping action, can be determined by above-mentioned principle
Change situation, identify the gripping mode of mobile terminal, wherein gripping mode is to be hold by one hand mode or hands grasping mode.When with
When family holds mobile terminal, that is, when detecting the gripping action of mobile terminal, monitoring is set to the upper-side area of mobile terminal
First signal receiving strength of first antenna, and monitoring are set to the second letter of the second antenna of the underside area of mobile terminal
Number receiving intensity.Wherein, gripping action includes but is not limited to be hold by one hand movement and hands grasping movement.
In specific implementation, the specific detecting mode of gripping action be mobile terminal each side frame in be provided with several pressure
Sensor, real-time monitoring are set to the pressure value in several pressure sensors of each side frame, when pressure value is greater than the set value,
There are press points for corresponding side frame, when upside frame, downside frame, left border or the Right Border for monitoring mobile terminal
There are when several press points, it may be determined that user is gripping action to the operational motion that mobile terminal carries out.Further, it is also possible in conjunction with
Temperature sensor and infrared sensor detect gripping action, determine each of mobile terminal specifically by infrared sensor
With the presence or absence of the side frame being held in side frame, the side frame being held if it exists is then further advanced by temperature sensor
The temperature value of grip position is acquired, and determines whether the temperature value is located at preset temperature value section, if the temperature value is located in advance
If temperature value section, then it can determine that user is gripping action to the operational motion that mobile terminal carries out.On it should be noted that
The setting quantity and setting position for stating pressure sensor, temperature sensor and infrared sensor can be based on by those skilled in the art
Actual conditions are configured, and the present embodiment is not especially limited this.
Step S102 determines the gripping mould of mobile terminal according to the first signal receiving strength and second signal receiving intensity
Formula, wherein gripping mode is to be hold by one hand mode or hands grasping mode;
In the present embodiment, after monitoring the first signal receiving strength and second signal receiving intensity, mobile terminal according to
According to the first signal receiving strength and second signal receiving intensity, determines the gripping mode of mobile terminal, that is, determine mobile terminal
Gripping mode is the mode that is hold by one hand, or is hands grasping mode.
Specifically, it is determined that whether first signal receiving strength is lower than the first preset threshold, and determine the second signal
Whether receiving intensity is lower than the second preset threshold, if the first signal receiving strength is lower than the first preset threshold, and second signal
Receiving intensity is lower than the second preset threshold, i.e. first antenna and the second antenna is held, then can determine that mobile terminal is in
Hands grasping mode, as shown in figure 5, first antenna is held by the left hand of user, the second antenna is held by the right hand of user,
And mobile terminal is in transverse screen state, then can determine that mobile terminal is in hands grasping mode;If the first signal receives strong
Degree is lower than the first preset threshold, and second signal receiving intensity is higher than the second preset threshold, i.e. first antenna is held, and second
Antenna is not held, then can determine that mobile terminal is in and be hold by one hand mode;If the first signal receiving strength is higher than first
Preset threshold, and second signal receiving intensity is lower than the second preset threshold, i.e. first antenna is not held, and the second antenna is held
It holds, then can determine that mobile terminal is in and be hold by one hand mode.
Specifically, if the first signal receiving strength lower than the first preset threshold or second signal receiving intensity lower than the
Two preset thresholds calculate the signal receiving strength difference of first signal receiving strength Yu the second signal receiving intensity, and really
Whether the fixed signal receiving strength difference is more than third predetermined threshold value, if the signal receiving strength difference is more than that third presets threshold
Value, it is determined that the mobile terminal is in and is hold by one hand mode, that is, the signal receiving strength of the antenna being held, which is lower than, not to be held
The signal receiving strength of antenna, and the difference between the signal receiving strength of two antennas is more than third predetermined threshold value, then it can be true
The fixed mobile terminal, which is in, is hold by one hand mode.It should be noted that above-mentioned first preset threshold, the second preset threshold and third
Preset threshold can be configured by those skilled in the art based on actual conditions, and the present embodiment is not especially limited this.
Step S103, if the mode of gripping is the mode that is hold by one hand, according to gripping action to each side frame of mobile terminal
Press points quantity, determine that the mode that is hold by one hand is that left-handed mode or the right hand hold mode.
In the present embodiment, if the gripping mode of mobile terminal is to be hold by one hand mode, mobile terminal is according to the gripping
The press points quantity to each side frame of mobile terminal is acted, determining that this is hold by one hand mode is left-handed mode, or right
Hand holds mode, if the gripping mode of mobile terminal is hands grasping mode, does not deal with.
Specifically, mobile terminal determine the gripping action to the press points quantity of each side frame of the mobile terminal, i.e., really
The fixed gripping action to the first press points quantity of the left border of the mobile terminal, the second press points quantity of Right Border,
The third press points quantity of upside frame and the 4th press points quantity of downside frame;Then by left border in each side frame
First press points quantity is compared with the second press points quantity of Right Border in each side frame, and will be in each side frame
The third press points quantity of side frame is compared with the 4th press points quantity of downside frame in each side frame;If first presses
Pressure point quantity is greater than the second press points quantity or third press points quantity is greater than the 4th press points quantity, and the gripping action
Grip position be located at the right end of mobile terminal, it is determined that the mobile terminal is that the right hand holds mode;If first press points
Quantity is less than the second press points quantity or third press points quantity is greater than the 4th press points quantity, and the gripping action
Grip position be located at the left end of the mobile terminal, it is determined that the mobile terminal is left-handed mode.
In specific implementation, when the current position state of mobile terminal is vertical screen state, if the press points of left border
Quantity is more than the press points quantity of Right Border, then mobile terminal is in the right hand and holds mode, if instead left border is pressed
Pressure point quantity is less than the press points quantity of Right Border, then mobile terminal is in left-handed mode;And working as when mobile terminal
When front position state is transverse screen state, if the press points quantity of upside frame is more than the press points quantity of downside frame, and hold
The left end that position is located at mobile terminal is held, then mobile terminal is in left-handed mode, if instead the press points of upside frame
Quantity is more than the press points quantity of downside frame, and grip position is located at the right end of mobile terminal, then mobile terminal is in the right hand
Gripping mode.
As shown in fig. 6, gripping action of the user to mobile terminal, wherein the position of four finger grips of user is to move
The position that the left border of dynamic terminal, thumb and tiger's jaw position are held is the Right Border of mobile terminal, first antenna not by
It holding, the second antenna is held, then and it can determine that mobile terminal is in and be hold by one hand mode, meanwhile, the press points of left border
Quantity is 4, and the press points quantity of Right Border is 2, and the press points quantity of left border is greater than the press points of Right Border
Quantity, and without holding upside frame and downside frame, then it can determine that the mode of being hold by one hand is that the right hand holds mode.
In the present embodiment, when detecting the gripping action of mobile terminal, the signal for monitoring first antenna receives the present invention
The signal receiving strength of intensity and the second antenna, and received according to the signal of the signal receiving strength of first antenna and the second antenna
Intensity determines the gripping mode of mobile terminal, further dynamic according to holding then when gripping mode is to be hold by one hand mode
Make the press points quantity to each side frame of mobile terminal, determines that being hold by one hand mode is that left-handed mode or the right hand are held
Mode is held, the influence by gripping action to the signal receiving strength of antenna can accurately determine the gripping mode of mobile terminal
It to be hold by one hand mode or hands grasping mode, while being the mode that is hold by one hand in gripping mode, according to gripping action to each
The press points quantity of side frame further determines that the mode that is hold by one hand is that left-handed mode or the right hand hold mode, energy
The gripping mode of enough accurately identification mobile terminals, the effective identification accuracy for improving gripping mode.
Further, the second embodiment that the present invention holds mode identification method is proposed based on previous embodiment, and it is preceding
The step of difference for stating embodiment is, determines press points quantity of the gripping action to each side frame of the mobile terminal
Include:
Step a1 obtains gripping action to the press points of each side frame of mobile terminal, and reads respectively pressing for each side frame
The pressure value of pressure point and pressing duration;
It should be noted that being based on above-mentioned first embodiment, a kind of specific method of determination of press points quantity is proposed, with
Under be only explained, other can refer to previous embodiment.In the present embodiment, the acquisition for mobile terminal gripping action is to movement
The press points of each side frame of terminal obtain the gripping action to the press points of mobile terminal left border, Right Border
The press points of press points, the press points of upside frame and downside frame, and read each side frame each press points pressure value and
Press the duration.
Step a2, pressure value and pressing duration according to each press points, determines the press points quantity of each side frame.
In the present embodiment, mobile terminal each press points for reading each side frame pressure value and pressing the duration it
Afterwards, according to the pressure value of each press points and pressing duration, the press points quantity of each side frame is determined, i.e., according to each press points
Pressure value and the pressing duration, determine effective press points of each side frame, and count effective press points of each side frame
Number, and the number of effective press points of each side frame is determined as to the press points quantity of each side frame.
Specifically, the pressure value of each press points is compared by mobile terminal with preset pressure value, and by each press points
The pressing duration is compared with preset duration, is more than then preset pressure value by pressure value, and the pressing duration is more than
The press points of preset duration are determined as effective press points, and by the number of effective press points of each side frame, are determined as each side
The press points quantity of frame.
In the present embodiment, combination pressure value of the present invention and pressing duration carry out validity to the press points of each side frame
Determine, avoids maloperation, improve the accuracy of pressing operation.
Further, referring to Fig. 7, above-mentioned first or second embodiments are based on, the present invention is proposed and holds pattern-recognition side
The 3rd embodiment of method, the difference with previous embodiment are, after step S102, further includes:
Step 104, if the gripping mode of mobile terminal is to be hold by one hand mode, it is determined that the current residual electricity of mobile terminal
Whether amount is lower than default electricity;
It should be noted that the present invention is based on previous embodiments to propose a kind of specific reduction mode of power consumption, below only
It is explained, other can refer to previous embodiment.In the present embodiment, if the gripping mode of mobile terminal is to be hold by one hand
Mode, it is determined that whether the current residual electricity of mobile terminal is lower than default electricity, if current residual electricity is lower than default electricity
Amount, then need to reduce the consumption of electricity.It should be noted that above-mentioned default electricity can be based on practical feelings by those skilled in the art
Condition is configured, and the present embodiment is not especially limited this.
Step 105, if the current residual electricity of mobile terminal is lower than default electricity, the grip position according to gripping action
It determines to suspend mode antenna, and closes to suspend mode antenna.
In the present embodiment, if remaining capacity is lower than default electricity, the grip position according to gripping action is determined wait stop
Dormancy antenna determines that suspend mode antenna be first antenna or the second antenna, and closes to suspend mode antenna.In specific implementation, also
Screen intensity can be reduced and close running background application program.
Specifically, it is determined that the grip position of the gripping action is the upper-side area positioned at mobile terminal, or it is located at movement
The underside area of terminal determines first antenna if the grip position of gripping action is located at the upper-side area of mobile terminal
For the second antenna is determined as if the grip position of gripping action is located at the underside area of mobile terminal to suspend mode antenna
To suspend mode antenna.
In the present embodiment, the present invention closes the day being held when the current residual electricity of mobile terminal is lower than setting value
Line can effectively reduce power consumption, improve the cruising ability of mobile terminal.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with gripping pattern recognition program, the gripping pattern recognition program performs the steps of when being executed by processor
When detecting the gripping action of mobile terminal, monitoring is set to first day of the upper-side area of the mobile terminal
First signal receiving strength of line, and monitoring are set to the second signal of the second antenna of the underside area of the mobile terminal
Receiving intensity;
According to first signal receiving strength and the second signal receiving intensity, the gripping of the mobile terminal is determined
Mode, wherein the gripping mode is to be hold by one hand mode or hands grasping mode;
If the gripping mode is to be hold by one hand mode, according to the gripping action to each side of the mobile terminal
The press points quantity of frame, determine described in be hold by one hand mode be that left-handed mode or the right hand hold mode.
Further, it is also performed the steps of when the gripping pattern recognition program is executed by processor
It determines whether first signal receiving strength is lower than the first preset threshold, and determines that the second signal receives
Whether intensity is lower than the second preset threshold;
If first signal receiving strength is lower than the first preset threshold, and the second signal receiving intensity is lower than second
Preset threshold, it is determined that the mobile terminal is in hands grasping mode;
If first signal receiving strength is lower than second lower than the first preset threshold or the second signal receiving intensity
Preset threshold, it is determined that the mobile terminal is in and is hold by one hand mode.
Further, it is also performed the steps of when the gripping pattern recognition program is executed by processor
If first signal receiving strength is lower than second lower than the first preset threshold or the second signal receiving intensity
Preset threshold then calculates the signal receiving strength difference of first signal receiving strength Yu the second signal receiving intensity,
And determine whether the signal receiving strength difference is more than third predetermined threshold value;
If the signal receiving strength difference is more than third predetermined threshold value, it is determined that the mobile terminal is in and is hold by one hand
Mode.
Further, it is also performed the steps of when the gripping pattern recognition program is executed by processor
Determine the gripping action to the press points quantity of each side frame of the mobile terminal;
By the second press points of Right Border in the first press points quantity of left border in each side frame and each side frame
Quantity is compared, and by the of downside frame in the third press points quantity of upside frame in each side frame and each side frame
Four press points quantity are compared;
If the first press points quantity is greater than the second press points quantity or the third press points quantity is greater than
The 4th press points quantity, and the grip position of the gripping action is located at the right end of the mobile terminal, it is determined that it is described
Mobile terminal is that the right hand holds mode;
If the first press points quantity is less than the second press points quantity or the third press points quantity is greater than
The 4th press points quantity, and the grip position of the gripping action is located at the left end of the mobile terminal, it is determined that it is described
Mobile terminal is left-handed mode.
Further, it is also performed the steps of when the gripping pattern recognition program is executed by processor
The gripping action is obtained to the press points of each side frame of the mobile terminal, and reads respectively pressing for each side frame
The pressure value of pressure point and pressing duration;
Pressure value and pressing duration according to each press points, determine the press points quantity of each side frame.
Further, it is also performed the steps of when the gripping pattern recognition program is executed by processor
It is more than preset pressure value by the pressure value, and the pressing duration is more than the press points of preset duration, really
It is set to effective press points;
By the number of effective press points of each side frame, it is determined as the press points quantity of each side frame.
Further, it is also performed the steps of when the gripping pattern recognition program is executed by processor
If the gripping mode of the mobile terminal is to be hold by one hand mode, it is determined that the current residual electricity of the mobile terminal
Whether amount is lower than default electricity;
If the current residual electricity of the mobile terminal is lower than default electricity, the grip position according to the gripping action
It determines to suspend mode antenna, and closes described to suspend mode antenna.
Further, it is also performed the steps of when the gripping pattern recognition program is executed by processor
The grip position for determining the gripping action is the upper-side area positioned at the mobile terminal, or is located at the shifting
The underside area of dynamic terminal;
If the grip position of the gripping action is located at the upper-side area of the mobile terminal, and the first antenna is true
It is set to suspend mode antenna;
If the grip position of the gripping action is located at the underside area of the mobile terminal, and second antenna is true
It is set to suspend mode antenna.
Each embodiment of the specific embodiment of computer readable storage medium of the present invention and above-mentioned gripping mode identification method
Essentially identical, therefore not to repeat here.
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 system 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 system 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 system.
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 one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
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.