CN107329572B - Control method, mobile terminal and computer-readable storage medium - Google Patents

Control method, mobile terminal and computer-readable storage medium Download PDF

Info

Publication number
CN107329572B
CN107329572B CN201710524109.9A CN201710524109A CN107329572B CN 107329572 B CN107329572 B CN 107329572B CN 201710524109 A CN201710524109 A CN 201710524109A CN 107329572 B CN107329572 B CN 107329572B
Authority
CN
China
Prior art keywords
mobile terminal
light sensor
sensor
light
control method
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
CN201710524109.9A
Other languages
Chinese (zh)
Other versions
CN107329572A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710524109.9A priority Critical patent/CN107329572B/en
Publication of CN107329572A publication Critical patent/CN107329572A/en
Application granted granted Critical
Publication of CN107329572B publication Critical patent/CN107329572B/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
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V8/00Prospecting or detecting by optical means
    • G01V8/10Detecting, e.g. by using light barriers
    • 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 invention discloses a control method, a mobile terminal and a computer readable storage medium, wherein the method comprises the following steps: acquiring the current running state of the mobile terminal; giving a corresponding function to the at least one light sensor according to the current running state of the mobile terminal; the infrared light emitter of the at least one light sensor emits infrared light to the outside of the mobile terminal along the direction vertical to the side edge of the mobile terminal; the infrared light sensor detects the flux information of the received infrared light; determining that there is a control operation for the at least one light sensor when the flux information conforms to a preset variation rule; and executing the corresponding function of the at least one light sensor according to the control operation. By adopting the invention, the original entity key can be replaced, the inconvenience caused by the loss of the original mechanical case is reduced, and richer operation experience is provided.

Description

