CN109085919B - Method and device for controlling intelligent hardware - Google Patents

Method and device for controlling intelligent hardware Download PDF

Info

Publication number
CN109085919B
CN109085919B CN201810777884.XA CN201810777884A CN109085919B CN 109085919 B CN109085919 B CN 109085919B CN 201810777884 A CN201810777884 A CN 201810777884A CN 109085919 B CN109085919 B CN 109085919B
Authority
CN
China
Prior art keywords
key
time
keys
preset
sliding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810777884.XA
Other languages
Chinese (zh)
Other versions
CN109085919A (en
Inventor
任锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810777884.XA priority Critical patent/CN109085919B/en
Publication of CN109085919A publication Critical patent/CN109085919A/en
Application granted granted Critical
Publication of CN109085919B publication Critical patent/CN109085919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Abstract

The embodiment of the application discloses a method and a device for controlling intelligent hardware. One embodiment of the method comprises: in response to detecting that the first key is pressed, a first time is recorded. In response to detecting that the second key is pressed within a first predetermined time period after the first time, a second time is recorded. And entering a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time, wherein different operations for the at least two keys in the multi-key mode correspond to different preset functions, and the operations comprise long-press operations. And in response to detecting that the second key and the first key are continuously pressed within a second preset time period after the second time, executing a preset function corresponding to the long-press operation in the multi-key mode. This embodiment simplifies the process of controlling the intelligent hardware.

Description

Method and device for controlling intelligent hardware
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for controlling intelligent hardware.
Background
The intelligent hardware is a science and technology concept behind the smart phone, and the traditional equipment is modified in a mode of combining software and hardware, so that the intelligent hardware has an intelligent function. After the intelligent operation, the hardware has the connection capability, the loading of the internet service is realized, a typical architecture of 'cloud + end' is formed, and the intelligent operation system has additional values of big data and the like. Currently, in the smart hardware industry, the function control keys of the smart hardware can be roughly divided into two types, one type is a physical key and the other type is a touch key.
The existing intelligent hardware with keys has higher requirements during user interactive operation, one button in one operation must be controlled to be touched to take effect, and if a user carelessly touches a plurality of keys at the same time, the intelligent hardware cannot identify key instructions, and cannot execute corresponding functions. Meanwhile, the keys of the existing intelligent hardware need to be matched with corresponding marks such as light and patterns for each key during hardware design and production, so that the user can accurately use the corresponding functions, and extra cost can be caused in this respect.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling intelligent hardware.
In a first aspect, an embodiment of the present application provides a method for controlling intelligent hardware, where the intelligent hardware includes a preset first key and a preset second key, and the method includes: in response to detecting that the first key is pressed, a first time is recorded. In response to detecting that the second key is pressed within a first predetermined time period after the first time, a second time is recorded. And entering a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time, wherein different operations for the at least two keys in the multi-key mode correspond to different preset functions, and the operations comprise long-press operations. And in response to detecting that the second key and the first key are continuously pressed within a second preset time period after the second time, executing a preset function corresponding to the long-press operation in the multi-key mode.
In some embodiments, the operation comprises a gesture operation comprising at least one of: click operation, re-click operation, and slide operation.
In some embodiments, the method further comprises: and responding to the fact that the key of the intelligent hardware is not detected to be pressed within a second preset time period after the second time, and executing a preset function corresponding to the single-click operation in the multi-key mode.
In some embodiments, the method further comprises: and in response to the fact that the pressure value of the pressed first key and/or the pressed second key is larger than the preset pressure threshold value after the multi-key mode is entered, executing a preset function corresponding to the re-pressing operation in the multi-key mode.
In some embodiments, the method further comprises: and responding to the sliding operation of the touch point detected after entering the multi-key mode, and executing a preset function corresponding to the sliding operation in the multi-key mode.
In some embodiments, the sliding operation comprises at least one of: sliding left, sliding right, sliding up, sliding down, sliding in contraction, sliding in expansion.
In some embodiments, the method further comprises: and in response to the fact that the keys except the first key on the intelligent hardware are not detected to be pressed within a first preset time period after the first time, entering a single-key mode and executing a preset function corresponding to the first key.
In some embodiments, the method further comprises: and in response to detecting the voice command after entering the multi-key mode, executing a preset function corresponding to the voice command.
In some embodiments, the type of keys included with the smart hardware are physical keys and/or touch keys.
In a second aspect, an embodiment of the present application provides an apparatus for controlling intelligent hardware, where the intelligent hardware includes a preset first key and a preset second key, and the apparatus includes: a first detection unit configured to record a first time in response to detecting that the first key is pressed. And the second detection unit is configured to respond to the detection that the second key is pressed within a first preset time period after the first time and record a second time. The determining unit is configured to enter a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time, wherein different operations for the at least two keys in the multi-key mode correspond to different preset functions, and the operations comprise long-press operations. And the execution unit is configured to respond to the detection that the second key and the first key are continuously pressed within a second preset time period after the second time, and execute a preset function corresponding to the long-press operation in the multi-key mode.
In some embodiments, the operation comprises a gesture operation comprising at least one of: click operation, re-click operation, and slide operation.
In some embodiments, the execution unit is further configured to: and responding to the fact that the key of the intelligent hardware is not detected to be pressed within a second preset time period after the second time, and executing a preset function corresponding to the single-click operation in the multi-key mode.
In some embodiments, the execution unit is further configured to: and in response to the fact that the pressure value of the pressed first key and/or the pressed second key is larger than the preset pressure threshold value after the multi-key mode is entered, executing a preset function corresponding to the re-pressing operation in the multi-key mode.
In some embodiments, the execution unit is further configured to: and responding to the sliding operation of the touch point detected after entering the multi-key mode, and executing a preset function corresponding to the sliding operation in the multi-key mode.
In some embodiments, the sliding operation comprises at least one of: sliding left, sliding right, sliding up, sliding down, sliding in contraction, sliding in expansion.
In some embodiments, the execution unit is further configured to: and in response to the fact that the keys except the first key on the intelligent hardware are not detected to be pressed within a first preset time period after the first time, entering a single-key mode and executing a preset function corresponding to the first key.
In some embodiments, the execution unit is further configured to: and in response to detecting the voice command after entering the multi-key mode, executing a preset function corresponding to the voice command.
In some embodiments, the type of keys included with the smart hardware are physical keys and/or touch keys.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement a method as in any one of the first aspects.
In a fourth aspect, the present application provides a computer readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method according to any one of the first aspect.
According to the method and the device for controlling the intelligent hardware, the multi-key mode is entered by detecting that two keys are pressed within the preset time. And executing the corresponding function operated in the predefined multi-key mode. Therefore, the process of controlling the intelligent hardware is simplified, and the control operation of the intelligent hardware by a user is facilitated.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for controlling intelligent hardware according to the present application;
FIG. 3 is a schematic diagram of one application scenario of a method for controlling intelligent hardware according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for controlling intelligent hardware according to the present application;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for controlling intelligent hardware according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the present method for controlling intelligent hardware or apparatus for controlling intelligent hardware may be applied.
As shown in fig. 1, system architecture 100 may include intelligent hardware 101, a network 103, and a server 104. Network 103 is the medium used to provide communication links between terminal device 101 and server 104. Network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. The smart hardware 101 comprises keys 102, by means of which keys 102 a user can control the smart hardware 101.
A user may use the intelligent hardware 101 to interact with the server 104 over the network 103 to receive or send messages or the like. The intelligent hardware 101 may be installed with various communication client applications, such as a multimedia player, a voice interaction application, a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The smart hardware 101 may be electronic devices such as watches, televisions, and other appliances; or may be a device that has not been previously electronized, such as a door lock, cup, car, or even a house. Smart hardware has been extended from wearable devices to the fields of smart televisions, smart homes, smart cars, medical health, smart toys, robots, and the like.
The server 104 may be a server that provides various services, such as a background web server that provides support for network functions on the intelligent hardware 101. The background network server may analyze and perform other processing on the received data such as the network request, and feed back a processing result (e.g., webpage data) to the terminal device.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for controlling the intelligent hardware provided in the embodiment of the present application is generally performed by the intelligent hardware 101, and accordingly, the apparatus for controlling the intelligent hardware is generally disposed in the intelligent hardware 101.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for controlling intelligent hardware is shown, in accordance with the present application. The method for controlling the intelligent hardware comprises the following steps:
in step 201, in response to detecting that the first key is pressed, a first time is recorded.
In the present embodiment, an execution subject of the method for controlling smart hardware (e.g., the smart hardware shown in fig. 1) may detect that a key is pressed. The smart hardware may include at least one key. The type of the key included in the intelligent hardware is a physical key and/or a touch key. The user may press a physical key and a touch key at the same time. It is also possible to press only one key. The corresponding marks such as light and patterns can be matched with each key, so that the user can accurately use the corresponding functions. The first key and the second key mentioned in the present application are not specific keys, but names according to the sequence of being pressed in order to distinguish different keys. One finger may press only one key, and multiple fingers may press multiple keys simultaneously. The user may press the keys directly with his palm or by means of another tool. And when the key is detected to be pressed for the first time, the key is regarded as a first key, and the pressed time is recorded as a first time.
In response to detecting that the second key is pressed within a first predetermined time period after the first time, a second time is recorded, step 202.
In this embodiment, the intelligent hardware starts timing after detecting that the key is pressed for the first time, and records the second time if detecting that the second key is pressed within the first predetermined time period. The second key is a different key from the first key. The user may also press the third and fourth keys … …. More than two keys are pressed without affecting the determination of the state of the intelligent hardware. For example, the first predetermined period of time may be 5 seconds. The smart hardware does not directly perform the function corresponding to the first key (e.g., play music) within 5 seconds, but waits for the second key to be pressed. If no other key is pressed, the purpose of the user is to press the first key, and the intelligent hardware executes the function corresponding to the first key.
Step 203, entering a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time.
In this embodiment, the first key is continuously pressed between the first time and the second time, i.e. the first key has not been released. And when the second key is pressed while the first key is kept pressed, the situation that a plurality of keys are pressed simultaneously is shown, and the multi-key mode is entered. If at least two keys are not detected to be pressed, the multi-key mode is exited. The different operations of the at least two keys in the multi-key mode correspond to different preset functions, and the operations can include long-time pressing operations. The operations may include gesture operations including at least one of: click operation, re-click operation, and slide operation. It is also possible to combine a re-press with a single click, a re-press with a slide, a re-press with a long press. Different operations implement different functions. For example, a one-click operation implements a pause/resume play function. The slide operation realizes a forward/backward function. For example, sliding left means backing off for 5 seconds. Sliding to the right means advancing for 5 seconds.
And step 204, responding to the detection that the second key and the first key are continuously pressed within a second preset time period after the second time, and executing a preset function corresponding to the long-press operation in the multi-key mode.
In the present embodiment, the second predetermined period of time may be, for example, 3 seconds. Namely, when the user presses two keys for 3 seconds at the same time, the preset function corresponding to the long-press operation in the multi-key mode is triggered. For example, enter/exit networking mode.
In some optional implementations of the embodiment, in response to that the key of the smart hardware is not detected to be pressed within a second predetermined time period after the second time, a preset function corresponding to a single-click operation in the multi-key mode is executed. For example, a user taps a number of keys of the smart hardware and music can be played. The second predetermined period of time is less than the second predetermined period of time. For example, if the key of the smart hardware is not detected to be pressed 2 seconds after the second time, the user is considered to complete the single-click operation on the smart hardware. And the intelligent hardware executes a preset function corresponding to the single-click operation in the multi-key mode.
In some optional implementations of this embodiment, the operation further includes a sliding operation. The method further comprises the following steps: and responding to the sliding operation of the touch point detected after entering the multi-key mode, and executing a preset function corresponding to the sliding operation in the multi-key mode. There are at least two touch points. The touch point refers to a contact point when a user touches a key of the smart hardware. Two touch points can slide simultaneously, or only one touch point can slide, and the other touch point is static. During the sliding process, at least two keys are always pressed. Different functions may be provided for different sliding directions. And when the touch point disappears (the user does not contact with the key) after the touch point is detected to slide, executing a function corresponding to the sliding operation. For example, if the touch point is detected to slide to the left and stop, recording of the number of seconds to be backed is started, and if the touch point disappears immediately after the touch point slides are finished, playing of the audio is performed 5 seconds back. If the touch point still disappears after sliding for 1 second, the audio is played back for 10 seconds. If the touch point still disappears after sliding for 2 seconds, the audio is played back for 15 seconds. And so on.
In some optional implementations of this embodiment, the sliding operation includes at least one of: sliding left, sliding right, sliding up, sliding down, sliding in contraction, sliding in expansion. For example, if any touch point is detected to slide to the left, the intelligent hardware executes a function of backing for a few seconds. And when any touch point is detected to slide rightwards, the intelligent hardware executes the function of playing the audio by advancing for several seconds. The specific time of advance or retreat may be positively correlated with the sliding distance, i.e., the longer the sliding distance, the more seconds of advance or retreat. And when any touch point is detected to slide upwards, the intelligent hardware executes the function of playing the previous song. And if any touch point is detected to slide downwards, the intelligent hardware executes the function of playing the next song. When two touch points are detected to slide towards each other (namely, the distance between the two touch points becomes smaller, the intelligent hardware executes the function of reducing the volume. And when the two touch points are detected to slide reversely (namely, the distance between the two touch points is increased to expand and slide), the intelligent hardware executes the function of increasing the volume.
In some optional implementations of this embodiment, the method further includes: and in response to the fact that the keys except the first key on the intelligent hardware are not detected to be pressed within a first preset time period after the first time, entering a single-key mode and executing a preset function corresponding to the first key. And if the other keys on the intelligent hardware are not detected to be pressed within a first preset time period after the first time, the user is considered to select only one key, and the intelligent hardware executes the corresponding function of the key. This function may be clearly identified on the surface of the key.
In some optional implementations of the embodiment, in response to detecting the voice command after entering the multi-key mode, a preset function corresponding to the voice command is executed. The user may input a voice command by voice, and inform the smart hardware to start/stop receiving the voice command by pressing at least two keys. The data volume of the voice processing is reduced. For example, after the user presses at least two keys on the smart hardware with the palm, the voice input "play me believe" is followed by the palm leaving the smart hardware. The intelligent hardware receives the 'play I believe' and analyzes a voice command 'play', a song 'I believe', and searches the song 'I believe' from the local or network for playing. The voice command may also be some code, for example, "01" represents Song 1. The specific voice command can be appointed in advance and written into the specification of the intelligent hardware for the user to use.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for controlling intelligent hardware according to the present embodiment. In the application scenario of fig. 3, a user wants to play music using smart hardware. He touches the smart hardware using the palm of the hand. The intelligent hardware firstly detects that the first key 301 is pressed, does not immediately execute the function corresponding to the single key of the first key 301, but records the time of the first pressing as the first time, and continuously detects whether other keys are pressed. If the second key 302 is detected to be pressed within a first predetermined time period after the first time, a second time is recorded. If the first key 301 is continuously pressed between the first time and the second time, the intelligent hardware enters a multi-key mode. If the time that the first key 301 and the second key 302 are continuously pressed after entering the multi-key mode exceeds a second preset time period, the user is considered to execute the long-press operation, and the intelligent hardware executes a preset function corresponding to the long-press operation in the multi-key mode (enters the networking mode).
The method provided by the above embodiment of the present application determines whether the user uses the multi-key mode by detecting that the two keys are pressed. In the multi-key mode, the intelligent hardware executes functions corresponding to different operations in the multi-key mode. Thereby simplifying the process of controlling the intelligent hardware. When the user is inconvenient to touch the intelligent hardware with one finger (for example, the finger is stained with water or paint), the intelligent hardware can be controlled through the palm and other parts.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for controlling intelligent hardware is shown. The process 400 of the method for controlling intelligent hardware comprises the following steps:
in response to detecting that the first key is pressed, a first time is recorded, step 401.
Step 402, in response to detecting that the second key is pressed within a first predetermined time period after the first time, recording a second time.
Step 403, entering a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time.
Steps 401 and 403 are substantially the same as step 201 and 203, and therefore will not be described again.
And step 404, in response to detecting that the pressure value of pressing the first key and/or the second key is greater than the preset pressure threshold value after entering the multi-key mode, executing a preset function corresponding to the re-pressing operation in the multi-key mode.
In this embodiment, the execution subject of the method for controlling the smart hardware (for example, the smart hardware shown in fig. 1) includes a pressure detection device, which can measure the pressure value on the key. And when the pressure value of at least one of the two keys is larger than the preset pressure threshold value, the user is considered to perform the re-pressing operation. And the intelligent hardware correspondingly executes the preset function corresponding to the re-pressing operation in the multi-key mode.
Alternatively, the re-press operation may be combined with other operations to perform different functions. For example, sliding left while pressing heavily may double the back, e.g., a light press sliding left may indicate a back of 5 seconds. A heavy press sliding to the left indicates a 10 second back. The heavy press and the long press can be used for switching on and switching off.
As can be seen from fig. 4, the flow 400 of the method for controlling intelligent hardware in the present embodiment highlights the step of pressure detection compared to the embodiment corresponding to fig. 2. Therefore, the scheme described in the embodiment can introduce more operations for controlling the intelligent hardware, thereby realizing more comprehensive and convenient control of the intelligent hardware.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for controlling intelligent hardware, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the apparatus 500 for controlling intelligent hardware of the present embodiment includes: a first detection unit 501, a second detection unit 502, a determination unit 503, and an execution unit 504. Wherein the first detection unit 501 is configured to record a first time in response to detecting that the first key is pressed. The second detection unit 502 is configured to record a second time in response to detecting that the second key is pressed within a first predetermined time period after the first time. The determining unit 503 is configured to enter a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time, wherein different operations for the at least two keys in the multi-key mode correspond to different preset functions, and the operations include a long press operation. The execution unit 504 is configured to execute a preset function corresponding to a long press operation in the multi-key mode in response to detecting that the second key and the first key are continuously pressed within a second predetermined time period after the second time.
In this embodiment, the specific processes of the first detecting unit 501, the second detecting unit 502, the determining unit 503 and the executing unit 504 of the apparatus 500 for controlling intelligent hardware may refer to step 201, step 202, step 203 and step 204 in the corresponding embodiment of fig. 2.
In some optional implementations of the embodiment, the operation includes a gesture operation, and the gesture operation includes at least one of: click operation, re-click operation, and slide operation.
In some optional implementations of this embodiment, the execution unit 504 is further configured to: and responding to the fact that the key of the intelligent hardware is not detected to be pressed within a second preset time period after the second time, and executing a preset function corresponding to the single-click operation in the multi-key mode.
In some optional implementations of this embodiment, the execution unit 504 is further configured to: and in response to the fact that the pressure value of the pressed first key and/or the pressed second key is larger than the preset pressure threshold value after the multi-key mode is entered, executing a preset function corresponding to the re-pressing operation in the multi-key mode.
In some optional implementations of this embodiment, the execution unit 504 is further configured to: and responding to the sliding operation of the touch point detected after entering the multi-key mode, and executing a preset function corresponding to the sliding operation in the multi-key mode.
In some optional implementations of this embodiment, the sliding operation includes at least one of: sliding left, sliding right, sliding up, sliding down, sliding in contraction, sliding in expansion.
In some optional implementations of this embodiment, the execution unit 504 is further configured to: and in response to the fact that the keys except the first key on the intelligent hardware are not detected to be pressed within a first preset time period after the first time, entering a single-key mode and executing a preset function corresponding to the first key.
In some optional implementations of this embodiment, the execution unit 504 is further configured to: and in response to detecting the voice command after entering the multi-key mode, executing a preset function corresponding to the voice command.
In some optional implementations of this embodiment, the type of the key included in the smart hardware is a physical key and/or a touch key.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use in implementing an electronic device (e.g., the intelligent hardware shown in FIG. 1) according to embodiments of the present application is shown. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Liquid Crystal Display (LCD) and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first detection unit, a second detection unit, a determination unit, and an execution unit. Where the names of the units do not in some cases constitute a limitation of the unit itself, for example, the first detection unit may also be described as a "unit recording a first time in response to detecting that the first key is pressed".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: in response to detecting that the first key is pressed, a first time is recorded. In response to detecting that the second key is pressed within a first predetermined time period after the first time, a second time is recorded. And entering a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time, wherein different operations for the at least two keys in the multi-key mode correspond to different preset functions, and the operations comprise long-press operations. And in response to detecting that the second key and the first key are continuously pressed within a second preset time period after the second time, executing a preset function corresponding to the long-press operation in the multi-key mode.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (18)

1. A method for controlling intelligent hardware, the intelligent hardware includes a preset first key, a preset second key and other keys different from the first key and the second key, wherein the first key, the second key and the other keys are not specific keys but names according to the sequence of pressed keys for distinguishing different keys, the first key, the second key and the other keys are touch keys, and the judgment of the state of the intelligent hardware is not influenced when more than two keys are pressed, the method includes:
recording a first time in response to detecting that the first key is pressed;
recording a second time in response to detecting that the second key is pressed within a first predetermined time period after the first time;
entering a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time, wherein different operations for at least two keys in the multi-key mode correspond to different preset functions, and the operations comprise long-press operation and/or sliding operation;
and in response to detecting that the second key and the first key are continuously pressed within a second preset time period after the second time, executing a preset function corresponding to long-press operation and/or sliding operation in the multi-key mode.
2. The method of claim 1, wherein the operation comprises a gesture operation comprising at least one of: click operation, re-click operation, and slide operation.
3. The method of claim 2, wherein the method further comprises:
and responding to the fact that the key of the intelligent hardware is not detected to be pressed within a second preset time period after the second time, and executing a preset function corresponding to the single-click operation in the multi-key mode.
4. The method of claim 2, wherein the method further comprises:
and executing a preset function corresponding to the re-pressing operation in the multi-key mode in response to detecting that the pressure value for pressing the first key and/or the second key is greater than a preset pressure threshold value after entering the multi-key mode.
5. The method of claim 2, wherein the method further comprises:
and responding to the sliding operation of the touch point detected after entering the multi-key mode, and executing a preset function corresponding to the sliding operation in the multi-key mode.
6. The method of claim 5, wherein the sliding operation comprises at least one of: sliding left, sliding right, sliding up, sliding down, sliding in contraction, sliding in expansion.
7. The method according to one of claims 1-6, wherein the method further comprises:
and in response to the fact that the keys except the first key on the intelligent hardware are pressed within a first preset time period after the first time is not detected, entering a single-key touch mode and executing a preset function corresponding to the first key.
8. The method according to one of claims 1-6, wherein the method further comprises:
and in response to detecting the voice command after entering the multi-key mode, executing a preset function corresponding to the voice command.
9. An apparatus for controlling intelligent hardware, the intelligent hardware including a preset first key, a preset second key and other keys different from the first key and the second key, wherein the first key, the second key and the other keys are not specific keys but names according to a sequence of being pressed for distinguishing the different keys, the first key, the second key and the other keys are touch keys, more than two keys are pressed without affecting judgment of a state of the intelligent hardware, the apparatus comprising:
a first detection unit configured to record a first time in response to detecting that the first key is pressed;
a second detection unit configured to record a second time in response to detecting that the second key is pressed within a first predetermined time period after the first time;
a determining unit configured to enter a multi-key mode in response to determining that the first key is continuously pressed between the first time and the second time, wherein different operations for at least two keys in the multi-key mode correspond to different preset functions, and the operations comprise long-press operation and/or sliding operation;
the execution unit is configured to respond to the detection that the second key and the first key are continuously pressed within a second preset time period after the second time, and execute preset functions corresponding to long-press operation and/or sliding operation in the multi-key mode.
10. The apparatus of claim 9, wherein operations comprise gesture operations comprising at least one of: click operation, re-click operation, and slide operation.
11. The apparatus of claim 10, wherein the execution unit is further configured to:
and responding to the fact that the key of the intelligent hardware is not detected to be pressed within a second preset time period after the second time, and executing a preset function corresponding to the single-click operation in the multi-key mode.
12. The apparatus of claim 10, wherein the execution unit is further configured to:
and executing a preset function corresponding to the re-pressing operation in the multi-key mode in response to detecting that the pressure value for pressing the first key and/or the second key is greater than a preset pressure threshold value after entering the multi-key mode.
13. The apparatus of claim 10, wherein the execution unit is further configured to:
and responding to the sliding operation of the touch point detected after entering the multi-key mode, and executing a preset function corresponding to the sliding operation in the multi-key mode.
14. The apparatus of claim 13, wherein the sliding operation comprises at least one of: sliding left, sliding right, sliding up, sliding down, sliding in contraction, sliding in expansion.
15. The apparatus of one of claims 9-14, wherein the execution unit is further configured to:
and in response to the fact that the keys except the first key on the intelligent hardware are pressed within a first preset time period after the first time is not detected, entering a single-key mode and executing a preset function corresponding to the first key.
16. The apparatus of one of claims 9-14, wherein the execution unit is further configured to:
and in response to detecting the voice command after entering the multi-key mode, executing a preset function corresponding to the voice command.
17. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
18. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-8.
CN201810777884.XA 2018-07-16 2018-07-16 Method and device for controlling intelligent hardware Active CN109085919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810777884.XA CN109085919B (en) 2018-07-16 2018-07-16 Method and device for controlling intelligent hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810777884.XA CN109085919B (en) 2018-07-16 2018-07-16 Method and device for controlling intelligent hardware

Publications (2)

Publication Number Publication Date
CN109085919A CN109085919A (en) 2018-12-25
CN109085919B true CN109085919B (en) 2020-03-03

Family

ID=64837998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810777884.XA Active CN109085919B (en) 2018-07-16 2018-07-16 Method and device for controlling intelligent hardware

Country Status (1)

Country Link
CN (1) CN109085919B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069159A (en) * 2019-03-13 2019-07-30 平安普惠企业管理有限公司 Equipment touches delay solution method, device, computer equipment and storage medium
CN111766983B (en) * 2020-08-06 2021-06-08 深圳市航顺芯片技术研发有限公司 Touch method based on embedded touch screen, storage medium and intelligent device
CN114488880B (en) * 2021-12-30 2024-03-12 深圳市欧瑞博科技股份有限公司 Intelligent control method and device of equipment, intelligent switch and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736734A (en) * 2011-03-31 2012-10-17 和硕联合科技股份有限公司 Electronic device and function execution method applied thereto
CN103649892A (en) * 2011-03-08 2014-03-19 诺基亚公司 Method and apparatus for providing quick access to media functions from a locked screen
US9454516B2 (en) * 2008-01-14 2016-09-27 Blackberry Limited Method and handheld electronic device employing a touch screen for ambiguous word review or correction
CN106775282A (en) * 2016-11-10 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Operate the method and device of terminal
CN107479803A (en) * 2017-08-09 2017-12-15 联宝(合肥)电子科技有限公司 A kind of control method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324325B (en) * 2012-03-21 2016-02-10 宇龙计算机通信科技(深圳)有限公司 The detection method of multi-point touch misoperation and terminal
CN104639746A (en) * 2015-01-28 2015-05-20 上海华豚科技有限公司 Electronic equipment with at least two physical contact points and control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9454516B2 (en) * 2008-01-14 2016-09-27 Blackberry Limited Method and handheld electronic device employing a touch screen for ambiguous word review or correction
CN103649892A (en) * 2011-03-08 2014-03-19 诺基亚公司 Method and apparatus for providing quick access to media functions from a locked screen
CN102736734A (en) * 2011-03-31 2012-10-17 和硕联合科技股份有限公司 Electronic device and function execution method applied thereto
CN106775282A (en) * 2016-11-10 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Operate the method and device of terminal
CN107479803A (en) * 2017-08-09 2017-12-15 联宝(合肥)电子科技有限公司 A kind of control method and electronic equipment

Also Published As

Publication number Publication date
CN109085919A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN109085919B (en) Method and device for controlling intelligent hardware
CN101796516B (en) Navigation system and method
US9329830B2 (en) Music playback method, third-party application and device
US20080252611A1 (en) Object search method and terminal having object search function
CN105138263A (en) Method and device for jumping to specific page in application
CN109859776B (en) Voice editing method and device
WO2019218688A1 (en) Method and device for displaying information and searching information
CN110417641A (en) A kind of method and apparatus sending conversation message
CN105528173A (en) Multimedia operation method and terminal
US20170300225A1 (en) Displaying application page of mobile terminal
US11537238B2 (en) Touch control identification method, device and system
CN110493125A (en) Instant communicating method, equipment and computer readable storage medium
CN104298434B (en) A kind of information processing method and electronic equipment
CN113253885A (en) Target content display method, device, equipment, readable storage medium and product
CN108415657A (en) Message method, device, medium and electronic equipment
CN110865734B (en) Target object display method and device, electronic equipment and computer readable medium
TW202001500A (en) Information processing method and device for wearable device
CN107291235B (en) Control method and device
US20150089370A1 (en) Method and device for playing media data on a terminal
US10133361B2 (en) Device driver-level approach for utilizing a single set of interface input devices for multiple computing devices
WO2015043239A1 (en) Method and device for playing media data on a terminal
CN104750401A (en) Touch method and related device as well as terminal equipment
CN110908568A (en) Control method and device for virtual object
CN104571859A (en) Method and terminal for controlling player
CN107807783A (en) Terminal operation method and device, computer installation and readable storage medium storing program for executing

Legal Events

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