CN106445122B - Equipment state control method and device - Google Patents

Equipment state control method and device Download PDF

Info

Publication number
CN106445122B
CN106445122B CN201610811739.XA CN201610811739A CN106445122B CN 106445122 B CN106445122 B CN 106445122B CN 201610811739 A CN201610811739 A CN 201610811739A CN 106445122 B CN106445122 B CN 106445122B
Authority
CN
China
Prior art keywords
state
distance
preset
mobile device
user
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.)
Active
Application number
CN201610811739.XA
Other languages
Chinese (zh)
Other versions
CN106445122A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610811739.XA priority Critical patent/CN106445122B/en
Publication of CN106445122A publication Critical patent/CN106445122A/en
Application granted granted Critical
Publication of CN106445122B publication Critical patent/CN106445122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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

Abstract

The disclosure relates to a device state control method and device. The method comprises the following steps: detecting a current working state of the mobile equipment; if the current working state is a first preset state, controlling the front-mounted photosensitive lens to work in a first state, wherein the first state is used for representing a distance sensing working state; and if the current working state is a second preset state, controlling the front-mounted photosensitive lens to work in a second state, wherein the second state is used for representing the video image acquisition working state. The technical scheme can realize that the front camera device and the distance sensing device share the same front photosensitive lens, thereby improving the compactness of the plate arrangement of the mobile equipment and improving the appearance harmony and aesthetic feeling of the mobile equipment.

Description

Equipment state control method and device
Technical Field
The present disclosure relates to the field of mobile device technologies, and in particular, to a device state control method and apparatus.
Background
With the rapid development of mobile devices, the requirements of users for the functions that can be realized by the mobile devices and the appearance of the mobile devices are higher and higher, and then the realization of many functions is greatly related to the panel wiring and the appearance, for example: the realization of the functions of the distance sensor, the camera device and the receiver not only needs to be connected by a wiring board, but also needs to be provided with certain holes on the appearance of the equipment, so that the wiring compactness and the appearance harmony of the mobile equipment are greatly influenced along with the increase of the functions of the mobile equipment.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a device state control method and apparatus, so as to improve the wiring compactness and appearance harmony of a mobile device.
According to a first aspect of the embodiments of the present disclosure, there is provided a device state control method applied to a mobile device, where the mobile device includes a front-facing photosensitive lens, and the method may include:
detecting a current working state of the mobile equipment;
if the current working state is a first preset state, controlling the front-mounted photosensitive lens to work in a first state, wherein the first state is used for representing a distance sensing working state;
and if the current working state is a second preset state, controlling the front-mounted photosensitive lens to work in a second state, wherein the second state is used for representing the video image acquisition working state.
In an embodiment, the controlling the front-facing photosensitive lens to operate in the first state may include:
emitting a light pulse signal through the front photosensitive lens;
calculating the time for the reflected signal of the optical pulse signal to be reflected to the front photosensitive lens;
determining a distance between the mobile device and a user according to the time.
In an embodiment, the method may further comprise:
determining whether a distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
if the distance between the mobile device and the user is larger than a first preset distance threshold and smaller than a second preset distance threshold, executing an operation of unlocking the touch screen;
if the distance between the mobile equipment and the user is not larger than a first preset distance threshold value, executing the operation of locking the touch screen;
and if the distance between the mobile equipment and the user is larger than a second preset distance threshold value, refusing to execute the distance sensing operation.
In an embodiment, if the current working state is a second preset state, the controlling the front-facing photosensitive lens to work in the second state may include:
if the current working state is a second preset state, determining whether the distance between the mobile equipment and the user is greater than a second preset distance threshold value;
and if the distance between the mobile equipment and the user is greater than a second preset distance threshold value, controlling the front photosensitive lens to work in a second state.
In an embodiment, the method may further comprise:
and if the distance between the mobile equipment and the user is not greater than a second preset distance threshold value, controlling the front photosensitive lens to work in a third state, wherein the third state is used for representing a distance sensing working state and a video image acquisition working state.
In an embodiment, the method may further comprise:
and if the distance between the mobile equipment and the user is not greater than the second preset distance threshold, generating and pushing distance prompt information, wherein the distance prompt information is used for prompting that the distance is smaller than the second preset distance threshold.
According to a second aspect of the embodiments of the present disclosure, there is provided a device state control apparatus, applied to a mobile device, where the mobile device includes a front-facing photosensitive lens, and the apparatus state control apparatus may include:
the detection module is used for detecting the current working state of the mobile equipment;
the first control module is configured to control the front photosensitive lens to work in a first state if the detection module detects that the current working state is a first preset state, and the first state is used for representing a distance sensing working state;
the second control module is configured to control the front photosensitive lens to work in a second state if the detection module detects that the current working state is a second preset state, and the second state is used for representing a video image acquisition working state.
In one embodiment, the first control module may include:
an emission submodule configured to emit an optical pulse signal through the front-facing photosensitive lens;
a time calculation sub-module configured to calculate a time for a reflection signal of the light pulse signal emitted by the emission sub-module to be reflected to the front photographic lens;
a distance calculation submodule configured to determine a distance between the mobile device and a user according to the time calculated by the time calculation submodule.
In an embodiment, the apparatus may further comprise:
a first determination module configured to determine whether a distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
an unlocking module configured to perform an operation of unlocking the touch screen if the first determination module determines that the distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
a locking module configured to perform an operation of locking the touch screen if the first determination module determines that the distance between the mobile device and the user is not greater than a first preset distance threshold;
a rejection module configured to reject performing a distance sensing operation if the first determination module determines that the distance between the mobile device and the user is greater than a second preset distance threshold.
In one embodiment, the second control module includes:
a determining sub-module configured to determine whether a distance between the mobile device and the user is greater than a second preset distance threshold if the detection module detects that the current working state is a second preset state;
a control sub-module configured to control the front photosensitive lens to work in a second state if the determination sub-module determines that the distance between the mobile device and the user is greater than a second preset distance threshold.
In an embodiment, the apparatus may further comprise:
a third control module configured to control the front-facing photosensitive lens to operate in a third state if the determination sub-module determines that the distance between the mobile device and the user is not greater than a second preset distance threshold, where the third state is used for representing a distance sensing operating state and a video image capturing operating state.
In an embodiment, the apparatus may further comprise:
a prompt module configured to generate and prompt a distance prompt message if the determination submodule determines that the distance between the mobile device and the user is not greater than the second preset distance threshold, the distance prompt message being used to prompt that the distance is less than the second preset distance threshold.
According to a third aspect of the embodiments of the present disclosure, there is provided a device state control apparatus, applied to a mobile device, where the mobile device includes a front-facing photosensitive lens, and the apparatus state control apparatus may include:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
detecting a current working state of the mobile equipment;
if the current working state is a first preset state, controlling the front-mounted photosensitive lens to work in a first state, wherein the first state is used for representing a distance sensing working state;
and if the current working state is a second preset state, controlling the front-mounted photosensitive lens to work in a second state, wherein the second state is used for representing the video image acquisition working state.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the distance sensing device and the front camera device used for preventing mistaken touch in the mobile equipment share the same front photosensitive lens, when the current working state is detected to be the first preset state, such as a voice call state, the front photosensitive lens can be controlled to work in the distance sensing working state, and the current working state is the second preset state, such as a self-photographing mode, video communication and the like, the front photosensitive lens can be controlled to work in a video image acquisition state, so that the front camera device and the distance sensing device share the same front photosensitive lens, the board distribution compactness of the mobile equipment is improved, and the appearance harmony and the aesthetic feeling of the mobile equipment are improved because the two devices only need to be provided with one hole in the appearance of the mobile equipment.
And when the current working state of the mobile equipment is a first preset state, the front-mounted camera shooting photosensitive lens emits a light pulse signal, then the time of reflecting the reflected signal to the front-mounted photosensitive lens is calculated, the distance between the mobile equipment and a user can be calculated, and then the operation of locking the touch screen or unlocking the touch screen is determined to be executed, so that the function of preventing mistaken touch during voice communication is realized.
When the current working state of the mobile equipment is a second preset state, whether the distance between the mobile equipment and a user is greater than a second preset distance threshold value or not can be determined, and when the current working state of the mobile equipment is not greater than the second preset distance threshold value, the front photosensitive lens is controlled to work in a third state, namely, distance sensing and image acquisition can be completed simultaneously; in addition, because the user generally does not use the function of distance sensing when acquiring the video image, when the current working state of the mobile device is a second preset state and the distance between the mobile device and the user is not greater than a second preset distance threshold value and not greater than the second preset distance threshold value, prompt information is generated to remind the user that the operation of locking the touch screen or unlocking the touch screen may be triggered when the current distance is not greater than the second preset distance threshold value.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1A is a flow chart illustrating a method of device state control according to an exemplary embodiment.
Fig. 1B is a wiring diagram illustrating a front-facing image pickup device and a distance sensor using two photosensitive lenses according to an exemplary embodiment.
Fig. 1C is a schematic diagram of wiring for the front camera and the distance sensor to share one photosensitive lens according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of device state control according to an example embodiment.
Fig. 3 is a flowchart illustrating a process of controlling the front photosensitive lens to operate in the first state according to the second exemplary embodiment.
Fig. 4 is a block diagram illustrating a device state control apparatus according to an example embodiment.
Fig. 5 is a block diagram illustrating another device state control apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating still another device state control apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating an apparatus for device state control in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of devices and apparatus consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1A is a flowchart illustrating an apparatus state control method according to an exemplary embodiment, fig. 1B is a wiring diagram illustrating a front camera and a distance sensor using two photosensitive lenses according to an exemplary embodiment, and fig. 1C is a wiring diagram illustrating a front camera and a distance sensor sharing one photosensitive lens according to an exemplary embodiment; the device state control method can be applied to mobile devices (e.g., smart phones, tablet computers), and as shown in fig. 1A, the device state control apparatus includes the following steps:
in step 101, the current working state of the mobile device is detected, and step 102 and step 103 are executed.
In an embodiment, the current working state is used to indicate a state corresponding to a program currently running in the foreground of the mobile device, for example, the current working state is a voice call state, or the current working state is a video communication state.
In step 102, if the current working state is a first preset state, the front-mounted light sensing lens is controlled to work in a first state, and the first state is used for indicating a distance sensing working state.
In one embodiment, the first predetermined state may be used to indicate a voice call state.
In an embodiment, the voice call state may be a voice call state in a handset mode; in another embodiment, the voice call state may also be a voice call state in the headset mode; in yet another embodiment, the voice call state may also be a voice call state in a player mode.
In an embodiment, the flow of the operation of preventing the false touch during the voice call in the distance sensing optical state can be referred to the embodiment in fig. 3, which is not described in detail herein.
In step 103, if the current working state is a second preset state, the front-facing photosensitive lens is controlled to work in the second state, and the second state is used for indicating a video image capturing working state.
In an embodiment, the second preset state is used for representing a video image capturing state.
In one embodiment, the video image capture state may be a video call state; in one embodiment, the video image capture state may be a video communication state, such as a video communication function using WeChat, QQ, or other applications; in yet another embodiment, the video image capture state may also be a self-timer state.
In an exemplary scenario, as shown in fig. 1B, in the related art, in the mobile device 110, the front camera 111 uses the photosensitive lens 113 to complete the capturing operation of the video image, the distance sensor 112 uses the light hole 114 to complete the distance sensing operation, then there are wiring connections between the front camera 111 and the photosensitive lens 113 and between the front camera 111 and the device processor 115, and wiring connections are also needed between the distance sensor 112 and the light hole 114 and between the device processor 115, so that the wiring is complicated, and two holes need to be arranged on the appearance of the device, the coordination is poor, and the appearance of the device is affected; as shown in fig. 1C, the front camera 111 and the distance sensor 112 share a photosensitive lens 116, and when the operating state of the mobile device 110 is the first preset state, a light pulse signal can be sent through the photosensitive lens 116, and the distance sensor performs a false touch prevention operation; when the working state of the mobile device 110 is a second preset state, the photosensitive lens 116 may be controlled to capture an optical signal of a video image, and the operation of acquiring the video image is performed by the front-facing camera 111; of course, when the working state of the mobile device 110 is the second preset state, the distance between the mobile device 110 and the user may be determined by the distance sensor 112, and if the working state is smaller than the second preset distance, the distance sensing operation and the operation of acquiring the video image may be performed by the photosensitive lens 116 at the same time; from this, this disclosure has realized realizing two kinds of functions of mobile device by a sensitization camera lens, has reduced the wiring degree of difficulty, has improved the outward appearance harmony moreover.
In this embodiment, the same front-mounted photographic lens is shared by the distance sensing device and the front-mounted camera device for preventing accidental touch in the mobile device, when the current working state is detected to be the first preset state, for example, a voice call state, the front-mounted photographic lens can be controlled to work in the distance sensing working state, and the current working state is the second preset state, for example, a self-timer mode, video communication and the like, the front-mounted photographic lens can be controlled to work in a video image acquisition state, so that the front-mounted camera device and the distance sensing device share the same front-mounted photographic lens, the board arrangement compactness of the mobile device is improved, and the appearance coordination and the aesthetic feeling of the mobile device are improved because the two devices only need to be provided with one hole in the appearance of the mobile device.
In one embodiment, controlling the front-facing photosensitive lens to operate in the first state may include:
emitting a light pulse signal through a front photosensitive lens;
calculating the time for the reflected signal of the optical pulse signal to be reflected to the front photosensitive lens;
the distance between the mobile device and the user is determined from the time.
In an embodiment, the method may further comprise:
determining whether a distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
if the distance between the mobile device and the user is larger than a first preset distance threshold and smaller than a second preset distance threshold, executing an operation of unlocking the touch screen;
if the distance between the mobile equipment and the user is not larger than a first preset distance threshold value, executing the operation of locking the touch screen;
and if the distance between the mobile equipment and the user is larger than a second preset distance threshold value, refusing to execute the distance sensing operation.
In an embodiment, if the current working state is the second preset state, controlling the front-facing photosensitive lens to work in the second state may include:
if the current working state is a second preset state, determining whether the distance between the mobile equipment and the user is greater than a second preset distance threshold value;
and if the distance between the mobile equipment and the user is greater than a second preset distance threshold value, controlling the front photosensitive lens to work in a second state.
In an embodiment, the method may further comprise:
and if the distance between the mobile equipment and the user is not greater than a second preset distance threshold value, controlling the front photosensitive lens to work in a third state, wherein the third state is used for representing a distance sensing working state and a video image acquisition working state.
In an embodiment, the method may further comprise:
and if the distance between the mobile equipment and the user is not greater than a second preset distance threshold, generating and pushing distance prompt information, wherein the distance prompt information is used for prompting that the distance is smaller than the second preset distance threshold.
Please refer to the following embodiments for details of how to implement the device state control.
The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
FIG. 2 is a flow chart illustrating a method of device state control according to an exemplary embodiment; in this embodiment, the above apparatus provided in this disclosure is used to exemplarily describe the device state of the mobile device, and as shown in fig. 2, the method includes the following steps:
in step 201, the current operating state of the mobile device is detected.
In step 202, if the current working state is a first preset state, the front-facing photosensitive lens is controlled to work in a first state, where the first state is used to indicate a distance sensing working state.
In one embodiment, the description of step 202 can be found in the description of step 102 of the embodiment of fig. 1A and will not be described in detail here.
In step 203, if the current working state is a second preset state, it is determined whether the distance between the mobile device and the user is greater than a second preset distance threshold, if so, step 204 is executed, and if not, step 205 and/or step 206 are/is executed.
In one embodiment, the second predetermined distance threshold is a distance, such as 0.7 meters, at which the distance sensor cannot function, and the second predetermined distance threshold may be provided by the mobile device provider.
In an embodiment, it may be determined whether the distance between the mobile device and the user is greater than the second preset distance threshold through the distance sensor, as described in the embodiment of fig. 3, which will not be described in detail here.
In step 204, the front-end photosensitive lens is controlled to operate in the second state.
In one embodiment, the description of step 204 can be found in the description of step 103 of the embodiment of fig. 1A and will not be described in detail here.
In step 205, the front-end photosensitive lens is controlled to operate in a third state, where the third state is used to indicate a distance sensing operation state and a video image capturing operation state.
In step 206, distance prompt information is generated and pushed out, and the distance prompt information is used for prompting that the distance is smaller than a second preset distance threshold.
In an embodiment, when the distance between the mobile device and the user is less than the second preset distance threshold, the screen locking may be caused, and therefore, a distance prompt message may be generated to remind the user of the distance between the mobile device and the user.
In an embodiment, the distance prompt message may be a text prompt message, for example, a text message "the current location is dangerous" may be displayed on the interface of the camera device; in another embodiment, the distance cue information may be a light cue information, such as a light signal that releases glare or a light signal that releases a flash, etc.; in yet another embodiment, the distance cue may be a vibration cue, such as a one second vibration every 1 second; in yet another embodiment, the prompt message may be an audio prompt message, for example, a text voice message may be played, or a music prompt tone may be played; in still another embodiment, the prompt message may be a combination of any two or more of a text prompt message, an audio prompt message, a light prompt message, and a vibration prompt message.
In this embodiment, when the current working state of the mobile device is the second preset state, it may be determined whether the distance between the mobile device and the user is greater than the second preset distance threshold, and when the current working state is not greater than the second preset distance threshold, the front-facing photosensitive lens is controlled to work in the third state, that is, the distance sensing and the image acquisition may be completed simultaneously; in addition, because the user generally does not use the function of distance sensing when acquiring the video image, when the current working state of the mobile device is a second preset state and the distance between the mobile device and the user is not greater than a second preset distance threshold value and not greater than the second preset distance threshold value, prompt information is generated to remind the user that the operation of locking the touch screen or unlocking the touch screen may be triggered when the current distance is not greater than the second preset distance threshold value.
FIG. 3 is a flowchart illustrating controlling a front-facing photosensitive lens to operate in a first state according to a second exemplary embodiment; the present embodiment is exemplarily described how to control the front-facing photosensitive lens to operate in the first state, as shown in fig. 3, including the following steps:
in step 301, a light pulse signal is emitted through a front-facing photoscope.
In step 302, the time for the reflected signal of the optical pulse signal to be reflected to the front-facing photosensitive lens is calculated.
In step 303, the distance between the mobile device and the user is determined from the time.
In step 304, it is determined whether the distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold, if the distance between the mobile device and the user is greater than the first preset distance threshold and less than the second preset distance threshold, step 305 is performed, if the distance between the mobile device and the user is not greater than the first preset distance threshold, step 306 is performed, if the distance between the mobile device and the user is greater than the second preset distance threshold, step 307 is performed.
In an embodiment, the first preset distance threshold is used for determining whether to trigger the screen locking operation, and may be a smaller value, for example, 0.1 cm; in an embodiment, the second predetermined distance threshold is used to determine whether the distance sensor can perform the distance sensing function, and may be a relatively large value, for example, 0.7 m.
In an embodiment, the first preset distance threshold and the second preset distance threshold may be obtained by a mobile device provider according to a large amount of user usage statistics.
In step 305, an operation of unlocking the touch screen is performed.
In step 306, an operation to lock the touch screen is performed.
In step 307, the distance sensing operation is denied.
In this embodiment, when the current working state of the mobile device is the first preset state, the front-facing camera shooting photosensitive lens emits an optical pulse signal, and then the time for reflecting the reflected signal to the front-facing photosensitive lens is calculated to calculate the distance between the mobile device and the user, so as to determine whether to perform the operation of locking the touch screen or unlocking the touch screen, thereby implementing the function of preventing false touch during voice communication.
Fig. 4 is a block diagram of a device state control apparatus according to an exemplary embodiment, which is applied to a mobile device including a front photosensitive lens, and as shown in fig. 4, the device state control apparatus includes:
a detection module 410 for detecting the current working state of the mobile device;
a first control module 420 configured to control the front-facing photosensitive lens to operate in a first state if the detection module 410 detects that the current operating state is a first preset state, where the first state is used to indicate a distance sensing operating state;
and the second control module 430 is configured to control the front-facing photosensitive lens to operate in a second state if the detection module 410 detects that the current operating state is the second preset state, where the second state is used to indicate a video image capturing operating state.
Fig. 5 is a block diagram of another device state control apparatus according to an exemplary embodiment, and as shown in fig. 5, based on the embodiment shown in fig. 4, in an embodiment, the first control module 420 may include:
an emission submodule 421 configured to emit an optical pulse signal through the front-facing photosensitive lens;
a time calculation sub-module 422 configured to calculate a time for the reflected signal of the light pulse signal emitted by the emission sub-module 421 to be reflected to the front photosensitive lens;
a distance calculation sub-module 423 configured to determine a distance between the mobile device and the user from the time calculated by the time calculation sub-module 422.
In an embodiment, the apparatus may further comprise:
a first determining module 440 configured to determine whether a distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
an unlocking module 450 configured to perform an operation of unlocking the touch screen if the first determining module 440 determines that the distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
a locking module 460 configured to perform an operation of locking the touch screen if the first determining module 440 determines that the distance between the mobile device and the user is not greater than the first preset distance threshold;
a rejection module 470 configured to reject performing the distance sensing operation if the first determination module 440 determines that the distance between the mobile device and the user is greater than a second preset distance threshold.
Fig. 6 is a block diagram illustrating still another device state control apparatus according to an exemplary embodiment, and as shown in fig. 6, on the basis of the above embodiments shown in fig. 4 or fig. 5, in an embodiment, the second control module 430 includes:
the determining submodule 431 is configured to determine whether the distance between the mobile device and the user is greater than a second preset distance threshold value if the detection module detects that the current working state is a second preset state;
a control sub-module 432 configured to control the front photosensitive lens to operate in the second state if the determining sub-module 431 determines that the distance between the mobile device and the user is greater than the second preset distance threshold.
In an embodiment, the apparatus may further comprise:
a third control module 480 configured to control the front-facing photosensitive lens to operate in a third state if the determining submodule 431 determines that the distance between the mobile device and the user is not greater than the second preset distance threshold, the third state being indicative of a distance sensing operation state and a video image capturing operation state.
In an embodiment, the apparatus may further comprise:
a prompt module 490 configured to generate and push a distance prompt if the determination submodule 431 determines that the distance between the mobile device and the user is not greater than a second preset distance threshold, the distance prompt being for prompting that the distance is less than the second preset distance threshold.
The detailed implementation process of the functions and actions of each unit in the above device is described in the implementation process of the corresponding steps in the above device, and is not described herein again.
For the device embodiment, since it basically corresponds to the device embodiment, the relevant points can be referred to the partial description of the device embodiment. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Fig. 7 is a block diagram illustrating an apparatus for device state control in accordance with an exemplary embodiment. For example, the apparatus 700 may be a mobile device, such as a tablet, a smartphone, or the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the apparatus described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 can include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the device 700. Examples of such data include instructions, messages, pictures, etc. for any application or device operating on device 700. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of apparatus 700, the change in position of apparatus 700 or a component of apparatus 700, the presence or absence of user contact with apparatus 700, the orientation or acceleration/deceleration of apparatus 700, and the change in temperature of apparatus 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a distance sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. Device 700 may access a wireless network based on a communication standard, such as WIFI, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the following methods:
detecting a current working state of the mobile equipment;
if the current working state is a first preset state, controlling the front-mounted photosensitive lens to work in a first state, wherein the first state is used for representing a distance sensing working state;
and if the current working state is a second preset state, controlling the front-mounted photosensitive lens to work in a second state, wherein the second state is used for representing the video image acquisition working state.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the apparatus 700 to perform the apparatus is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. An apparatus state control method applied to a mobile apparatus, wherein the mobile apparatus includes a front-facing photosensitive lens, and the front-facing photosensitive lens is shared by a distance sensor and a front-facing camera of the mobile apparatus, the method comprising:
detecting a current working state of the mobile equipment;
if the current working state is a first preset state, controlling the front-mounted photosensitive lens to work in a first state, wherein the first state is used for representing a distance sensing working state;
and if the current working state is a second preset state, controlling the front-mounted photosensitive lens to work in a second state, wherein the second state is used for representing the video image acquisition working state.
2. The method of claim 1, wherein controlling the front-facing photosensitive lens to operate in a first state comprises:
emitting a light pulse signal through the front photosensitive lens;
calculating the time for the reflected signal of the optical pulse signal to be reflected to the front photosensitive lens;
determining a distance between the mobile device and a user according to the time.
3. The method of claim 2, further comprising:
determining whether a distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
if the distance between the mobile device and the user is larger than a first preset distance threshold and smaller than a second preset distance threshold, executing an operation of unlocking the touch screen;
if the distance between the mobile equipment and the user is not larger than a first preset distance threshold value, executing the operation of locking the touch screen;
and if the distance between the mobile equipment and the user is larger than a second preset distance threshold value, refusing to execute the distance sensing operation.
4. The method according to claim 1, wherein if the current working state is a second preset state, controlling the front-facing photosensitive lens to work in the second state comprises:
if the current working state is a second preset state, determining whether the distance between the mobile equipment and the user is greater than a second preset distance threshold value;
and if the distance between the mobile equipment and the user is greater than a second preset distance threshold value, controlling the front photosensitive lens to work in a second state.
5. The method of claim 4, further comprising:
and if the distance between the mobile equipment and the user is not greater than a second preset distance threshold value, controlling the front photosensitive lens to work in a third state, wherein the third state is used for representing a distance sensing working state and a video image acquisition working state.
6. The method of claim 4, further comprising:
and if the distance between the mobile equipment and the user is not greater than a second preset distance threshold, generating and pushing distance prompt information, wherein the distance prompt information is used for prompting that the distance is smaller than the second preset distance threshold.
7. An apparatus state control device, applied to a mobile device, wherein the mobile device includes a front-facing lens, and the front-facing lens is shared by a distance sensor and a front-facing camera of the mobile device, the apparatus includes:
the detection module is used for detecting the current working state of the mobile equipment;
the first control module is configured to control the front photosensitive lens to work in a first state if the detection module detects that the current working state is a first preset state, and the first state is used for representing a distance sensing working state;
the second control module is configured to control the front photosensitive lens to work in a second state if the detection module detects that the current working state is a second preset state, and the second state is used for representing a video image acquisition working state.
8. The apparatus of claim 7, wherein the first control module comprises:
an emission submodule configured to emit an optical pulse signal through the front-facing photosensitive lens;
a time calculation sub-module configured to calculate a time for a reflection signal of the light pulse signal emitted by the emission sub-module to be reflected to the front photographic lens;
a distance calculation submodule configured to determine a distance between the mobile device and a user according to the time calculated by the time calculation submodule.
9. The apparatus of claim 8, further comprising:
a first determination module configured to determine whether a distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
an unlocking module configured to perform an operation of unlocking the touch screen if the first determination module determines that the distance between the mobile device and the user is greater than a first preset distance threshold and less than a second preset distance threshold;
a locking module configured to perform an operation of locking the touch screen if the first determination module determines that the distance between the mobile device and the user is not greater than a first preset distance threshold;
a rejection module configured to reject performing a distance sensing operation if the first determination module determines that the distance between the mobile device and the user is greater than a second preset distance threshold.
10. The apparatus of claim 7, wherein the second control module comprises:
a determining sub-module configured to determine whether a distance between the mobile device and a user is greater than a second preset distance threshold if the detection module detects that the current working state is a second preset state;
a control sub-module configured to control the front photosensitive lens to work in a second state if the determination sub-module determines that the distance between the mobile device and the user is greater than a second preset distance threshold.
11. The apparatus of claim 10, further comprising:
a third control module configured to control the front-facing photosensitive lens to operate in a third state if the determination sub-module determines that the distance between the mobile device and the user is not greater than a second preset distance threshold, where the third state is used for representing a distance sensing operating state and a video image capturing operating state.
12. The apparatus of claim 10, further comprising:
a prompt module configured to generate and prompt a distance prompt message if the determination submodule determines that the distance between the mobile device and the user is not greater than a second preset distance threshold, the distance prompt message being used to prompt that the distance is less than the second preset distance threshold.
13. An apparatus state control device, applied to a mobile device, wherein the mobile device includes a front-facing lens, and the front-facing lens is shared by a distance sensor and a front-facing camera of the mobile device, the apparatus includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
detecting a current working state of the mobile equipment;
if the current working state is a first preset state, controlling the front-mounted photosensitive lens to work in a first state, wherein the first state is used for representing a distance sensing working state;
and if the current working state is a second preset state, controlling the front-mounted photosensitive lens to work in a second state, wherein the second state is used for representing the video image acquisition working state.
CN201610811739.XA 2016-09-08 2016-09-08 Equipment state control method and device Active CN106445122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610811739.XA CN106445122B (en) 2016-09-08 2016-09-08 Equipment state control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610811739.XA CN106445122B (en) 2016-09-08 2016-09-08 Equipment state control method and device