Control method, mobile terminal and computer-readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a control method, a mobile terminal, and a computer-readable storage medium.
Background
At this stage, with the continuous development of mobile terminals, the control modes of the mobile terminals are increasing. Generally, a mobile terminal has a touch screen for receiving touch operations, and at the same time, one or more physical keys are disposed on a side of the terminal for performing other operations, such as power, volume, etc., and one or more physical keys are disposed below a front panel of the mobile terminal, such as a Home key, a return key, a menu key, etc.
When the entity key is adopted, the body is inconvenient to waterproof because the entity key and the body are provided with gaps, and the attractiveness of the terminal is also influenced by the protrusion of the entity key. Meanwhile, the entity keys on the front panel can also reduce the screen occupation ratio of the front panel of the mobile terminal due to larger occupied space.
Disclosure of Invention
The invention mainly aims to provide a control method of a sensor key, a mobile terminal and a computer readable storage medium, and aims to solve the problems in the prior art.
In order to achieve the above object, a first aspect of embodiments of the present invention provides a control method applied to a mobile terminal, where a side of the mobile terminal includes at least one light sensor, and the light sensor includes an infrared light emitter and an infrared light sensor, and the method includes:
acquiring the current running state of the mobile terminal;
giving a corresponding function to the at least one light sensor according to the current running state of the mobile terminal;
the infrared light emitter of the at least one light sensor emits infrared light to the outside of the mobile terminal along the direction vertical to the side edge of the mobile terminal;
the infrared light sensor detects the flux information of the received infrared light;
determining that there is a control operation for the at least one light sensor when the flux information conforms to a preset variation rule;
and executing the corresponding function of the at least one light sensor according to the control operation.
Optionally, the giving the at least one light sensor a corresponding function according to the current operation state of the mobile terminal includes:
acquiring an instruction in a preset instruction set according to the current running state of the mobile terminal;
associating the acquired instruction with the at least one light sensor.
Optionally, the preset change rule includes:
the flux information is increased to a first threshold value and then decreased from the first threshold value to a second threshold value.
Optionally, a sensor array formed by arranging a plurality of light sensors is disposed on a side of the mobile terminal, and before the corresponding function is given to the at least one light sensor, the method further includes:
acquiring a suspension moving track of a finger of a user;
when the acquired suspension movement track of the user finger meets a preset condition, acquiring the position and coordinate information of the suspension movement track;
and generating a starting instruction according to the position and the coordinate information of the suspended moving track, and starting at least one corresponding light sensor in the sensor array on the side of the mobile terminal.
Optionally, the step of generating a start instruction according to the position and the coordinate information of the suspended moving track, and starting at least one corresponding light sensor in the sensor array on the side of the mobile terminal includes:
and starting at least one corresponding light sensor in the sensor array on the side surface of the mobile terminal according to the intersection point of the extension line of the suspended moving track and the side edge of the mobile terminal.
Optionally, the opening of the at least one corresponding light sensor in the sensor array on the side of the mobile terminal according to the intersection point of the extension line of the suspended moving track and the side of the mobile terminal includes:
and if the intersection point of the extension line of the suspended moving track and the side edge of the mobile terminal is positioned between two adjacent light sensors in the sensor array on the side edge of the mobile terminal, starting the two adjacent light sensors in the sensor array on the side edge of the mobile terminal.
Optionally, the method further comprises the steps of:
and prompting the corresponding associated instruction of the at least one light sensor through a floating window, wherein the floating window comprises at least one preset instruction set.
Optionally, the method further comprises the steps of:
and acquiring a touch instruction of the floating window, and giving an instruction corresponding to the touch instruction to the at least one sensor key.
A second aspect of an embodiment of the present invention provides a mobile terminal, including at least one light sensor, a memory, and a processor;
the memory configured to store a control method program;
the processor, when being configured to execute the control method program, is configured to implement the steps of the control method according to any one of claims 1 to 8.
A second aspect of embodiments of the present invention provides a computer-readable storage medium having stored thereon a control method program that, when executed by a processor, implements the steps of the control method according to any one of claims 1 to 8.
According to the control method of the sensor key, the mobile terminal and the computer readable storage medium provided by the embodiment of the invention, the sensor is adopted to realize the key function, the original entity key can be replaced, the inconvenience caused by the loss of the original mechanical case is reduced, the key occupation of the front panel is reduced, the terminal is more attractive, and more abundant operation experience can be provided.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an implementation manner of a mobile terminal according to an embodiment of the present invention.
Fig. 4 is a side view of an embodiment of a mobile terminal according to an embodiment of the present invention.
Fig. 5 is a flowchart illustrating an implementation manner of a control method according to an embodiment of the present invention.
Fig. 6 is a flowchart illustrating an embodiment of turning on a light sensor in a control method according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of another implementation manner of the mobile terminal according to the embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a sensor array in a mobile terminal according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a sensor array in a mobile terminal according to an embodiment of the present invention, corresponding to a suspended movement track.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Optionally, the sensor 105 may be a light sensor, and the light sensor may be a sensor key, instead of a physical key in the prior art.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Fig. 3 is a schematic structural diagram of an implementation manner of a mobile terminal according to an embodiment of the present invention. The right side of the mobile terminal 50 is provided with light sensors 51, 52, 53, which in this embodiment use infrared light. It is understood that the number of the light sensors may be multiple, and 3 are illustrated in fig. 3, and those skilled in the art can understand that the number of the light sensors may be set according to actual needs, and the embodiment of the present invention is not limited thereto. In this embodiment, the light sensor is all set up at mobile terminal's side to can replace original entity button (like volume key, power key) and the home key of positive panel, return key, menu key etc. reduce the inconvenience that original mechanical case loss brought, and, the button that reduces the front panel occupies, can make the terminal more pleasing to the eye, and can provide abundanter operation experience. Meanwhile, the light ray sensor in the embodiment has no bulge on the side edge, so that abrasion caused by long-term use is avoided, and the light ray sensor can be integrally packaged in the shell to enhance the waterproof performance of the mobile phone. In other embodiments, the light sensor may also be disposed on the back, top, or bottom of the mobile terminal.
In the embodiment of the invention, the light sensor comprises an infrared light emitter and an infrared light sensor, the infrared light emitter emits infrared light to the outside, when the outside of the light sensor is not shielded or is not contacted by a finger, the flux of the infrared light reaching the infrared light sensor after reflection is lower (until part of the infrared light reflected by the shell in a diffuse way exists), when the finger is contacted with the key of the sensor, the flux of the infrared light detected by the infrared light sensor is increased due to the fact that the finger shields the infrared light, at the moment, the change situation of the flux of the infrared light detected by the infrared light sensor can be used for judging whether a user is contacted with the light sensor, and therefore, the function of replacing a solid key can be realized.
Fig. 4 is a side view of an embodiment of a mobile terminal according to the present invention. As shown, the light sensors 51, 52, 53 are located at the side of the mobile terminal 50, and form an integrated structure with the side casing, and the light sensor surface may adopt a corresponding coating or pattern, which may make the mobile terminal more beautiful.
Fig. 5 is a flowchart illustrating an implementation manner of the control method according to an embodiment of the present invention. The control method is applied to the mobile terminal, the side of the mobile terminal comprises at least one light sensor, and the light sensor comprises an infrared light emitter and an infrared light sensor. The control method comprises the following steps:
step S501: and acquiring the current running state of the mobile terminal.
Specifically, the method includes the steps of firstly detecting an operation state of the mobile terminal, wherein the operation state includes: the power-on state, the screen state, the application program running state and the like.
The power-on and power-off state comprises the following steps: starting up and shutting down; the screen states include: locking and lighting the screen; the application program running state comprises information of the application program running in the foreground, information of the application program running in the background and the like.
Step S502: and giving a corresponding function to the at least one light sensor according to the current running state of the mobile terminal.
Specifically, according to the current running state of the mobile terminal, firstly, an instruction in a preset instruction set is obtained; associating the acquired instruction with the at least one light sensor. The functions assigned are different depending on the operating state. For example: when the mobile terminal is in a power-off state, the instruction can be power-on; when the mobile terminal is in the screen locking state, the instruction can be a bright screen; when the screen locking music is played, the instruction can be volume adjustment; when the terminal is in a specific application program interface, the instruction can be to return to the upper level, return to the desktop and the like.
The relation between the instruction and the running state can be preset corresponding relation, can also be set by a user, and can also be automatically generated according to the use condition of the user.
In other embodiments, control data in different operating states may also be acquired from a server, where the control data refers to an operation instruction used by a user in a normal operation in the operating state, and the server may be a server set by a manufacturer and configured to receive operation information uploaded by multiple users; generating a corresponding function set according to the control data; and selecting a matched function from the instruction set according to the current running state, and giving the function to the at least one light sensor. In the embodiment, the most possible functions of the user are analyzed according to the current running state through the big data analysis mode, and the functions are given to the light sensor, so that the intelligent operation is more realized.
Step S503: and the infrared light emitter of the at least one light sensor emits infrared rays to the outside of the mobile terminal along the direction vertical to the side edge of the mobile terminal.
In this embodiment, the light sensor may be located at a side of the terminal, or may be located at a back, a top, or a bottom of the terminal.
Step S504: the infrared sensor detects the flux information of the received infrared rays.
In this embodiment, the received infrared ray refers to an infrared ray emitted by the infrared emitter and reflected by the casing in a diffuse manner or by being blocked by another object.
Step S505: determining that there is a control operation for the at least one light sensor when the flux information conforms to a preset variation rule;
in this embodiment, the control operation of the photosensor is considered to be performed if the flux information is not detected to change, and the control operation is considered to be performed only if the flux information satisfies a predetermined change rule.
Specifically, the change rule includes that the intensity information is increased to a first threshold value and then decreased from the first threshold value to a second threshold value. Wherein the first threshold and the second threshold may be set in advance. The first threshold value is the infrared intensity detected by the infrared sensor when the finger presses the sensor key; the second threshold is the infrared flux detected by the infrared sensor when the light sensor is not blocked. In order to reduce the occurrence of the false touch, in this embodiment, when the light sensor is operated, because the light sensor is an optical sensor, when a finger of a user or another object is placed on the light sensor, the infrared light sensor detects a change of the infrared flux, and when the finger of the user leaves after being placed, the infrared light sensor detects a change again, and at this time, the light sensor determines the whole action as an instruction and executes an operation corresponding to the instruction. That is, in order to prevent the light sensor from being touched by mistake, the light sensor is not placed to determine the touch action, but is taken away after being placed to determine the touch action, so that the touch light sensor can be recognized more accurately, and the occurrence of the touch by mistake can be reduced.
In other embodiments, when the number of the light sensors is two or more, the flux information at this time is the flux information of the plurality of light sensors. Here, two examples are taken, and the flux information includes first flux information of the first light sensor and second flux information of the second light sensor. The change rule of the flux information further includes: the first flux information is increased to a first threshold value and then reduced to a second threshold value from the first threshold value; and in a preset time interval, the second flux information is increased to a first threshold value and then is reduced to a second threshold value from the first threshold value. In this embodiment, the change rule corresponds to a sliding operation on two or more light sensors, so that various control modes such as parameter adjustment, volume control, and the like can be realized. In order to avoid the mistaken touch on the side when the user holds the mobile terminal at ordinary times, in the embodiment, the sliding is recognized by sensing the flux of the light sensors, the control operation is determined only by satisfying the lifting action after the sliding, and meanwhile, the flux change detected by the two light sensors is in the preset time interval, so that the generation of the mistaken touch can be reduced, and the user experience is improved.
Step S506: and executing the function corresponding to the sensor key according to the control operation.
In the present embodiment, after it is determined that there is a control operation, a function corresponding to the light sensor is executed according to the control operation.
According to the control method provided by the embodiment of the invention, the key function is realized by adopting the sensor, the original entity key can be replaced, the inconvenience caused by the loss of the original mechanical case is reduced, the key occupation of the front panel is reduced, the terminal is more attractive, and more abundant operation experience can be provided.
Fig. 6 is a schematic flow chart illustrating a process of turning on the light sensor in the control method according to the embodiment of the invention. Compared with the embodiment shown in fig. 5, in this embodiment, the side of the mobile terminal is provided with a sensor array formed by arranging a plurality of light sensor keys, because there are more light sensors, in order to save power consumption, under a normal condition, the light sensor is in a sleep state, and only when receiving a start instruction, the light sensor is turned on.
The method comprises the following steps:
in step S601, a suspended movement trajectory of the user' S finger is obtained.
Specifically, the suspension movement track of the finger can be acquired through a proximity sensor or a front-facing camera. The proximity sensor may be disposed directly below a screen of the mobile terminal. As shown in fig. 8 to 10, the mobile terminal includes a proximity sensor 43 disposed just below the screen, and a sensor array 44 formed by arranging a plurality of light sensors and disposed at a side of the mobile terminal.
In this embodiment, the proximity sensor 43 may be an inductive sensor, and different current levels can be generated according to the distance between the finger and the inductive sensor, so as to perform recognition.
In other embodiments, the proximity sensor 43 may also be a capacitive sensor.
In general, when a user uses a mobile terminal, the user generally performs a click operation or a slide operation of a screen with the thumb regardless of one-handed holding or two-handed holding. When the proximity sensor detects that the finger is in a suspension state, the suspension moving track of the finger is detected.
In step S602, when the acquired suspension movement trajectory of the user' S finger meets a preset condition, the position and coordinate information of the suspension movement trajectory are acquired.
In this embodiment, when the motion trajectory of a finger (e.g., the thumb of the end user) is detected as moving from the center of the screen to the right (or left) of the screen, it is determined that the predetermined condition is met.
In step S603, a start instruction is generated according to the position and coordinate information of the suspended moving track, and the corresponding at least one light sensor in the sensor array on the side of the mobile terminal is started.
As shown in fig. 10, when it is detected that the track of a finger (e.g. the thumb of the terminal user) is shown as a, it can be considered that the user wants to move the finger to press the right key at this time, and the specific position and coordinate information of the track a can be obtained by the proximity sensor 43, and then the light sensor x on the side of the mobile terminal is turned on according to the specific position and coordinate information of the track a.
Due to the fact that the sizes of hands of different users are different, when the users operate the mobile terminal, the hanging movement tracks are greatly different. As shown in fig. 10, there are three different tracks a, b, and c, and at this time, different light sensors are correspondingly turned on according to the positions and coordinate information of the different tracks. Trace a may correspond to turning on light sensor x, trace b may correspond to turning on light sensor y, and trace c may correspond to turning on light sensor z.
In another embodiment, the corresponding at least one light sensor in the sensor array on the side of the mobile terminal may be turned on according to an intersection point of the extension line of the suspended moving track and the side of the mobile terminal.
Referring again to fig. 10, when the intersection point of the right extension line and the right side corresponding to the track is located between two light sensors (e.g., between the light sensor x and the light sensor y), two light sensors (the light sensor x and the light sensor y) or one light sensor (the light sensor x or the light sensor y) may be turned on.
In this embodiment, the corresponding at least one light sensor in the sensor array on the side of the mobile terminal may be turned on according to an intersection point of the extension line of the suspended moving track and the side of the mobile terminal.
Specifically, if the intersection point of the extension line of the suspended moving track and the side face of the mobile terminal is located between two adjacent light sensors in the sensor array on the side face of the mobile terminal; two adjacent light sensors in the sensor array on the side of the mobile terminal are turned on.
Further, in this embodiment, the method may further include the steps (not shown in the drawings): and prompting the position of the turned-on light sensor. It is noted that this step may be performed or executed after step 34 or step 342.
Specifically, the user may be prompted by an LED or other form at the side of the mobile terminal for the location of the sensor key that is turned on.
Referring to fig. 8-10, the sensor array is illustrated on the right side of the screen:
the terminal 40 includes a sensor array 44, and the sensor array 44 includes a plurality of light sensors (shown at 441 in fig. 9 and at x, y, and z in fig. 10), each of which is capable of operating independently and is distributed on the right side of the terminal from top to bottom, and each of the light sensors is in a sleep state.
The terminal 40 further comprises a proximity sensor 43, the area of the proximity sensor 43 is matched with the length of the sensor array 44, the width of the proximity sensor is 2cm-5cm (mainly depending on the size of the mobile terminal screen), the proximity sensor can be an inductive sensor or a capacitive sensor, and the detection of the hanging movement track of the finger on the front panel of the mobile terminal can be realized.
When the motion track of a finger (such as the thumb of an end user) is detected to move from the center of the screen to the right side of the screen, the preset condition is determined to be met. As shown in fig. 8, when the trace of the finger is detected as a, it can be considered that the user wants to move the finger to press the right button at this time, and thus the user can be considered to be in accordance with the predetermined condition. At this time, the specific position and coordinate information of the trajectory a are acquired. Wherein the coordinate information comprises an intersection point x of an extension line of the track a on the right side of the screen and the right side.
Due to the fact that the sizes of hands of different users are different, when the users operate the mobile terminal, the hanging movement tracks are greatly different, as shown in fig. 8, three tracks including a track a, a track b and a track c exist, and at the moment, different light sensors are correspondingly started according to the positions and coordinate information of the different tracks. Trace a may correspond to turning on light sensor x, trace b may correspond to turning on light sensor y, and trace c may correspond to turning on light sensor z. When the intersection point of the right extension line and the right side edge corresponding to the track is positioned between the two light ray sensors, the two light ray sensors can be started.
After the light sensor is started, corresponding functions are given to the started light sensor, and the mode of the instruction set can be preset. After the light sensor is started, a corresponding instruction is obtained according to the running state, the instruction is associated with the information corresponding to the light sensor, and when a user contacts the light sensor, a corresponding function can be immediately executed.
For example: when the mobile terminal is in a power-off state, after the light sensor on the right side of the mobile terminal is started, the power-on function of the started light sensor is given in a preset instruction set mode, and when a user contacts the light sensor, the mobile terminal can be immediately started.
According to the control method of the light sensor, the sensor is adopted to realize the key function, the original entity key can be replaced, inconvenience caused by loss of an original mechanical case is reduced, the key occupation of the front panel is reduced, the terminal is more attractive, and more abundant operation experience can be provided.
The second embodiment of the present invention as shown in fig. 7 provides a mobile terminal 40, which includes at least one light sensor, a memory 41 and a processor 42.
The memory 41 configured to store a control method program;
the processor 42 is configured to implement the steps of the control method when executing the control method program.
Specifically, the processor 42 implements the following steps when executing the control method program:
acquiring the current running state of the mobile terminal;
giving a corresponding function to the at least one light sensor according to the current running state of the mobile terminal;
the infrared light emitter of the at least one light sensor emits infrared light to the outside of the mobile terminal along the direction vertical to the side edge of the mobile terminal;
the infrared light sensor detects the flux information of the received infrared light;
determining that there is a control operation for the at least one light sensor when the flux information conforms to a preset variation rule;
and executing the corresponding function of the at least one light sensor according to the control operation. Optionally, the obtaining, by the processor 42, the current operation state of the mobile terminal includes:
and detecting the on-off state, the screen state and the application program running state of the mobile terminal.
Optionally, the processor 42 assigns corresponding functions to the at least one light sensor according to the current operation state of the mobile terminal, including:
acquiring control data in different running states from a server;
generating a corresponding function set according to the control data;
and selecting a matched function from the instruction set according to the current running state, and giving the function to the at least one light sensor.
Optionally, when the number of the light sensors is one, the preset change rule includes:
the flux information is increased to a first threshold value and then decreased from the first threshold value to a second threshold value.
Optionally, when the number of the light sensors is two, the flux information includes first flux information of the first light sensor and second flux information of the second light sensor, and the preset variation rule includes:
the first flux information is increased to a first threshold value and then reduced to a second threshold value from the first threshold value; and in a preset time interval, the second flux information is increased to a first threshold value and then is reduced to a second threshold value from the first threshold value.
Optionally, in other embodiments, a sensor array formed by arranging a plurality of light sensors is disposed at a side of the mobile terminal, and the processor 42 is further configured to:
acquiring a suspension moving track of a finger of a user;
when the acquired suspension movement track of the user finger meets a preset condition, acquiring the position and coordinate information of the suspension movement track;
and generating a starting instruction according to the position and the coordinate information of the suspended moving track, and starting at least one corresponding light sensor in the sensor array on the side of the mobile terminal.
Optionally, the processor 42 generates an opening instruction according to the position and the coordinate information of the suspended moving track, and opening at least one corresponding light sensor in the sensor array on the side of the mobile terminal includes:
and starting at least one corresponding light sensor in the sensor array on the side surface of the mobile terminal according to the intersection point of the extension line of the suspended moving track and the side edge of the mobile terminal.
Optionally, the processor 42 turns on at least one corresponding light sensor in the sensor array on the side of the mobile terminal according to an intersection point of the extension line of the suspended moving track and the side of the mobile terminal, where the at least one light sensor includes:
and if the intersection point of the extension line of the suspended moving track and the side edge of the mobile terminal is positioned between two adjacent light sensors in the sensor array on the side edge of the mobile terminal, starting the two adjacent light sensors in the sensor array on the side edge of the mobile terminal.
According to the mobile terminal provided by the embodiment of the invention, the key function is realized by adopting the sensor, the original entity key can be replaced, the inconvenience caused by the loss of the original mechanical case is reduced, the key occupation of the front panel is reduced, the terminal is more attractive, and more abundant operation experience can be provided.
A third embodiment of the present invention provides a computer-readable storage medium having stored thereon a control method program that, when executed by a processor, implements the steps of the control method described in fig. 5.
According to the computer-readable storage medium provided by the embodiment of the invention, the key function is realized by adopting the sensor, the original entity key can be replaced, the inconvenience caused by the loss of the original mechanical case is reduced, the key occupation of the front panel is reduced, the terminal is more attractive, and more abundant operation experience can be provided. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. A control method is applied to a mobile terminal, and is characterized in that the side of the mobile terminal comprises at least one light sensor, the light sensor comprises an infrared light emitter and an infrared light sensor, and the method comprises the following steps:
acquiring the current running state of the mobile terminal;
giving a corresponding function to the at least one light sensor according to the current running state of the mobile terminal;
the infrared light emitter of the at least one light sensor emits infrared light to the outside of the mobile terminal along the direction vertical to the side edge of the mobile terminal;
the infrared light sensor detects the flux information of the received infrared light;
determining that there is a control operation for the at least one light sensor when the flux information conforms to a preset variation rule;
executing the corresponding function of the at least one light sensor according to the control operation,
when the number of the light sensors is one, the preset change rule includes:
the flux information is increased to a first threshold value and then reduced to a second threshold value from the first threshold value,
when the number of the light sensors is two, the flux information includes first flux information of the first light sensor and second flux information of the second light sensor, and the preset variation rule includes: the first flux information is increased to a first threshold value and then reduced to a second threshold value from the first threshold value; in a preset time interval, the second flux information is increased to a first threshold value and then is reduced to a second threshold value from the first threshold value;
the side of the mobile terminal is provided with a sensor array formed by arranging a plurality of light sensors, and before the corresponding functions of the at least one light sensor are given, the method further comprises the following steps:
acquiring a suspension moving track of a finger of a user;
when the acquired suspension movement track of the user finger meets a preset condition, acquiring the position and coordinate information of the suspension movement track;
generating a starting instruction according to the position and coordinate information of the suspended moving track, and starting at least one corresponding light sensor in a sensor array on the side of the mobile terminal;
the step of generating a starting instruction according to the position and the coordinate information of the suspended moving track, and starting at least one corresponding light sensor in the sensor array on the side of the mobile terminal comprises the following steps:
and starting at least one corresponding light sensor in the sensor array on the side surface of the mobile terminal according to the intersection point of the extension line of the suspended moving track and the side edge of the mobile terminal.
2. The control method according to claim 1, wherein the obtaining the current operation state of the mobile terminal comprises:
and detecting the on-off state, the screen state and the application program running state of the mobile terminal.
3. The method according to claim 2, wherein the assigning the at least one light sensor with a corresponding function according to the current operation status of the mobile terminal comprises:
acquiring control data in different running states from a server;
generating a corresponding function set according to the control data;
and selecting a matched function from the instruction set according to the current running state, and giving the function to the at least one light sensor.
4. The control method according to claim 1, wherein the turning on of the corresponding at least one light sensor in the sensor array on the side of the mobile terminal according to the intersection point of the extension line of the suspended moving track and the side of the mobile terminal comprises:
and if the intersection point of the extension line of the suspended moving track and the side edge of the mobile terminal is positioned between two adjacent light sensors in the sensor array on the side edge of the mobile terminal, starting the two adjacent light sensors in the sensor array on the side edge of the mobile terminal.
5. A mobile terminal comprising at least one light sensor, a memory, and a processor;
the memory configured to store a control method program;
the processor, when being configured to execute the control method program, is configured to implement the steps of the control method according to any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that a control method program is stored thereon, which when executed by a processor implements the steps of the control method according to any one of claims 1 to 4.
CN201710524109.9A 2017-06-30 2017-06-30 Control method, mobile terminal and computer-readable storage medium Active CN107329572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524109.9A CN107329572B (en) 2017-06-30 2017-06-30 Control method, mobile terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524109.9A CN107329572B (en) 2017-06-30 2017-06-30 Control method, mobile terminal and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN107329572A CN107329572A (en) 2017-11-07
CN107329572B true CN107329572B (en) 2021-08-03

Family

ID=60198693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524109.9A Active CN107329572B (en) 2017-06-30 2017-06-30 Control method, mobile terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107329572B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108065A (en) * 2017-11-28 2018-06-01 努比亚技术有限公司 Light sensation key realization method, mobile terminal and computer readable storage medium
US20190188631A1 (en) * 2017-12-20 2019-06-20 Tyco Fire & Security Gmbh Systems and methods for multi-sensor tag sale optimization
CN108958597A (en) * 2018-05-30 2018-12-07 上海与德通讯技术有限公司 A kind of mobile terminal and false-touch prevention method
CN109756627B (en) * 2018-12-29 2021-09-07 努比亚技术有限公司 Light sensation control method and device and computer readable storage medium
CN111182340B (en) * 2019-12-31 2022-12-30 茂佳科技(广东)有限公司 Terminal control method, terminal, device and computer-readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984361A (en) * 2012-11-14 2013-03-20 广东欧珀移动通信有限公司 Method and mobile communication equipment of communication answering and hanging up
CN103645807A (en) * 2013-12-23 2014-03-19 深圳市中兴移动通信有限公司 Air posture input method and device
CN104486507A (en) * 2014-12-22 2015-04-01 上海斐讯数据通信技术有限公司 Method and system for controlling mobile phone through touchless gestures as well as mobile phone
CN104639138A (en) * 2013-11-08 2015-05-20 深圳富泰宏精密工业有限公司 Inductive side key structure and electronic device with the same
CN104811523A (en) * 2015-05-13 2015-07-29 努比亚技术有限公司 Key control method and mobile terminal
CN104978014A (en) * 2014-04-11 2015-10-14 维沃移动通信有限公司 Method for quickly calling application program or system function, and mobile terminal thereof
CN106412295A (en) * 2016-09-29 2017-02-15 努比亚技术有限公司 Mobile terminal based on virtual key

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2131272A3 (en) * 2008-06-02 2014-05-07 LG Electronics Inc. Mobile communication terminal having proximity sensor and display controlling method therein
CN102377848A (en) * 2010-08-24 2012-03-14 上海晨兴希姆通电子科技有限公司 Mobile terminal and contactless type keystroke method thereof
CN103002097B (en) * 2012-11-23 2016-05-18 小米科技有限责任公司 A kind of key induced device, method and a kind of mobile terminal
CN104850274A (en) * 2015-05-13 2015-08-19 集怡嘉数码科技(深圳)有限公司 Method and device for realizing key function by infrared induction
CN106371794A (en) * 2016-08-31 2017-02-01 北京小米移动软件有限公司 Method and device for lighting screen

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984361A (en) * 2012-11-14 2013-03-20 广东欧珀移动通信有限公司 Method and mobile communication equipment of communication answering and hanging up
CN104639138A (en) * 2013-11-08 2015-05-20 深圳富泰宏精密工业有限公司 Inductive side key structure and electronic device with the same
CN103645807A (en) * 2013-12-23 2014-03-19 深圳市中兴移动通信有限公司 Air posture input method and device
CN104978014A (en) * 2014-04-11 2015-10-14 维沃移动通信有限公司 Method for quickly calling application program or system function, and mobile terminal thereof
CN104486507A (en) * 2014-12-22 2015-04-01 上海斐讯数据通信技术有限公司 Method and system for controlling mobile phone through touchless gestures as well as mobile phone
CN104811523A (en) * 2015-05-13 2015-07-29 努比亚技术有限公司 Key control method and mobile terminal
CN106412295A (en) * 2016-09-29 2017-02-15 努比亚技术有限公司 Mobile terminal based on virtual key

