CN107071151B - Control method for physical key corresponding to home key and mobile terminal - Google Patents

Control method for physical key corresponding to home key and mobile terminal Download PDF

Info

Publication number
CN107071151B
CN107071151B CN201710154277.3A CN201710154277A CN107071151B CN 107071151 B CN107071151 B CN 107071151B CN 201710154277 A CN201710154277 A CN 201710154277A CN 107071151 B CN107071151 B CN 107071151B
Authority
CN
China
Prior art keywords
touch
home key
mobile terminal
preset
physical key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710154277.3A
Other languages
Chinese (zh)
Other versions
CN107071151A (en
Inventor
王健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710154277.3A priority Critical patent/CN107071151B/en
Publication of CN107071151A publication Critical patent/CN107071151A/en
Application granted granted Critical
Publication of CN107071151B publication Critical patent/CN107071151B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The embodiment of the invention discloses a control method for a physical key corresponding to a home key and a mobile terminal, wherein the method comprises the following steps: when the touch operation aiming at the physical key corresponding to the home key is detected, acquiring a first time node for starting to detect the touch operation, and continuously detecting a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, wherein the touch parameter at least comprises touch strength; when the change trend of the touch parameter in a preset time period is detected to meet a first preset condition, acquiring a current second time node of the system; generating a touch control instruction when detecting that the time length between the first time node and the second time node meets a second preset condition; and inquiring and executing the preset operation corresponding to the touch control instruction. The embodiment of the invention also discloses a corresponding mobile terminal. The embodiment of the invention is beneficial to avoiding the damage of the entity home key caused by pressing the entity home key for a long time.

Description

Control method for physical key corresponding to home key and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a control method for a physical key corresponding to a home key and a mobile terminal.
Background
With the development of science and technology, various electrons are generated to go into the work and life of people, and great convenience is provided for people.
An intelligent terminal such as a mobile phone has become an indispensable tool for people, and in general, an entity home key (i.e., a main menu key) is provided below a screen of an intelligent terminal device such as a mobile phone. When a user opens multiple tasks, the user can open the task manager function by pressing the home key, and then operate on the target task item, such as closing an item or some tasks, or leaving a task in the operation interface, or the user can return to the home screen by pressing the home key. However, frequent pressing of the entity home key area easily causes damage to the entity home key, thereby bringing great inconvenience to the user.
Disclosure of Invention
The embodiment of the invention provides a control method for a physical key corresponding to a home key and a mobile terminal, aiming at avoiding damage to the home key caused by long-term pressing of the home key.
In a first aspect, an embodiment of the present invention provides a method for controlling a physical key corresponding to a home key, where the method includes:
when a touch operation aiming at a physical key corresponding to a home key of a mobile terminal is detected, acquiring a first time node for starting to detect the touch operation, and continuously detecting a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, wherein the touch parameter at least comprises touch strength, and the touch operation is an operation of which the touch strength is smaller than or equal to a preset pressure threshold;
when the change trend of the touch parameter in a preset time period is detected to meet a first preset condition, acquiring a current second time node of the system;
generating a touch control instruction when detecting that the time length between the first time node and the second time node meets a second preset condition;
and inquiring a preset operation corresponding to the touch control instruction, and executing the preset operation.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the mobile terminal comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a first time node for starting to detect a touch operation when the touch operation of a physical key corresponding to a home key of the mobile terminal is detected, and continuously detecting a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, the touch parameter at least comprises touch strength, and the touch operation is an operation of which the touch strength is smaller than or equal to a preset pressure threshold;
the first obtaining unit is further configured to obtain a current second time node of the system when it is detected that a variation trend of the touch parameter in a preset time period meets a first preset condition;
the first generating unit is used for generating a touch control instruction when detecting that the time length between the first time node and the second time node meets a second preset condition;
a first execution unit, configured to query a preset operation corresponding to the touch control instruction, and execute the preset operation
In a third aspect, an embodiment of the present invention provides a method for controlling a physical key corresponding to a home key, where the method includes:
acquiring current target scene parameters of a mobile terminal, wherein the scene parameters comprise one of the following parameters: the current user of the mobile terminal, the application program currently running by the mobile terminal, or the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal;
determining a target response mode of the physical key corresponding to the home key corresponding to the target scene parameter according to the obtained target scene parameter and a mapping relation between a pre-stored scene parameter and a response mode of the physical key corresponding to the home key;
and starting a parameter acquisition device corresponding to the target response mode to set the response mode of the physical key corresponding to the home key of the mobile terminal as the target response mode.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including:
an obtaining unit, configured to obtain a current target scene parameter of a mobile terminal, where the scene parameter includes one of: the current user of the mobile terminal, the application program currently running by the mobile terminal, or the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal;
the determining unit is used for determining a target response mode of the physical key corresponding to the home key corresponding to the target scene parameter according to the acquired target scene parameter and a mapping relation between a pre-stored scene parameter and the response mode of the physical key corresponding to the home key;
and the control unit is used for starting the parameter acquisition device corresponding to the target response mode so as to set the response mode of the physical key corresponding to the home key of the mobile terminal as the target response mode.
In a fifth aspect, an embodiment of the present invention provides a mobile terminal, including:
the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are connected through the communication bus and complete mutual communication;
the memory stores executable program code, the communication interface is for wireless communication;
the processor is configured to call the executable program code in the memory to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present invention.
In a sixth aspect, an embodiment of the present invention provides a mobile terminal, including:
the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are connected through the communication bus and complete mutual communication;
the memory stores executable program code, the communication interface is for wireless communication;
the processor is configured to call the executable program code in the memory to perform some or all of the steps described in any of the methods of the third aspect of the embodiments of the present invention.
It can be seen that, in the method for controlling a physical key corresponding to a home key provided in the embodiments of the present invention, when a touch operation on the physical key corresponding to the home key of a mobile terminal is detected, a first time node at which the touch operation is started to be detected is obtained, and a touch parameter generated by the touch operation acting on the physical key corresponding to the home key is continuously detected, where the touch parameter at least includes a touch strength, and the touch operation is an operation in which the touch strength is less than or equal to a preset pressure threshold, when a change trend of the touch parameter in a preset time period is detected to satisfy a first preset condition, a current second time node of a system is obtained, and when a time length between the first time node and the second time node is detected to satisfy a second preset condition, a touch control instruction is generated, and a preset operation corresponding to the touch control instruction is queried, and executing the preset operation. Therefore, the mobile terminal replaces pressing operation with touch operation meeting preset conditions aiming at the physical keys corresponding to the home key, and damage to the entity home key caused by long-term pressing of the entity home key is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a control method for a physical key corresponding to a home key according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another control method for a physical key corresponding to a home key according to the embodiment of the present invention;
fig. 3 is a schematic flowchart of another control method for a physical key corresponding to a home key according to the embodiment of the present invention;
FIG. 4-1 is a block diagram of the components of a mobile terminal according to an embodiment of the present invention;
fig. 4-2 is a block diagram of the components of another mobile terminal disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of another control method for a physical key corresponding to a home key according to the embodiment of the present invention;
fig. 7 is a block diagram of the components of a mobile terminal according to an embodiment of the present invention;
FIG. 8 is a block diagram of the components of another mobile terminal according to the embodiment of the present invention;
fig. 9 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to better understand the method for controlling a physical key corresponding to a home key and the mobile terminal disclosed in the embodiments of the present invention, the embodiments of the present invention are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a control method for a physical key corresponding to a home key according to an embodiment of the present invention, and as shown in fig. 1, the control method for a physical key corresponding to a home key according to an embodiment of the present invention includes the following steps:
s101, when detecting a touch operation of a physical key corresponding to a home key of a mobile terminal, the mobile terminal acquires a first time node at which the touch operation is started to be detected, and continuously detects a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, wherein the touch parameter at least comprises touch strength, and the touch operation is an operation in which the touch strength is smaller than or equal to a preset pressure threshold.
Specifically, the mobile terminal may implement detection of a touch operation on a physical key corresponding to a home key of the mobile terminal through a response element sensitive to the proximity of a finger of the user, where the response element has a function sensitive to the proximity of the finger of the user. It should be noted that the function sensitive to the proximity of the user's finger may refer to that when the user's finger approaches or touches a physical key corresponding to the home key, the response element may sense the approach or touch of the finger. Here, the touch operation is relative to the pressing operation, and the touch operation on the physical key corresponding to the home key of the mobile terminal does not cause the physical key corresponding to the home key to be displaced, whereas the pressing operation on the physical key corresponding to the home key of the mobile terminal causes the physical key corresponding to the home key to be displaced, that is, the physical key corresponding to the home key is pressed.
Here, when the mobile terminal detects a touch operation on a physical key corresponding to a home key of the mobile terminal through the response element, a first time node at which the touch operation is started to be detected is acquired, and touch strength generated when the touch operation acts on the physical key corresponding to the home key is continuously detected.
S102, when the change trend of the touch parameter in the preset time period is detected to meet a first preset condition, the mobile terminal acquires a current second time node of the system.
The specific implementation principle of controlling the physical key corresponding to the home key by pressing operation is that a home key interrupt is generated by hardware (two metal sheets), a system home key event is reported, and the system responds to the home key time and further realizes the function of returning to the desktop, wherein the process of generating the home key interrupt by the hardware is divided into that the physical key corresponding to the home key is pressed down and interrupted, and the physical key corresponding to the home key is pressed down and then lifted up, so that the physical key corresponding to the home key is also simulated to be pressed down and interrupted by touch operation, and the physical key corresponding to the home key is also lifted up and interrupted, wherein when the mobile terminal detects the touch operation aiming at the physical key corresponding to the home key of the mobile terminal, the first time node for detecting the touch operation is equivalent to the physical key corresponding to the simulated home key is pressed down and interrupted, and when it is detected that the variation trend of the touch parameter in the preset time period meets the first preset condition, the mobile terminal acquires that the current second time node of the system is equivalent to that the physical key corresponding to the analog home key is lifted and interrupted after being pressed, wherein the variation trend of the touch parameter in the preset time period meets the first preset condition can be understood as that the variation trend of the touch strength corresponding to the touch operation in the preset time period meets the decreasing condition until the variation trend is reduced to the preset strength threshold value, and at this time, the finger of the user can be understood as leaving the physical key corresponding to the home key.
S103, when the fact that the time length between the first time node and the second time node meets a second preset condition is detected, the mobile terminal generates a touch control instruction.
And S104, the mobile terminal inquires the preset operation corresponding to the touch control instruction and executes the preset operation.
Here, when the user opens a plurality of tasks, the preset operation may be to open the task manager function and then perform an operation on the target task item, such as closing a certain item or certain tasks, or making a certain task be in an operation interface. Alternatively, the preset operation may be returning to the home screen when the user is in a certain application interface.
It can be seen that, in the method for controlling a physical key corresponding to a home key provided in the embodiments of the present invention, when a touch operation on the physical key corresponding to the home key of a mobile terminal is detected, a first time node at which the touch operation is started to be detected is obtained, and a touch parameter generated by the touch operation acting on the physical key corresponding to the home key is continuously detected, where the touch parameter at least includes a touch strength, and the touch operation is an operation in which the touch strength is less than or equal to a preset pressure threshold, when a change trend of the touch parameter in a preset time period is detected to satisfy a first preset condition, a current second time node of a system is obtained, and when a time length between the first time node and the second time node is detected to satisfy a second preset condition, a touch control instruction is generated, and a preset operation corresponding to the touch control instruction is queried, and executing the preset operation. Therefore, the mobile terminal replaces pressing operation with touch operation meeting preset conditions aiming at the physical keys corresponding to the home key, and damage to the entity home key caused by long-term pressing of the entity home key is avoided.
Optionally, when a touch operation on a physical key corresponding to a home key of the mobile terminal is detected, before a first time node at which the touch operation is detected is obtained, the mobile terminal may further perform the following operations:
displaying a setting interface for setting a response mode of a physical key corresponding to a home key, wherein the setting interface at least comprises a first virtual switch corresponding to a touch response mode;
and when the starting operation of the first virtual switch corresponding to the touch response mode is detected, starting a first parameter acquisition device corresponding to the touch response mode so as to detect the touch operation of the physical key corresponding to the home key of the mobile terminal.
Optionally, the setting interface further includes a second touch switch in a press response mode;
after displaying a setting interface for setting a response mode of a physical key corresponding to the home key, the mobile terminal may further perform the following operations:
when the starting operation of a second virtual switch corresponding to the press response mode is detected, starting a second parameter acquisition device corresponding to the press response mode;
when detecting that a first metal sheet of a physical key corresponding to the home key is contacted with a second metal sheet, generating a first signal, and recording a third time node for generating the first signal;
when the separation of a first metal sheet and a second metal sheet of a physical key corresponding to the home key is detected, generating a second signal, and recording a fourth time node for generating the second signal;
generating a pressing control instruction when detecting that the time length between the third time node and the fourth time node meets a third preset condition;
and inquiring a preset operation corresponding to the pressing control instruction, and executing the preset operation.
Optionally, the mobile terminal may further perform the following operations:
when touch operation aiming at a physical key corresponding to a home key is detected, fingerprint information corresponding to the touch operation is acquired;
detecting whether the acquired fingerprint information is matched with prestored fingerprint information;
and when the acquired fingerprint information is detected to be matched with the pre-stored fingerprint information, generating a fingerprint control instruction, and executing a preset operation corresponding to the fingerprint control instruction.
Optionally, the mobile terminal may further perform the following operations:
when the fingerprint control instruction and the touch control instruction are generated within a preset time period, executing a preset operation corresponding to the fingerprint control instruction, and after the preset operation corresponding to the fingerprint control instruction is executed, executing the preset operation corresponding to the touch control instruction.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another control method for a physical key corresponding to a home key according to an embodiment of the present invention, consistent with the embodiment shown in fig. 1. As shown in fig. 2, the method for controlling a physical key corresponding to a home key in the embodiment of the present invention includes the following steps:
s201, the mobile terminal displays a setting interface used for setting a response mode of a physical key corresponding to a home key, wherein the setting interface at least comprises a first virtual switch corresponding to a touch response mode and a second touch switch for pressing the response mode.
When detecting the on operation of the first virtual switch corresponding to the touch response mode, executing steps S202 to S206; when the on operation of the second virtual switch corresponding to the press response mode is detected, step S207 to step S211 are executed.
S202, when the starting operation of the first virtual switch corresponding to the touch response mode is detected, the mobile terminal starts the first parameter acquisition device corresponding to the touch response mode so as to detect the touch operation of the physical key corresponding to the home key of the mobile terminal.
S203, when the mobile terminal detects a touch operation of a physical key corresponding to a home key of the mobile terminal, acquiring a first time node at which the touch operation is started to be detected, and continuously detecting a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, wherein the touch parameter at least comprises touch strength, and the touch operation is an operation in which the touch strength is smaller than or equal to a preset pressure threshold.
And S204, when the change trend of the touch parameter in the preset time period is detected to meet a first preset condition, the mobile terminal acquires a current second time node of the system.
S205, when the fact that the time length between the first time node and the second time node meets a second preset condition is detected, the mobile terminal generates a touch control instruction.
S206, the mobile terminal inquires the preset operation corresponding to the touch control instruction and executes the preset operation.
And S207, when the mobile terminal detects the starting operation of the second virtual switch corresponding to the press response mode, starting a second parameter acquisition device corresponding to the press response mode.
S208, the mobile terminal generates a first signal when detecting the physical key corresponding to the home key, and records a third time node for generating the first signal.
S209, when the mobile terminal detects that the first metal sheet and the second metal sheet of the physical key corresponding to the home key are separated, generating a second signal, and recording a fourth time node for generating the second signal.
S210, the mobile terminal generates a pressing control instruction when detecting that the time length between the third time node and the fourth time node meets a third preset condition;
s211, the mobile terminal inquires a preset operation corresponding to the pressing control instruction and executes the preset operation.
The specific implementation principle of controlling the physical key corresponding to the home key through pressing operation is that hardware (two metal sheets) generates home key interruption, a system home key event is reported, and the system responds to the home key time to realize the function of returning to the desktop, wherein the process of generating the home key interruption through the hardware is divided into interruption of pressing the physical key corresponding to the home key and interruption of lifting after pressing the physical key corresponding to the home key. And when the physical key corresponding to the home key is pressed down and is interrupted to contact the first metal sheet and the second metal sheet, the physical key corresponding to the home key is pressed down and is lifted up to be interrupted to separate the first metal sheet and the second metal sheet.
It can be seen that, in the method for controlling a physical key corresponding to a home key provided in the embodiments of the present invention, when a touch operation on the physical key corresponding to the home key of a mobile terminal is detected, a first time node at which the touch operation is started to be detected is obtained, and a touch parameter generated by the touch operation acting on the physical key corresponding to the home key is continuously detected, where the touch parameter at least includes a touch strength, and the touch operation is an operation in which the touch strength is less than or equal to a preset pressure threshold, when a change trend of the touch parameter in a preset time period is detected to satisfy a first preset condition, a current second time node of a system is obtained, and when a time length between the first time node and the second time node is detected to satisfy a second preset condition, a touch control instruction is generated, and a preset operation corresponding to the touch control instruction is queried, and executing the preset operation. Therefore, the mobile terminal replaces pressing operation with touch operation meeting preset conditions aiming at the physical keys corresponding to the home key, and damage to the entity home key caused by long-term pressing of the entity home key is avoided.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating another control method for a physical key corresponding to a home key according to an embodiment of the present invention, consistent with the embodiment shown in fig. 1. As shown in fig. 3, the method for controlling a physical key corresponding to a home key in the embodiment of the present invention includes the following steps:
s301, the mobile terminal displays a setting interface used for setting a response mode of a physical key corresponding to the home key, wherein the setting interface at least comprises a first virtual switch corresponding to the touch response mode.
S302, when the starting operation of the first virtual switch corresponding to the touch response mode is detected, the mobile terminal starts the first parameter acquisition device corresponding to the touch response mode, and meanwhile, fingerprint information corresponding to the touch operation is acquired.
S303, when detecting a touch operation of a physical key corresponding to a home key of the mobile terminal, the mobile terminal acquires a first time node at which the touch operation is started to be detected, continuously detects a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, and acquires a current second time node of the system when detecting that a variation trend of the touch parameter in a preset time period meets a first preset condition; generating a touch control instruction when detecting that the time length between the first time node and the second time node meets a second preset condition; meanwhile, the mobile terminal detects whether the acquired fingerprint information is matched with the pre-stored fingerprint information or not, and generates a fingerprint control instruction when the acquired fingerprint information is detected to be matched with the pre-stored fingerprint information.
Here, the physical keys corresponding to the home key may further integrate a fingerprint identification module, a response mode of the physical keys corresponding to the home key may be divided into a touch response mode and a press response mode, and the following operation mode may be implemented for the operation of the physical keys corresponding to the home key based on the above two response modes: the software controls the home key, the hardware controls the home key and the fingerprint identification function.
The user may set a response mode of the physical key corresponding to the home key, and further, the user may set a working mode that can be implemented for the operation of the physical key corresponding to the home key, for example, the user may only support a fingerprint identification function, only support a hardware-controlled home key function, only support a software-controlled home key function, simultaneously support a fingerprint identification function and a hardware-controlled home key function, simultaneously support a fingerprint identification function and a software-controlled home key function, simultaneously support a hardware-controlled home key function and a software-controlled home key function, and simultaneously support a software-controlled home key, a hardware-controlled home key, and a fingerprint identification function.
S304, when the mobile terminal detects that the fingerprint control instruction and the touch control instruction are generated in a preset time period, inquiring and executing preset operation corresponding to the fingerprint control instruction, and after executing the preset operation corresponding to the fingerprint control instruction, inquiring and executing the preset operation corresponding to the touch control instruction.
Specifically, for example, the mobile terminal is currently located in an interface where fingerprint identification is needed for payment, if the mobile terminal generates the fingerprint control instruction and the touch control instruction within a preset time period, the mobile terminal executes a payment operation first, and after the payment operation is executed, executes an operation of returning to a desktop.
Or when the mobile terminal detects that the fingerprint control instruction and the touch control instruction are generated within a preset time period, inquiring and executing preset operation corresponding to the fingerprint control instruction, displaying a human-computer interaction interface after executing the preset operation corresponding to the fingerprint control instruction, wherein the human-computer interaction interface is used for a user to select whether to return to the main desktop, and after detecting selection operation aiming at returning to the main desktop, the mobile terminal inquires and executes the preset operation corresponding to the touch control instruction and returns to the main desktop.
It can be seen that, in the method for controlling a physical key corresponding to a home key provided in the embodiments of the present invention, when a touch operation on the physical key corresponding to the home key of a mobile terminal is detected, a first time node at which the touch operation is started to be detected is obtained, and a touch parameter generated by the touch operation acting on the physical key corresponding to the home key is continuously detected, where the touch parameter at least includes a touch strength, and the touch operation is an operation in which the touch strength is less than or equal to a preset pressure threshold, when a change trend of the touch parameter in a preset time period is detected to satisfy a first preset condition, a current second time node of a system is obtained, and when a time length between the first time node and the second time node is detected to satisfy a second preset condition, a touch control instruction is generated, and a preset operation corresponding to the touch control instruction is queried, and executing the preset operation. Therefore, the mobile terminal replaces pressing operation with touch operation meeting preset conditions aiming at the physical keys corresponding to the home key, and damage to the entity home key caused by long-term pressing of the entity home key is avoided.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. Referring to fig. 4-1, fig. 4-1 is a block diagram of a unit composition of a mobile terminal according to an embodiment of the present invention, as shown in fig. 4-1, the mobile terminal may include a first obtaining unit 401, a first generating unit 402, and a first executing unit 403, where:
the first obtaining unit 401 is configured to, when a touch operation for a physical key corresponding to a home key of a mobile terminal is detected, obtain a first time node at which the touch operation is started to be detected, and continuously detect a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, where the touch parameter at least includes touch strength, and the touch operation is an operation in which the touch strength is less than or equal to a preset pressure threshold;
the first obtaining unit 401 is further configured to obtain a current second time node of the system when it is detected that a variation trend of the touch parameter in a preset time period meets a first preset condition;
the first generating unit 402 is configured to generate a touch control instruction when it is detected that a time length between the first time node and the second time node meets a second preset condition;
the first execution unit 403 is configured to query a preset operation corresponding to the touch control instruction, and execute the preset operation
Referring to fig. 4-2, fig. 4-2 is a block diagram of a unit composition of another mobile terminal disclosed in the embodiment of the present invention, and as shown in fig. 4-2, the mobile terminal may include a first obtaining unit 401, a first generating unit 402, and a first executing unit 403 in the embodiment corresponding to fig. 4-1.
Optionally, the mobile terminal further includes:
a display unit 404, configured to display a setting interface for setting a response mode of a physical key corresponding to a home key before a first time node at which a touch operation starts to be detected is acquired when the first acquiring unit 401 detects the touch operation of the physical key corresponding to the home key of the mobile terminal, where the setting interface at least includes a first virtual switch corresponding to the touch response mode;
a first starting unit 405, configured to start the first parameter acquisition device corresponding to the touch response mode when detecting a start operation of the first virtual switch corresponding to the touch response mode, so as to detect a touch operation on a physical key corresponding to a home key of the mobile terminal.
Optionally, the setting interface further includes a second touch switch in a press response mode;
the mobile terminal further includes:
a second starting unit 406, configured to, after the display unit 404 displays a setting interface for setting a response mode of a physical key corresponding to a home key, start a second parameter acquisition device corresponding to the press response mode when detecting a start operation of a second virtual switch corresponding to the press response mode;
the recording unit 407 is configured to generate a first signal when detecting that a first metal sheet of a physical key corresponding to a home key is in contact with a second metal sheet, and record a third time node at which the first signal is generated;
the recording unit 407 is further configured to generate a second signal when the first metal sheet and the second metal sheet of the physical key corresponding to the home key are detected to be separated, and record a fourth time node at which the second signal is generated;
a second generating unit 408, configured to generate a pressing control instruction when detecting that a time length between the third time node and the fourth time node satisfies a third preset condition;
and the second execution unit 409 is configured to query a preset operation corresponding to the pressing control instruction and execute the preset operation.
Optionally, the mobile terminal further includes:
a second obtaining unit 410, configured to obtain, when a touch operation on a physical key corresponding to a home key is detected, fingerprint information corresponding to the touch operation;
a detecting unit 411, configured to detect whether the acquired fingerprint information matches pre-stored fingerprint information;
the third executing unit 412 is configured to generate a fingerprint control instruction and execute a preset operation corresponding to the fingerprint control instruction when it is detected that the acquired fingerprint information matches with pre-stored fingerprint information.
Optionally, the mobile terminal further includes:
the priority determining unit 413 is configured to execute a preset operation corresponding to the fingerprint control instruction when the fingerprint control instruction and the touch control instruction are generated within a preset time period, and execute the preset operation corresponding to the touch control instruction after the preset operation corresponding to the fingerprint control instruction is executed.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments corresponding to fig. 1 to fig. 3, which is not described herein again.
It should be noted that the mobile terminal described in the embodiment of the apparatus of the present invention is in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
For example, when the first obtaining unit 401 detects a touch operation on a physical key corresponding to a home key of the mobile terminal, the function of obtaining a first time node at which the touch operation is started to be detected and continuously detecting a touch parameter generated when the touch operation is applied to the physical key corresponding to the home key may be implemented by the mobile terminal shown in fig. 5, specifically, the processor 101 may call an executable program code in the memory 102, and when the touch operation on the physical key corresponding to the home key of the mobile terminal is detected, obtain the first time node at which the touch operation is started to be detected and continuously detect the touch parameter generated when the touch operation is applied to the physical key corresponding to the home key.
It can be seen that, in the method for controlling a physical key corresponding to a home key provided in the embodiments of the present invention, when a touch operation on the physical key corresponding to the home key of a mobile terminal is detected, a first time node at which the touch operation is started to be detected is obtained, and a touch parameter generated by the touch operation acting on the physical key corresponding to the home key is continuously detected, where the touch parameter at least includes a touch strength, and the touch operation is an operation in which the touch strength is less than or equal to a preset pressure threshold, when a change trend of the touch parameter in a preset time period is detected to satisfy a first preset condition, a current second time node of a system is obtained, and when a time length between the first time node and the second time node is detected to satisfy a second preset condition, a touch control instruction is generated, and a preset operation corresponding to the touch control instruction is queried, and executing the preset operation. Therefore, the mobile terminal replaces pressing operation with touch operation meeting preset conditions aiming at the physical keys corresponding to the home key, and damage to the entity home key caused by long-term pressing of the entity home key is avoided.
An embodiment of the present invention further provides another mobile terminal, as shown in fig. 5, including: a processor 101, a memory 102, a communication interface 103 and a communication bus 104; the processor 101, the memory 102 and the communication interface 103 are connected through a communication bus 104 and complete mutual communication; processor 101 controls wireless communications with an external cellular network through communication interface 103; the communication interface 103 includes, but is not limited to, an antenna, an Amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. The memory 102 includes at least one of: the memory 102 stores executable program codes capable of guiding the processor 101 to execute the control method for the physical key corresponding to the home key specifically disclosed in the method embodiment of the present invention.
The processor 101 is configured to, when a touch operation for a physical key corresponding to a home key of a mobile terminal is detected, acquire a first time node at which the touch operation is started to be detected, and continuously detect a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, where the touch parameter at least includes touch strength, and the touch operation is an operation in which the touch strength is less than or equal to a preset pressure threshold; when the change trend of the touch parameter in a preset time period is detected to meet a first preset condition, acquiring a current second time node of the system; generating a touch control instruction when detecting that the time length between the first time node and the second time node meets a second preset condition; and inquiring a preset operation corresponding to the touch control instruction, and executing the preset operation.
Optionally, the processor 101 is further configured to display a setting interface for setting a response mode of a physical key corresponding to a home key before a first time node at which the touch operation is started is obtained when the touch operation on the physical key corresponding to the home key of the mobile terminal is detected, where the setting interface at least includes a first virtual switch corresponding to the touch response mode; and when the starting operation of the first virtual switch corresponding to the touch response mode is detected, starting a first parameter acquisition device corresponding to the touch response mode so as to detect the touch operation of the physical key corresponding to the home key of the mobile terminal.
Optionally, the setting interface further includes a second touch switch in a press response mode;
after the processor 101 is configured to display a setting interface for setting a response mode of a physical key corresponding to a home key, the processor may be further configured to start a second parameter acquisition device corresponding to the press response mode when detecting a start operation of a second virtual switch corresponding to the press response mode; when detecting that a first metal sheet of a physical key corresponding to the home key is contacted with a second metal sheet, generating a first signal, and recording a third time node for generating the first signal; when the separation of a first metal sheet and a second metal sheet of a physical key corresponding to the home key is detected, generating a second signal, and recording a fourth time node for generating the second signal; generating a pressing control instruction when detecting that the time length between the third time node and the fourth time node meets a third preset condition; and inquiring a preset operation corresponding to the pressing control instruction, and executing the preset operation.
Optionally, the processor 101 may also be configured to, during a touch operation on a physical key corresponding to a home key, obtain fingerprint information corresponding to the touch operation; detecting whether the acquired fingerprint information is matched with prestored fingerprint information; and when the acquired fingerprint information is detected to be matched with the pre-stored fingerprint information, generating a fingerprint control instruction, and executing a preset operation corresponding to the fingerprint control instruction.
Optionally, the processor 101 may be further configured to execute a preset operation corresponding to the fingerprint control instruction when the fingerprint control instruction and the touch control instruction are generated within a preset time period, and execute the preset operation corresponding to the touch control instruction after the preset operation corresponding to the fingerprint control instruction is executed.
Specifically, the specific implementation of each unit may refer to the description of the relevant steps in the embodiments of fig. 1 to fig. 3, which is not described herein again.
It can be seen that, in the method for controlling a physical key corresponding to a home key provided in the embodiments of the present invention, when a touch operation on the physical key corresponding to the home key of a mobile terminal is detected, a first time node at which the touch operation is started to be detected is obtained, and a touch parameter generated by the touch operation acting on the physical key corresponding to the home key is continuously detected, where the touch parameter at least includes a touch strength, and the touch operation is an operation in which the touch strength is less than or equal to a preset pressure threshold, when a change trend of the touch parameter in a preset time period is detected to satisfy a first preset condition, a current second time node of a system is obtained, and when a time length between the first time node and the second time node is detected to satisfy a second preset condition, a touch control instruction is generated, and a preset operation corresponding to the touch control instruction is queried, and executing the preset operation. Therefore, the mobile terminal replaces pressing operation with touch operation meeting preset conditions aiming at the physical keys corresponding to the home key, and damage to the entity home key caused by long-term pressing of the entity home key is avoided.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a method for controlling a physical key corresponding to a home key according to an embodiment of the present invention, where as shown in fig. 6, the method for controlling a physical key corresponding to a home key according to an embodiment of the present invention includes the following steps:
s601, the mobile terminal obtains current target scene parameters of the mobile terminal, wherein the scene parameters comprise one of the following parameters: the current user of the mobile terminal, the application program currently running by the mobile terminal, or the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal;
specifically, when the scene parameter includes the current user of the mobile terminal, the specific implementation manner of obtaining the current target scene parameter of the mobile terminal may be:
acquiring fingerprint information of touch operation of a physical key corresponding to a home key of the mobile terminal;
and inquiring the mapping relation between the pre-stored fingerprint information and the user according to the acquired fingerprint information, and determining the current user of the mobile terminal corresponding to the acquired fingerprint information.
S602, the mobile terminal determines a target response mode of a physical key corresponding to a home key corresponding to the target scene parameter according to the acquired target scene parameter and a mapping relation between a pre-stored scene parameter and a response mode of a physical key corresponding to the home key;
and the response mode of the physical key corresponding to the home key comprises a touch response mode and a press response mode.
Specifically, when the scene parameter includes the touch strength of the touch operation for the physical key corresponding to the home key of the mobile terminal, the specific implementation manner of determining the target response mode of the physical key corresponding to the home key corresponding to the target scene parameter according to the obtained target scene parameter and the mapping relationship between the pre-stored scene parameter and the response mode of the physical key corresponding to the home key may be:
when the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal is detected to be smaller than or equal to a first preset pressure threshold value, determining that the target response mode of the physical key corresponding to the home key corresponding to the target scene parameter is a touch response mode; and/or the presence of a gas in the gas,
and when the fact that the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal is larger than a second preset pressure threshold value is detected, determining that the target response mode of the physical key corresponding to the home key corresponding to the target scene parameter is a pressing response mode.
S603, the mobile terminal starts a parameter acquisition device corresponding to the target response mode to set the response mode of the physical key corresponding to the home key of the mobile terminal as the target response mode.
It can be seen that, in the control method for the physical key corresponding to the home key provided in the embodiment of the present invention, the mobile terminal obtains the current target scene parameter of the mobile terminal, where the scene parameter includes one of the following: the method comprises the steps that a current user of the mobile terminal, an application program currently running by the mobile terminal or the touch control strength of touch control operation of a physical key corresponding to a home key of the mobile terminal further determines a target response mode of the physical key corresponding to the home key corresponding to a target scene parameter according to the acquired target scene parameter and a mapping relation between a prestored scene parameter and a response mode of the physical key corresponding to the home key, and finally, a parameter acquisition device corresponding to the target response mode is started to set the response mode of the physical key corresponding to the home key of the mobile terminal as the target response mode. Therefore, the mobile terminal can automatically control the response mode of the physical key corresponding to the home key according to the scene factors, so that the damage of the entity home key caused by pressing the entity home key for a long time can be avoided.
Referring to fig. 7, fig. 7 is a block diagram of a unit composition of another mobile terminal disclosed in the embodiment of the present invention, and as shown in fig. 7, the mobile terminal may include: an acquisition unit 701, a determination unit 702, and a control unit 703, wherein:
the obtaining unit 701 is configured to obtain a current target scene parameter of the mobile terminal, where the scene parameter includes one of: the current user of the mobile terminal, the application program currently running by the mobile terminal, or the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal;
the determining unit 702 is configured to determine, according to the obtained target scene parameter and a mapping relationship between a pre-stored scene parameter and a response mode of a physical key corresponding to a home key, a target response mode of the physical key corresponding to the home key corresponding to the target scene parameter;
the control unit 703 is configured to start the parameter acquisition device corresponding to the target response mode, so as to set the response mode of the physical key corresponding to the home key of the mobile terminal to the target response mode.
Optionally, the response mode of the physical key corresponding to the home key includes a touch response mode and a press response mode.
Optionally, when the scene parameter includes a current user of the mobile terminal, the obtaining unit 701 is specifically configured to obtain fingerprint information of a touch operation on a physical key corresponding to a home key of the mobile terminal; and inquiring the mapping relation between the pre-stored fingerprint information and the user according to the acquired fingerprint information, and determining the current user of the mobile terminal corresponding to the acquired fingerprint information.
Optionally, when the scene parameter includes the touch strength of the touch operation on the physical key corresponding to the home key of the mobile terminal, the determining unit 702 is specifically configured to determine that the target response mode of the physical key corresponding to the home key corresponding to the target scene parameter is the touch response mode when it is detected that the touch strength of the touch operation on the physical key corresponding to the home key of the mobile terminal is smaller than or equal to a first preset pressure threshold; and/or when the fact that the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal is larger than a second preset pressure threshold value is detected, determining that the target response mode of the physical key corresponding to the home key corresponding to the target scene parameter is a pressing response mode.
It can be seen that, in the control method for the physical key corresponding to the home key provided in the embodiment of the present invention, the mobile terminal obtains the current target scene parameter of the mobile terminal, where the scene parameter includes one of the following: the method comprises the steps that a current user of the mobile terminal, an application program currently running by the mobile terminal or the touch control strength of touch control operation of a physical key corresponding to a home key of the mobile terminal further determines a target response mode of the physical key corresponding to the home key corresponding to a target scene parameter according to the acquired target scene parameter and a mapping relation between a prestored scene parameter and a response mode of the physical key corresponding to the home key, and finally, a parameter acquisition device corresponding to the target response mode is started to set the response mode of the physical key corresponding to the home key of the mobile terminal as the target response mode. Therefore, the mobile terminal can automatically control the response mode of the physical key corresponding to the home key according to the scene factors, so that the damage of the entity home key caused by pressing the entity home key for a long time can be avoided.
An embodiment of the present invention further provides another mobile terminal, as shown in fig. 8, including: a processor 201, a memory 202, a communication interface 203 and a communication bus 204; the processor 201, the memory 202 and the communication interface 203 are connected through a communication bus 204 and complete mutual communication; the processor 201 controls wireless communications with an external cellular network through the communication interface 203; the communication interface 203 includes, but is not limited to, an antenna, an Amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. The memory 202 includes at least one of: the memory 202 stores executable program codes capable of guiding the processor 201 to execute the control method for the physical key corresponding to the home key specifically disclosed in the method embodiment of the present invention.
The processor 201 is configured to obtain a current target scene parameter of the mobile terminal, where the scene parameter includes one of: the current user of the mobile terminal, the application program currently running by the mobile terminal, or the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal; determining a target response mode of the physical key corresponding to the home key corresponding to the target scene parameter according to the obtained target scene parameter and a mapping relation between a pre-stored scene parameter and a response mode of the physical key corresponding to the home key; and starting a parameter acquisition device corresponding to the target response mode to set the response mode of the physical key corresponding to the home key of the mobile terminal as the target response mode.
Optionally, the response mode of the physical key corresponding to the home key includes a touch response mode and a press response mode.
Optionally, when the scene parameter includes a current user of the mobile terminal, the processor 201 is specifically configured to: acquiring fingerprint information of touch operation of a physical key corresponding to a home key of the mobile terminal; and inquiring the mapping relation between the pre-stored fingerprint information and the user according to the acquired fingerprint information, and determining the current user of the mobile terminal corresponding to the acquired fingerprint information.
Optionally, when the scene parameter includes the touch strength of the touch operation for the physical key corresponding to the home key of the mobile terminal, the processor 201 is specifically configured to, when determining the target response mode of the physical key corresponding to the home key corresponding to the target scene parameter according to the obtained target scene parameter and a mapping relationship between a pre-stored scene parameter and a response mode of the physical key corresponding to the home key, determine:
when the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal is detected to be smaller than or equal to a first preset pressure threshold value, determining that the target response mode of the physical key corresponding to the home key corresponding to the target scene parameter is a touch response mode; and/or the presence of a gas in the gas,
and when the fact that the touch control strength of the touch control operation aiming at the physical key corresponding to the home key of the mobile terminal is larger than a second preset pressure threshold value is detected, determining that the target response mode of the physical key corresponding to the home key corresponding to the target scene parameter is a pressing response mode.
It can be seen that, in the control method for the physical key corresponding to the home key provided in the embodiment of the present invention, the mobile terminal obtains the current target scene parameter of the mobile terminal, where the scene parameter includes one of the following: the method comprises the steps that a current user of the mobile terminal, an application program currently running by the mobile terminal or the touch control strength of touch control operation of a physical key corresponding to a home key of the mobile terminal further determines a target response mode of the physical key corresponding to the home key corresponding to a target scene parameter according to the acquired target scene parameter and a mapping relation between a prestored scene parameter and a response mode of the physical key corresponding to the home key, and finally, a parameter acquisition device corresponding to the target response mode is started to set the response mode of the physical key corresponding to the home key of the mobile terminal as the target response mode. Therefore, the mobile terminal can automatically control the response mode of the physical key corresponding to the home key according to the scene factors, so that the damage of the entity home key caused by pressing the entity home key for a long time can be avoided.
As shown in fig. 9, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part in the embodiment of the present invention. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 9 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 9, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (WiFi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 9 is not intended to be limiting and 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 phone in detail with reference to fig. 9:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program (a touch operation detection function, a time node acquisition function, a control instruction generation function, etc.) required by at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 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 input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. Optionally, the fingerprint recognition module 931 may include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module. Taking the fingerprint identification module 931 as an example of a capacitive fingerprint identification module, the fingerprint identification module specifically includes sensing electrodes (abnormal sensing electrodes and normal sensing electrodes) and a signal processing circuit (such as an amplifying circuit, a noise suppression circuit, an analog-to-digital conversion circuit, etc.) connected to the sensing electrodes. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 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.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display screen 941, and optionally, the Display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 9, the fingerprint recognition module 931 and the display screen 941 are shown as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint recognition module 931 and the display screen 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone 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 gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and outputs the audio data to the processor 980 for processing, and then transmits the audio data to, for example, another mobile phone through the RF circuit 910, or outputs the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 9 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiments shown in fig. 1, fig. 2, fig. 3 and fig. 6, the method flows of the steps may be implemented based on the structure of the mobile phone.
In the embodiments of fig. 4-1, 4-2 and 7, the functions of the units can be implemented based on the structure of the mobile phone.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the control methods for a physical key corresponding to a home key described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A control method for a physical key corresponding to a home key is characterized by comprising the following steps:
when a touch operation aiming at a physical key corresponding to a home key of a mobile terminal is detected, acquiring a first time node for starting to detect the touch operation, and continuously detecting a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, wherein the touch parameter at least comprises touch strength, and the touch operation is an operation of which the touch strength is smaller than or equal to a preset pressure threshold;
when the change trend of the touch parameter in a preset time period is detected to meet a first preset condition, acquiring a current second time node of the system;
generating a touch control instruction when detecting that the time length between the first time node and the second time node meets a second preset condition;
inquiring a preset operation corresponding to the touch control instruction, and executing the preset operation;
when the touch operation of the physical key corresponding to the home key of the mobile terminal is detected, before the first time node at which the touch operation is detected is acquired, the method further includes:
displaying a setting interface for setting a response mode of a physical key corresponding to a home key, wherein the setting interface at least comprises a first virtual switch corresponding to a touch response mode;
when the starting operation of a first virtual switch corresponding to the touch response mode is detected, starting a first parameter acquisition device corresponding to the touch response mode to detect the touch operation of a physical key corresponding to a home key of the mobile terminal;
the setting interface further comprises a second touch switch in a press response mode;
after the setting interface for setting the response mode of the physical key corresponding to the home key is displayed, the method further includes:
when the starting operation of a second virtual switch corresponding to the press response mode is detected, starting a second parameter acquisition device corresponding to the press response mode;
when detecting that a first metal sheet of a physical key corresponding to the home key is contacted with a second metal sheet, generating a first signal, and recording a third time node for generating the first signal;
when the separation of a first metal sheet and a second metal sheet of a physical key corresponding to the home key is detected, generating a second signal, and recording a fourth time node for generating the second signal;
generating a pressing control instruction when detecting that the time length between the third time node and the fourth time node meets a third preset condition;
inquiring a preset operation corresponding to the pressing control instruction, and executing the preset operation;
the method comprises the steps that a home key interrupt is generated through hardware, a system home key event is reported, the system responds to the home key event and further achieves the function of returning to a desktop, wherein the process of generating the home key interrupt through the hardware is divided into the steps that a physical key corresponding to the home key is pressed down and interrupted, a physical key corresponding to the home key is pressed down and then lifted up and interrupted, the physical key corresponding to the home key is controlled through touch operation, and the physical key corresponding to the home key is pressed down and interrupted and the physical key corresponding to the home key is lifted up and interrupted after being pressed down;
when the mobile terminal detects a touch operation of a physical key corresponding to a home key of the mobile terminal, acquiring that a first time node for starting to detect the touch operation is equivalent to that the physical key corresponding to a simulated home key is pressed and interrupted, and when detecting that a change trend of the touch parameter in a preset time period meets a first preset condition, acquiring that a second time node of a system is equivalent to that the physical key corresponding to the simulated home key is pressed and then lifted and interrupted by the mobile terminal, wherein the change trend of the touch parameter in the preset time period meets the first preset condition that a change trend of touch strength corresponding to the touch operation in the preset time period meets a smaller and smaller preset strength threshold value.
2. The method of claim 1, wherein the method further comprises:
when touch operation aiming at a physical key corresponding to a home key is detected, fingerprint information corresponding to the touch operation is acquired;
detecting whether the acquired fingerprint information is matched with prestored fingerprint information;
and when the acquired fingerprint information is detected to be matched with the pre-stored fingerprint information, generating a fingerprint control instruction, and executing a preset operation corresponding to the fingerprint control instruction.
3. The method of claim 2, wherein the method further comprises:
when the fingerprint control instruction and the touch control instruction are generated within a preset time period, executing a preset operation corresponding to the fingerprint control instruction, and after the preset operation corresponding to the fingerprint control instruction is executed, executing the preset operation corresponding to the touch control instruction.
4. A mobile terminal, comprising:
the mobile terminal comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a first time node for starting to detect a touch operation when the touch operation of a physical key corresponding to a home key of the mobile terminal is detected, and continuously detecting a touch parameter generated when the touch operation acts on the physical key corresponding to the home key, the touch parameter at least comprises touch strength, and the touch operation is an operation of which the touch strength is smaller than or equal to a preset pressure threshold;
the first obtaining unit is further configured to obtain a current second time node of the system when it is detected that a variation trend of the touch parameter in a preset time period meets a first preset condition;
the first generating unit is used for generating a touch control instruction when detecting that the time length between the first time node and the second time node meets a second preset condition;
the first execution unit is used for inquiring the preset operation corresponding to the touch control instruction and executing the preset operation;
wherein the mobile terminal further comprises:
the display unit is used for displaying a setting interface used for setting a response mode of a physical key corresponding to a home key before a first time node for starting to detect a touch operation is acquired when the first acquisition unit detects the touch operation of the physical key corresponding to the home key of the mobile terminal, wherein the setting interface at least comprises a first virtual switch corresponding to the touch response mode;
the first starting unit is used for starting the first parameter acquisition device corresponding to the touch response mode when the starting operation of the first virtual switch corresponding to the touch response mode is detected so as to detect the touch operation of the physical key corresponding to the home key of the mobile terminal;
wherein the content of the first and second substances,
the setting interface further comprises a second touch switch in a press response mode;
the mobile terminal further includes:
the second starting unit is used for starting a second parameter acquisition device corresponding to the press response mode when the starting operation of a second virtual switch corresponding to the press response mode is detected after the display unit displays a setting interface used for setting the response mode of the physical key corresponding to the home key;
when detecting that a first metal sheet of a physical key corresponding to the home key is contacted with a second metal sheet, generating a first signal, and recording a third time node for generating the first signal;
the recording unit is further configured to generate a second signal when the first metal sheet and the second metal sheet of the physical key corresponding to the home key are detected to be separated, and record a fourth time node at which the second signal is generated;
the second generation unit is used for generating a pressing control instruction when detecting that the time length between the third time node and the fourth time node meets a third preset condition;
the second execution unit is used for inquiring the preset operation corresponding to the pressing control instruction and executing the preset operation;
the method comprises the steps that a home key interrupt is generated through hardware, a system home key event is reported, the system responds to the home key event and further achieves the function of returning to a desktop, wherein the process of generating the home key interrupt through the hardware is divided into the steps that a physical key corresponding to the home key is pressed down and interrupted, a physical key corresponding to the home key is pressed down and then lifted up and interrupted, the physical key corresponding to the home key is controlled through touch operation, and the physical key corresponding to the home key is pressed down and interrupted and the physical key corresponding to the home key is lifted up and interrupted after being pressed down;
when the mobile terminal detects a touch operation of a physical key corresponding to a home key of the mobile terminal, acquiring that a first time node for starting to detect the touch operation is equivalent to that the physical key corresponding to a simulated home key is pressed and interrupted, and when detecting that a change trend of the touch parameter in a preset time period meets a first preset condition, acquiring that a second time node of a system is equivalent to that the physical key corresponding to the simulated home key is pressed and then lifted and interrupted by the mobile terminal, wherein the change trend of the touch parameter in the preset time period meets the first preset condition that a change trend of touch strength corresponding to the touch operation in the preset time period meets a smaller and smaller preset strength threshold value.
5. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the second acquisition unit is used for acquiring fingerprint information corresponding to touch operation when the touch operation aiming at a physical key corresponding to a home key is detected;
the detection unit is used for detecting whether the acquired fingerprint information is matched with pre-stored fingerprint information or not;
and the third execution unit is used for generating a fingerprint control instruction and executing a preset operation corresponding to the fingerprint control instruction when the acquired fingerprint information is detected to be matched with the pre-stored fingerprint information.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the priority determining unit is used for executing the preset operation corresponding to the fingerprint control instruction when the fingerprint control instruction and the touch control instruction are generated within a preset time period, and executing the preset operation corresponding to the touch control instruction after the preset operation corresponding to the fingerprint control instruction is executed.
7. A mobile terminal, comprising:
the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are connected through the communication bus and complete mutual communication;
the memory stores executable program code, the communication interface is for wireless communication;
the processor is configured to call the executable program code in the memory to perform the method of any of claims 1-3.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by hardware, is capable of implementing the method of any one of claims 1 to 3.
CN201710154277.3A 2017-03-15 2017-03-15 Control method for physical key corresponding to home key and mobile terminal Expired - Fee Related CN107071151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710154277.3A CN107071151B (en) 2017-03-15 2017-03-15 Control method for physical key corresponding to home key and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710154277.3A CN107071151B (en) 2017-03-15 2017-03-15 Control method for physical key corresponding to home key and mobile terminal

Publications (2)

Publication Number Publication Date
CN107071151A CN107071151A (en) 2017-08-18
CN107071151B true CN107071151B (en) 2020-12-08

Family

ID=59620362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710154277.3A Expired - Fee Related CN107071151B (en) 2017-03-15 2017-03-15 Control method for physical key corresponding to home key and mobile terminal

Country Status (1)

Country Link
CN (1) CN107071151B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020518A (en) * 2018-01-10 2019-07-16 敦泰电子有限公司 A kind of terminal control method based on fingerprint recognition key, device and terminal
CN108965586A (en) * 2018-06-26 2018-12-07 珠海市魅族科技有限公司 A kind of HOME key operation method and device
CN110166371B (en) * 2019-05-16 2022-11-22 北京达佳互联信息技术有限公司 Flow control method and device, electronic equipment and storage medium
CN112712064A (en) * 2021-01-18 2021-04-27 读书郎教育科技有限公司 Equipment and method for controlling user through fingerprint

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106040A (en) * 2013-02-25 2013-05-15 广东欧珀移动通信有限公司 Mobile terminal operation method and device using the same
CN103620542A (en) * 2013-01-22 2014-03-05 华为终端有限公司 A physical key simulating method and apparatus based on a touch screen
CN105739866A (en) * 2016-01-29 2016-07-06 广东欧珀移动通信有限公司 Application management method and apparatus, and terminal
CN105786254A (en) * 2016-02-29 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Task management method and system based on pressure touch
CN106293422A (en) * 2016-08-05 2017-01-04 珠海格力电器股份有限公司 A kind of mobile terminal and mobile terminal by the method for key control

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11003259B2 (en) * 2015-02-27 2021-05-11 Lenovo (Singapore) Pte. Ltd. Modifier key input on a soft keyboard using pen input

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620542A (en) * 2013-01-22 2014-03-05 华为终端有限公司 A physical key simulating method and apparatus based on a touch screen
CN103106040A (en) * 2013-02-25 2013-05-15 广东欧珀移动通信有限公司 Mobile terminal operation method and device using the same
CN105739866A (en) * 2016-01-29 2016-07-06 广东欧珀移动通信有限公司 Application management method and apparatus, and terminal
CN105786254A (en) * 2016-02-29 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Task management method and system based on pressure touch
CN106293422A (en) * 2016-08-05 2017-01-04 珠海格力电器股份有限公司 A kind of mobile terminal and mobile terminal by the method for key control

Also Published As

Publication number Publication date
CN107071151A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
EP3401776B1 (en) Sound effect configuration method and system and related device
CN107071151B (en) Control method for physical key corresponding to home key and mobile terminal
CN107172267B (en) Fingerprint identification control method and related product
EP3299999A2 (en) Method and device for updating sequence of fingerprint templates for matching
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN106658753B (en) Data migration method and terminal equipment
CN107317918B (en) Parameter setting method and related product
WO2018049884A1 (en) Data migration method and device
EP3418871B1 (en) Swiping response acceleration method and related products
CN106095566B (en) Response control method and mobile terminal
CN106934003B (en) File processing method and mobile terminal
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
CN110277097B (en) Data processing method and related equipment
JP2020535774A (en) Notification message processing method and terminal
CN108304709B (en) Face unlocking method and related product
CN108170360B (en) Control method of gesture function and mobile terminal
CN106775856B (en) Mobile terminal working mode switching method and mobile terminal
CN106686704B (en) Terminal monitoring method and mobile terminal
CN106817751B (en) Data sending method and mobile terminal
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
US10110720B2 (en) Dialing method for user terminal and user terminal
CN112187973B (en) Terminal equipment and method for processing incoming call
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN108769093B (en) Push method and device for software application store and mobile terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

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

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

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

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

Granted publication date: 20201208