Publications (2)

Publication Number Publication Date
CN106445122A CN106445122A (en) 2017-02-22
CN106445122B true CN106445122B (en) 2020-06-05

Family

ID=58164549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610811739.XA Active CN106445122B (en) 2016-09-08 2016-09-08 Equipment state control method and device

Country Status (1)

Country Link
CN (1) CN106445122B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107734243A (en) * 2017-11-28 2018-02-23 信利光电股份有限公司 A kind of cam device and electronic equipment
CN107958273B (en) * 2017-12-15 2021-08-03 北京小米移动软件有限公司 Volume adjusting method and device and storage medium
WO2020097748A1 (en) * 2018-11-12 2020-05-22 深圳市汇顶科技股份有限公司 Optical sensing apparatus and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103282859A (en) * 2010-12-27 2013-09-04 索尼电脑娱乐公司 Gesture operation input system and gesture operation input method
CN104407963A (en) * 2014-11-10 2015-03-11 集怡嘉数码科技(深圳)有限公司 Distance control method and terminal device
CN105681553A (en) * 2016-01-06 2016-06-15 惠州Tcl移动通信有限公司 Handheld terminal and method for preventing misoperation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101330810B1 (en) * 2012-02-24 2013-11-18 주식회사 팬택 User device for recognizing gesture and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103282859A (en) * 2010-12-27 2013-09-04 索尼电脑娱乐公司 Gesture operation input system and gesture operation input method
CN104407963A (en) * 2014-11-10 2015-03-11 集怡嘉数码科技(深圳)有限公司 Distance control method and terminal device
CN105681553A (en) * 2016-01-06 2016-06-15 惠州Tcl移动通信有限公司 Handheld terminal and method for preventing misoperation

