CN113330396A - Control method, keyboard and electronic equipment - Google Patents

Control method, keyboard and electronic equipment Download PDF

Info

Publication number
CN113330396A
CN113330396A CN201980079824.3A CN201980079824A CN113330396A CN 113330396 A CN113330396 A CN 113330396A CN 201980079824 A CN201980079824 A CN 201980079824A CN 113330396 A CN113330396 A CN 113330396A
Authority
CN
China
Prior art keywords
key
key list
keyboard
change information
list
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.)
Pending
Application number
CN201980079824.3A
Other languages
Chinese (zh)
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.)
Shenzhen Royole Technologies Co Ltd
Original Assignee
Shenzhen Royole Technologies 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 Shenzhen Royole Technologies Co Ltd filed Critical Shenzhen Royole Technologies Co Ltd
Publication of CN113330396A publication Critical patent/CN113330396A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials

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)
  • Input From Keyboards Or The Like (AREA)

Abstract

The embodiment of the application provides a control method, a keyboard and electronic equipment, wherein the control method comprises the following steps: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the keys, determining a current key list based on the pressing state of the keys, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain first change information; the method comprises the steps of sending first change information to the electronic equipment so that the electronic equipment updates a key list stored by the electronic equipment according to the first change information, wherein the electronic equipment is in wireless connection with a keyboard.

Description

Control method, keyboard and electronic equipment [ technical field ] A method for producing a semiconductor device
The present application relates to the field of control technologies, and in particular, to a control method, a keyboard, and an electronic device.
[ background of the invention ]
The external wireless keyboard receives the operation of the user and sends the information of the user operation to the electronic equipment, so that the electronic equipment executes corresponding operation according to the information of the user operation.
[ application contents ]
The embodiment of the application provides a control method, a keyboard and electronic equipment, so as to reduce the data volume transmitted between the keyboard and the electronic equipment.
In a first aspect, an embodiment of the present application provides a control method, including: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain first change information; and sending the first change information to the electronic equipment so that the electronic equipment updates a key list stored by the electronic equipment according to the first change information, wherein the electronic equipment is in wireless connection with the keyboard.
In a second aspect, an embodiment of the present application provides a control method, including: receiving first change information sent by a keyboard, wherein the first change information is obtained by the keyboard through the following steps: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain the first change information; updating a key list stored by the user according to the first change information; and executing corresponding operation according to the updated key list.
In a third aspect, an embodiment of the present application provides a keyboard, including a memory, a processor, and a control program that is stored in the memory and is executable on the processor, where when the processor executes the control program, the following steps are implemented: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain first change information; and sending the first change information to the electronic equipment so that the electronic equipment updates a key list stored by the electronic equipment according to the first change information, wherein the electronic equipment is in wireless connection with the keyboard.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a control program stored in the memory and executable on the processor, where the processor executes the control program to implement the following steps: receiving first change information sent by a keyboard, wherein the first change information is obtained by the keyboard through the following steps: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain the first change information; updating a key list stored by the user according to the first change information; and executing corresponding operation according to the updated key list.
In a fifth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, on which a control program is stored, and the control program, when executed by a processor, implements the control method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium, on which a control program is stored, and the control program, when executed by a processor, implements the control method of the second aspect.
In the technical scheme, the keyboard reports the change information of the key list to the electronic equipment, the data transmission amount between the keyboard and the electronic equipment is small, and the problem that the data transmission amount is large due to the fact that the keyboard reports the information of all keys in a pressed state to the electronic equipment is solved, so that the time consumed by the electronic equipment for responding to the touch operation of a user is short, and the user experience is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for a person skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a diagram illustrating a comparison between the amount of data transmitted from a keyboard to an electronic device in the related art and the amount of data transmitted from the keyboard to the electronic device in an embodiment of the present application;
2-1-2-3 are schematic diagrams of key lists provided by an embodiment of the present application;
fig. 3 is a flowchart of a keyboard and an electronic device execution control method according to a first embodiment of the present application;
FIG. 4 is a schematic diagram of a touch keyboard according to an embodiment of the present application;
5-1 to 5-4 are schematic diagrams illustrating a coordinate system established based on a horizontal plane where a touch keyboard is located according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a process of determining a pressed key according to coordinates of a touch point according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating an electronic device according to a second embodiment of the present application updating a key list stored in the electronic device according to information reported by a keyboard; and
fig. 8 is a block diagram of a keyboard according to an embodiment of the present application.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present application, the following detailed descriptions of the embodiments of the present application are provided with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be noted that the pressed state of the key includes two possible cases: firstly, a key is in a pressed state; and secondly, the key is in a release state.
The external wireless keyboard receives the operation of the user and sends the information of the user operation to the electronic equipment so that the electronic equipment executes corresponding operation according to the information of the user operation. The following describes the related art by way of example. When a user presses the key a of the keyboard, the keyboard detects that the key a is in a pressed state, and reports information of the key a (i.e., information transmitted for the first time in fig. 1 (a)) to the electronic device, and when the user presses the key K of the keyboard within a period of time while the key a is in the pressed state, the keyboard detects that the key a and the key K are in the pressed state, and reports information of the key a and the key K (i.e., information transmitted for the second time in fig. 1 (a)) to the electronic device.
In the embodiment of the application, a keyboard and an electronic device both store a key list. The key list may include one or more keys, or may not include any keys. In the case where the key list does not include any keys, the key list is referred to as an empty list. Referring to fig. 2-1, a key list including a key is shown; referring to fig. 2-2, a key list including two keys is shown; referring to fig. 2-3, an empty list is shown.
It is assumed that the initial states of the keyboard and the key list stored in the electronic device are both empty lists. The user presses the key a of the keyboard, and the keyboard detects that the key a is in a pressed state, the keyboard updates the key list stored by the keyboard itself, the key list stored by the updated keyboard includes the key a, the keyboard compares the currently stored key list with the previously stored key list, the change information is the key a, and the keyboard reports the information of the key a (i.e., the information transmitted for the first time in fig. 1 (b)) to the electronic device. When the key a is in the pressed state for a period of time, the user presses the key K of the keyboard again, the keyboard detects that the key a and the key K are in the pressed state, the keyboard updates the key list stored by the keyboard itself, the key list stored by the keyboard after the update includes the key a and the key K, the keyboard compares the currently stored key list with the previously stored key list, the change information is the key K, and the keyboard reports the information of the key K (i.e., the information transmitted for the second time in fig. 1 (b)) to the electronic device.
Through the analysis, it can be known that in the related art, the keyboard reports all information of the keys in the pressed state to the electronic device, and the amount of data transmitted between the keyboard and the electronic device is large, so that the electronic device consumes long time to respond to user operations, and user experience is poor. In the embodiment of the application, the keyboard reports the information of the keys with changed states (namely, the keys are changed from the pressed state to the released state or from the released state to the pressed state) to the electronic device, so that the data volume transmitted between the keyboard and the electronic device is reduced, the transmission speed is higher, and the response speed of the electronic device is improved.
An embodiment of the application provides a control system, which comprises a keyboard and an electronic device.
The keyboard can be a touch keyboard or a keyboard with solid keys. The electronic device may be a mobile phone, a tablet computer, a notebook computer, etc.
The keyboard is wirelessly connected with the electronic device to jointly execute the control method provided by the embodiment of the application.
Referring to fig. 3, a flowchart of a control method executed by a keyboard and an electronic device together according to a first embodiment of the present application is shown, where the control method includes the following steps:
step S301: the keyboard detects the pressing state of the keys, determines a current key list based on the pressing state of the keys, and takes the obtained key list as a first key list.
If it is detected in step S301 that 2 keys (e.g., key a and key B) are in a pressed state, it is determined that the current key list includes 2 keys (key a and key B).
If it is detected in step S301 that no key is in a pressed state, i.e., all keys are in a released state, it is determined that the current key list is an empty list.
For the touch keyboard, the step S301 of detecting the pressed state of the key may specifically include: acquiring position information of a touch point, wherein the touch point is positioned in a touch area of a touch keyboard; and determining the key in a pressed state according to the position information of the touch point.
Referring to fig. 4, a touch keyboard 10 according to an embodiment of the present application is shown, in which the touch keyboard 10 includes a touch area 100.
The user touches the touch area of the touch keyboard by fingers or other objects, and the contact point with the touch keyboard is the touch point.
As an alternative mode, the position information of the touch point includes coordinates of the touch point, and the key in the pressed state is determined according to the position information of the touch point, including: judging whether the coordinates of the touch point are located in the coordinate range corresponding to the first key; and if the coordinate of the touch point is located in the coordinate range corresponding to the first key, determining that the first key is in a pressed state, wherein the first key is any one key in the touch keyboard.
In order to determine the coordinates of the touch point, a two-dimensional rectangular coordinate system is established on the plane of the keyboard, and fig. 5-1 to 5-4 show alternative ways of establishing the coordinate system. It should be noted that fig. 5-1 to 5-4 only give examples, and the manner of establishing the coordinate system provided by the embodiments of the present application is not limited to these specific cases.
Each key of the keyboard corresponds to a certain coordinate range, and when the coordinate of the touch point falls within the coordinate range corresponding to a certain key, the user is considered to press the key.
For example, assume that in the coordinate system shown in fig. 5-1, key a corresponds to the coordinate ranges: the range of the abscissa is (317, 507), and the range of the ordinate is (1057, 1319); the coordinate range corresponding to the key S is as follows: the range of the abscissa is (533, 965), and the range of the ordinate is (1057, 1319).
If the coordinate of the touch point is (500, 1300), since the abscissa of the touch point is in the range of (317, 507) and the ordinate is in the range of (1057, 1319), the touch point is located in the coordinate range corresponding to the key a, and thus it can be known that a is in the pressed state.
If the coordinate of the touch point is (600, 1300), since the abscissa of the touch point is in the range of (533, 965) and the ordinate is in the range of (1057, 1319), it means that the touch point is located in the coordinate range corresponding to the key S, and thus it can be known that the key S is in a pressed state.
If the coordinate of the touch point is (1000, 1300), since the abscissa of the touch point is not in the range (317, 507), it indicates that the touch point is not in the coordinate range corresponding to the key a, and therefore it can be known that the key corresponding to the touch point is not the key a; since the abscissa of the touch point is not in the range of (533, 965), which indicates that the touch point is not in the coordinate range corresponding to the key S, it can be known that the key corresponding to the touch point is not the key S.
Step S302: after a preset time interval, the keyboard detects the pressing state of the keys, determines a current key list based on the pressing state of the keys, and takes the obtained key list as a second key list.
The preset time interval is a short time, and may be set according to actual requirements, for example, the preset time interval is set to 0.1 second, 0.2 second, or 0.5 second.
Step S303: the keyboard compares the second key list with the first key list to obtain first change information.
The first change information includes a key of the second key list that is different from that of the first key list, for example, a key included in the first key list and not included in the second key list, or a key included in the second key list and not included in the first key list. For example, assume that the first key list includes only the key "Ctrl" and the second key list includes two keys: the key "Ctrl" and the key "V" are compared with the second key list, and it can be known that the different key in the two key lists is the key "V". For another example, assume that the first key list includes key "Ctrl" and key "C", and the second key list includes only one key: the key "Ctrl" is compared with the second key list, and it can be known that the different key in the two key lists is the key "C".
If the first key list includes at least one key and the second key list does not include any key, the first change information includes all keys in the first key list. For example, if the first key list includes the key "Ctrl" and the key "C" and the second key list does not include any key, the second key list is compared with the first key list, and it is known that the different keys in the two key lists are all keys in the first key list, i.e., the key "Ctrl" and the key "C".
Step S304: the keyboard sends the first change information to the electronic device. The electronic device is wirelessly connected with the keyboard.
Step S305: the electronic equipment receives first change information sent by the keyboard.
Step S306: and the electronic equipment updates the key list stored by the electronic equipment according to the first change information.
Step S307: and the electronic equipment executes corresponding operation according to the updated key list.
A key list is also stored and maintained in the electronic device.
As described above, the first variation information includes different keys in the second key list and the first key list, and for convenience of description, the different keys in the second key list and the first key list are referred to as second keys, and the first variation information includes the second keys.
As an optional implementation manner, step S306 may specifically include: the electronic equipment judges whether a key list stored by the electronic equipment comprises a second key or not; if the key list stored by the user does not comprise the second key, adding the second key to the key list stored by the user; and if the second key is included in the key list stored by the user, deleting the second key in the key list stored by the user.
For example, assuming that it is determined in step S303 that the different key in the second key list and the first key list is the key "V" (the first change information is the key "V"), the first change information is sent to the electronic device, the electronic device itself stores and maintains a key list, and after the electronic device receives the information of the key "V", the electronic device determines whether the key "V" is included in the key list stored by itself, and the determination result indicates that the key "V" is not included in the key list stored by the electronic device itself, and then adds the key "V" to the key list stored by the electronic device itself.
For another example, the electronic device itself stores and maintains a key list, the key list stores a key "Ctrl" and a key "V", assuming that the keys of the second key list different from the first key list are the key "Ctrl" and the key "V" (the key "Ctrl" and the key "V" are first change information) in step S303, the first change information is sent to the electronic device, after the electronic device receives the information of the key "Ctrl" and the key "V", it is determined whether the key list stored in itself includes the key "Ctrl" and the key "V", the determination result indicates that the key list stored in the electronic device itself includes the key "ct" and the key "V", and the electronic device deletes the key "Ctrl" and the key "V" in the key list stored in itself.
In step S307, corresponding operations are performed according to the updated key list, for example, if the keys stored in the updated key list of the electronic device are the key "Ctrl" and the key "V", the electronic device performs a "paste" operation.
It is noted that the keyboard only needs to send information to the electronic device about the different keys that the first key list and the second key list include, and that this information does not need to be sent to the electronic device as to whether the key is included in the first key list and not included in the second key list (deleted key) or included in the second key list and not included in the first key list (added key). After receiving the information of a certain key, for example, receiving the information of a second key, the electronic device determines whether the key list stored in the electronic device itself includes the second key, and if the key list stored in the electronic device itself includes the second key, it indicates that the second key has been pressed before, the operation of this time is to release the second key, and the electronic device deletes the second key in the key list stored in the electronic device itself; if the second key is not included in the key list stored in the electronic device, the second key is in a released state before the second key is indicated, the second key is pressed in the operation, and the electronic device adds the second key to the key list stored in the electronic device.
As an optional way, after sending the first change information to the electronic device, the keyboard further performs the following steps: detecting the pressing state of the keys, determining a current key list based on the pressing state of the keys, and taking the obtained key list as a third key list; comparing the third key list with the second key list to obtain second change information; and sending second change information to the electronic equipment so that the electronic equipment updates the key list stored by the electronic equipment according to the second change information.
Assuming that the keyboard detects that there is no key currently in a pressed state after the keyboard transmits the first change information to the electronic device, it is determined that the current key list does not include any key, i.e., the third key list is an empty list. Assume that the second key list includes two keys, key "Ctrl" and key "V", respectively. And comparing the third key list with the second key list to obtain second change information comprising all keys in the second key list. The keyboard sends a key Ctrl and a key V to the electronic equipment, so that the electronic equipment updates the key list stored by the electronic equipment.
It can be understood that after the keyboard sends the second change information to the electronic device, the keyboard may further continue to detect the state of the key, determine the current key list based on the pressed state of the key, compare the current key list with the previous key list to obtain the change information of the key list, and send the change information of the key list to the electronic device, so that the electronic device updates the key list stored by itself according to the change information of the key list, and executes a corresponding operation according to the updated key list.
As an alternative, a coordinate & key look-up table may be stored in the keyboard. The lookup table stores the coordinate range corresponding to each key. Establishing a coordinate system according to the manner shown in fig. 5-1, where an area corresponding to each key is a rectangle, coordinates of an upper left corner point of the rectangle are simply referred to as upper left coordinates of the key, and coordinates of a lower right corner point of the matrix are simply referred to as lower right coordinates of the key, please refer to fig. 6, where the upper left coordinates of the key a are (317, 1057), and the lower right coordinates are (507, 1319); the key S has upper left coordinates (533, 1057) and lower right coordinates (965, 1319). Namely, the coordinate range corresponding to the key a is: the range of the abscissa is (317, 507), and the range of the ordinate is (1057, 1319); the coordinate range corresponding to the key S is as follows: the range of the abscissa is (533, 965), and the range of the ordinate is (1057, 1319).
If the touch coordinate (x, y) of a certain touch point is in the coordinate range corresponding to a certain key, the touch point is corresponding to the key, and the key is in a pressed state. For example:
if the coordinate of the touch point is (500, 1300), since the abscissa of the touch point is in the range of (317, 507) and the ordinate is in the range of (1057, 1319), it indicates that the touch point is located in the coordinate range corresponding to the key a, the key corresponding to the touch point is the key a, and the key a is in the pressed state.
If the coordinate of the touch point is (600, 1300), since the abscissa of the touch point is in the range of (533, 965) and the ordinate is in the range of (1057, 1319), it indicates that the touch point is located in the coordinate range corresponding to the key S, and the key corresponding to the touch point is the key S, and therefore it can be known that the key S is in a pressed state.
If the coordinate of the touch point is (1000, 1300), since the abscissa of the touch point is not in the range (317, 507), it indicates that the touch point is not in the coordinate range corresponding to the key a, and therefore it can be known that the key corresponding to the touch point is not the key a; since the abscissa of the touch point is not in the range of (533, 965), which indicates that the touch point is not in the coordinate range corresponding to the key S, it can be known that the key corresponding to the touch point is not the key S.
In the second embodiment of the present application, it is assumed that an empty list is stored in both the keyboard and the electronic device. Referring to fig. 7, when the user presses a key a of the keyboard, and the keyboard detects that the key a is in a pressed state, the keyboard updates the key list stored in the keyboard, where the updated key list includes a key: and a key A, comparing the current key list with the last key list by the keyboard to obtain the change information as the key A. The keyboard transmits the information of the key A to the electronic equipment, the electronic equipment judges whether the key A is included in a key list stored by the electronic equipment, and the key list stored by the electronic equipment is an empty list, so that the key list stored by the electronic equipment does not include the key A, the electronic equipment updates the key list (namely, the key A is added into the key list stored by the electronic equipment), and the key list stored by the electronic equipment after updating includes the key A. Assume that the user does not release key a immediately after pressing it, but rather maintains key a in a pressed state for a period of time and presses key K. When the keyboard detects that the key A and the key K are in a pressed state, the keyboard updates a stored key list, and the updated key list comprises two keys: the keyboard compares the current key list with the last key list to obtain the change information which is the key K. The keyboard transmits the information of the key K to the electronic equipment, the electronic equipment updates the key list stored by the electronic equipment (the electronic equipment judges whether the key list currently stored by the electronic equipment comprises the key K or not, and the judgment result shows that the key K is not included, so that the key K is added into the key list stored by the electronic equipment), and the updated key list stored by the electronic equipment comprises a key A and a key K. After a period of time, the user releases both key a and key K. The keyboard detects the pressing state of the keys, the detection result shows that no key is in the pressing state, the keyboard updates the key list stored by the keyboard, the updated key list is a null list, and the keyboard compares the current key list with the last key list to obtain the change information of the keys A and the keys K. The keyboard transmits information of the keys A and the keys K to the electronic equipment, the electronic equipment updates the key list stored by the electronic equipment (the electronic equipment judges whether the key list currently stored by the electronic equipment comprises the keys A and the keys K, and the judgment result shows that the key A and the keys K are included, so that the keys A and the keys K are deleted from the key list stored by the electronic equipment), and the key list stored by the electronic equipment is an empty list after updating.
In an embodiment of the present application, a coordinate & key lookup table may be pre-stored in the touch keyboard, a user touches a certain position in a touch area of the touch keyboard, a touch IC (Integrated Circuit) determines a touch coordinate, and a key corresponding to the touch coordinate is searched in the coordinate & key lookup table to perform conversion from the position to the key, that is, the key corresponding to the touched position is determined. And obtaining a current key list according to the determined keys, comparing the current key list with the last key list, and reporting the changed keys to the electronic equipment connected with the touch keyboard if the current key list is changed.
Compared with the method in the related art, by adopting the method provided by the embodiment of the application, the data volume reported to the electronic equipment by the keyboard is smaller, the method has the advantages of small communication traffic and real-time reporting, can be applied to wireless channels such as a Bluetooth keyboard and a 2.4G keyboard, can reduce the time consumption of the electronic equipment for responding to the touch operation of a user, improves the response speed of the electronic equipment, and can improve the user experience.
The embodiment of the application also provides a touch keyboard. The touch keyboard comprises a memory, a processor and a control program which is stored on the memory and can run on the processor, and when the processor executes the control program, the following steps are realized: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the keys, determining a current key list based on the pressing state of the keys, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain first change information; and sending the first change information to the electronic equipment so that the electronic equipment updates the key list stored by the electronic equipment according to the first change information, wherein the electronic equipment is wirelessly connected with the keyboard.
In an optional embodiment of the present application, when the processor executes the control program, the following steps are further implemented: after first change information is sent to the electronic equipment, the pressing state of the keys is detected, the current key list is determined based on the pressing state of the keys, and the obtained key list is used as a third key list; comparing the third key list with the second key list to obtain second change information; and sending second change information to the electronic equipment so that the electronic equipment updates the key list stored by the electronic equipment according to the second change information.
In an optional embodiment of the present application, when the processor executes the control program, the following steps are further implemented: acquiring position information of a touch point, wherein the touch point is positioned in a touch area of a touch keyboard; and determining the key in a pressed state according to the position information of the touch point.
In an optional embodiment of the present application, when the processor executes the control program, the following steps are further implemented: judging whether the coordinates of the touch point are located in the coordinate range corresponding to the first key; and if the coordinate of the touch point is located in the coordinate range corresponding to the first key, determining that the first key is in a pressed state, wherein the first key is any one key in the touch keyboard.
The embodiment of the application also provides the electronic equipment. The electronic equipment comprises a memory, a processor and a control program which is stored on the memory and can run on the processor, and when the processor executes the control program, the following steps are realized: receiving first change information sent by a keyboard, wherein the first change information is obtained by the keyboard through the following modes: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the keys, determining a current key list based on the pressing state of the keys, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain first change information; updating a key list stored by the user according to the first change information; and executing corresponding operation according to the updated key list.
In an optional embodiment of the present application, when the processor executes the control program, the following steps are further implemented: judging whether a key list stored in the electronic equipment comprises a second key or not; if the key list stored in the electronic equipment does not comprise the second key, adding the second key in the key list stored in the electronic equipment; and if the key list stored in the electronic equipment comprises the second key, deleting the second key in the key list stored in the electronic equipment.
In an optional embodiment of the present application, when the processor executes the control program, the following steps are further implemented: receiving second change information sent by the keyboard, wherein the second change information is obtained by the keyboard through the following modes: after first change information is sent to the electronic equipment, the pressing state of the keys is detected, the current key list is determined based on the pressing state of the keys, and the obtained key list is used as a third key list; comparing the third key list with the second key list to obtain second change information; updating the key list stored by the user according to the second change information; and executing corresponding operation according to the updated key list.
The embodiment of the application also provides a non-transitory computer readable storage medium, on which a control program is stored, and the control program is executed by a processor to implement the control method provided by the embodiment of the application.
Please refer to fig. 8, which is a block diagram of a keyboard 10 according to an embodiment of the present application. The keyboard 10 includes, but is not limited to, a memory 101, a processor 102, and a touch module 104, wherein the touch module 104 includes a touch area. In particular, the memory 101 and the processor 102 may be coupled by a communication bus 103. It should be understood by those skilled in the art that fig. 8 is only an example of the keyboard 10 and does not constitute a limitation to the keyboard 10, and the keyboard 10 may include more or less components than those shown in fig. 15, or some components may be combined, or different components, for example, the keyboard 10 may further include a network access device, etc.
The memory 101 may be used for storing control programs and/or modules, and the processor 102 implements various functions of the keyboard 10 by executing or executing the control programs and/or modules stored in the memory 101 and calling data stored in the memory 101. The memory 101 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs (such as a sound playing function, an image playing function, etc.) required by a plurality of functions, and the like; the data storage area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 101 may include a high speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), a plurality of magnetic disk storage devices, a Flash memory device, or other volatile solid state storage devices.
The Processor 102 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for the keyboard 10, with various interfaces and lines connecting the various parts of the overall keyboard 10.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The interaction methods provided herein may be implemented in hardware, firmware, or as software or computer code that may be stored in a readable storage medium such as a CD, ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or as computer code that is originally stored on a remote recording medium or a non-transitory machine-readable medium, downloaded over a network, and stored in a local recording medium, so that the methods described herein may be presented in software stored on the recording medium using a general purpose computer or special processor, or in programmable or special purpose hardware such as an ASIC or FPGA. As can be appreciated in the art, a computer, processor, microprocessor, controller or programmable hardware includes a memory component, e.g., RAM, ROM, flash memory, etc., which can store or receive software or computer code when the computer, processor or hardware accesses and executes the software or computer code implementing the processing methods described herein. In addition, when a general-purpose computer accesses code for implementing the processing shown herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the processing shown herein.
The readable storage medium may be a solid-state memory, a memory card, an optical disc, etc. The readable storage medium stores program instructions for the computer to call and then execute the interaction method.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and embodiments of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (20)

  1. A control method is applied to a keyboard and is characterized by comprising the following steps:
    detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list;
    after a preset time interval, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a second key list;
    comparing the second key list with the first key list to obtain first change information;
    and sending the first change information to the electronic equipment so that the electronic equipment updates a key list stored by the electronic equipment according to the first change information, wherein the electronic equipment is in wireless connection with the keyboard.
  2. The control method according to claim 1, wherein the first change information includes a different key in the second key list than in the first key list.
  3. The method of claim 1, wherein after the sending the first change information to the electronic device, the method further comprises:
    detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a third key list;
    comparing the third key list with the second key list to obtain second change information;
    and sending the second change information to the electronic equipment so that the electronic equipment updates the key list stored by the electronic equipment according to the second change information.
  4. The control method according to any one of claims 1 to 3, wherein the method is applied to a touch keyboard, and the detecting of the pressed state of a key comprises:
    acquiring position information of a touch point, wherein the touch point is positioned in a touch area of the touch keyboard;
    and determining the key in a pressed state according to the position information of the touch point.
  5. The control method according to claim 4, wherein the position information of the touch point includes coordinates of the touch point, and the determining the key in the pressed state according to the position information of the touch point includes:
    judging whether the coordinates of the touch point are located in a coordinate range corresponding to the first key;
    and if the coordinate of the touch point is located in the coordinate range corresponding to the first key, determining that the first key is in a pressed state, wherein the first key is any one key in the touch keyboard.
  6. A control method is applied to an electronic device wirelessly connected with a keyboard, and is characterized by comprising the following steps:
    receiving first change information sent by the keyboard, wherein the first change information is obtained by the keyboard through the following steps: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain the first change information;
    updating a key list stored by the user according to the first change information;
    and executing corresponding operation according to the updated key list.
  7. The control method according to claim 6, wherein the first change information includes a different key in the second key list than in the first key list.
  8. The control method according to claim 7, wherein the first change information includes a second key, and the updating the key list stored in the control method according to the first change information includes:
    judging whether the second key is included in a key list stored by the device;
    if the key list stored in the mobile terminal does not comprise the second key, adding the second key in the key list stored in the mobile terminal;
    and if the second key is included in the key list stored by the user, deleting the second key in the key list stored by the user.
  9. The control method according to any one of claims 6 to 8, wherein after the performing of the corresponding operation according to the updated key list, the method further comprises:
    receiving second change information sent by the keyboard, wherein the second change information is obtained by the keyboard through the following steps: after the first change information is sent to the electronic equipment, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a third key list; comparing the third key list with the second key list to obtain second change information;
    updating a key list stored by the user according to the second change information;
    and executing corresponding operation according to the updated key list.
  10. A keyboard, comprising a memory, a processor, and a control program stored in the memory and executable on the processor, wherein the processor executes the control program to perform the steps of:
    detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list;
    after a preset time interval, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a second key list;
    comparing the second key list with the first key list to obtain first change information;
    and sending the first change information to the electronic equipment so that the electronic equipment updates a key list stored by the electronic equipment according to the first change information, wherein the electronic equipment is in wireless connection with the keyboard.
  11. The keyboard of claim 10, wherein the first change information comprises a different key in the second key list than in the first key list.
  12. The keyboard of claim 10, wherein the processor, when executing the control program, further performs the steps of:
    after the first change information is sent to the electronic equipment, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a third key list;
    comparing the third key list with the second key list to obtain second change information;
    and sending the second change information to the electronic equipment so that the electronic equipment updates the key list stored by the electronic equipment according to the second change information.
  13. The keyboard according to any one of claims 10-12, wherein the keyboard is a touch-controlled keyboard, and the processor, when executing the control program, further performs the steps of:
    acquiring position information of a touch point, wherein the touch point is positioned in a touch area of the touch keyboard;
    and determining the key in a pressed state according to the position information of the touch point.
  14. The keyboard of claim 13, wherein the keyboard is a touch keyboard, and the processor, when executing the control program, further performs the steps of:
    judging whether the coordinates of the touch point are located in a coordinate range corresponding to the first key;
    and if the coordinate of the touch point is located in the coordinate range corresponding to the first key, determining that the first key is in a pressed state, wherein the first key is any one key in the touch keyboard.
  15. An electronic device, comprising a memory, a processor, and a control program stored on the memory and executable on the processor, wherein the processor executes the control program to perform the following steps:
    receiving first change information sent by the keyboard, wherein the first change information is obtained by the keyboard through the following steps: detecting the pressing state of a key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a first key list; after a preset time interval, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a second key list; comparing the second key list with the first key list to obtain the first change information;
    updating a key list stored by the user according to the first change information;
    and executing corresponding operation according to the updated key list.
  16. The electronic device of claim 15, wherein the first change information includes a different key in the second key list than in the first key list.
  17. The electronic device of claim 16, wherein the first variation information includes a second key, and the processor, when executing the control program, further performs the following steps:
    judging whether the key list stored in the electronic equipment comprises the second key or not;
    if the key list stored in the electronic equipment does not comprise the second key, adding the second key to the key list stored in the electronic equipment;
    and if the key list stored in the electronic equipment comprises the second key, deleting the second key in the key list stored in the electronic equipment.
  18. The electronic device according to any of claims 15-17, wherein the processor, when executing the control program, further performs the steps of:
    receiving second change information sent by the keyboard, wherein the second change information is obtained by the keyboard through the following steps: after the first change information is sent to the electronic equipment, detecting the pressing state of the key, determining a current key list based on the pressing state of the key, and taking the obtained key list as a third key list; comparing the third key list with the second key list to obtain second change information;
    updating a key list stored by the user according to the second change information;
    and executing corresponding operation according to the updated key list.
  19. A non-transitory computer-readable storage medium on which a control program is stored, the control program implementing the control method according to any one of claims 1 to 5 when executed by a processor.
  20. A non-transitory computer-readable storage medium on which a control program is stored, the control program implementing the control method according to any one of claims 6 to 9 when executed by a processor.
CN201980079824.3A 2019-06-21 2019-06-21 Control method, keyboard and electronic equipment Pending CN113330396A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/092265 WO2020252770A1 (en) 2019-06-21 2019-06-21 Control method, keyboard, and electronic equipment

Publications (1)

Publication Number Publication Date
CN113330396A true CN113330396A (en) 2021-08-31

Family

ID=74037638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980079824.3A Pending CN113330396A (en) 2019-06-21 2019-06-21 Control method, keyboard and electronic equipment

Country Status (2)

Country Link
CN (1) CN113330396A (en)
WO (1) WO2020252770A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB8915297D0 (en) * 1988-07-04 1989-08-23 Devlin Electronics Ltd Improvements in electronic keyboards
US6052116A (en) * 1996-09-12 2000-04-18 Oki Electric Industry Co., Ltd. Wireless keyboard system
CN102759998A (en) * 2011-04-25 2012-10-31 鸿富锦精密工业(深圳)有限公司 Peripheral type touch control keyboard
CN103176608A (en) * 2011-12-21 2013-06-26 北京普源精电科技有限公司 Keyboard, keyboard control method and signal generator adopting keyboard

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3461458B2 (en) * 1999-03-08 2003-10-27 シャープ株式会社 Wireless input device
CN105677017B (en) * 2015-12-28 2019-04-26 联想(北京)有限公司 A kind of control method, keyboard, electronic equipment and electronic device
CN108227940B (en) * 2017-12-12 2021-04-09 天津津航计算技术研究所 Ultra-low radiation keyboard

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB8915297D0 (en) * 1988-07-04 1989-08-23 Devlin Electronics Ltd Improvements in electronic keyboards
US6052116A (en) * 1996-09-12 2000-04-18 Oki Electric Industry Co., Ltd. Wireless keyboard system
CN102759998A (en) * 2011-04-25 2012-10-31 鸿富锦精密工业(深圳)有限公司 Peripheral type touch control keyboard
CN103176608A (en) * 2011-12-21 2013-06-26 北京普源精电科技有限公司 Keyboard, keyboard control method and signal generator adopting keyboard

Also Published As

Publication number Publication date
WO2020252770A1 (en) 2020-12-24

Similar Documents

Publication Publication Date Title
CN106775637B (en) Page display method and device for application program
US11249643B2 (en) Electronic device for displaying list of executable applications on split screen and operating method thereof
US9258402B2 (en) System and method for controlling mobile devices
CN106933682A (en) The method and terminal of Message Processing
CN105975190B (en) Graphical interface processing method, device and system
JP2016504677A (en) Television station logo identification method, apparatus, television, system, program, and recording medium
WO2020103792A1 (en) Method and device for loading display content, terminal device, and storage medium
CN105095233A (en) Local web image updating method, device and system
US20160139907A1 (en) Electronic device and method for controlling electronic device
CN112749074B (en) Test case recommending method and device
CN107423050A (en) A kind of method and apparatus for penetrating operation
CN105513098B (en) Image processing method and device
US20180262707A1 (en) Method for Processing Ordered Broadcast and Electronic Device
CN117435109A (en) Content display method and device and computer readable storage medium
CN110109788B (en) Multi-key detection method and device, electronic equipment and storage medium
CN107930126B (en) Game reservation data processing method and device and mobile terminal
CN106970812B (en) Upgrade file processing device and terminal
CN113330396A (en) Control method, keyboard and electronic equipment
CN114338770B (en) Cross-blockchain data processing method and device, storage medium and terminal equipment
CN107798008B (en) Content pushing system, method and device
CN108563752B (en) Data interaction method and device, terminal equipment and storage medium
WO2019228106A1 (en) Press area optimization method and device, mobile terminal and storage medium
CN112380520A (en) Screen unlocking method and device, storage medium and mobile terminal
CN114270297A (en) Touch screen point reporting method and device, electronic equipment and storage medium
CN112181266A (en) Graphic code identification method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210831

WD01 Invention patent application deemed withdrawn after publication