Also Published As

Publication number Publication date
CN107329572A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107329572B (en) Control method, mobile terminal and computer-readable storage medium
CN107222613B (en) Display method and terminal
CN109284065B (en) Key false touch prevention method and device, mobile terminal and readable storage medium
CN110266876B (en) Pressure threshold determination method and device and computer readable storage medium
CN109348067B (en) Method for adjusting screen display brightness, mobile terminal and computer readable storage medium
CN107885448B (en) Control method for application touch operation, mobile terminal and readable storage medium
CN107463243B (en) Screen control method, mobile terminal and computer readable storage medium
CN107613128B (en) Volume adjusting method, terminal and computer readable storage medium
CN108184023B (en) Screen state control method, mobile terminal and computer readable storage medium
CN109144441B (en) Screen adjusting method, terminal and computer readable storage medium
CN108553896B (en) State information display control method, terminal and computer readable storage medium
CN108062162B (en) Flexible screen terminal, placement form control method thereof and computer-readable storage medium
CN107809534B (en) Control method, terminal and computer storage medium
CN110198379B (en) Mobile terminal control method, mobile terminal, and computer-readable storage medium
CN109407957A (en) Screen touch control method, terminal and computer readable storage medium
CN107832032B (en) Screen locking display method and mobile terminal
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN109542325B (en) Double-sided screen touch method, double-sided screen terminal and readable storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN110096213B (en) Terminal operation method based on gestures, mobile terminal and readable storage medium
CN109254691B (en) False touch prevention method and device and storage medium
CN109683766B (en) Interactive interface control method, mobile terminal and computer readable storage medium
CN108810262B (en) Application configuration method, terminal and computer readable storage medium
CN107424393B (en) Mobile terminal searching method, mobile terminal and storage medium
CN109739346A (en) A kind of key simulating method, double screen terminal and computer readable storage medium

Legal Events

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