Also Published As

Publication number Publication date
CN106445122A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106797416B (en) Screen control method and device
KR102045232B1 (en) Gesture identification methods, devices, programs and recording media
EP3301551B1 (en) Electronic device for identifying touch
EP3151117A1 (en) Method and device for delaying information broadcasting
US10915155B2 (en) Method and device for controlling state of terminal
EP3147802B1 (en) Method and apparatus for processing information
CN106354504B (en) Message display method and device
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
EP3232301A1 (en) Mobile terminal and virtual key processing method
EP3176984B1 (en) Method and device for processing information
CN109862169B (en) Electronic equipment control method, device and storage medium
CN106547462B (en) Photographing control method and device and mobile terminal
CN108040213B (en) Method and apparatus for photographing image and computer-readable storage medium
CN106445122B (en) Equipment state control method and device
CN106599858B (en) Fingerprint identification method and device and electronic equipment
CN109769191B (en) Audio output detection method and device and electronic equipment
CN107656616B (en) Input interface display method and device and electronic equipment
CN110166618B (en) Screen control method and device
CN107682101B (en) Noise detection method and device and electronic equipment
US20200106936A1 (en) Full screen terminal, operation control method, and device based on full screen terminal
CN108319899B (en) Fingerprint identification method and device
CN108874450B (en) Method and device for waking up voice assistant
CN107357643B (en) Application calling method and device and computer readable storage medium
CN109922203B (en) Terminal, screen off method and device
CN107402677B (en) Method and device for recognizing finger lifting in touch operation and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant