CN106126082B - Terminal control method and device and terminal - Google Patents
Terminal control method and device and terminal Download PDFInfo
- Publication number
- CN106126082B CN106126082B CN201610474327.1A CN201610474327A CN106126082B CN 106126082 B CN106126082 B CN 106126082B CN 201610474327 A CN201610474327 A CN 201610474327A CN 106126082 B CN106126082 B CN 106126082B
- Authority
- CN
- China
- Prior art keywords
- signal
- trigger signal
- terminal
- control event
- trigger
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The disclosure relates to a method and a device for controlling a terminal and the terminal. The method comprises the following steps: acquiring a trigger signal triggered when an operation body performs a knocking operation on the terminal; determining a control event corresponding to the trigger signal according to the trigger signal; and controlling the terminal according to the control event. The method disclosed by the embodiment of the invention can improve the man-machine interaction.
Description
Technical Field
The present disclosure relates to the field of terminals, and in particular, to a method and an apparatus for controlling a terminal, and a terminal.
Background
With the continuous development of social economy, terminals such as mobile phones and the like become indispensable tools in the life of people, people can carry out network chat, shopping, ticket booking and the like through the terminals, and great convenience is brought to the life of people.
In the related art, a touch operation mode has been applied to a terminal instead of an operation mode of an entity key, and the operation mode is the most important man-machine interaction mode in the terminal. The terminal provides screen touch and edge touch operation modes for a user; for screen touch, a user mainly realizes the operation of various functions in the terminal through a touch pad in a terminal liquid crystal screen; for edge touch, a user mainly implements operations of various functions in the terminal through a touch pad in the side edge of the terminal.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for controlling a terminal, and a terminal.
According to a first aspect of the embodiments of the present disclosure, there is provided a method of controlling a terminal, including:
acquiring a trigger signal triggered by the knocking operation of an operation body on the terminal;
determining a control event corresponding to the trigger signal according to the trigger signal;
and controlling the terminal according to the control event.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of obtaining a trigger signal corresponding to an operation body when the operation body is used for knocking on the terminal through the terminal, determining a control event corresponding to the trigger signal, and controlling the terminal according to the control event, so that a user can input knocking operation on the terminal through the operation body to complete control over the terminal.
Further, the determining, according to the trigger signal, a control event corresponding to the trigger signal includes:
extracting a characteristic signal corresponding to the trigger signal;
determining a control event corresponding to the trigger signal according to a preset first corresponding relationship and a characteristic signal corresponding to the trigger signal, wherein the first corresponding relationship comprises a mapping relationship between the characteristic signal and the control event.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of obtaining a trigger signal triggered when an operation body performs a knocking operation on a terminal through the terminal, extracting a characteristic signal corresponding to the trigger signal, determining a control event corresponding to the trigger signal according to a first corresponding relation including a mapping relation between the characteristic signal and the control event and the characteristic signal corresponding to the trigger signal, and controlling the terminal according to the control event, so that a user inputs the knocking operation on the terminal through the operation body to complete control over the terminal, man-machine interaction is improved, and the user can control the terminal more conveniently.
Further, the method further comprises:
acquiring a second corresponding relation input by a user, wherein the second corresponding relation comprises a mapping relation between the tapping operation and the control event;
and establishing the first corresponding relation according to the second corresponding relation and the characteristic signal corresponding to the knocking operation.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the second corresponding relation which is input by the user and comprises the mapping relation between the knocking operation and the control event is obtained, and the first corresponding relation is established according to the second corresponding relation and the characteristic signal corresponding to the knocking operation, so that the mapping relation between the knocking operation and the control event can be set by the user, and flexibility is provided.
Further, the determining, according to the trigger signal, a control event corresponding to the trigger signal includes:
extracting a characteristic signal corresponding to the trigger signal;
determining an interrupt signal corresponding to the trigger signal according to a preset third corresponding relation and the characteristic signal corresponding to the trigger signal; the third corresponding relation comprises a mapping relation between the characteristic signal and the interrupt signal;
determining a control event corresponding to the trigger signal according to a preset fourth corresponding relation and an interrupt signal corresponding to the trigger signal; the fourth corresponding relationship includes a mapping relationship between the interrupt signal and the control event.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of obtaining a trigger signal triggered when an operation body performs a knocking operation on a terminal through the terminal, extracting a characteristic signal corresponding to the trigger signal, determining an interrupt signal corresponding to the trigger signal according to a third corresponding relation comprising a mapping relation between the characteristic signal and the interrupt signal and the characteristic signal corresponding to the trigger signal, determining a control event corresponding to the trigger signal according to a fourth corresponding relation comprising a mapping relation between the interrupt signal and the control event and the interrupt signal corresponding to the trigger signal, and controlling the terminal according to the control event, so that a user inputs the knocking operation on the terminal through the operation body to complete control over the terminal, man-machine interaction is improved, and the user can control the terminal more conveniently.
Further, the method further comprises:
performing signal preprocessing on the trigger signal to obtain a preprocessed trigger signal;
should extract the characteristic signal that this trigger signal corresponds, include:
and extracting a characteristic signal corresponding to the preprocessed trigger signal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the stability and reliability of the trigger signal can be improved by signal preprocessing.
Further, the operation body is a human body part or a tool which can be used for knocking the terminal.
Further, the tapping operation includes: a tapping operation of tapping once or a tapping operation of tapping a plurality of times at preset time intervals.
Further, the control event includes: taking a picture, lighting up a screen, extinguishing the screen, turning on a flash lamp or turning off the flash lamp.
According to a second aspect of the embodiments of the present disclosure, there is provided a terminal controlled apparatus, including:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is configured to acquire a trigger signal triggered when an operation body performs a knocking operation on the terminal;
a determining module configured to determine a control event corresponding to the trigger signal according to the trigger signal;
a control module configured to control the terminal according to the control event.
Further, the determining module includes: an extraction submodule and a first determination submodule;
the extraction submodule is configured to extract a characteristic signal corresponding to the trigger signal;
the first determining submodule is configured to determine a control event corresponding to the trigger signal according to a preset first corresponding relationship and a characteristic signal corresponding to the trigger signal, and the first corresponding relationship includes a mapping relationship between the characteristic signal and the control event.
Further, the apparatus further comprises: setting a module;
the setup module configured to:
acquiring a second corresponding relation input by a user, wherein the second corresponding relation comprises a mapping relation between the tapping operation and the control event;
and establishing the first corresponding relation according to the second corresponding relation and the characteristic signal corresponding to the knocking operation.
Further, the determining module includes: an extraction submodule and a second determination submodule;
the extraction submodule is configured to extract a characteristic signal corresponding to the trigger signal;
the second determination submodule configured to:
determining an interrupt signal corresponding to the trigger signal according to a preset third corresponding relation and the characteristic signal corresponding to the trigger signal; the third corresponding relation comprises a mapping relation between the characteristic signal and the interrupt signal;
determining a control event corresponding to the trigger signal according to a preset fourth corresponding relation and an interrupt signal corresponding to the trigger signal; the fourth corresponding relationship includes a mapping relationship between the interrupt signal and the control event.
Further, the determining module further comprises: a preprocessing submodule;
the preprocessing submodule is configured to perform signal preprocessing on the trigger signal and acquire a preprocessed trigger signal;
the extraction submodule comprises a first extraction submodule; the first extraction submodule is configured to extract a characteristic signal corresponding to the preprocessed trigger signal.
Further, the operation body is a human body part or a tool which can be used for knocking the terminal.
Further, the tapping operation includes: a tapping operation of tapping once or a tapping operation of tapping a plurality of times at preset time intervals.
Further, the control event includes: taking a picture, lighting up a screen, extinguishing the screen, turning on a flash lamp or turning off the flash lamp.
The beneficial effects of the terminal control device provided by the second aspect and the possible embodiments of the second aspect may refer to the beneficial effects brought by the possible embodiments of the first aspect and the first aspect, and are not described herein again.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor and a memory for storing executable instructions for the processor;
wherein the processor is configured to:
acquiring a trigger signal, wherein the trigger signal is an electric signal corresponding to a sound signal triggered when an operation body performs a knocking operation on the terminal;
determining a control event corresponding to the trigger signal according to the trigger signal;
and controlling the terminal according to the control event.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of obtaining a trigger signal corresponding to an operation body when the operation body is used for knocking on a terminal through a processor, determining a control event corresponding to the trigger signal, and controlling the terminal according to the control event, so that a user can input knocking operation on the terminal through the operation body to complete control over the terminal.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow chart illustrating a method of controlling a terminal in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of controlling a terminal in accordance with another exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of controlling a terminal in accordance with yet another exemplary embodiment;
FIG. 4 is a functional block diagram of the Tap Sensing algorithm;
fig. 5 is a block diagram illustrating an apparatus for controlling a terminal according to an exemplary embodiment;
fig. 6 is a block diagram illustrating an apparatus for controlling a terminal according to another exemplary embodiment;
fig. 7 is a block diagram illustrating an apparatus for controlling a terminal according to still another exemplary embodiment;
fig. 8 is a block diagram illustrating an apparatus for controlling a terminal according to still another exemplary embodiment;
fig. 9 is a block diagram illustrating an apparatus for controlling a terminal according to still another exemplary embodiment;
fig. 10 is a block diagram illustrating an entity of an apparatus for controlling a terminal according to an exemplary embodiment;
fig. 11 is a block diagram illustrating a terminal 800 according to another exemplary embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for controlling a terminal according to an exemplary embodiment, where the method may be applied to a terminal that needs human-computer interaction, such as a mobile phone, a tablet computer, and the like. As shown in fig. 1, the method comprises the steps of:
in step 101, a trigger signal triggered when an operator performs a tapping operation on the terminal is acquired.
In this step, the trigger signal triggered by the operation body tapping the terminal is obtained, and the trigger signal is not a touch signal triggered when the operation body performs a touch operation on the touch pad, so the operation body in the embodiment of the present disclosure is not necessarily limited to an operation body capable of performing an input on the touch pad, and any component capable of performing a tapping operation on the terminal may be the operation body in the embodiment of the present disclosure. The touch operation may be a touch operation on any portion of the terminal, and the operation range of the operation body is expanded compared to a case where a touch operation is required on a touch panel. The operating body may be any body part or tool that can be used to strike the terminal, such as a finger, and the tool may be a pen, a cup, a chopstick, a stick, and the like. The trigger signal may be various signals triggered when the operation body performs a tapping operation on the terminal, for example, the trigger signal may specifically be an electrical signal corresponding to a vibration signal triggered when the operation body performs a tapping operation on the terminal, or the trigger signal may specifically be an electrical signal corresponding to a sound signal triggered when the operation body performs a tapping operation on the terminal, and the like. It should be noted that the sound signal is specifically triggered by a tapping operation on the terminal, and is not a sound signal in the external environment, so as to ensure the reliability of the terminal control.
In step 102, a control event corresponding to the trigger signal is determined according to the trigger signal.
In this step, specifically, the control event corresponding to the trigger signal may be determined through the corresponding relationship between the trigger signal and the control event; or, another signal corresponding to the trigger signal may be obtained according to the trigger signal, and the control event corresponding to the trigger signal may be determined according to a correspondence between the other signal and the control event. The control event may be any event in controlling the terminal. The control event may be a picture taking, for example, when a camera of the terminal is turned on. For another example, the control event may be screen-off when the terminal is in a bright screen state. For another example, the control event may be a bright screen when the terminal is in a screen-off state.
In step 103, the terminal is controlled according to the control event.
In this step, the control performed on the terminal corresponds to the control event. For example, when the control event is photographing, controlling the terminal according to the control event may specifically be controlling the terminal to photograph. For another example, when the control event is a bright screen, controlling the terminal according to the control event may specifically be controlling the terminal to light up the screen; for another example, when the control event is screen off, the controlling the terminal according to the control event may specifically be controlling the terminal to screen off.
In the method for controlling the terminal, the terminal acquires the trigger signal corresponding to the operation body when the operation body performs the knocking operation on the terminal, determines the control event corresponding to the trigger signal, and controls the terminal according to the control event, so that a user can complete the control of the terminal by inputting the knocking operation on the terminal through the operation body.
Fig. 2 is a flowchart illustrating a method for controlling a terminal according to another exemplary embodiment, and this embodiment mainly relates to an alternative implementation manner in which the terminal determines a control event corresponding to a trigger signal according to the trigger signal based on the embodiment illustrated in fig. 1. As shown in fig. 2, the method comprises the steps of:
in step 201, a trigger signal triggered when the operation body performs a tapping operation on the terminal is acquired.
In this step, optionally, the knocking operation may include: a tapping operation of tapping once or a tapping operation of tapping a plurality of times at preset time intervals. For example, the tapping operation is performed 3 times at 5-second intervals, i.e., 1 time tapping, 5-second intervals, 1 time tapping again, 5-second intervals, and 1 time tapping again. Alternatively, the operating body may be a human body part or a tool, such as a finger, a pen, a stick, etc., which can be used to tap the terminal.
In step 202, a feature signal corresponding to the trigger signal is extracted.
In this step, a feature extraction algorithm may be specifically adopted to extract a feature signal corresponding to the trigger signal. The feature extraction algorithm may specifically be a feature extraction algorithm based on a sound signal, or a feature extraction algorithm based on a vibration signal. The correspondence between the extracted feature signal and the tapping operation may be, for example, as shown in table 1:
TABLE 1
It should be noted that, only an example of a feature signal is given here, and the embodiment of the present disclosure does not limit a specific feature extraction algorithm.
Optionally, before step 202, the method may further include: performing signal preprocessing on the trigger signal to obtain a preprocessed trigger signal; correspondingly, step 202 may specifically be to extract a characteristic signal corresponding to the preprocessed trigger signal. The signal preprocessing may be filtering, amplifying, level converting, etc. The stability and reliability of the trigger signal can be improved by signal preprocessing and/or feature extraction processing.
In step 203, a control event corresponding to the trigger signal is determined according to a preset first corresponding relationship and a characteristic signal corresponding to the trigger signal.
In this step, the first corresponding relationship includes a mapping relationship between the characteristic signal and the control event. The preset first corresponding relationship may be stored in the terminal, or may be acquired by the terminal from another device. The first corresponding relationship may be, for example, as shown in table 2:
TABLE 2
Characteristic signal | Controlling events |
00 | Photographing device |
000 | Bright screen |
0.00 | Screen-off |
…… | …… |
For example, assuming that the characteristic signal corresponding to the trigger signal is 00, the control event corresponding to the trigger signal can be determined to be photographing according to table 2.
Alternatively, the first corresponding relationship may be established according to an input of a user. The method specifically comprises the following steps: acquiring a second corresponding relation input by a user, wherein the second corresponding relation comprises a mapping relation between the tapping operation and the control event; and establishing the first corresponding relation according to the second corresponding relation and the characteristic signal corresponding to the knocking operation. The characteristic signal corresponding to the tapping operation is specifically the characteristic signal corresponding to the trigger signal corresponding to the tapping operation. In the embodiment of the disclosure, the second corresponding relationship which is input by the user and includes the mapping relationship between the knocking operation and the control event is obtained, and the first corresponding relationship is established according to the second corresponding relationship and the characteristic signal corresponding to the knocking operation, so that the user can set the mapping relationship between the knocking operation and the control event, and flexibility is provided. The control event may be any event when the terminal is controlled, such as taking a picture, turning on a screen, turning off a screen, turning on a flash, turning off a flash, and the like.
In step 204, the terminal is controlled according to the control event.
In this step, the control performed on the terminal corresponds to the control event. For example, when the control event is turning on a flash, the controlling the terminal according to the control event may specifically be controlling the terminal to turn on the flash. For another example, when the control event is turning off the flash, the controlling the terminal according to the control event may specifically be controlling the terminal to turn off the flash.
According to the method for controlling the terminal, the terminal acquires the trigger signal triggered when the operation body performs the knocking operation on the terminal, the characteristic signal corresponding to the trigger signal is extracted, the control event corresponding to the trigger signal is determined according to the first corresponding relation including the mapping relation between the characteristic signal and the control event and the characteristic signal corresponding to the trigger signal, and the terminal is controlled according to the control event, so that a user inputs the knocking operation on the terminal through the operation body to complete the control on the terminal, the man-machine interaction is improved, and the user can control the terminal more conveniently.
Fig. 3 is a flowchart illustrating a method for controlling a terminal according to yet another exemplary embodiment, and this embodiment mainly relates to another alternative implementation manner in which the terminal determines a control event corresponding to a trigger signal according to the trigger signal based on the embodiment illustrated in fig. 1. As shown in fig. 3, the method comprises the steps of:
in step 301, a trigger signal triggered when an operator performs a tapping operation on the terminal is obtained.
In this step, step 301 may be executed by a processor of the terminal, or may also be completed by a Smart power amplifier (Smart PA) chip of enimpi semiconductor corporation that integrates a Tap Sensing algorithm in the terminal. When executed by a processor of the terminal, the processor may specifically employ the Tap Sensing algorithm. FIG. 4 is a schematic block diagram of the Tap Sensing algorithm. The speaker in fig. 4 has a function of converting an electric signal into an acoustic signal and transmitting the signal (i.e., a function of emitting sound), and also has a function of sensing a current change caused by the acoustic signal (i.e., a function of sensing acoustic vibration). The amplifier in fig. 4 is used for amplification of the electrical signal when the speaker performs a sound emitting function. As shown in fig. 4, when the user taps the screen of the terminal with a finger, the speaker acquires an electrical signal corresponding to a sound signal generated by tapping the screen of the terminal with the finger. When the speaker realizes the function of sensing sound vibration, the sensed sound vibration may be sound vibration generated by knocking the terminal or sound vibration in an external environment, so that a speaker sensing (spakersening) module is required to acquire an electric signal corresponding to a sound signal triggered by a knocking operation on the terminal from electric signals corresponding to all sound signals from the speaker (that is, acquire a trigger signal triggered by an operation body when the operation body performs the knocking operation on the terminal). In fig. 4, since the sound signal generated by tapping the screen of the terminal with the finger is generated by the tapping operation on the terminal, the speaker sensing module obtains an electrical signal corresponding to the sound signal, that is, the speaker sensing module obtains a trigger signal triggered when the user taps the screen of the terminal with the finger. Alternatively, the terminal may limit the time span of the tapping operation of the operating body on the terminal. Correspondingly, step 301 may specifically be to acquire a trigger signal triggered when the operation body performs a tapping operation on the terminal within a preset time length.
In step 302, a feature signal corresponding to the trigger signal is extracted.
In this step, the feature extraction may be specifically performed on the trigger signal through a feature extraction algorithm to obtain a feature signal performed on the trigger signal. Optionally, step 302 may be performed by a processor of the terminal, or may be performed by a SmartPA chip. As shown in fig. 4, after the speaker sensing module acquires the trigger signal, a Feature extraction (Feature extraction) module may extract a Feature signal corresponding to the trigger signal. The correspondence between the extracted feature signal and the tapping operation may be as shown in table 1. Optionally, before step 302, the method may further include: performing signal preprocessing on the trigger signal to obtain a preprocessed trigger signal; correspondingly, step 302 may specifically be to extract a characteristic signal corresponding to the preprocessed trigger signal. The signal preprocessing may be filtering, amplifying, level converting, etc. The stability and reliability of the trigger signal can be improved by signal preprocessing and/or feature extraction processing. As shown in fig. 4, after the speaker sensing module obtains the trigger signal, a preprocessing (Pre-processing) module may perform signal preprocessing on the trigger signal, and send the obtained preprocessed trigger signal to the feature extraction module, and the feature extraction module extracts a feature signal corresponding to the preprocessed trigger signal.
In step 303, an interrupt signal corresponding to the trigger signal is determined according to a preset third corresponding relationship and the feature signal corresponding to the trigger signal.
In this step, the third corresponding relationship may include a mapping relationship between the feature signal and the interrupt signal. The third correspondence relationship may be, for example, as shown in table 3:
TABLE 3
For example, assuming that the characteristic signal corresponding to the trigger signal is 00, the interrupt signal corresponding to the trigger signal can be determined to be interrupt signal 1 according to table 3.
Optionally, step 303 may be performed by a processor of the terminal, or may be performed by a Smart PA chip. As shown in fig. 4, after the feature extraction module extracts the feature signal of the trigger signal, a pattern matching (pattern matching) module may determine an interrupt signal corresponding to the trigger signal. After determining the interrupt signal corresponding to the trigger signal, the processor may be triggered to send the determined interrupt signal to the processor, and the processor may further execute step 304 to determine the control event corresponding to the trigger signal.
In step 304, a control event corresponding to the trigger signal is determined according to a preset fourth corresponding relationship and an interrupt signal corresponding to the trigger signal.
In this step, the fourth corresponding relationship includes a mapping relationship between the interrupt signal and the control event. The fourth corresponding relationship may be, for example, as shown in table 4:
TABLE 4
Interrupt signal | Controlling events |
Interrupt signal 1 | Photographing device |
Interrupt signal 2 | Bright screen |
Interrupt signal 3 | Screen-off |
…… | …… |
For example, assuming that the interrupt signal corresponding to the trigger signal is interrupt signal 1, the control event corresponding to the trigger signal can be determined to be photographing according to table 4.
In step 305, the terminal is controlled according to the control event.
It should be noted that step 305 is similar to step 204, and is not described herein again.
The method for controlling the terminal of the embodiment includes the steps of obtaining a trigger signal triggered when an operation body performs a tapping operation on the terminal through the terminal, extracting a characteristic signal corresponding to the trigger signal, determining an interrupt signal corresponding to the trigger signal according to a third corresponding relation including a mapping relation between the characteristic signal and the interrupt signal and the characteristic signal corresponding to the trigger signal, determining a control event corresponding to the trigger signal according to a fourth corresponding relation including a mapping relation between the interrupt signal and the control event and the interrupt signal corresponding to the trigger signal, and controlling the terminal according to the control event, so that a user inputs the tapping operation on the terminal through the operation body to complete control over the terminal, man-machine interaction is improved, and the user can control the terminal more conveniently.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating an apparatus for controlling a terminal according to an exemplary embodiment. The means for controlling the terminal may be implemented as part or all of the terminal by software, hardware or a combination of both. Referring to fig. 5, the apparatus includes an acquisition module 501, a determination module 502, and a control module 503.
The acquiring module 501 is configured to acquire a trigger signal triggered when an operator performs a tapping operation on the terminal;
a determining module 502 configured to determine, according to the trigger signal acquired by the acquiring module 501, a control event corresponding to the trigger signal;
a control module 503 configured to control the terminal according to the control event determined by the determination module 502.
Optionally, the operating body is a human body part or a tool which can be used for knocking the terminal.
Optionally, the knocking operation includes: a tapping operation of tapping once or a tapping operation of tapping a plurality of times at preset time intervals.
Optionally, the control event includes: taking a picture, lighting up a screen, extinguishing the screen, turning on a flash lamp or turning off the flash lamp.
To sum up, according to the apparatus for controlling a terminal provided by the embodiment of the present disclosure, the obtaining module obtains the trigger signal corresponding to the operation body when the operation body performs the tapping operation on the terminal, the determining module determines the control event corresponding to the trigger signal, and the control module controls the terminal according to the control event, so that the user can complete the control of the terminal by inputting the tapping operation on the terminal through the operation body, and compared with a case where the user needs to control the terminal on a touch pad, the human-computer interaction is improved.
Fig. 6 is a block diagram illustrating an apparatus for controlling a terminal according to another exemplary embodiment. Referring to fig. 6, in the apparatus, on the basis of the block diagram shown in fig. 5, the determining module 502 may include: an extraction sub-module 5021 and a first determination sub-module 5022.
The extraction submodule 5021 is configured to extract a characteristic signal corresponding to the trigger signal;
the first determining submodule 5022 is configured to determine a control event corresponding to the trigger signal according to a preset first corresponding relationship and the feature signal corresponding to the trigger signal extracted by the extracting submodule 5021, where the first corresponding relationship includes a mapping relationship between the feature signal and the control event.
To sum up, in the apparatus for controlling a terminal provided in the embodiment of the present disclosure, the feature signal corresponding to the trigger signal is extracted by the extraction sub-module, and the first determination sub-module determines the control event corresponding to the trigger signal according to the first corresponding relationship including the mapping relationship between the feature signal and the control event and the feature signal corresponding to the trigger signal, so that a user inputs a tapping operation on the terminal through the operation body to complete control of the terminal, thereby improving human-computer interactivity and enabling the user to control the terminal more conveniently. Meanwhile, the stability of the trigger signal is also improved by extracting the characteristic signal from the trigger signal.
Fig. 7 is a block diagram illustrating an apparatus for controlling a terminal according to still another exemplary embodiment. Referring to fig. 7, optionally, the apparatus may further include, on the basis of the block diagram shown in fig. 6: a setup module 504.
A setup module 504 configured to:
acquiring a second corresponding relation input by a user, wherein the second corresponding relation comprises a mapping relation between the tapping operation and the control event;
and establishing the first corresponding relation according to the second corresponding relation and the characteristic signal corresponding to the knocking operation.
To sum up, in the device for controlling a terminal provided in the embodiment of the present disclosure, the setting module obtains the second corresponding relationship, which includes the mapping relationship between the tapping operation and the control event and is input by the user, and establishes the first corresponding relationship according to the second corresponding relationship and the characteristic signal corresponding to the tapping operation, so that the user can set the mapping relationship between the tapping operation and the control event, thereby providing flexibility.
Fig. 8 is a block diagram illustrating an apparatus for controlling a terminal according to still another exemplary embodiment. Referring to fig. 8, in the apparatus, on the basis of the block diagram shown in fig. 5, the determining module 502 may include: an extraction sub-module 5021 and a second determination sub-module 5023.
The extraction submodule 5021 is configured to extract a characteristic signal corresponding to the trigger signal;
a second determination submodule 5023 configured to:
determining an interrupt signal corresponding to the trigger signal according to a preset third corresponding relation and the feature signal corresponding to the trigger signal extracted by the extraction submodule 5021; the third corresponding relation comprises a mapping relation between the characteristic signal and the interrupt signal;
determining a control event corresponding to the trigger signal according to a preset fourth corresponding relation and an interrupt signal corresponding to the trigger signal; the fourth corresponding relationship includes a mapping relationship between the interrupt signal and the control event.
To sum up, in the apparatus for controlling a terminal provided in the embodiment of the present disclosure, the feature signal corresponding to the trigger signal is extracted by the extraction sub-module, the interrupt signal corresponding to the trigger signal is determined by the second determination sub-module according to the third corresponding relationship including the mapping relationship between the feature signal and the interrupt signal and the feature signal corresponding to the trigger signal, and the control event corresponding to the trigger signal is determined according to the fourth corresponding relationship including the mapping relationship between the interrupt signal and the control event and the interrupt signal corresponding to the trigger signal, so that a user inputs a tapping operation on the terminal through an operation body to complete control over the terminal, thereby improving human-computer interaction and enabling the user to control the terminal more conveniently. Meanwhile, the stability of the trigger signal is also improved by extracting the characteristic signal from the trigger signal.
Fig. 9 is a block diagram illustrating an apparatus for controlling a terminal according to still another exemplary embodiment. Referring to fig. 9, in the apparatus, based on the block diagram shown in fig. 8, the determining module 502 may further include: the pre-processing submodule 5024.
The preprocessing submodule 5024 is configured to perform signal preprocessing on the trigger signal and obtain a preprocessed trigger signal;
an extraction submodule 5021 comprising a first extraction submodule 50211;
the first extraction submodule 50211 is configured to extract a feature signal corresponding to the preprocessed trigger signal, which is acquired by the preprocessing submodule 5024.
To sum up, the device for controlling a terminal provided in the embodiment of the present disclosure performs signal preprocessing on the trigger signal through the preprocessing submodule to obtain the preprocessed trigger signal, and the first extraction submodule extracts the feature signal corresponding to the preprocessed trigger signal, thereby further improving the stability and reliability of the trigger signal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Having described the internal functional modules and the structural schematic diagram of the apparatus for controlling a terminal in the above, fig. 10 is a block diagram illustrating an entity of the apparatus for controlling a terminal according to an exemplary embodiment, and as shown in fig. 10, the apparatus for controlling a terminal may include: a processor 1001, a memory 1002 configured to store executable instructions of the processor 1001.
The processor 1001 is configured to: acquiring a trigger signal, wherein the trigger signal is an electric signal corresponding to a sound signal triggered when an operation body performs a knocking operation on the terminal; determining a control event corresponding to the trigger signal according to the trigger signal; and controlling the terminal according to the control event.
In the above embodiments of the terminal control device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor, which may be any conventional processor or the like. The memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. SIM cards, also known as subscriber identity cards, smart cards, must be installed in a digital mobile phone for use. That is, the information of the digital mobile phone client, the encrypted key and the contents of the user's phone book are stored on the computer chip. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
Fig. 11 is a block diagram illustrating a terminal 800 according to another exemplary embodiment. For example, the terminal 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 11, terminal 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the terminal 800. Examples of such data include instructions for any application or method operating on terminal 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 808 includes a screen that provides an output interface between the terminal 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input a trigger signal. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external trigger signal when the terminal 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received trigger signal may further be stored in memory 804 or transmitted via communications component 816. In some embodiments, the audio component 810 further comprises a speaker for outputting the trigger signal.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
In an exemplary embodiment, the terminal 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform a method of controlling the terminal, the method comprising: acquiring a trigger signal triggered when an operation body performs a knocking operation on the terminal; determining a control event corresponding to the trigger signal according to the trigger signal; and controlling the terminal according to the control event.
Further, the determining, according to the trigger signal, a control event corresponding to the trigger signal includes:
extracting a characteristic signal corresponding to the trigger signal;
determining a control event corresponding to the trigger signal according to a preset first corresponding relationship and a characteristic signal corresponding to the trigger signal, wherein the first corresponding relationship comprises a mapping relationship between the characteristic signal and the control event.
Further, the method further comprises:
acquiring a second corresponding relation input by a user, wherein the second corresponding relation comprises a mapping relation between the tapping operation and the control event;
and establishing the first corresponding relation according to the second corresponding relation and the characteristic signal corresponding to the knocking operation.
Further, the determining, according to the trigger signal, a control event corresponding to the trigger signal includes:
extracting a characteristic signal corresponding to the trigger signal;
determining an interrupt signal corresponding to the trigger signal according to a preset third corresponding relation and the characteristic signal corresponding to the trigger signal; the third corresponding relation comprises a mapping relation between the characteristic signal and the interrupt signal;
determining a control event corresponding to the trigger signal according to a preset fourth corresponding relation and an interrupt signal corresponding to the trigger signal; the fourth corresponding relationship includes a mapping relationship between the interrupt signal and the control event.
Further, the method further comprises:
performing signal preprocessing on the trigger signal to obtain a preprocessed trigger signal;
should extract the characteristic signal that this trigger signal corresponds, include: and extracting a characteristic signal corresponding to the preprocessed trigger signal.
Further, the operation body is a human body part or a tool which can be used for knocking the terminal.
Further, the tapping operation includes: a tapping operation of tapping once or a tapping operation of tapping a plurality of times at preset time intervals.
Further, the control event includes: taking a picture, lighting up a screen, extinguishing the screen, turning on a flash lamp or turning off the flash lamp.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (9)
1. A method of controlling a terminal, comprising:
acquiring a trigger signal triggered by the knocking operation of an operation body on the terminal;
determining a control event corresponding to the trigger signal according to the trigger signal;
controlling the terminal according to the control event;
wherein the determining, according to the trigger signal, a control event corresponding to the trigger signal includes:
extracting a characteristic signal corresponding to the trigger signal;
determining an interrupt signal corresponding to the trigger signal according to a preset third corresponding relation and the characteristic signal corresponding to the trigger signal; the third corresponding relation comprises a mapping relation between the characteristic signal and the interrupt signal;
determining a control event corresponding to the trigger signal according to a preset fourth corresponding relation and an interrupt signal corresponding to the trigger signal; the fourth corresponding relation comprises a mapping relation between the interrupt signal and the control event;
the method further comprises the following steps:
performing signal preprocessing on the trigger signal to obtain a preprocessed trigger signal, wherein the signal preprocessing comprises filtering processing;
the extracting of the characteristic signal corresponding to the trigger signal includes:
and extracting a characteristic signal corresponding to the preprocessed trigger signal.
2. The method according to claim 1, wherein the operating body is a human body part or a tool that can be used to tap the terminal.
3. The method of claim 1, wherein the tapping operation comprises: a tapping operation of tapping once or a tapping operation of tapping a plurality of times at preset time intervals.
4. The method of claim 1, wherein the control event comprises:
taking a picture, lighting up a screen, extinguishing the screen, turning on a flash lamp or turning off the flash lamp.
5. The method according to claim 1, wherein the triggering signal is an electrical signal corresponding to a vibration signal triggered when the operating body performs a tapping operation on the terminal, or the triggering signal is an electrical signal corresponding to a sound signal triggered when the operating body performs a tapping operation on the terminal.
6. A terminal-controlled apparatus, comprising:
the acquisition module is configured to acquire a trigger signal triggered by the knocking operation of an operation body on the terminal;
a determination module configured to determine a control event corresponding to the trigger signal according to the trigger signal;
a control module configured to control the terminal according to the control event; wherein the determining module comprises: an extraction submodule and a second determination submodule;
the extraction submodule is configured to extract a characteristic signal corresponding to the trigger signal;
the second determination submodule configured to:
determining an interrupt signal corresponding to the trigger signal according to a preset third corresponding relation and the characteristic signal corresponding to the trigger signal; the third corresponding relation comprises a mapping relation between the characteristic signal and the interrupt signal;
determining a control event corresponding to the trigger signal according to a preset fourth corresponding relation and an interrupt signal corresponding to the trigger signal; the fourth corresponding relation comprises a mapping relation between the interrupt signal and the control event;
the determining module further comprises: a preprocessing submodule;
the preprocessing submodule is configured to perform signal preprocessing on the trigger signal to obtain a preprocessed trigger signal, wherein the signal preprocessing comprises filtering processing;
the extraction submodule comprises a first extraction submodule; the first extraction submodule is configured to extract a characteristic signal corresponding to the preprocessed trigger signal.
7. The apparatus of claim 6, wherein the control event comprises:
taking a picture, lighting up a screen, extinguishing the screen, turning on a flash lamp or turning off the flash lamp.
8. The device according to claim 6, wherein the triggering signal is an electrical signal corresponding to a vibration signal triggered when the operating body performs a tapping operation on the terminal, or the triggering signal is an electrical signal corresponding to a sound signal triggered when the operating body performs a tapping operation on the terminal.
9. A terminal, comprising:
a processor and a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring a trigger signal, wherein the trigger signal is an electric signal corresponding to a sound signal triggered when an operation body performs a knocking operation on the terminal;
determining a control event corresponding to the trigger signal according to the trigger signal;
controlling the terminal according to the control event;
wherein the determining, according to the trigger signal, a control event corresponding to the trigger signal includes:
extracting a characteristic signal corresponding to the trigger signal;
determining an interrupt signal corresponding to the trigger signal according to a preset third corresponding relation and the characteristic signal corresponding to the trigger signal; the third corresponding relation comprises a mapping relation between the characteristic signal and the interrupt signal;
determining a control event corresponding to the trigger signal according to a preset fourth corresponding relation and an interrupt signal corresponding to the trigger signal; the fourth corresponding relation comprises a mapping relation between the interrupt signal and the control event;
the processor further configured to:
performing signal preprocessing on the trigger signal to obtain a preprocessed trigger signal, wherein the signal preprocessing comprises filtering processing;
the extracting of the characteristic signal corresponding to the trigger signal includes:
and extracting a characteristic signal corresponding to the preprocessed trigger signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610474327.1A CN106126082B (en) | 2016-06-24 | 2016-06-24 | Terminal control method and device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610474327.1A CN106126082B (en) | 2016-06-24 | 2016-06-24 | Terminal control method and device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106126082A CN106126082A (en) | 2016-11-16 |
CN106126082B true CN106126082B (en) | 2020-01-14 |
Family
ID=57266994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610474327.1A Active CN106126082B (en) | 2016-06-24 | 2016-06-24 | Terminal control method and device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106126082B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107014481B (en) * | 2017-03-01 | 2021-01-29 | 北京小米移动软件有限公司 | Action recognition method and device |
CN106970756B (en) * | 2017-03-24 | 2020-08-14 | 宇龙计算机通信科技(深圳)有限公司 | Application tool control method and mobile terminal |
WO2019023992A1 (en) * | 2017-08-02 | 2019-02-07 | 深圳传音通讯有限公司 | Method and system for screen turn-on control of intelligent terminal |
WO2019144392A1 (en) * | 2018-01-29 | 2019-08-01 | 深圳前海达闼云端智能科技有限公司 | Terminal control method and apparatus, storage medium, and electronic device |
CN108595105A (en) * | 2018-04-27 | 2018-09-28 | Oppo广东移动通信有限公司 | Light filling lamp control method, device, storage medium and electronic equipment |
CN115242957B (en) * | 2021-04-22 | 2024-01-23 | 北京君正集成电路股份有限公司 | Method for quickly photographing in intelligent wearable equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102999279A (en) * | 2012-11-29 | 2013-03-27 | 四川长虹电器股份有限公司 | Method for controlling intelligent device through knocks |
CN103645845A (en) * | 2013-11-22 | 2014-03-19 | 华为终端有限公司 | Knocking control method and terminal |
CN104932682A (en) * | 2015-05-27 | 2015-09-23 | 小米科技有限责任公司 | Operation control method and device |
CN105491297A (en) * | 2016-01-20 | 2016-04-13 | 广东欧珀移动通信有限公司 | Image photographing parameter adjusting method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201442514A (en) * | 2013-04-18 | 2014-11-01 | Looq System Inc | Peripheral equipment for controlling camera arranged in a terminal, system and method thereof |
CN105630384A (en) * | 2015-12-24 | 2016-06-01 | 深圳市鼎智通讯有限公司 | Method for starting application through multi-click event, and control system thereof |
-
2016
- 2016-06-24 CN CN201610474327.1A patent/CN106126082B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102999279A (en) * | 2012-11-29 | 2013-03-27 | 四川长虹电器股份有限公司 | Method for controlling intelligent device through knocks |
CN103645845A (en) * | 2013-11-22 | 2014-03-19 | 华为终端有限公司 | Knocking control method and terminal |
CN104932682A (en) * | 2015-05-27 | 2015-09-23 | 小米科技有限责任公司 | Operation control method and device |
CN105491297A (en) * | 2016-01-20 | 2016-04-13 | 广东欧珀移动通信有限公司 | Image photographing parameter adjusting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106126082A (en) | 2016-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106951884B (en) | Fingerprint acquisition method and device and electronic equipment | |
CN106126082B (en) | Terminal control method and device and terminal | |
US10546192B2 (en) | Device and method for recognizing fingerprint | |
CN106709399B (en) | Fingerprint identification method and device | |
US10282586B2 (en) | Method and apparatus for realizing touch button and fingerprint identification, and terminal device using same | |
CN106774803B (en) | Fingerprint identification method and device | |
CN107102772B (en) | Touch control method and device | |
JP6431911B2 (en) | Method and apparatus for setting a threshold | |
CN107562268B (en) | Operation execution method, device and storage medium | |
CN106201292A (en) | Terminal false-touch prevention method and apparatus | |
CN106888327B (en) | Voice playing method and device | |
JP2017506403A (en) | Apparatus, method, terminal device, program, and recording medium for realizing touch button and fingerprint authentication | |
CN105446616A (en) | Screen display control method, apparatus and device | |
WO2017140109A1 (en) | Pressure detection method and apparatus | |
CN105095868A (en) | Picture matching method and apparatus | |
CN109862169B (en) | Electronic equipment control method, device and storage medium | |
CN107392160B (en) | Optical fingerprint identification method and device and computer readable storage medium | |
US10263925B2 (en) | Method, device and medium for sending message | |
CN108766427B (en) | Voice control method and device | |
CN106484296A (en) | Mobile terminal prevents processing method, device and the equipment of false touch | |
CN107656616B (en) | Input interface display method and device and electronic equipment | |
CN106990893B (en) | Touch screen operation processing method and device | |
US10671827B2 (en) | Method and device for fingerprint verification | |
CN107133551B (en) | Fingerprint verification method and device | |
CN103973883B (en) | A kind of method and device controlling voice-input device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |