CN106095306B - A kind of sensor control method of mobile terminal, device and mobile terminal - Google Patents

A kind of sensor control method of mobile terminal, device and mobile terminal Download PDF

Info

Publication number
CN106095306B
CN106095306B CN201610379944.3A CN201610379944A CN106095306B CN 106095306 B CN106095306 B CN 106095306B CN 201610379944 A CN201610379944 A CN 201610379944A CN 106095306 B CN106095306 B CN 106095306B
Authority
CN
China
Prior art keywords
sensor
connecting interface
mobile terminal
queue
restored
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.)
Expired - Fee Related
Application number
CN201610379944.3A
Other languages
Chinese (zh)
Other versions
CN106095306A (en
Inventor
王彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610379944.3A priority Critical patent/CN106095306B/en
Publication of CN106095306A publication Critical patent/CN106095306A/en
Priority to PCT/CN2017/086479 priority patent/WO2017206882A1/en
Application granted granted Critical
Publication of CN106095306B publication Critical patent/CN106095306B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides the sensor control method, device and mobile terminal of a kind of mobile terminal, comprising the following steps: receives operating gesture on the touch screen;Corresponding sensor type to be released is identified according to operating gesture;Traverse the connecting interface queue of sensor current active;Judge whether the corresponding sensor of the connecting interface in queue meets sensor type to be released;If it is judged that the corresponding sensor of connecting interface meets sensor type to be released, then connecting interface is removed into the queue of current active connecting interface, to discharge the corresponding sensor connection of connecting interface.The present invention provide the user the scheme that effective and rapid approach goes closure sensor to connect, therefore mobile whole system can be effectively obtained suspend mode, due to controlling release sensor connection by gesture, it is convenient, simple, again quick that it operates tool, therefore the power consumption of mobile terminal is effectively reduced, to increase the stand-by power consumption of mobile terminal, be conducive to the cruising ability for promoting mobile terminal.

Description

A kind of sensor control method of mobile terminal, device and mobile terminal
Technical field
The present invention relates to power consumption processing technology field more particularly to a kind of sensor control methods of mobile terminal, device And mobile terminal.
Background technique
Currently, intelligence system oneself be the maximum intelligent terminal operation system platform of user group, intelligent terminal is to be permitted at present Multi-user is the most frequently used and most important electronic equipment, and various sensor devices, which are given, in intelligent terminal applies pluralistic function Provide hardware foundation.However, nonstandard sensor application method, such as still hold sensor during standby and do not discharge, Cause system can not suspend mode, sensor device continuous drain, hence it is evident that increase the stand-by power consumption of intelligent terminal.Existing intelligent terminal In optimised power consumption scheme, lack the scheme that effective way goes closure sensor to connect that provides the user with.
Therefore, it is necessary to propose a kind of new technical solution, to solve the above technical problems.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of sensor control method of mobile terminal, device and movements Terminal, it is intended to solve sensor of the existing technology of still holding during standby and not discharge, cause system can not suspend mode, sensing Device equipment continuous drain, hence it is evident that the stand-by power consumption for increasing intelligent terminal is unfavorable for the problem of promoting the cruising ability of intelligent terminal.
In order to solve the above technical problems, the embodiment of the invention provides following technical schemes:
The embodiment of the invention provides a kind of sensor control method of mobile terminal, the sensor control of the mobile terminal Method processed, comprising the following steps:
Receive operating gesture on the touch screen;
Corresponding sensor type to be released is identified according to the operating gesture;
Traverse the connecting interface queue of sensor current active;
Judge whether the corresponding sensor of the connecting interface in the queue meets the sensor type to be released;
If it is judged that the corresponding sensor of the connecting interface meets the sensor type to be released, then it will be described Connecting interface removes the current active connecting interface queue, to discharge the corresponding sensor connection of the connecting interface.
Preferably, before the reception operating gesture on the touch screen the step of, further includes:
Whether detection mobile terminal is currently in standby;
When detecting that mobile terminal is currently at standby mode, then turn on sensor discharges gesture receiving interface;Wherein The sensor discharges gesture receiving interface, for receiving operating gesture on the touch screen.
Preferably, the connecting interface is being removed into the current active connecting interface queue, to discharge described connect After the step of mouth corresponding sensor connection, further includes:
The connecting interface for removing the current active connecting interface queue is saved to connection queue to be restored;
Obtain the setting parameter information of the corresponding sensor of connecting interface removed;
The setting parameter information of the sensor is added in parameter queue to be restored.
Preferably, after the step that the setting parameter information of the sensor is added in parameter queue to be restored, Further include:
When detecting that mobile terminal is currently at non-standby state, the connection queue to be restored is traversed;
The setting parameter information of sensor is obtained from the parameter queue to be restored;
According to the setting parameter information of the sensor, corresponding connecting interface is re-added to the current active and is connected In connection interface queue, to restore corresponding sensor connection.
Preferably, after the step that the setting parameter information of the sensor is added in parameter queue to be restored, Further include:
When receiving operating gesture on the touch screen, identified according to the operating gesture corresponding to be restored Sensor type;
Traverse the connection queue to be restored;
The setting ginseng of the corresponding sensor of the sensor type to be restored is obtained from the parameter queue to be restored Number information;
According to the setting parameter information of the sensor, corresponding connecting interface is re-added to the current active and is connected In connection interface queue, to restore corresponding sensor connection.
Preferably, before the reception operating gesture on the touch screen the step of, further includes:
Receive the operating gesture and corresponding sensor type to be released of user's input;
Establish the mapping table between the operating gesture and sensor type to be released;
It described the step of corresponding sensor type to be released is identified according to the operating gesture, specifically includes:
In the mapping table, the corresponding sensor type to be released of the operating gesture is identified.
In order to solve the above technical problems, the embodiment of the invention also provides following technical schemes:
The embodiment of the invention also provides a kind of sensor control of mobile terminal, the sensor of the mobile terminal Control device, comprising:
Operating gesture receiving module, for receiving operating gesture on the touch screen;
Type identification module, for identifying corresponding sensor type to be released according to the operating gesture;
First spider module, for traversing sensor current active connecting interface queue;
Sensor discharges judgment module, and whether the corresponding sensor of connecting interface for judging in the queue meets institute State sensor type to be released;
Module is removed, for if it is judged that the corresponding sensor of the connecting interface meets the sensor to be released The connecting interface is then removed the current active connecting interface queue, to discharge the corresponding biography of the connecting interface by type Sensor connection.
Preferably, the sensor control of the mobile terminal, further includes:
Whether standby mode detection module is currently in standby for detecting mobile terminal;
Gesture receiving interface opening module, for when detecting that mobile terminal is currently at standby mode, then opening biography Sensor discharges gesture receiving interface;Wherein the sensor discharges gesture receiving interface, for receiving behaviour on the touch screen It makes a sign with the hand.
Preferably, the sensor control of the mobile terminal, further includes:
Preserving module, for saving the connecting interface for removing the current active connecting interface queue to connection to be restored Queue;
Parameter information obtains module, for obtaining the setting parameter information of the corresponding sensor of connecting interface removed;
Parameter information adding module, for the setting parameter information of the sensor to be added to parameter queue to be restored In.
Preferably, the sensor control of the mobile terminal, further includes:
Second spider module, for traversing described to be restored when detecting that mobile terminal is currently at non-standby state Connect queue;
First parameter information obtains module, for obtaining the setting parameter letter of sensor from the parameter queue to be restored Breath;
Connecting interface adding module, for the setting parameter information according to the sensor, by corresponding connecting interface weight Newly it is added in the current active connecting interface queue, to restore corresponding sensor connection.
Preferably, the sensor control of the mobile terminal, further includes:
Restore type identification module, for when receiving operating gesture on the touch screen, according to the manipulator Gesture identifies corresponding sensor type to be restored;
Third spider module, for traversing the connection queue to be restored;
Second parameter information obtains module, for obtaining the sensor to be restored from the parameter queue to be restored The setting parameter information of the corresponding sensor of type;
Corresponding connecting interface is re-added to by adding module for the setting parameter information according to the sensor In the current active connecting interface queue, to restore corresponding sensor connection.
Preferably, the sensor control of the mobile terminal, further includes:
Gesture-type receiving module, for receiving the operating gesture and corresponding sensor class to be released that user inputs Type;
Relation table establishes module, the corresponding relationship for establishing between the operating gesture and sensor type to be released Table;
The type identification module is specifically used in the mapping table, identifies that the operating gesture is corresponding Sensor type to be released.
In order to solve the above technical problems, the embodiment of the invention also provides following technical schemes:
The embodiment of the invention also provides a kind of movements of sensor control including mobile terminal recited above Terminal.
Compared with the existing technology, the sensor control method of mobile terminal of the invention, device and mobile terminal, by connecing Receive operating gesture on the touch screen;Corresponding sensor type to be released is identified according to the operating gesture;Traversal Sensor current active connecting interface queue;Judge the corresponding sensor of the connecting interface in the queue whether meet it is described to The sensor type of release;If it is judged that the corresponding sensor of the connecting interface meets the sensor class to be released The connecting interface is then removed the current active connecting interface queue, to discharge the corresponding sensing of the connecting interface by type Device connection.I.e. the present invention controls the satisfactory sensor connection of release by gesture.The present invention provide the user fast The scheme that effective way goes closure sensor to connect, therefore mobile whole system can be effectively obtained suspend mode, due to passing through gesture It being connected to control release sensor, operation tool is convenient, simple and quick, therefore the power consumption of mobile terminal is effectively reduced, thus The stand-by power consumption of mobile terminal is increased, the cruising ability for promoting mobile terminal is conducive to.
Detailed description of the invention
Fig. 1 is the implementation process schematic diagram of the sensor control method for the mobile terminal that the embodiment of the present invention one provides;
Fig. 2 is the implementation process schematic diagram of release sensor connection provided by Embodiment 2 of the present invention;
Fig. 3 is the implementation process schematic diagram for restoring sensor connection that the embodiment of the present invention three provides;
Fig. 4 is the module diagram of the sensor control for the mobile terminal that the embodiment of the present invention four provides;
Fig. 5 is the module diagram of the sensor control for the mobile terminal that the embodiment of the present invention five provides.
Specific embodiment
Please refer to the schema in attached drawing, wherein identical component symbol represents identical component, the principle of the present invention be with Implement to illustrate in a computing environment appropriate.The following description is based on exemplified specific implementation of the invention Example is not construed as the limitation present invention other specific embodiments not detailed herein.
The principle of the invention illustrates that be not represented as a kind of limitation, those skilled in the art can with above-mentioned text Solving plurality of step and operation as described below also may be implemented in hardware.The principle of the present invention uses many other wide usages Or specific purpose operation, communication environment or configuration are operated.
It should be noted that the executing subject of the embodiment of the present invention can be mobile terminal.Mobile terminal may include moving Mobile phone (or being " honeycomb " phone, such as smart phone) and the computer with mobile terminal, for example, tablet computer, may be used also To be the mobile device of portable pocket, the vehicle-mounted built-in computer of hand-held, they exchanged with wireless access network language and/ Or data.For example, personal communication service (Personal Communication Service, PCS) phone, wireless phone, meeting Talk about initiation protocol (Session Initiation Protocol, SIP) phone, wireless local loop (Wireless Local Loop, WLL) it stands, the equipment such as personal digital assistant (Personal Digital Assistant, PDA), it is not limited thereto.
Realization of the invention is described in detail below in conjunction with specific embodiment:
Embodiment one
Referring to Fig. 1, showing the sensor control method of mobile terminal provided in an embodiment of the present invention.
The sensor control method of the mobile terminal is applied in mobile terminal, specifically comprises the following steps:
In step s101, operating gesture on the touch screen is received;
As an embodiment of the present invention, before the reception operating gesture on the touch screen the step of, further includes: Whether detection mobile terminal is currently in standby;When detecting that mobile terminal is currently at standby mode, then biography is opened Sensor discharges gesture receiving interface;Wherein the sensor discharges gesture receiving interface, for receiving behaviour on the touch screen It makes a sign with the hand.That is, when user needs closure sensor to connect, then until mobile terminal is in standby, it is standby at this Operating gesture is inputted on interface, to close the corresponding sensor connection of the operating gesture.Either, screen is put out when mobile terminal enters When state, operating gesture is inputted on causing blacked out screens, to close the corresponding sensor connection of the operating gesture.
It is understood that whether judging power managed function when detecting that mobile terminal is currently at standby mode It opens;If it is judged that power managed function is opened, then the turn on sensor release gesture receiving interface is executed;It is wherein described Sensor discharges gesture receiving interface, for the step of receiving operating gesture on the touch screen.It is understood that can be with One interface is provided, provides the unlatching interface and a down interface of a power managed function on the surface, when the user clicks When the unlatching interface, just start the power managed function automatically, when the user clicks when the down interface, the power consumption is just automatically closed Management function.
Wherein, the implementation that currently whether is in standby of detection mobile terminal can be with are as follows: detects mobile terminal Whether screen, which is in, is put out screen state, if it is, can be determined that the mobile terminal is currently at standby mode;If detection movement The screen of terminal is in bright screen state, then can be determined that the mobile terminal is currently at non-standby state.
It would however also be possible to employ as under type carries out judging whether mobile terminal is currently in standby: such as, detection exists Whether user is received in preset time to the operational order of physical button and touch screen, if do not received within a preset time To user to the operational order of physical button and touch screen, then it can be determined that the mobile terminal is currently at standby mode;If Have within a preset time and receive user to the operational order of physical button or touch screen, then can be determined that the mobile terminal is current In non-standby state.
It is understood, however, that being not limited to above-mentioned judgment mode, made all within the spirits and principles of the present invention Any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention.
As another embodiment of the present invention, APP application software (power managed function) is installed in mobile terminal side in advance, point The operation interface into the APP application software is hit, which carries out input operation for being supplied to user on the surface Gesture.That is, when user needs closure sensor to connect, then the operation interface of the APP application software is clicked to enter, then, Input operating gesture is carried out, on the surface to close the corresponding sensor connection of the operating gesture.
In step s 102, corresponding sensor type to be released is identified according to the operating gesture;
It is understood, however, that needing to establish in advance corresponding between operating gesture and sensor type to be released Relation table is implemented as follows:
1, the operating gesture and corresponding sensor type to be released of user's input are received;
2, the mapping table between the operating gesture and sensor type to be released is established;
Therefore, described the step of corresponding sensor type to be released is identified according to the operating gesture, specific to wrap It includes: in the mapping table, identifying the corresponding sensor type to be released of the operating gesture.
For example, predefined about sensor correlation blank screen gesture:
According to the function of sensor, sensor is divided into type of sports sensor, type of play sensor, other types and is passed Sensor, and formulate corresponding operating gesture.
Type of sports sensor --- S gesture
Type of play sensor --- G gesture
Other types sensor --- O gesture
Wherein, type of sports sensor (S gesture) includes acceleration transducer, pedometer sensor;Type of play sensing Device (G gesture) includes direction sensor, gyro sensor, pressure sensor, gravity sensor etc.;Sensing apart from the above Device is all attributed to other types sensor (O gesture).
It is understood, however, that the classification for sensor, can voluntarily be selected, or can be by cloud by user Server push etc..
In step s 103, the connecting interface queue of sensor current active is traversed;
In embodiments of the present invention, it when application program is needed using sensor, is connected to the application assigned one Interface, by the connecting interface, the application program is capable of calling the sensor and works;The connecting interface of distribution is added It adds in the sensor current active connecting interface queue.
The function structure of management of sensor is described below in detail.
In mobile terminal android system, sensor management frame can be divided into client, server-side, HAL (level of abstraction) Layer.Wherein client is the interface that application program encapsulation uses sensor, and server-side is responsible for the management of all the sensors data, HAL layers encapsulate direct access of the server-side to Kernel (kernel).Server-side reads sensing data from HAL layers, and writes Enter into pipeline, client passes through pipeline reading service end data.
When application program is needed using sensor, the SystemSensorManager example of client is obtained first, is led to It crosses example registration and monitors interface.After interface is monitored in registration, server-side can provide one for client SensorEventConnection connecting interface, the connecting interface distribute to application program, by the connecting interface, using journey Sequence can obtain data by client from sensor.
When client registers monitor interface, server-side can call enable (enabled) interface of sensor device, enable The sensor device.When client cancel register monitors interface, server-side can call the disable (disabling) of sensor device Interface disables the sensor device.
Wherein, the sensor current active connecting interface queue mActiveConnections, currently may be used for storing Sensor connection.When enable interface is called, the connecting interface of new registration is added to the sensor current active In connecting interface queue mActiveConnections;When disable interface is called, corresponding connecting interface is removed into institute State sensor current active connecting interface queue mActiveConnections.
In step S104, it is described to be released to judge whether the corresponding sensor of the connecting interface in the queue meets Sensor type;
In step s105, if it is judged that the corresponding sensor of the connecting interface meets the sensor to be released The connecting interface is then removed the current active connecting interface queue, to discharge the corresponding biography of the connecting interface by type Sensor connection.
For example, mobile terminal system, in native layers of SensorService system service, addition discharges specified type Sensor connects service implementation method releaseTypeSensor (type).This method will traverse current active connecting interface team MActiveConnections is arranged, the type of respective sensor equipment is obtained, judges that the corresponding sensor type of the acquisition is It is no to meet the sensor type to be released, if meeting sensor type to be released, disable method is called to discharge The connecting interface is removed the queue of current active connecting interface, while the connecting interface being saved in extensive by sensor connection It is multiply-connected to meet queue mSavedConnections, the corresponding sensor setting parameter of connecting interface is added to parameter team to be restored It arranging in mSavedParams, restoring sensor connection when for exiting standby mode.
As an embodiment of the present invention, in order to sensor can be restored automatically when mobile terminal exits standby mode Connection, implementation process are as follows:
1, the connecting interface is being removed into the current active connecting interface queue, it is corresponding to discharge the connecting interface Sensor connection the step of after, the connecting interface for removing the current active connecting interface queue is saved to company to be restored Connect queue;
2, the setting parameter information of the corresponding sensor of connecting interface removed is obtained;
3, the setting parameter information of the sensor is added in parameter queue to be restored.
4, when detecting that mobile terminal is currently at non-standby state, the connection queue to be restored is traversed;
5, the setting parameter information of sensor is obtained from the parameter queue to be restored;
6, according to the setting parameter information of the sensor, corresponding connecting interface is re-added to the current active In connecting interface queue, to restore corresponding sensor connection.
For example, mobile terminal system, in native layers of SensorService system service, addition restores sensor and connects Meet service implementation method restoreSensor.RestoreSensor method will traverse connection queue to be restored MSavedConnections obtains corresponding sensor setting parameter from parameter queue mSavedParams to be restored, calls Enable method restores corresponding sensor connection, while the connecting interface is re-added to mActiveConnections and is worked as Before enliven connecting interface queue.
As another embodiment of the present invention, the implementation process for restoring the connection (turn on sensor connection) of sensor is as follows:
11, it when receiving operating gesture on the touch screen, is identified according to the operating gesture corresponding to extensive Multiple sensor type;
It is understood, however, that needing to establish between the operating gesture and sensor type to be restored in advance Mapping table, implementation process are as follows:
Receive the operating gesture and corresponding sensor type to be restored of user's input;Establish the operating gesture with Mapping table between sensor type to be restored;
For example, type of sports sensor --- R gesture
Type of play sensor --- C gesture
Other types sensor --- E gesture
It described the step of corresponding sensor type to be restored is identified according to the operating gesture, specifically includes:
In the mapping table, the corresponding sensor type to be restored of the operating gesture is identified.
12, the connection queue to be restored is traversed;
13, the setting of the corresponding sensor of the sensor type to be restored is obtained from the parameter queue to be restored Parameter information;
14, according to the setting parameter information of the sensor, corresponding connecting interface is re-added to the current work It jumps in connecting interface queue, is connected with restoring corresponding sensor.
For example, mobile terminal system, in native layers of SensorService system service, addition restores sensor and connects Meet service implementation method restoreSensor.RestoreSensor method will traverse connection queue to be restored MSavedConnections obtains corresponding sensor setting parameter from parameter queue mSavedParams to be restored, calls Enable method restores corresponding sensor connection, while the connecting interface is re-added to mActiveConnections and is worked as Before enliven connecting interface queue.
Embodiment two
Referring to Fig. 2, showing the implementation process of release sensor connection provided in an embodiment of the present invention.
The implementation process of the release sensor connection, is applied in mobile terminal, specifically comprises the following steps:
In step s 201, mobile phone detects whether to be in automatically puts out screen;
In step S202, if detecting that mobile phone puts out screen, further judge whether power managed function opens;
In step S203, if it is judged that power managed function is opened, then turn on sensor discharges gesture receiving interface; Wherein the sensor discharges gesture receiving interface, for receiving operating gesture on the touch screen;
In step S204, operating gesture on the touch screen is received;
In step S205, corresponding sensor type to be released is identified according to the operating gesture;
In step S206, the connecting interface queue of mActiveConnections sensor current active is traversed;
In step S207, it is described to be released to judge whether the corresponding sensor of the connecting interface in the queue meets Sensor type;
In step S208, if it is judged that the corresponding sensor of the connecting interface meets the sensor to be released Type, then call disable method to discharge sensor connection, and the connecting interface is removed the current active connecting interface Queue, to discharge the corresponding sensor connection of the connecting interface.
In step S209, the connecting interface for removing the current active connecting interface queue is added to connection to be restored Queue mSavedConnections;
In step S210, the setting parameter information of sensor is added to parameter queue mSavedParams to be restored In;
In step S211, judge whether to have traversed mActiveConnections sensor current active connecting interface team All connecting interfaces in column;
In step S212, if it is judged that having traversed mActiveConnections sensor current active connecting interface All connecting interfaces in queue, then terminate this operation.If it is judged that not traversed mActiveConnections biography All connecting interfaces in sensor current active connecting interface queue, then execute traversal in return step S206 Next connecting interface in mActiveConnections sensor current active connecting interface queue.
Embodiment three
Referring to Fig. 3, showing the implementation process of recovery sensor connection provided in an embodiment of the present invention.
The implementation process for restoring sensor connection, is applied in mobile terminal, specifically comprises the following steps:
In step S301, mobile phone is detected whether automatically in bright screen;
In step s 302, if detecting the bright screen of mobile phone, the connection queue to be restored is traversed mSavedConnections;
In step S303, the setting parameter letter of sensor is obtained from the parameter queue mSavedParams to be restored Breath;
In step s 304, enable method is called to restore corresponding sensor connection, while again by the connecting interface It is added in mActiveConnections current active connecting interface queue;
In step S305, judge whether to have traversed the institute in the connection queue mSavedConnections to be restored There is connecting interface;
In step S306, if it is judged that having traversed in the connection queue mSavedConnections to be restored All connecting interfaces then terminate this operation.If it is judged that not traversed the connection queue to be restored All connecting interfaces in mSavedConnections then traverse the connection team to be restored in return step S302 to execute Arrange next connecting interface in mSavedConnections.
From the foregoing, it will be observed that the sensor control method of mobile terminal of the invention, by receiving operation on the touch screen Gesture;Corresponding sensor type to be released is identified according to the operating gesture;Traversal sensor current active connects Mouth queue;Judge whether the corresponding sensor of the connecting interface in the queue meets the sensor type to be released;Such as Fruit judges that the corresponding sensor of the connecting interface meets the sensor type to be released, then moves the connecting interface The current active connecting interface queue out, to discharge the corresponding sensor connection of the connecting interface.I.e. the present invention passes through hand Gesture connects to control the satisfactory sensor of release.The present invention provide the user effective and rapid approach and closure sensor gone to connect The scheme connect, therefore mobile whole system can be effectively obtained suspend mode, due to controlling release sensor connection by gesture, Operation tool is convenient, simple, again quick, therefore the power consumption of mobile terminal is effectively reduced, to increase the standby function of mobile terminal Consumption is conducive to the cruising ability for promoting mobile terminal.
Example IV
Referring to Fig. 4, the module diagram of the sensor control for mobile terminal provided in an embodiment of the present invention;For Convenient for explanation, only parts related to embodiments of the present invention are shown.The sensor control of the mobile terminal includes: Operating gesture receiving module 101, the first spider module 103, sensor release judgment module 104, moves at type identification module 102 Module 105 out.The sensor control of the mobile terminal can be the software unit being built in mobile terminal, hardware list The unit of member either software and hardware combining.
Operating gesture receiving module 101, for receiving operating gesture on the touch screen;
Type identification module 102, for identifying corresponding sensor type to be released according to the operating gesture;
First spider module 103, for traversing sensor current active connecting interface queue;
Sensor discharges judgment module 104, and whether the corresponding sensor of connecting interface for judging in the queue accords with Close the sensor type to be released;
Module 105 is removed, for if it is judged that the corresponding sensor of the connecting interface meets the biography to be released The connecting interface is then removed the current active connecting interface queue by sensor type, corresponding to discharge the connecting interface Sensor connection.
Further, the sensor control of the mobile terminal, further includes:
Whether standby mode detection module 106 is currently in standby for detecting mobile terminal;
Gesture receiving interface opening module 107, for when detecting that mobile terminal is currently at standby mode, then opening Sensor discharges gesture receiving interface;Wherein the sensor discharges gesture receiving interface, for receiving on the touch screen Operating gesture.
Further, the sensor control of the mobile terminal, further includes:
Preserving module 108, for saving the connecting interface for removing the current active connecting interface queue to be restored Connect queue;
Parameter information obtains module 109, for obtaining the setting parameter information of the corresponding sensor of connecting interface removed;
Parameter information adding module 110, for the setting parameter information of the sensor to be added to parameter team to be restored In column.
Further, the sensor control of the mobile terminal, further includes:
Second spider module 111, for when detecting that mobile terminal is currently at non-standby state, traversal to be described to extensive It is multiply-connected to connect queue;
First parameter information obtains module 112, for obtaining the setting ginseng of sensor from the parameter queue to be restored Number information;
Connecting interface adding module 113, for the setting parameter information according to the sensor, by corresponding connecting interface It is re-added in the current active connecting interface queue, to restore corresponding sensor connection.
Further, the sensor control of the mobile terminal, further includes:
Gesture-type receiving module 114, for receiving the operating gesture and corresponding sensing to be released that user inputs Device type;
Relation table establishes module 115, corresponding between the operating gesture and sensor type to be released for establishing Relation table;
The type identification module 102 is specifically used in the mapping table, identifies that the operating gesture is corresponding Sensor type to be released.
From the foregoing, it will be observed that the sensor control of mobile terminal of the invention, by receiving operation on the touch screen Gesture;Corresponding sensor type to be released is identified according to the operating gesture;Traversal sensor current active connects Mouth queue;Judge whether the corresponding sensor of the connecting interface in the queue meets the sensor type to be released;Such as Fruit judges that the corresponding sensor of the connecting interface meets the sensor type to be released, then moves the connecting interface The current active connecting interface queue out, to discharge the corresponding sensor connection of the connecting interface.I.e. the present invention passes through hand Gesture connects to control the satisfactory sensor of release.The present invention provide the user effective and rapid approach and closure sensor gone to connect The scheme connect, therefore mobile whole system can be effectively obtained suspend mode, due to controlling release sensor connection by gesture, Operation tool is convenient, simple, again quick, therefore the power consumption of mobile terminal is effectively reduced, to increase the standby function of mobile terminal Consumption is conducive to the cruising ability for promoting mobile terminal.
Embodiment five
Referring to Fig. 5, the module diagram of the sensor control for mobile terminal provided in an embodiment of the present invention;For Convenient for explanation, only parts related to embodiments of the present invention are shown.The sensor control of the mobile terminal includes: Operating gesture receiving module 201, the first spider module 203, sensor release judgment module 204, moves at type identification module 202 Module 205 out.The sensor control of the mobile terminal can be the software unit being built in mobile terminal, hardware list The unit of member either software and hardware combining.
Operating gesture receiving module 201, for receiving operating gesture on the touch screen;
Type identification module 202, for identifying corresponding sensor type to be released according to the operating gesture;
First spider module 203, for traversing sensor current active connecting interface queue;
Sensor discharges judgment module 204, and whether the corresponding sensor of connecting interface for judging in the queue accords with Close the sensor type to be released;
Module 205 is removed, for if it is judged that the corresponding sensor of the connecting interface meets the biography to be released The connecting interface is then removed the current active connecting interface queue by sensor type, corresponding to discharge the connecting interface Sensor connection.
Further, the sensor control of the mobile terminal, further includes:
Preserving module 206, for saving the connecting interface for removing the current active connecting interface queue to be restored Connect queue;
Parameter information obtains module 207, for obtaining the setting parameter information of the corresponding sensor of connecting interface removed;
Parameter information adding module 208, for the setting parameter information of the sensor to be added to parameter team to be restored In column.
Further, the sensor control of the mobile terminal, further includes:
Restore type identification module 209, for when receiving operating gesture on the touch screen, according to the operation Gesture identification goes out corresponding sensor type to be restored;
Third spider module 210, for traversing the connection queue to be restored;
Second parameter information obtains module 211, for obtaining the biography to be restored from the parameter queue to be restored The setting parameter information of the corresponding sensor of sensor type;
Adding module 212 adds corresponding connecting interface for the setting parameter information according to the sensor again Into the current active connecting interface queue, to restore corresponding sensor connection.
From the foregoing, it will be observed that the sensor control of mobile terminal of the invention, by receiving operation on the touch screen Gesture;Corresponding sensor type to be released is identified according to the operating gesture;Traversal sensor current active connects Mouth queue;Judge whether the corresponding sensor of the connecting interface in the queue meets the sensor type to be released;Such as Fruit judges that the corresponding sensor of the connecting interface meets the sensor type to be released, then moves the connecting interface The current active connecting interface queue out, to discharge the corresponding sensor connection of the connecting interface.I.e. the present invention passes through hand Gesture connects to control the satisfactory sensor of release, and restores satisfactory sensor connection by gesture.This hair The bright scheme that provide the user effective and rapid approach and closing is gone to connect with turn on sensor, therefore mobile whole system can be effective Obtain suspend mode, due to controlling release sensor connection by gesture, operation tool is convenient, simple, again quick, therefore effectively The power consumption of mobile terminal is reduced, to increase the stand-by power consumption of mobile terminal, is conducive to the cruising ability for promoting mobile terminal.
The embodiment of the invention also provides a kind of mobile terminal, the mobile terminal includes mobile terminal recited above The sensor control of mobile terminal has been described in detail in sensor control above, therefore, not described in detail herein.
Sensor control method, device and the mobile terminal of mobile terminal provided in an embodiment of the present invention belong to same structure Think, specific implementation process is detailed in specification full text, and details are not described herein again.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
In conclusion although the present invention has been disclosed above in the preferred embodiment, but above preferred embodiment is not to limit The system present invention, those skilled in the art can make various changes and profit without departing from the spirit and scope of the present invention Decorations, therefore protection scope of the present invention subjects to the scope of the claims.

Claims (14)

1. a kind of sensor control method of mobile terminal, which is characterized in that the sensor control method of the mobile terminal, packet Include following steps:
When application program is needed using sensor, one connecting interface of application assigned is given, by the connecting interface of distribution It is added in sensor current active connecting interface queue;Wherein, the sensor current active connecting interface queue, for depositing Store up currently available sensor connection;
Receive operating gesture on the touch screen;
Corresponding sensor type to be released is identified according to the operating gesture;
Traverse the connecting interface queue of sensor current active;
Judge whether the corresponding sensor of the connecting interface in the queue meets the sensor type to be released;
If it is judged that the corresponding sensor of the connecting interface meets the sensor type to be released, then sensor is called Disabling interface, then the connecting interface is removed into the current active connecting interface queue, to discharge the connecting interface pair The sensor connection answered.
2. the sensor control method of mobile terminal as described in claim 1, which is characterized in that in the reception in touch screen Before the step of operating gesture on curtain, further includes:
Whether detection mobile terminal is currently in standby;
When detecting that mobile terminal is currently at standby mode, then turn on sensor discharges gesture receiving interface;It is wherein described Sensor discharges gesture receiving interface, for receiving operating gesture on the touch screen.
3. the sensor control method of mobile terminal as described in claim 1, which is characterized in that moved by the connecting interface The current active connecting interface queue out is also wrapped after discharging the step of corresponding sensor of the connecting interface connects It includes:
The connecting interface for removing the current active connecting interface queue is saved to connection queue to be restored;
Obtain the setting parameter information of the corresponding sensor of connecting interface removed;
The setting parameter information of the sensor is added in parameter queue to be restored.
4. the sensor control method of mobile terminal as claimed in claim 3, which is characterized in that in setting the sensor After setting the step that parameter information is added in parameter queue to be restored, further includes:
When detecting that mobile terminal is currently at non-standby state, the connection queue to be restored is traversed;
The setting parameter information of sensor is obtained from the parameter queue to be restored;
According to the setting parameter information of the sensor, corresponding connecting interface is re-added to the current active and is connect In mouth queue, to restore corresponding sensor connection.
5. the sensor control method of mobile terminal as claimed in claim 3, which is characterized in that in setting the sensor After setting the step that parameter information is added in parameter queue to be restored, further includes:
When receiving operating gesture on the touch screen, corresponding sensing to be restored is identified according to the operating gesture Device type;
Traverse the connection queue to be restored;
The setting parameter letter of the corresponding sensor of the sensor type to be restored is obtained from the parameter queue to be restored Breath;
According to the setting parameter information of the sensor, corresponding connecting interface is re-added to the current active and is connect In mouth queue, to restore corresponding sensor connection.
6. the sensor control method of mobile terminal as described in claim 1, which is characterized in that in the reception in touch screen Before the step of operating gesture on curtain, further includes:
Receive the operating gesture and corresponding sensor type to be released of user's input;
Establish the mapping table between the operating gesture and sensor type to be released;
It described the step of corresponding sensor type to be released is identified according to the operating gesture, specifically includes:
In the mapping table, the corresponding sensor type to be released of the operating gesture is identified.
7. a kind of sensor control of mobile terminal, which is characterized in that the sensor control of the mobile terminal, packet It includes:
Adding module will divide for giving one connecting interface of application assigned when application program is needed using sensor The connecting interface matched is added in sensor current active connecting interface queue;Wherein, the sensor current active connects Mouth queue, for storing currently available sensor connection;
Operating gesture receiving module, for receiving operating gesture on the touch screen;
Type identification module, for identifying corresponding sensor type to be released according to the operating gesture;
First spider module, for traversing sensor current active connecting interface queue;
Sensor discharges judgment module, the corresponding sensor of connecting interface for judging in the queue whether meet it is described to The sensor type of release;
Module is removed, for if it is judged that the corresponding sensor of the connecting interface meets the sensor class to be released Type then calls the disabling interface of sensor, then the connecting interface is removed the current active connecting interface queue, with release The corresponding sensor connection of the connecting interface.
8. the sensor control of mobile terminal as claimed in claim 7, which is characterized in that the sensing of the mobile terminal Device control device, further includes:
Whether standby mode detection module is currently in standby for detecting mobile terminal;
Gesture receiving interface opening module, for when detecting that mobile terminal is currently at standby mode, then turn on sensor Discharge gesture receiving interface;Wherein the sensor discharges gesture receiving interface, for receiving manipulator on the touch screen Gesture.
9. the sensor control of mobile terminal as claimed in claim 7, which is characterized in that the sensing of the mobile terminal Device control device, further includes:
Preserving module, for saving the connecting interface for removing the current active connecting interface queue to connection team to be restored Column;
Parameter information obtains module, for obtaining the setting parameter information of the corresponding sensor of connecting interface removed;
Parameter information adding module, for the setting parameter information of the sensor to be added in parameter queue to be restored.
10. the sensor control of mobile terminal as claimed in claim 9, which is characterized in that the biography of the mobile terminal Sensor control device, further includes:
Second spider module, for traversing the connection to be restored when detecting that mobile terminal is currently at non-standby state Queue;
First parameter information obtains module, for obtaining the setting parameter information of sensor from the parameter queue to be restored;
Connecting interface adding module adds corresponding connecting interface for the setting parameter information according to the sensor again It is added in the current active connecting interface queue, to restore corresponding sensor connection.
11. the sensor control of mobile terminal as claimed in claim 9, which is characterized in that the biography of the mobile terminal Sensor control device, further includes:
Restore type identification module, for being known according to the operating gesture when receiving operating gesture on the touch screen It Chu not corresponding sensor type to be restored;
Third spider module, for traversing the connection queue to be restored;
Second parameter information obtains module, for obtaining the sensor type to be restored from the parameter queue to be restored The setting parameter information of corresponding sensor;
Corresponding connecting interface is re-added to described by adding module for the setting parameter information according to the sensor In current active connecting interface queue, to restore corresponding sensor connection.
12. the sensor control of mobile terminal as claimed in claim 7, which is characterized in that the biography of the mobile terminal Sensor control device, further includes:
Gesture-type receiving module, for receiving the operating gesture and corresponding sensor type to be released of user's input;
Relation table establishes module, the mapping table for establishing between the operating gesture and sensor type to be released;
The type identification module is specifically used in the mapping table, identifies that the operating gesture is corresponding wait release The sensor type put.
13. a kind of mobile terminal of the sensor control including the described in any item mobile terminals of claim 7 to 12.
14. a kind of storage medium, is stored with computer program, wherein the computer program executes computer as weighed Benefit requires 1 to 6 described in any item methods.
CN201610379944.3A 2016-05-31 2016-05-31 A kind of sensor control method of mobile terminal, device and mobile terminal Expired - Fee Related CN106095306B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610379944.3A CN106095306B (en) 2016-05-31 2016-05-31 A kind of sensor control method of mobile terminal, device and mobile terminal
PCT/CN2017/086479 WO2017206882A1 (en) 2016-05-31 2017-05-29 Sensor control method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610379944.3A CN106095306B (en) 2016-05-31 2016-05-31 A kind of sensor control method of mobile terminal, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106095306A CN106095306A (en) 2016-11-09
CN106095306B true CN106095306B (en) 2019-03-26

Family

ID=57230617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610379944.3A Expired - Fee Related CN106095306B (en) 2016-05-31 2016-05-31 A kind of sensor control method of mobile terminal, device and mobile terminal

Country Status (2)

Country Link
CN (1) CN106095306B (en)
WO (1) WO2017206882A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095306B (en) * 2016-05-31 2019-03-26 Oppo广东移动通信有限公司 A kind of sensor control method of mobile terminal, device and mobile terminal
CN109195210B (en) * 2018-08-28 2021-03-26 努比亚技术有限公司 Power saving method, mobile terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354271A (en) * 2011-09-16 2012-02-15 华为终端有限公司 Gesture input method, mobile terminal and host
CN102436351A (en) * 2011-12-22 2012-05-02 优视科技有限公司 Method and device for controlling application interface through dragging gesture
CN104115118A (en) * 2012-03-01 2014-10-22 高通股份有限公司 Gesture detection based on information from multiple types of sensors
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN105302274A (en) * 2015-09-22 2016-02-03 广东欧珀移动通信有限公司 Sensor control method and apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8704767B2 (en) * 2009-01-29 2014-04-22 Microsoft Corporation Environmental gesture recognition
US9164542B2 (en) * 2010-08-31 2015-10-20 Symbol Technologies, Llc Automated controls for sensor enabled user interface
CN102457558B (en) * 2010-10-25 2015-05-27 ***通信集团公司 Sensing-capacity-based terminal and application program control method
CN103546625B (en) * 2012-07-16 2016-12-21 南京中兴软件有限责任公司 The control method of terminal operation and device
CN106095306B (en) * 2016-05-31 2019-03-26 Oppo广东移动通信有限公司 A kind of sensor control method of mobile terminal, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354271A (en) * 2011-09-16 2012-02-15 华为终端有限公司 Gesture input method, mobile terminal and host
CN102436351A (en) * 2011-12-22 2012-05-02 优视科技有限公司 Method and device for controlling application interface through dragging gesture
CN104115118A (en) * 2012-03-01 2014-10-22 高通股份有限公司 Gesture detection based on information from multiple types of sensors
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN105302274A (en) * 2015-09-22 2016-02-03 广东欧珀移动通信有限公司 Sensor control method and apparatus

Also Published As

Publication number Publication date
CN106095306A (en) 2016-11-09
WO2017206882A1 (en) 2017-12-07

Similar Documents

Publication Publication Date Title
CN106095051B (en) A kind of processing method of application program for mobile terminal, device and mobile terminal
CN107276789A (en) Daily record method for uploading, device and computer-readable recording medium
CN106055078B (en) A kind of sensor processing method of mobile terminal, device and mobile terminal
CN108509299A (en) Message treatment method, equipment and computer readable storage medium
CN106534093B (en) A kind of processing method of terminal data, apparatus and system
CN108595203A (en) Application function executes method, mobile terminal and computer readable storage medium
CN108279904A (en) Code compiling method and terminal
CN108021454A (en) A kind of method, terminal and the computer-readable storage medium of processor load equilibrium
CN109901980A (en) Serial ports log grabs circuit, method, terminal and computer readable storage medium
CN111078523A (en) Log obtaining method and device, storage medium and electronic equipment
CN108829444A (en) A kind of method that background application is automatically closed, terminal and computer storage medium
CN110059464A (en) Terminal puts out screen unlocks method, apparatus, mobile terminal and readable storage medium storing program for executing
CN106095306B (en) A kind of sensor control method of mobile terminal, device and mobile terminal
CN106020427B (en) A kind of processing method of associated application, device and mobile terminal
CN109614783A (en) Terminal safety protection method, device, mobile terminal and storage medium
CN109165042A (en) Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application
CN108762926A (en) A kind of system optimization method, terminal and computer readable storage medium
CN109144383A (en) A kind of application control method, terminal and computer readable storage medium
CN108763478A (en) User's recessive character computational methods, server and computer readable storage medium
CN110418004A (en) Screenshot processing method, terminal and computer readable storage medium
CN107103086B (en) Data acquisition auditing method and system, and computer readable storage medium
CN109522276A (en) Application icon management method, terminal and computer readable storage medium
CN106102144B (en) A kind of sensor processing method and device based on mobile terminal
CN109189515A (en) A kind of application starting method, terminal and computer readable storage medium
CN110096194A (en) Terminal unlocking control method, device, mobile terminal and readable storage medium storing program for executing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190326

CF01 Termination of patent right due to non-payment of annual fee