WO2017206882A1 - Procédé et appareil de commande de capteur, support de stockage et dispositif électronique - Google Patents
Procédé et appareil de commande de capteur, support de stockage et dispositif électronique Download PDFInfo
- Publication number
- WO2017206882A1 WO2017206882A1 PCT/CN2017/086479 CN2017086479W WO2017206882A1 WO 2017206882 A1 WO2017206882 A1 WO 2017206882A1 CN 2017086479 W CN2017086479 W CN 2017086479W WO 2017206882 A1 WO2017206882 A1 WO 2017206882A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sensor
- connection interface
- queue
- connection
- type
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
- G06F3/04883—Interaction 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 for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
Definitions
- the present invention relates to the field of electronic device technologies, and in particular, to a sensor control method, device, storage medium, and electronic device.
- the intelligent system has been the largest intelligent terminal operating system platform for the user group.
- the intelligent terminal is the most commonly used and most important electronic device for many users.
- the various sensor devices in the intelligent terminal provide hardware for the application diversification function. basis.
- the invention provides a sensor control method, device, storage medium and electronic device, which can quickly and effectively close a sensor connection during standby of a mobile terminal, and reduce standby power consumption of the mobile terminal.
- an embodiment of the present invention provides a sensor control method, including the following steps:
- connection interface is removed from the current active connection interface queue of the sensor to release the sensor connection corresponding to the connection interface.
- an embodiment of the present invention provides a sensor control apparatus, including:
- a type identifying module configured to identify, according to the operation gesture, a corresponding sensor type to be released
- a first traversal module for traversing a current active connection interface queue of the sensor
- a sensor release determining module configured to determine whether the sensor corresponding to the connection interface in the current active connection interface queue of the sensor meets the type of the sensor to be released;
- an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the plurality of instructions are adapted to be loaded by a processor to execute the sensor control method.
- an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
- connection interface is removed from the current active connection interface queue of the sensor to release the sensor connection corresponding to the connection interface.
- the invention provides a sensor control method, device, storage medium and electronic device, which can quickly and effectively close a sensor connection during standby of a mobile terminal, and reduce standby power consumption of the mobile terminal.
- FIG. 1 is a schematic diagram of an implementation process of a sensor control method according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of an implementation process of a release sensor connection according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of an implementation process of a recovery sensor connection according to an embodiment of the present invention.
- FIG. 4 is a schematic block diagram of a sensor control apparatus according to an embodiment of the present invention.
- FIG. 5 is another schematic diagram of a module of a sensor control apparatus according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
- non-standard sensors such as holding sensors that are not released during standby
- the sensor device continues to consume power, and significantly increase the standby power consumption of the smart terminal.
- the user is not provided with a scheme for effectively closing the sensor connection.
- Embodiments of the present invention provide a sensor control method, including the following steps:
- connection interface is removed from the current active connection interface queue of the sensor to release the sensor connection corresponding to the connection interface.
- the method before the step of receiving the operation gesture on the touch screen, the method further includes:
- the sensor release gesture receiving interface When it is detected that the mobile terminal is currently in a standby state, the sensor release gesture receiving interface is turned on; wherein the sensor releases a gesture receiving interface for receiving an operation gesture on the touch screen.
- the method further includes: determining whether the power consumption management function is turned on; and further, when detecting that the mobile terminal is currently in the standby state, turning on
- the sensor release gesture receiving interface includes: determining whether the power consumption management function is enabled when detecting that the mobile terminal is currently in a standby state; and opening the sensor release gesture receiving interface if the power consumption management function is enabled.
- the method further includes:
- the setting parameter information of the sensor is added to the parameter queue to be restored.
- the method further includes:
- the corresponding connection interface is newly added to the current active connection interface queue of the sensor to restore the corresponding sensor connection.
- the method further includes:
- the corresponding connection interface is newly added to the current active connection interface queue of the sensor to restore the corresponding sensor connection.
- the method before the step of receiving the operation gesture on the touch screen, the method further includes:
- the step of identifying the corresponding sensor type to be released according to the operation gesture specifically includes:
- the sensor type to be released corresponding to the operation gesture is identified.
- the execution subject of the embodiment of the present invention may be a mobile terminal.
- the mobile terminal may be an electronic device such as a mobile phone (or "cellular" phone, such as a smart phone) and a computer with a mobile terminal, such as a tablet computer, or a mobile device built in a portable, pocket-sized, handheld vehicle computer. They can exchange language and/or data with the wireless access network.
- personal communication services Personal Communication Service, PCS
- PCS Personal Communication Service
- PCS Personal Communication Service
- Cordless Telephone Session Initiation Protocol (Session Initiation) Protocol, SIP) Telephone, Wireless Local Loop (WLL) Station
- Personal Digital Assistant (Personal Digital) Devices such as Assistant, PDA) are not limited herein.
- FIG. 1 illustrates a sensor control method according to an embodiment of the present invention.
- the sensor control method is applied to a mobile terminal, and specifically includes the following steps:
- step S101 receiving an operation gesture on the touch screen
- the method before the step of receiving the operation gesture on the touch screen, the method further includes: detecting whether the mobile terminal is currently in a standby state; and when detecting that the mobile terminal is currently in a standby state, turning on the sensor release gesture a receiving interface; wherein the sensor releases a gesture receiving interface for receiving an operation gesture on a touch screen. That is, when the user needs to close the sensor connection, when the mobile terminal is in the standby state, an operation gesture is input on the standby interface to close the sensor connection corresponding to the operation gesture.
- the mobile terminal enters the blackout state that is, the touch screen is presented as a black screen
- an operation gesture is input on the black screen to close the sensor connection corresponding to the operation gesture.
- the implementation of detecting whether the mobile terminal is currently in the standby state may be: detecting whether the screen of the mobile terminal is in a blanking state, and if it is detected that the screen of the mobile terminal is in a blanking state, determining that the mobile terminal is currently in a standby state; If it is detected that the screen of the mobile terminal is not in the off-screen state, it may be determined that the mobile terminal is currently in a non-standby state.
- an application (Application, APP) application software having a power consumption management function is installed on the mobile terminal side, and an operation interface of the APP application software is clicked, and the operation interface is provided to the user at the operation interface. Enter an operation gesture on it. That is, when the user needs to close the sensor connection, then click to enter the operation interface of the APP application software, and then input an operation gesture on the operation interface to close the sensor connection corresponding to the operation gesture.
- step S102 the corresponding sensor type to be released is identified according to the operation gesture
- the step of identifying the corresponding sensor type to be released according to the operation gesture may specifically include: identifying, in the correspondence table, a sensor type to be released corresponding to the operation gesture.
- the sensor-related operational gestures are predefined:
- the sensor is divided into a motion type sensor, a game type sensor, and other types of sensors, and corresponding operation gestures are formulated.
- a motion type sensor a game type sensor
- other types of sensors corresponding operation gestures are formulated.
- the motion type sensor may include an acceleration sensor and a pedometer sensor
- the game type sensor may include a direction sensor, a gyro sensor, a pressure sensor, a gravity sensor, etc.
- the sensor other than the above may be All belong to other types of sensors (O gestures).
- the classification of the sensor can be selected by the user, or can be pushed by the cloud server, and the like.
- step S103 traversing the sensor currently active connection interface queue
- the application when an application needs to use a sensor, the application is assigned a connection interface, wherein the application can call the sensor to work through the connection interface; adding the allocated connection interface To the current active connection interface queue of the sensor.
- the sensor management framework can be divided into a client, a server, and an abstraction layer ( HAL layer).
- the client uses the sensor interface for the application package
- the server is responsible for the management of all sensor data
- the HAL layer encapsulates the direct access of the server to the kernel (Kernel).
- the server reads the sensor data from the HAL layer and writes it to the pipeline, and the client reads the server data through the pipeline.
- the application When the application needs to use the sensor, first obtain the client's SystemSensorManager instance, and register the listening interface through the SystemSensorManager instance. After registering the listening interface, the server provides a SensorEventConnection connection interface for the client.
- the SensorEventConnection connection interface is assigned to the application, and the application can obtain data from the sensor through the SensorEventConnection connection interface.
- the server invokes the enable interface of the sensor device to enable the sensor device.
- the server invokes the disable interface of the sensor device to disable the sensor device.
- the sensor is currently actively connected to the interface queue mActiveConnections, which is used to store the currently available sensor connections.
- the enable interface is invoked, the newly registered connection interface is added to the sensor current active connection interface queue mActiveConnections; when the disable interface is invoked, the corresponding connection interface is moved out of the sensor current active connection interface queue mActiveConnections.
- step S104 it is determined whether the sensor corresponding to the connection interface in the queue meets the type of the sensor to be released;
- step S105 if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, the connection interface is removed from the current active connection interface queue of the sensor to release the sensor connection corresponding to the connection interface.
- the mobile terminal system adds a release typeSensor(type) that releases the specified type of sensor connection service in the SensorService system service of the native layer.
- the releaseTypeSensor(type) method traverses the current active connection interface queue mActiveConnections of the sensor, obtains the type of the sensor corresponding to the connection interface in the current active connection interface queue mActiveConnections of the sensor, and determines the sensor corresponding to the connection interface in the active connection interface queue mActiveConnections of the sensor.
- the disable method is called to release the sensor connection corresponding to the connection interface, and the connection is The interface is removed from the current active connection interface queue of the sensor, and the connection interface is saved to the to-be-recovered connection queue mSavedConnections, and the setting parameter information of the sensor corresponding to the connection interface is added to the parameter queue mSavedParams to be restored, and the sensor is restored when exiting the standby state. connection.
- the implementation process is as follows:
- the mobile terminal system adds a recovery sensor connection service implementation method restoreSensor in the native layer's SensorService system service.
- the restoreSensor method will traverse the to-be-recovered connection queue mSavedConnections, obtain the corresponding sensor's setting parameter information from the parameter queue mSavedParams to be restored, call the enable method to restore the corresponding sensor connection, and re-add the connection interface to the sensor's current active connection interface queue mActiveConnections. .
- the implementation process of restoring the connection of the sensor (turning on the sensor connection) is as follows:
- the step of identifying the corresponding sensor type to be restored according to the operation gesture specifically includes:
- the sensor type to be recovered corresponding to the operation gesture is identified.
- the mobile terminal system adds a recovery sensor connection service implementation method restoreSensor in the native layer's SensorService system service.
- the restoreSensor method will traverse the to-be-recovered connection queue mSavedConnections, obtain the corresponding sensor's setting parameter information from the parameter queue mSavedParams to be restored, call the enable method to restore the corresponding sensor connection, and re-add the connection interface to the sensor's current active connection interface queue mActiveConnections. .
- the sensor control method of the embodiment of the present invention receives an operation gesture on the touch screen, identifies a corresponding sensor type to be released according to the operation gesture, traverses the current active connection interface queue of the sensor, and determines that the sensor is currently actively connected to the interface. Whether the sensor corresponding to the connection interface in the queue meets the sensor type to be released; if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, the connection interface is removed from the current active connection of the sensor. An interface queue to release the sensor connection corresponding to the connection interface. That is, the present invention releases the sensor connection that meets the requirements by gesture control.
- the invention provides the user with a scheme for quickly and effectively closing the sensor connection, so the mobile terminal system can effectively get the sleep, and the operation is convenient, simple and fast because the sensor connection is released by the gesture control, so the mobile terminal can be effectively reduced.
- the power consumption increases the standby power consumption of the mobile terminal, which is beneficial to improving the endurance of the mobile terminal.
- This embodiment will take a mobile phone as an example to describe the specific implementation steps of the method for releasing the sensor connection in the embodiment of the present invention.
- FIG. 2 an implementation flow of a release sensor connection according to an embodiment of the present invention is shown.
- the implementation process of the release sensor connection is applied to the mobile terminal, and specifically includes the following steps:
- step S201 the mobile phone automatically detects whether it is in the blank screen
- step S202 if it is detected that the mobile phone is off, it is further determined whether the power consumption management function is turned on;
- step S203 if it is determined that the power consumption management function is turned on, the sensor release gesture receiving interface is turned on; wherein the sensor releases a gesture receiving interface for receiving an operation gesture on the touch screen;
- step S204 receiving an operation gesture on the touch screen
- step S205 the corresponding sensor type to be released is identified according to the operation gesture
- step S206 traversing the sensor currently active connection interface queue mActiveConnections
- step S207 it is determined whether the sensor corresponding to the connection interface in the current active connection interface queue mActiveConnections of the sensor meets the sensor type to be released;
- step S208 if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, the disable method is invoked to release the sensor connection corresponding to the connection interface, and the connection interface is removed from the current active connection interface of the sensor. Queue to release the sensor connection corresponding to the connection interface.
- step S209 the connection interface that removes the current active connection interface queue of the sensor is added to the to-be-recovered connection queue mSavedConnections;
- step S210 the setting parameter information of the sensor is added to the parameter queue mSavedParams to be restored;
- step S211 it is determined whether all the connection interfaces in the current active connection interface queue mActiveConnections of the sensor are traversed;
- step S212 if it is determined that all the connection interfaces in the current active connection interface queue mActiveConnections of the sensor are traversed, the current operation is ended. If it is determined that all the connection interfaces in the current active connection interface queue mActiveConnections of the sensor are not traversed, then return to the next connection interface in the current active connection interface queue mActiveConnections of the traversing sensor in step S206.
- This embodiment will take the mobile phone as an example to describe the specific implementation steps of the method for restoring the sensor connection in the embodiment of the present invention.
- FIG. 3 an implementation flow of a recovery sensor connection according to an embodiment of the present invention is shown.
- the implementation process of the recovery sensor connection is applied to the mobile terminal, and specifically includes the following steps:
- step S301 the mobile phone automatically detects whether it is in a bright screen
- step S302 if it is detected that the mobile phone is bright, traversing the to-be-recovered connection queue mSavedConnections;
- step S303 the setting parameter information of the sensor is obtained from the parameter queue mSavedParams to be restored;
- step S304 the enable method is invoked to restore the corresponding sensor connection, and the connection interface is newly added to the sensor active connection interface queue mActiveConnections;
- step S305 it is determined whether all the connection interfaces in the to-be-recovered connection queue mSavedConnections are traversed;
- step S306 if it is determined that all the connection interfaces in the to-be-recovered connection queue mSavedConnections are traversed, the current operation is ended. If it is determined that all the connection interfaces in the to-be-recovered connection queue mSavedConnections have not been traversed, then the process returns to step S302 to perform traversal of the next connection interface in the to-be-recovered connection queue mSavedConnections.
- the sensor control method of the present invention receives an operation gesture on a touch screen; identifies a corresponding sensor type to be released according to the operation gesture; traverses the current active connection interface queue of the sensor; and determines that the sensor is currently active Whether the sensor corresponding to the connection interface in the interface queue meets the sensor type to be released; if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, the connection interface is removed from the sensor
- the interface queue is actively connected to release the sensor connection corresponding to the connection interface. That is, the present invention releases the sensor connection that meets the requirements by gesture control.
- the invention provides the user with a scheme for quickly and effectively closing the sensor connection, so the mobile terminal system can effectively get the sleep, and the operation is convenient, simple and fast because the sensor connection is released by the gesture control, so the mobile terminal can be effectively reduced.
- the power consumption increases the standby power consumption of the mobile terminal, which is beneficial to improving the endurance of the mobile terminal.
- Embodiments of the present invention provide a sensor control apparatus, including:
- a type identifying module configured to identify, according to the operation gesture, a corresponding sensor type to be released
- a first traversal module for traversing a current active connection interface queue of the sensor
- a sensor release determining module configured to determine whether the sensor corresponding to the connection interface in the current active connection interface queue of the sensor meets the type of the sensor to be released;
- the sensor control device further includes:
- a standby state detecting module configured to detect whether the mobile terminal is currently in a standby state
- the gesture receiving interface opening module is configured to: when detecting that the mobile terminal is currently in a standby state, turn on a sensor release gesture receiving interface; wherein the sensor releases a gesture receiving interface, configured to receive an operation gesture on the touch screen.
- the sensor control device further includes:
- a saving module configured to save the connection interface that is removed from the current active connection interface queue of the sensor to the connection queue to be restored
- a parameter information obtaining module configured to acquire setting parameter information of a sensor corresponding to the removed connection interface
- a parameter information adding module configured to add setting parameter information of the sensor to the parameter queue to be restored.
- the sensor control device further includes:
- a second traversing module configured to traverse the to-be-recovered connection queue when detecting that the mobile terminal is currently in a non-standby state
- a first parameter information obtaining module configured to acquire setting parameter information of the sensor from the parameter queue to be restored
- connection interface adding module is configured to re-add the corresponding connection interface to the current active connection interface queue of the sensor according to the setting parameter information of the sensor, to restore the corresponding sensor connection.
- the sensor control device of the mobile terminal further includes:
- a recovery type identification module configured to identify, according to the operation gesture, a corresponding sensor type to be restored when receiving an operation gesture on the touch screen
- a third traversal module configured to traverse the to-be-recovered connection queue
- a second parameter information obtaining module configured to acquire, from the to-be-recovered parameter queue, setting parameter information of a sensor corresponding to the sensor type to be restored;
- the sensor control device of the mobile terminal further includes:
- a gesture type receiving module configured to receive an operation gesture input by the user on the touch screen and a corresponding sensor type to be released
- a relationship table establishing module configured to establish a correspondence table between the operation gesture and a sensor type to be released
- the type identification module is specifically configured to identify, in the correspondence relationship table, a sensor type to be released corresponding to the operation gesture.
- FIG. 4 is a schematic diagram of a module of a sensor control apparatus according to an embodiment of the present invention; for convenience of description, only parts related to the embodiment of the present invention are shown.
- the sensor control device includes an operation gesture receiving module 101, a type identification module 102, a first traversal module 103, a sensor release determination module 104, and a removal module 105.
- the sensor control device may be a software unit built in the mobile terminal, a hardware unit, or a combination of software and hardware.
- the operation gesture receiving module 101 is configured to receive an operation gesture on the touch screen
- the type identification module 102 is configured to identify a corresponding sensor type to be released according to the operation gesture
- the first traversal module 103 is configured to traverse the current active connection interface queue of the sensor
- the sensor release determining module 104 is configured to determine whether the sensor corresponding to the connection interface in the current active connection interface queue of the sensor meets the type of the sensor to be released;
- the removal module 105 is configured to: if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, move the connection interface out of the current active connection interface queue of the sensor to release the sensor corresponding to the connection interface connection.
- the sensor control device further includes:
- the standby state detecting module 106 is configured to detect whether the mobile terminal is currently in a standby state
- the gesture receiving interface opening module 107 is configured to: when detecting that the mobile terminal is currently in the standby state, turn on the sensor release gesture receiving interface; wherein the sensor release gesture receiving interface is configured to receive an operation gesture on the touch screen.
- the sensor control device further includes:
- the saving module 108 is configured to save the connection interface that is removed from the current active connection interface queue of the sensor to the connection queue to be restored;
- the parameter information obtaining module 109 is configured to acquire setting parameter information of the sensor corresponding to the removed connection interface
- the parameter information adding module 110 is configured to add setting parameter information of the sensor to the parameter queue to be restored.
- the sensor control device further includes:
- the second traversal module 111 is configured to traverse the to-be-recovered connection queue when detecting that the mobile terminal is currently in a non-standby state;
- the first parameter information obtaining module 112 is configured to acquire setting parameter information of the sensor from the parameter queue to be restored;
- connection interface adding module 113 is configured to re-add the corresponding connection interface to the current active connection interface queue of the sensor according to the setting parameter information of the sensor, to restore the corresponding sensor connection.
- the sensor control device further includes:
- a gesture type receiving module 114 configured to receive an operation gesture input by the user on the touch screen and a corresponding sensor type to be released;
- the relationship table establishing module 115 is configured to establish a correspondence table between the operation gesture and the sensor type to be released;
- the type identification module 102 is specifically configured to identify, in the correspondence relationship table, a sensor type to be released corresponding to the operation gesture.
- the sensor control device of the present invention receives an operation gesture on the touch screen, identifies a corresponding sensor type to be released according to the operation gesture, traverses the sensor to actively connect the interface queue, and determines that the sensor is currently active. Whether the sensor corresponding to the connection interface in the interface queue meets the sensor type to be released; if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, the connection interface is removed from the sensor The interface queue is actively connected to release the sensor connection corresponding to the connection interface. That is, the present invention releases the sensor connection that meets the requirements by gesture control.
- the invention provides the user with a scheme for quickly and effectively closing the sensor connection, so the mobile terminal system can effectively get the sleep, and the operation is convenient, simple and fast because the sensor connection is released by the gesture control, so the mobile terminal can be effectively reduced.
- the power consumption increases the standby power consumption of the mobile terminal, which is beneficial to improving the endurance of the mobile terminal.
- FIG. 5 is a schematic diagram of another module of a sensor control apparatus according to an embodiment of the present invention; for convenience of description, only parts related to the embodiment of the present invention are shown.
- the sensor control device includes an operation gesture receiving module 201, a type identification module 202, a first traversal module 203, a sensor release determination module 204, and a removal module 205.
- the sensor control device may be a software unit, a hardware unit, or a combination of software and hardware built in the mobile terminal.
- the operation gesture receiving module 201 is configured to receive an operation gesture on the touch screen
- the type identification module 202 is configured to identify a corresponding sensor type to be released according to the operation gesture
- the first traversal module 203 is configured to traverse the current active connection interface queue of the sensor
- the sensor release determining module 204 is configured to determine whether the sensor corresponding to the connection interface in the current active connection interface queue of the sensor meets the type of the sensor to be released;
- the removal module 205 is configured to: if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, move the connection interface out of the current active connection interface queue of the sensor to release the sensor corresponding to the connection interface connection.
- the sensor control device further includes:
- the saving module 206 is configured to save the connection interface that is removed from the current active connection interface queue of the sensor to the connection queue to be restored;
- the parameter information obtaining module 207 is configured to acquire setting parameter information of the sensor corresponding to the removed connection interface
- the parameter information adding module 208 is configured to add setting parameter information of the sensor to the parameter queue to be restored.
- the sensor control device further includes:
- the recovery type identification module 209 is configured to identify, according to the operation gesture, a corresponding sensor type to be restored when receiving an operation gesture on the touch screen;
- a third traversal module 210 configured to traverse the to-be-recovered connection queue
- the second parameter information obtaining module 211 is configured to acquire, from the to-be-restored parameter queue, setting parameter information of the sensor corresponding to the sensor type to be restored;
- the adding module 212 is configured to re-add the corresponding connection interface to the current active connection interface queue of the sensor according to the setting parameter information of the sensor, to restore the corresponding sensor connection.
- the sensor control device of the embodiment of the present invention receives an operation gesture on the touch screen, identifies a corresponding sensor type to be released according to the operation gesture, traverses the sensor currently active connection interface queue, and determines the queue. Whether the sensor corresponding to the connection interface meets the sensor type to be released; if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, the connection interface is removed from the current active connection interface of the sensor Queue to release the sensor connection corresponding to the connection interface. That is, the present invention controls the release of the sensor connection that meets the requirements by gestures, and restores the sensor connection that meets the requirements by gestures.
- the invention provides a quick and effective way for the user to close and open the sensor connection, so the mobile terminal system can effectively obtain the sleep, and the operation of the release sensor connection is controlled by the gesture, the operation is convenient, simple and fast, thereby effectively reducing
- the power consumption of the mobile terminal increases the standby power consumption of the mobile terminal, which is beneficial to improving the endurance capability of the mobile terminal.
- the embodiment of the invention further provides an electronic device, which may be a mobile terminal such as a smart phone or a tablet computer.
- the electronic device 300 includes a processor 301, a memory 302, a display screen 303, and a control circuit. 304.
- the processor 301 is electrically connected to the memory 302, the display screen 303, and the control circuit 304, respectively.
- the processor 301 is a control center of the electronic device 300, and connects various parts of the entire electronic device using various interfaces and lines, executes the electronic by running or loading an application stored in the memory 302, and calling data stored in the memory 302.
- the various functions and processing data of device 300 provide overall monitoring of electronic device 300.
- the processor 301 in the electronic device 300 loads the instructions corresponding to the process of one or more applications into the memory 302 according to the following steps, and is stored in the memory 302 by the processor 301.
- the application thus implementing various functions:
- connection interface is removed from the current active connection interface queue of the sensor to release the sensor connection corresponding to the connection interface.
- the processor 301 before receiving the step of operating the gesture on the touch screen, the processor 301 can also be configured to perform the following steps:
- the sensor release gesture receiving interface When it is detected that the electronic device is currently in a standby state, the sensor release gesture receiving interface is turned on; wherein the sensor releases a gesture receiving interface for receiving an operation gesture on the touch screen.
- the processor 301 may further be configured to perform the following steps:
- the setting parameter information of the sensor is added to the parameter queue to be restored.
- the processor 301 can also be configured to perform the following steps:
- the corresponding connection interface is newly added to the current active connection interface queue of the sensor to restore the corresponding sensor connection.
- the processor 301 can also be configured to perform the following steps:
- the corresponding connection interface is newly added to the current active connection interface queue of the sensor to restore the corresponding sensor connection.
- the processor 301 before receiving the step of operating the gesture on the touch screen, the processor 301 can also be configured to perform the following steps:
- the step of identifying the corresponding sensor type to be released according to the operation gesture specifically includes:
- the sensor type to be released corresponding to the operation gesture is identified.
- Memory 302 can be used to store applications and data.
- the application stored in the memory 302 contains instructions executable in the processor.
- Applications can form various functional modules.
- the processor 301 executes various functional applications and data processing by running an application stored in the memory 302.
- the display screen 303 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
- the control circuit 304 is electrically connected to the display screen 303 and can be used to control the display screen 303 to display information.
- the electronic device 300 may further include: a radio frequency circuit 305, an input unit 306, an audio circuit 307, a sensor 308, and a power source 309.
- the processor 301 is electrically connected to the radio frequency circuit 305, the input unit 306, the audio circuit 307, the sensor 308, and the power source 309, respectively.
- the radio frequency circuit 305 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
- the input unit 306 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
- the input unit 306 can include a fingerprint identification module.
- the audio circuit 307 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
- Electronic device 300 may also include at least one type of sensor 308, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel when the electronic device moves to the ear, and/or Backlighting.
- the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.;
- Other sensors such as a gyro sensor, a barometric pressure sensor, a humidity sensor, a temperature sensor, and an infrared sensor that can be configured for an electronic device are not described herein.
- Power source 309 is used to power various components of electronic device 300.
- the power source 309 can be logically coupled to the processor 301 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
- the electronic device 300 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
- the electronic device of the embodiment of the present invention receives an operation gesture on the touch screen, identifies a corresponding sensor type to be released according to the operation gesture, traverses the current active connection interface queue of the sensor, and determines that the connection interface in the queue corresponds to Whether the sensor meets the type of the sensor to be released; if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, the connection interface is moved out of the current active connection interface queue of the sensor to release the The sensor connection corresponding to the connection interface. That is, the present invention releases the sensor connection that meets the requirements by gesture control.
- the invention provides a solution for the user to quickly and effectively close the sensor connection, so that the electronic device can effectively get dormant, and the operation of the device is convenient, simple, and fast because the sensor connection is released by gesture control, thereby effectively reducing the electronic device.
- the power consumption increases the standby power consumption of the electronic device, which is beneficial to improving the endurance of the electronic device.
- the embodiment of the present invention further provides a storage medium, where the storage medium is stored with a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the sensor control method described in the foregoing method embodiment, for example, receiving on a touch screen.
- the operation gesture is performed; the corresponding sensor type to be released is identified according to the operation gesture; the traversal sensor is currently actively connected to the interface queue; and the sensor corresponding to the connection interface in the current active connection interface queue of the sensor is determined to meet the to-be-released a sensor type; if it is determined that the sensor corresponding to the connection interface meets the sensor type to be released, the connection interface is removed from the current active connection interface queue of the sensor to release the sensor connection corresponding to the connection interface.
- the sensor control method, device, electronic device and storage medium provided by the embodiments of the present invention belong to the same concept, and the specific implementation process thereof is described in the full text of the specification, and details are not described herein again.
- the program may be stored in a computer readable storage medium, and the storage medium may include: Read only memory (Read Only Memory, ROM), Random Access Memory (RAM), disk or CD.
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
Selon la présente invention, un procédé de commande de capteur consiste : à recevoir un geste de fonctionnement sur un écran tactile (S101) ; selon le geste de fonctionnement, à identifier un type de capteur correspondant à libérer (S102) ; à traverser une file d'attente d'interface de connexion active courante du capteur (S103) ; à déterminer si un capteur correspondant à une interface de connexion dans file d'attente satisfait le type de capteur à libérer (S104) ; si tel est le cas, à déplacer l'interface de connexion hors de la file d'attente d'interface de connexion active courante (S105) L'invention concerne également un appareil de commande de capteur, un support de stockage et un dispositif électronique.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610379944.3A CN106095306B (zh) | 2016-05-31 | 2016-05-31 | 一种移动终端的传感器控制方法、装置及移动终端 |
| CN201610379944.3 | 2016-05-31 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017206882A1 true WO2017206882A1 (fr) | 2017-12-07 |
Family
ID=57230617
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/086479 Ceased WO2017206882A1 (fr) | 2016-05-31 | 2017-05-29 | Procédé et appareil de commande de capteur, support de stockage et dispositif électronique |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106095306B (fr) |
| WO (1) | WO2017206882A1 (fr) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106095306B (zh) * | 2016-05-31 | 2019-03-26 | Oppo广东移动通信有限公司 | 一种移动终端的传感器控制方法、装置及移动终端 |
| CN109195210B (zh) * | 2018-08-28 | 2021-03-26 | 努比亚技术有限公司 | 一种省电方法、移动终端及计算机可读存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102457558A (zh) * | 2010-10-25 | 2012-05-16 | 中国移动通信集团公司 | 一种基于感知能力的终端和应用程序控制方法 |
| CN103546625A (zh) * | 2012-07-16 | 2014-01-29 | 中兴通讯股份有限公司 | 终端操作的控制方法及装置 |
| US9164542B2 (en) * | 2010-08-31 | 2015-10-20 | Symbol Technologies, Llc | Automated controls for sensor enabled user interface |
| CN105302274A (zh) * | 2015-09-22 | 2016-02-03 | 广东欧珀移动通信有限公司 | 一种传感器控制方法及装置 |
| CN106095306A (zh) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | 一种移动终端的传感器控制方法、装置及移动终端 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8704767B2 (en) * | 2009-01-29 | 2014-04-22 | Microsoft Corporation | Environmental gesture recognition |
| CN102354271A (zh) * | 2011-09-16 | 2012-02-15 | 华为终端有限公司 | 手势输入方法及移动终端、主机 |
| CN106648434B (zh) * | 2011-12-22 | 2020-09-04 | 阿里巴巴(中国)有限公司 | 通过拖拽手势控制应用界面的方法和装置 |
| US9389690B2 (en) * | 2012-03-01 | 2016-07-12 | Qualcomm Incorporated | Gesture detection based on information from multiple types of sensors |
| CN104298335B (zh) * | 2013-07-19 | 2017-11-21 | 贝壳网际(北京)安全技术有限公司 | 移动终端的应用程序进程清理方法、装置和移动终端 |
-
2016
- 2016-05-31 CN CN201610379944.3A patent/CN106095306B/zh not_active Expired - Fee Related
-
2017
- 2017-05-29 WO PCT/CN2017/086479 patent/WO2017206882A1/fr not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9164542B2 (en) * | 2010-08-31 | 2015-10-20 | Symbol Technologies, Llc | Automated controls for sensor enabled user interface |
| CN102457558A (zh) * | 2010-10-25 | 2012-05-16 | 中国移动通信集团公司 | 一种基于感知能力的终端和应用程序控制方法 |
| CN103546625A (zh) * | 2012-07-16 | 2014-01-29 | 中兴通讯股份有限公司 | 终端操作的控制方法及装置 |
| CN105302274A (zh) * | 2015-09-22 | 2016-02-03 | 广东欧珀移动通信有限公司 | 一种传感器控制方法及装置 |
| CN106095306A (zh) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | 一种移动终端的传感器控制方法、装置及移动终端 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106095306A (zh) | 2016-11-09 |
| CN106095306B (zh) | 2019-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2021107506A1 (fr) | Dispositif électronique permettant de fournir un service de réalité augmentée et son procédé de fonctionnement | |
| WO2014171705A1 (fr) | Procédé pour régler une zone d'affichage et dispositif électronique associé | |
| WO2018084628A1 (fr) | Appareil d'affichage et procédé de commande correspondant | |
| WO2020246822A1 (fr) | Dispositif électronique et procédé pour faire basculer un dispositif électronique entre un mode double veille et un mode simple veille | |
| WO2021075752A1 (fr) | Procédé de fourniture d'écran utilisant un affichage pliable et dispositif électronique pour le prendre en charge | |
| WO2018161572A1 (fr) | Procédé et appareil de commande de débit de trame de terminal mobile, support de stockage et dispositif électronique | |
| WO2018090823A1 (fr) | Procédé et système de protection de données de clé de partition de système et terminal | |
| WO2014035054A1 (fr) | Procédé et appareil de commande de fonction de zoom dans un dispositif électronique | |
| WO2021162320A1 (fr) | Dispositif électronique et procédé d'utilisation d'écran à grande vitesse d'un dispositif électronique | |
| WO2013129799A1 (fr) | Dispositif électronique et procédé de commande de dispositif électronique | |
| WO2018129972A1 (fr) | Procédé et appareil de traitement de charge, support de stockage, et dispositif électronique | |
| WO2018076864A1 (fr) | Procédé, appareil, support de stockage et dispositif électronique de synchronisation de données | |
| WO2017206879A1 (fr) | Procédé et appareil de traitement de programme d'application de terminal mobile, support de stockage, et dispositif électronique | |
| WO2015057013A1 (fr) | Procédé permettant à un dispositif portable d'afficher des informations par l'intermédiaire d'un dispositif pouvant être porté sur soi et son dispositif | |
| WO2020027562A1 (fr) | Appareil électronique permettant de commander l'affichage d'une interface d'entrée virtuelle dans un environnement d'une pluralité d'écrans de sortie et son procédé de fonctionnement | |
| WO2014035113A1 (fr) | Procédé de commande d'une fonction de toucher et dispositif électronique associé | |
| WO2017206865A1 (fr) | Procédé et appareil d'arrêt de programme d'application, support d'informations et dispositif électronique | |
| WO2021020801A1 (fr) | Dispositif électronique pliable dont la forme change en fonction d'un événement et procédé pour changer la forme d'un dispositif électronique pliable | |
| WO2017206892A1 (fr) | Procédé et appareil de traitement de capteur d'un terminal mobile, support d'informations et dispositif électronique | |
| WO2018129973A1 (fr) | Procédé et appareil de commande d'alimentation électrique, support d'informations, et dispositif électronique | |
| WO2017206867A1 (fr) | Procédé et appareil d'arrêt de capteurs, support d'informations, et dispositif électronique | |
| WO2019000466A1 (fr) | Procédé et appareil de reconnaissance faciale, support de stockage et dispositif électronique | |
| WO2018076453A1 (fr) | Procédé d'affichage d'application associée, dispositif et terminal mobile | |
| WO2015026197A1 (fr) | Procédé de mise en œuvre d'un mode d'économie d'énergie dans un dispositif électronique et dispositif électronique associé | |
| WO2017206877A1 (fr) | Procédé et appareil de déverrouillage de verrou d'activation, support d'informations, et dispositif électronique |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17805827 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17805827 Country of ref document: EP Kind code of ref document: A1 |