CN112152602B - Touch key setting method, touch panel, household appliance and storage medium - Google Patents

Touch key setting method, touch panel, household appliance and storage medium Download PDF

Info

Publication number
CN112152602B
CN112152602B CN202010976544.7A CN202010976544A CN112152602B CN 112152602 B CN112152602 B CN 112152602B CN 202010976544 A CN202010976544 A CN 202010976544A CN 112152602 B CN112152602 B CN 112152602B
Authority
CN
China
Prior art keywords
key
touch
information
response
touch panel
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
CN202010976544.7A
Other languages
Chinese (zh)
Other versions
CN112152602A (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.)
TCL Air Conditioner Zhongshan Co Ltd
Original Assignee
TCL Air Conditioner Zhongshan 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 TCL Air Conditioner Zhongshan Co Ltd filed Critical TCL Air Conditioner Zhongshan Co Ltd
Priority to CN202010976544.7A priority Critical patent/CN112152602B/en
Publication of CN112152602A publication Critical patent/CN112152602A/en
Application granted granted Critical
Publication of CN112152602B publication Critical patent/CN112152602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches

Abstract

The invention discloses a touch key setting method, which is applied to a touch panel, wherein the touch panel comprises a touch positioning module, and the touch key setting method comprises the following steps: based on the touch positioning module, positioning parameters when touch operation touches the touch panel are obtained; determining the position of a touch key determined by the touch operation on the touch panel according to the positioning parameter; and setting a key response event of the touch key position according to the received key function editing information. The invention also discloses a touch panel, a household appliance and a storage medium. The invention can realize quick and low-cost setting of the touch key positions and quick and low-cost changing of the touch key positions.

Description

Touch key setting method, touch panel, household appliance and storage medium
Technical Field
The present invention relates to the technical field of touch panels, and in particular, to a touch key setting method, a touch panel, a household appliance, and a storage medium.
Background
In daily applications of the home appliance, it is often necessary to control the same by means of keys on a touch panel of the home appliance. In the prior art, in the process of developing a touch panel of a household appliance, two schemes of sticking a conductive film in the panel or installing a touch spring in the panel are generally adopted, and the two schemes are all required to set key positions of all keys of the touch panel in advance.
Disclosure of Invention
The invention mainly aims to provide a touch key setting method, a touch panel, a household appliance and a storage medium, and aims to realize quick and low-cost setting of touch key positions.
In order to achieve the above object, the present invention provides a touch key setting method, which is applied to a touch panel including a touch positioning module, the touch key setting method including the steps of:
based on the touch positioning module, positioning parameters when touch operation touches the touch panel are obtained;
determining the position of a touch key determined by the touch operation on the touch panel according to the positioning parameter;
and setting a key response event of the touch key position according to the received key function editing information.
Optionally, the touch positioning module has a first signal transmitting shaft, a second signal transmitting shaft, a first signal receiving shaft and a second signal receiving shaft, a first signal transmitter is arranged on the first signal transmitting shaft, a second signal transmitter is arranged on the second signal transmitting shaft, a first signal receiver is arranged on the first signal receiving shaft, a second signal receiver is arranged on the second signal receiving shaft, and based on the touch positioning module, the step of obtaining positioning parameters when touch operation touches the touch panel comprises the following steps:
Acquiring first receiving information generated by the touch panel when the first signal receiver does not receive the signal transmitted by the first signal transmitter;
acquiring second receiving information generated by the touch panel when the second signal receiver does not receive the signal transmitted by the second signal transmitter;
and generating positioning parameters according to the first receiving information and the second receiving information.
Optionally, the step of determining the touch key position determined by the touch operation on the touch panel according to the positioning parameter includes:
reading the first receiving information and the second receiving information in the positioning parameters;
determining the position of a first signal receiver in the first received information as a first axis coordinate;
determining the position of a second signal transmitter in the second received information as a second axis coordinate;
and determining the position of the touch key according to the first axis coordinate and the second axis coordinate.
Optionally, the step of setting the key response event of the touch key position according to the received key function editing information includes:
receiving key function editing information;
reading key function information and key editing information in the key function editing information;
And setting a first key response event of the touch key position according to the key function information and the key editing information.
Optionally, the touch panel includes a memory, and after the step of receiving the key function editing information, the method includes:
detecting whether a second key response event corresponding to the touch key position or a second key response event corresponding to the key function editing information is stored in the memory;
and if the second key response event corresponding to the touch key position or the second key response event corresponding to the key function editing information is stored in the memory, deleting the second key response event corresponding to the touch key position or the second key response event corresponding to the function editing information.
Optionally, the touch panel includes a memory, and the touch key setting method further includes:
reading all storage key response events stored in the memory, and reading the response position in each storage key response event;
detecting whether the distance between the touch key position and each response position is larger than or equal to a first preset distance;
If the distance between the touch key position and each response position is larger than or equal to a first preset distance, executing a first key response event step of setting the touch key position according to the key function information and the key editing information;
optionally, after the step of detecting whether the distance between the touch key position and each response position is greater than or equal to the first preset distance, the method further includes:
and if the distance between the touch key position and at least one response position is smaller than a first preset distance, sending out far-away prompt information.
Optionally, before the step of setting the first key response event of the touch key position according to the key function information and the key editing information, the method includes:
reading a response function associated with the key function information in the stored key response event;
detecting whether the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance;
if the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance, executing a first key response event step of setting the touch key position according to the key function information and the key editing information;
And if the distance between the response position corresponding to the response function and the touch key position is larger than a second preset distance, determining an adjustment direction for setting the touch key position according to the touch key position and the response position corresponding to the function information, and sending out adjustment prompt information.
In addition, in order to achieve the above object, the present invention also provides a touch panel including: the touch key setting device comprises a memory, a processor and a touch key setting program which is stored in the memory and can run on the processor, wherein the touch key setting program realizes the steps of the touch key setting method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a home appliance including a touch panel, a memory, a processor, and a touch key setting program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the touch key setting method as described above.
In addition, in order to achieve the above object, the present invention also provides a storage medium having stored thereon a touch key setting program which, when executed by a processor, implements the steps of the touch key setting method as described above.
The invention provides a touch key setting method, a touch panel, a household appliance and a storage medium, wherein positioning parameters when touch operation touches the touch panel are obtained based on the touch positioning module; determining the position of a touch key determined by the touch operation on the touch panel according to the positioning parameter; and setting a key response event of the touch key position according to the received key function editing information. By the mode, the touch key position can be set quickly and at low cost, and the touch key position can be changed quickly and at low cost.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a touch key setting method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of the present invention;
FIG. 4 is a flowchart of a touch key setting method according to a second embodiment of the present invention;
FIG. 5 is a flowchart of a touch key setting method according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a third embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: based on the touch positioning module, positioning parameters when touch operation touches the touch panel are obtained; determining the position of a touch key determined by the touch operation on the touch panel according to the positioning parameter; and setting a key response event of the touch key position according to the received key function editing information.
In the conventional daily application of the home appliance, it is often required to control the touch panel of the home appliance through keys on the touch panel. In the prior art, in the process of developing a touch panel of a household appliance, two schemes of sticking a conductive film in the panel or installing a touch spring in the panel are generally adopted, and the two schemes are all required to set key positions of all keys of the touch panel in advance.
The invention aims to realize quick and low-cost setting of the touch key positions and quick and low-cost changing of the touch key positions.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, or can be mobile terminal equipment with a display function, such as a smart phone, a tablet personal computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Preferably, the terminal may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among other sensors, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile terminal is stationary, and the mobile terminal can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a touch key setting program may be included in a memory 1005 as one type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a touch key setting program stored in the memory 1005 and perform the following operations:
based on the touch positioning module, positioning parameters when touch operation touches the touch panel are obtained;
determining the position of a touch key determined by the touch operation on the touch panel according to the positioning parameter;
and setting a key response event of the touch key position according to the received key function editing information.
Further, the processor 1001 may call the touch key setting program stored in the memory 1005, and further perform the following operations:
Acquiring first receiving information generated by the touch panel when the first signal receiver does not receive the signal transmitted by the first signal transmitter;
acquiring second receiving information generated by the touch panel when the second signal receiver does not receive the signal transmitted by the second signal transmitter;
and generating positioning parameters according to the first receiving information and the second receiving information.
Further, the processor 1001 may call the touch key setting program stored in the memory 1005, and further perform the following operations:
reading the first receiving information and the second receiving information in the positioning parameters;
determining the position of a first signal receiver in the first received information as a first axis coordinate;
determining the position of a second signal transmitter in the second received information as a second axis coordinate;
and determining the position of the touch key according to the first axis coordinate and the second axis coordinate.
Further, the processor 1001 may call the touch key setting program stored in the memory 1005, and further perform the following operations:
receiving key function editing information;
reading key function information and key editing information in the key function editing information;
And setting a first key response event of the touch key position according to the key function information and the key editing information.
Further, the processor 1001 may call the touch key setting program stored in the memory 1005, and further perform the following operations:
the touch panel includes a memory, and after the step of receiving the key function edit information, includes:
detecting whether a second key response event corresponding to the touch key position or a second key response event corresponding to the key function editing information is stored in the memory;
and if the second key response event corresponding to the touch key position or the second key response event corresponding to the key function editing information is stored in the memory, deleting the second key response event corresponding to the touch key position or the second key response event corresponding to the function editing information.
Further, the processor 1001 may call the touch key setting program stored in the memory 1005, and further perform the following operations:
reading all storage key response events stored in the memory, and reading the response position in each storage key response event;
Detecting whether the distance between the touch key position and each response position is larger than or equal to a first preset distance;
if the distance between the touch key position and each response position is larger than or equal to a first preset distance, executing a first key response event step of setting the touch key position according to the key function information and the key editing information;
further, the processor 1001 may call the touch key setting program stored in the memory 1005, and further perform the following operations:
and if the distance between the touch key position and at least one response position is smaller than a first preset distance, sending out far-away prompt information.
Further, the processor 1001 may call the touch key setting program stored in the memory 1005, and further perform the following operations:
reading a response function associated with the key function information in the stored key response event;
detecting whether the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance;
if the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance, executing a first key response event step of setting the touch key position according to the key function information and the key editing information;
And if the distance between the response position corresponding to the response function and the touch key position is larger than a second preset distance, determining an adjustment direction for setting the touch key position according to the touch key position and the response position corresponding to the function information, and sending out adjustment prompt information.
Based on the hardware structure, the embodiment of the touch key setting method is provided.
The invention discloses a touch key setting method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a touch key setting method according to a first embodiment of the present invention.
In an embodiment of the present invention, the touch key setting method is applied to a touch panel, where the touch panel includes a touch positioning module, and the touch key setting method includes:
step S10, based on the touch control positioning module, positioning parameters when touch operation touches the touch panel are obtained;
in this embodiment, in order to facilitate quick and low-cost setting of the touch key positions of the control panel, a touch positioning module is arranged on the touch panel, when a user needs to perform key setting on the touch panel, the user touches the touch panel through touch operations of fingers or other keys, and the touch positioning module obtains positioning parameters when the touch operations touch the touch panel; the touch positioning module is a device for positioning a touch position.
The touch positioning module is provided with a first signal transmitting shaft, a second signal transmitting shaft, a first signal receiving shaft and a second signal receiving shaft, a first signal transmitter is arranged on the first signal transmitting shaft, a second signal transmitter is arranged on the second signal transmitting shaft, a first signal receiver is arranged on the first signal receiving shaft, and when a second signal receiver is arranged on the second signal receiving shaft, the step S10 is based on the touch positioning module, and the step S can be used for acquiring positioning parameters when a touch panel is touched by a touch operation, and the step S can comprise the following steps:
step S11, first receiving information generated by the touch panel when the first signal receiver does not receive the signal transmitted by the first signal transmitter is obtained;
in this embodiment, the first signal transmitting axis is parallel to the first signal receiving axis, the second signal transmitting axis is parallel to the second signal receiving axis, the first signal transmitting axis, the second signal transmitting axis, the first signal receiving axis and the second signal receiving axis are in the same plane, the first signal receiver receives the signal transmitted by the first signal transmitter, and the second signal receiver receives the signal transmitted by the second signal transmitter; when a user triggers a touch operation on the touch panel, a first signal receiver of the touch panel does not receive a signal transmitted by the first signal transmitter, and the touch panel generates first receiving information.
Optionally, when the first signal transmitter and the second signal transmitter are both infrared transmitters, the first signal receiver and the second signal receiver are both infrared receivers, the first signal transmitting axis is parallel to the first signal receiving axis, the second signal transmitting axis is parallel to the second signal receiving axis, the first signal transmitting axis, the second signal transmitting axis, the first signal receiving axis and the second signal receiving axis are in the same plane, the first signal receiver receives the infrared signal transmitted by the first signal transmitter, and the second signal receiver receives the infrared signal transmitted by the second signal transmitter; when a user triggers a touch operation on the touch panel, the first signal receiver of the touch panel does not receive the infrared signal emitted by the first signal emitter, and the first signal receiver of the touch panel receives the first receiving information.
Step S12, second receiving information generated by the touch panel when the second signal receiver does not receive the signal transmitted by the second signal transmitter is acquired;
in this embodiment, when the touch panel acquires the first receiving information and the user triggers a touch operation on the touch panel, the second signal receiver of the touch panel does not receive the signal transmitted by the second signal transmitter, and the second receiving information is generated by the touch panel.
Optionally, when the first signal transmitter and the second signal transmitter are both infrared transmitters, and the first signal receiver and the second signal receiver are both infrared receivers, when the user triggers a touch operation on the touch panel, the second signal receiver of the touch panel does not receive the infrared signal transmitted by the second signal transmitter, and the second signal receiver of the touch panel receives the second information generated by the touch panel.
And S13, generating positioning parameters according to the first receiving information and the second receiving information.
In this embodiment, after the touch panel acquires the first reception information and the second reception information, the touch panel combines the first reception information and the second reception information to generate the positioning parameter.
When the signal transmitter transmits the acoustic wave signal, and the touch positioning module includes at least one acoustic wave transmitter and at least two acoustic wave receivers, step S10 may include, based on the touch positioning module, acquiring positioning parameters when the touch operation touches the touch panel:
step a, receiving at least two sound wave receiving signals acquired by a sound wave receiver and receiving at least one sound wave transmitting signal transmitted by a sound wave transmitter;
in this embodiment, as shown in fig. 3, the touch panel receives at least two acoustic wave receiving signals collected by the acoustic wave receiver, and receives at least one acoustic wave transmitting signal transmitted by the acoustic wave transmitter.
Specifically, when the touch positioning module comprises an acoustic transmitter and two acoustic receivers, the acoustic transmitter transmits an acoustic signal to one surface, and the acoustic receivers receive acoustic signals returned when encountering an object (or button) touched by a user to a key position, the acoustic signals returned can be multiple, wherein the two acoustic signals returned are received by the acoustic receivers to form two acoustic receiving signals.
As an implementation manner, in this embodiment, when the touch positioning module includes two acoustic wave transmitters and two acoustic wave receivers, the transmitting frequencies of the acoustic wave transmitters and the receiving frequencies of the acoustic wave receivers are respectively in one-to-one correspondence (that is, the transmitting frequency of one acoustic wave transmitter and the receiving frequency of one acoustic wave receiver are corresponding, and the transmitting frequency of the other acoustic wave transmitter and the receiving frequency of the other acoustic wave receiver are corresponding); the two acoustic wave transmitters transmit signals to one surface, the acoustic wave receivers receive signals returned when the transmitted signals meet an object (or a button) touched by a user to a key position, and the number of the returned acoustic wave signals can be multiple, wherein the two returned acoustic wave signals are respectively received by the corresponding acoustic wave receivers to form two acoustic wave receiving signals.
Step S20, determining the position of a touch key determined by the touch operation on the touch panel according to the positioning parameters;
in this embodiment, after the touch panel acquires the positioning parameter, the touch panel determines the touch key position determined by the touch operation of the user on the touch panel according to the positioning parameter.
Step S20, according to the positioning parameter, may include:
step S21, reading the first receiving information and the second receiving information in the positioning parameters;
in this embodiment, the touch panel reads the first reception information and the second reception information in the positioning parameter after the positioning parameter is acquired.
Step S22, determining the position of a first signal receiver in the first received information as a first axis coordinate;
in the present embodiment, the touch panel determines the position of the first signal receiver that receives the first reception signal as the first axis coordinate after acquiring the first reception information.
Step S23, determining the position of a second signal transmitter in the second received information as a second axis coordinate;
in the present embodiment, the touch panel determines the position of the second signal transmitter that receives the second reception signal as the second axis coordinate after acquiring the second reception information.
And step S24, determining the position of the touch key according to the first axis coordinate and the second axis coordinate.
In this embodiment, after the first axis coordinate and the second axis coordinate are obtained, the touch panel uses the position of the coordinate point formed by the first axis coordinate and the second axis coordinate on the touch panel as the touch key position.
When the signal transmitter transmits the acoustic wave signal, and the touch positioning module includes at least one acoustic wave transmitter and at least two acoustic wave receivers, step S20 of determining, according to the positioning parameter, a touch key position determined by the touch operation on the touch panel may include:
step b1, determining at least two acoustic wave signal time differences according to acoustic wave transmitting signals transmitted by at least one acoustic wave transmitter and acoustic wave receiving signals of at least two acoustic wave receivers;
in this embodiment, after receiving at least two acoustic wave receiving signals collected by an acoustic wave receiver and receiving at least one acoustic wave transmitting signal transmitted by the acoustic wave transmitter, the touch panel determines a time difference of the at least two acoustic wave signals according to the acoustic wave transmitting signal transmitted by the at least one acoustic wave transmitter and the acoustic wave receiving signals of the at least two acoustic wave receivers. Wherein the acoustic signal time difference is the time at which the signal was transmitted from the acoustic transmitter to the acoustic receiver.
In this embodiment, after receiving two acoustic wave receiving signals collected by the acoustic wave receiver and receiving two acoustic wave transmitting signals transmitted by the acoustic wave transmitter, the touch panel determines time differences of the acoustic wave signals of two different frequencies according to the two acoustic wave transmitting signals and the two acoustic wave receiving signals. Wherein the acoustic signal time difference is the time at which the acoustic signal was transmitted from the acoustic transmitter to the acoustic receiver.
Step b2, determining at least two acoustic signal propagation paths based on at least two acoustic signal time differences;
in this embodiment, after the touch panel acquires the acoustic wave signal time difference, the touch panel determines at least two acoustic wave signal propagation paths according to the propagation speed of the acoustic wave signal in the air and at least two of the acoustic wave signal time differences.
In this embodiment, after acquiring two acoustic wave signal time differences, the touch panel determines at least two acoustic wave signal propagation paths according to the propagation speed of the acoustic wave signals in the air and the two acoustic wave signal time differences.
Step b3, acquiring the transmitting coordinate position of at least one sound wave transmitter and the receiving coordinate positions of at least two sound wave receivers;
In this embodiment, after the touch panel acquires at least two propagation paths of the acoustic wave signals, the touch panel acquires the transmission coordinate positions of at least one of the acoustic wave transmitters and the reception coordinate positions of at least two of the acoustic wave receivers.
As one embodiment, in the present embodiment, after acquiring two acoustic wave signal propagation paths, the touch panel acquires the transmission coordinate positions of the two acoustic wave transmitters and the reception coordinate positions of the two acoustic wave receivers.
And b4, calculating the touch key position according to at least one transmitting coordinate position, at least two receiving coordinate positions and at least two signal propagation paths.
In this embodiment, after at least one transmitting coordinate position, at least two receiving coordinate positions, and at least two acoustic signal propagation paths are obtained by the touch panel, the at least two acoustic signal propagation paths are substituted into coordinates where at least one transmitting coordinate position and at least two receiving coordinate positions are located, and the touch key position is calculated by the touch panel through graphic calculation.
In this embodiment, after acquiring the two transmitting coordinate positions, the two receiving coordinate positions, and the two acoustic signal propagation paths, the touch panel substitutes the two acoustic signal propagation paths into the coordinates where the two transmitting coordinate positions and the two receiving coordinate positions are located, and calculates the touch key position through graphic calculation.
Step S30, setting the key response event of the touch key position according to the received key function editing information.
In this embodiment, after the touch panel determines the touch key position, the touch panel receives key function editing information, and the touch panel sets a key response event of the touch key position according to the received key function editing information. The case response event is that when the touch panel receives that the touch key position is touched, a function corresponding to the key function editing information is executed on the touch key position. The key function editing information is a general concept, and comprises key function information and key editing information; the key function information is information for setting or changing the position of the touch key, such as setting the position of the touch key as a switch key, setting the position of the touch key as an up-down key, setting the position of the touch key as a start key, and the like; the key editing information is used for editing the key position, such as deleting the binding and setting corresponding to the touch key position (deleting the on-off key function corresponding to the touch key position), adding the binding and setting corresponding to the touch key position (adding the start key function corresponding to the touch key position), and changing the binding and setting corresponding to the touch key position (changing the start key function corresponding to the touch key position).
Specifically, when the touch panel receives the key function editing information, the touch panel reads key editing information (such as deletion, addition, change and the like) in the key function editing information and key function information (such as a switch key, a start key, a heightening key and the like) in the key function editing information, sets the touch key position according to the key function information and the key editing function information in the key function editing information, and executes the key function information on the touch key position according to the key editing information; for example, the on-off key (key function information) is executed in a manner of deleting the touch key position (key edit information), that is, the function of deleting the on-off key is executed for the key edit information, for example, the function corresponding to the on-off key or the up-down key function information is executed for the touch key position in accordance with the addition of the (key edit information).
The step of setting the key response event of the touch key position according to the received key function editing information comprises the following steps:
step S31, receiving key function editing information;
in the present embodiment, the touch panel receives the function edit information after the touch key position is determined.
When the touch panel includes a memory, step S31 after receiving the key function edit information may include:
Step c1, detecting whether a second key response event corresponding to the touch key position or a second key response event corresponding to the key function editing information is stored in the memory;
in this embodiment, after receiving the key function editing information, the touch panel detects whether a second key response event corresponding to the touch key position or a second key response event corresponding to the key function editing information is stored in the memory. The second key response event is set information corresponding to a key or a function stored in the memory, the second key response event may be a key response event corresponding to a point D in fig. 6, and the second key response event may be a key response event corresponding to an "on-off key".
For example, when the touch key position is the point D in fig. 6 and the user sets the key and function of the point D (the key and function are set to add the on-off key function), the touch panel detects whether the second key response event of the point D (the point D is the on-off key) or the second key response event (setting information) of the change function key corresponding to the "on-off key" is stored in the memory.
And c2, if a second key response event corresponding to the touch key position or a second key response event corresponding to the key function editing information is stored in the memory, deleting the second key response event corresponding to the touch key position or the second key response event corresponding to the function editing information.
In this embodiment, when the touch panel detects that the second key response event corresponding to the touch key position or the second key response event corresponding to the key function editing information is stored in the memory, the touch panel deletes the second key response event corresponding to the touch key position or the second key response event corresponding to the function editing information from the memory.
For example, when the touch panel detects whether or not a second key response event (setting information) of a change function key corresponding to a second key response event of a point D (point D is a switch key) or "switch key" is stored in the memory, the touch panel deletes the second key response event (setting information) of the change function key corresponding to the second key response event of the point D (point D is a switch key) or "switch key".
Step c1 may include, after detecting whether a second key response event corresponding to the touch key position or a second key response event corresponding to the key function editing information is stored in the memory:
and c3, if the second key response event corresponding to the touch key position or the second key response event corresponding to the key function editing information is not stored in the memory, executing the step of reading the key function information and the key editing information in the key function editing information.
In this embodiment, when the second key response event corresponding to the touch key position or the second key response event corresponding to the key function editing information is not stored in the memory, the touch panel performs step S32.
Step S32, reading key function information and key editing information in the key function editing information;
in the present embodiment, after the touch panel receives the key function edit information, the touch panel reads the key function information and the key edit information in the key function edit information. The key function information is information for setting or changing the position of the touch key, such as setting the position of the touch key as a switch key, setting the position of the touch key as an up-down key, setting the position of the touch key as a start key, and the like; the key editing information is used for editing the key position, such as deleting the binding and setting corresponding to the touch key position (deleting the on-off key function corresponding to the touch key position), adding the binding and setting corresponding to the touch key position (adding the start key function corresponding to the touch key position), and changing the binding and setting corresponding to the touch key position (changing the start key function corresponding to the touch key position).
Step S33, setting a first key response event of the touch key position according to the key function information and the key editing information.
Specifically, after the touch panel reads the key editing information (such as deletion, addition, modification, etc.) in the key function editing information and the key function information (such as on-off key, start key, up key, etc.) in the key function editing information; setting the touch key position according to the key function information and the key editing function information in the key function editing information, and executing the key function information on the touch key position according to the key editing information; for example, the on-off key (key function information) is executed in a manner of deleting the touch key position (key edit information), that is, the function of deleting the on-off key is executed for the key edit information, for example, the function corresponding to the on-off key or the up-down key function information is executed for the touch key position in accordance with the addition of the (key edit information).
In this embodiment, after the touch panel reads the function information and the edit information, the first key response event of the touch key position is set according to the key function information and the key edit information.
According to the scheme, based on the touch positioning module, positioning parameters when touch operation touches the touch panel are obtained; determining the position of a touch key determined by the touch operation on the touch panel according to the positioning parameter; and setting a first key response event of the touch key position according to the received key function editing information. Therefore, the touch key position is determined by the positioning parameters through the received key function editing information, so that the touch key position is set quickly and at low cost, and the touch key position is changed quickly and at low cost.
Further, referring to fig. 4, fig. 4 is a flowchart illustrating a touch key setting method according to a second embodiment of the present invention. Based on the embodiment shown in fig. 2, the touch panel includes a memory, and the method may further include:
step S40, reading all storage key response events stored in the memory, and reading the response position of each storage key response event;
in this embodiment, the touch panel may further read all the stored key response events stored in the memory, and read a response position in each of the stored key response events; wherein the stored key response event is a key response event which has been set and stored in the memory. The response position is a position where touching the touch panel can start a corresponding function, for example, touching a position on the touch panel can start a function corresponding to the volume key.
For example, when the touch key position is point D in fig. 6, all of the memory (i.e., the setting information of A, B and point C in fig. 6) are read, and the positions of A, B and point C in the touch panel are respectively read.
Step S50, detecting whether the distance between the touch key position and each response position is larger than or equal to a first preset distance;
In this embodiment, after the touch panel reads the response position in each storage key response event, the touch panel detects whether the distance between the touch key position and each response position is greater than or equal to a first preset distance, where the first preset distance may be set by a developer or may be set fixedly, and the first preset distance may be 1mm.
For example, after the positions of the points A, B and C in fig. 6 in the touch panel are determined, it is detected whether the distances between the touch key position (point D) and the points A, B and C are all 1mm or more.
Step S60, if the distance between the touch key position and each response position is larger than or equal to a first preset distance, executing a step of setting a first key response event of the touch key position according to the key function information and the key editing information;
in this embodiment, when the touch panel detects that the distance between the touch key position and each of the response positions is greater than or equal to the first preset distance, the touch panel performs step S33.
For example, when the distance between the touch key position (point D in fig. 6) and both of A, B and point C is greater than or equal to 1mm, the touch panel performs step S33.
After detecting whether the distance between the touch key position and each response position is greater than or equal to the first preset distance, step S50 may include:
and d, if the distance between the touch key position and at least one response position is smaller than a first preset distance, sending out far-away prompt information.
In this embodiment, when the touch panel detects that the distance between the touch key position and at least one of the response positions is smaller than the first preset distance, the touch panel sends out the distance prompt information that is set away from the key touch position, that is, prompts the user or the research personnel to reset the key response event of the key touch position, and the touch operation of touching the touch panel next time is away from the touched position.
For example, when the distance between the touch key position (point D) and at least one of the points A, B and C is less than 1mm, the touch panel issues a distance prompt.
Through the scheme, the embodiment reads all the storage key response events stored in the memory and reads the response position in each storage key response event; detecting whether the distance between the touch key position and each response position is larger than or equal to a first preset distance; and if the distance between the touch key position and each response position is larger than or equal to a first preset distance, executing a first key response event step of setting the touch key position according to the key function information and the key editing information. Therefore, the reasonable layout of the touch key positions on the touch panel is realized by judging the distance between the response positions and the touch key positions, so that the follow-up operation and the use are more reasonable.
Further, referring to fig. 5, fig. 5 is a flowchart illustrating a touch key setting method according to a third embodiment of the present invention. Based on the embodiment shown in fig. 4, before the first key response event of setting the touch key position according to the key function information and the key edit information, step S33 may include:
step S71, reading the response function associated with the key function information in the stored key response event;
in this embodiment, after the touch panel acquires the stored key response event, the touch panel reads the response function associated with the key function information in the stored key response event; the response function is a function which can be executed when the key position of the touch panel is touched.
Specifically, as shown in fig. 6, when the stored key response event includes a function of increasing the volume when the position of the point a is touched, a function of starting the program when the position of the point B is touched, and a function of cooling when the position of the point C is touched; and when the key function information is the function of reducing the volume corresponding to the position (point D) of the touch key, the corresponding function associated with the key function information in the key response event is read and stored, that is, the touch panel acquires the response function (the function of increasing the volume) associated with the function of reducing the volume.
Step S72, detecting whether the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance;
in this embodiment, after the touch panel reads the response function associated with the key function information in the stored key response event, the touch panel detects whether the distance between the response position corresponding to the response function and the touch key position is less than or equal to a second preset distance; the second preset distance can be set by a developer or fixed, and the second preset distance can be 2mm.
Specifically, the touch panel detects whether the distance between the corresponding position (point a) corresponding to the function of increasing the volume and the touch key position (point D) is less than or equal to a second preset distance.
Step S73, if the distance between the response position corresponding to the response function and the touch key position is less than or equal to a second preset distance, executing a step of setting a first key response event of the touch key position according to the key function information and the key editing information;
in the present embodiment, when the touch panel detects that the distance between the response position corresponding to the response function and the touch key position is less than or equal to a second preset distance, the touch panel performs step S33.
Specifically, when the distance between the point a and the point D is less than or equal to the second preset distance, the touch panel performs step S33.
Step S74, if the distance between the response position corresponding to the response function and the touch key position is greater than a second preset distance, determining an adjustment direction for setting the touch key position according to the touch key position and the response position corresponding to the function information, and sending out an adjustment prompt message.
In this embodiment, when the touch panel detects that the distance between the response position corresponding to the response function and the touch key position is greater than a second preset distance, the touch panel determines, according to the touch key position and the response position corresponding to the function information, an adjustment direction in which the touch key position is set, that is, when a key response event in which a user or a developer is prompted to reset the key touch position, the touch panel moves the touch operation of the next touch panel to the touch key position of this time according to the adjustment direction; and sending out adjustment prompt information which is set from the position of the touch key to the adjustment direction.
Specifically, when the distance between the point a and the point D is greater than the second preset distance, the touch panel determines the adjustment direction of the touch key position (that is, the direction in which the finger or the button moves when the touch panel determines that the user touches the reset touch key) according to the positions of the point a and the point D, and the touch panel sends out the adjustment prompt information that is set from the touch key position to the adjustment direction according to the adjustment direction of the touch key position, as shown in fig. 6.
According to the scheme, the response function associated with the key function information in the key response event is read; detecting whether the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance; if the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance, executing a first key response event step of setting the touch key position according to the key function information and the key editing information; and if the distance between the response position corresponding to the response function and the touch key position is larger than a second preset distance, determining an adjustment direction for setting the touch key position according to the touch key position and the response position corresponding to the function information, and sending out adjustment prompt information. Therefore, the space of the touch panel is reasonably utilized by judging the distance between the response position corresponding to the response function and the touch key position, and the convenience of operation in subsequent use is enhanced.
The invention further provides a touch panel.
The touch panel of the present invention includes: the touch key setting device comprises a memory, a processor and a touch key setting program which is stored in the memory and can run on the processor, wherein the touch key setting program realizes the steps of the touch key setting method when being executed by the processor.
The method implemented when the touch key setting program running on the processor is executed may refer to various embodiments of the touch key setting method of the present invention, which are not described herein again.
The invention also provides a household appliance.
The touch panel comprises a touch panel, a memory, a processor and a touch key setting program which is stored in the memory and can run on the processor, wherein the touch key setting program realizes the steps of the touch key setting method when being executed by the processor.
The invention also provides a storage medium.
The storage medium of the present invention stores thereon a touch key setting program which, when executed by a processor, implements the steps of the touch key setting method described above.
The method implemented when the touch key setting program running on the processor is executed may refer to various embodiments of the touch key setting method of the present invention, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for description, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The touch key setting method is applied to a touch panel, and the touch panel comprises a touch positioning module, and is characterized by comprising the following steps:
based on the touch positioning module, positioning parameters when touch operation touches the touch panel are obtained;
determining the touch key position of the touch operation on the touch panel according to the positioning parameters;
according to the received key function editing information, setting a key response event of the touch key position specifically comprises:
receiving key function editing information;
reading key function information and key editing information in the key function editing information;
setting a first key response event of the touch key position according to the key function information and the key editing information;
the touch panel includes a memory, and the touch key setting method further includes:
Reading all storage key response events stored in the memory, and reading the response position in each storage key response event;
detecting whether the distance between the touch key position and each response position is larger than or equal to a first preset distance;
if the distance between the touch key position and each response position is larger than or equal to a first preset distance, reading a response function associated with the key function information in the stored key response event;
detecting whether the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance;
if the distance between the response position corresponding to the response function and the touch key position is smaller than or equal to a second preset distance, executing a first key response event step of setting the touch key position according to the key function information and the key editing information;
and if the distance between the response position corresponding to the response function and the touch key position is larger than a second preset distance, determining an adjustment direction for setting the touch key position according to the touch key position and the response position corresponding to the function information, and sending out adjustment prompt information.
2. The touch key setting method according to claim 1, wherein the touch positioning module has a first signal transmitting axis, a second signal transmitting axis, a first signal receiving axis and a second signal receiving axis, the first signal transmitting axis is provided with a first signal transmitter, the second signal transmitting axis is provided with a second signal transmitter, the first signal receiving axis is provided with a first signal receiver, the second signal receiving axis is provided with a second signal receiver, and the step of acquiring positioning parameters when a touch operation touches the touch panel based on the touch positioning module comprises:
acquiring first receiving information generated by the touch panel when the first signal receiver does not receive the signal transmitted by the first signal transmitter;
acquiring second receiving information generated by the touch panel when the second signal receiver does not receive the signal transmitted by the second signal transmitter;
and generating positioning parameters according to the first receiving information and the second receiving information.
3. The touch key setting method according to claim 2, wherein the step of determining the touch key position of the touch operation on the touch panel according to the positioning parameter comprises:
Reading the first receiving information and the second receiving information in the positioning parameters;
determining the position of a first signal receiver in the first received information as a first axis coordinate;
determining the position of a second signal transmitter in the second received information as a second axis coordinate;
and determining the position of the touch key according to the first axis coordinate and the second axis coordinate.
4. The touch key setting method of claim 3, wherein the touch panel includes a memory, and the step of receiving key function edit information includes, after:
detecting whether a second key response event corresponding to the touch key position or a second key response event corresponding to the key function editing information is stored in the memory;
and if the second key response event corresponding to the touch key position or the second key response event corresponding to the key function editing information is stored in the memory, deleting the second key response event corresponding to the touch key position or the second key response event corresponding to the function editing information.
5. The touch key setting method according to claim 1, wherein after the step of detecting whether the distance between the touch key position and each of the response positions is greater than or equal to a first preset distance, further comprising:
And if the distance between the touch key position and at least one response position is smaller than a first preset distance, sending out far-away prompt information.
6. A touch panel, the touch panel comprising: a memory, a processor, and a touch key setting program stored on the memory and running on the processor, which when executed by the processor, implements the steps of the touch key setting method of any one of claims 1 to 5.
7. A household appliance, comprising the touch panel of claim 6.
8. A storage medium having stored thereon a touch key setting program which, when executed by a processor, implements the steps of the touch key setting method according to any one of claims 1 to 5.
CN202010976544.7A 2020-09-16 2020-09-16 Touch key setting method, touch panel, household appliance and storage medium Active CN112152602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010976544.7A CN112152602B (en) 2020-09-16 2020-09-16 Touch key setting method, touch panel, household appliance and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010976544.7A CN112152602B (en) 2020-09-16 2020-09-16 Touch key setting method, touch panel, household appliance and storage medium

Publications (2)

Publication Number Publication Date
CN112152602A CN112152602A (en) 2020-12-29
CN112152602B true CN112152602B (en) 2023-11-10

Family

ID=73892306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010976544.7A Active CN112152602B (en) 2020-09-16 2020-09-16 Touch key setting method, touch panel, household appliance and storage medium

Country Status (1)

Country Link
CN (1) CN112152602B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0708359D0 (en) * 2006-05-05 2007-06-06 Philipp Harald Touch screen element
CN102622161A (en) * 2011-01-31 2012-08-01 浪潮乐金数字移动通信有限公司 Custom virtual keyboard system and touch screen mobile terminal
CN103501451A (en) * 2013-08-14 2014-01-08 乐视致新电子科技(天津)有限公司 Method and smart television with user-defined key function
CN203951459U (en) * 2014-07-02 2014-11-19 无锡和晶科技股份有限公司 A kind of self-defined touch key-press switch
WO2015120727A1 (en) * 2014-02-14 2015-08-20 深圳市汇顶科技股份有限公司 Touch screen communication terminal and touch response method and system in call state thereof
CN107357458A (en) * 2017-07-04 2017-11-17 广东欧珀移动通信有限公司 Response method, device, storage medium and the mobile terminal of touch key-press
CN107608547A (en) * 2017-08-02 2018-01-19 深圳市沃特沃德股份有限公司 The method and apparatus that touch key-press is set

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8022935B2 (en) * 2006-07-06 2011-09-20 Apple Inc. Capacitance sensing electrode with integrated I/O mechanism

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0708359D0 (en) * 2006-05-05 2007-06-06 Philipp Harald Touch screen element
CN102622161A (en) * 2011-01-31 2012-08-01 浪潮乐金数字移动通信有限公司 Custom virtual keyboard system and touch screen mobile terminal
CN103501451A (en) * 2013-08-14 2014-01-08 乐视致新电子科技(天津)有限公司 Method and smart television with user-defined key function
WO2015120727A1 (en) * 2014-02-14 2015-08-20 深圳市汇顶科技股份有限公司 Touch screen communication terminal and touch response method and system in call state thereof
CN203951459U (en) * 2014-07-02 2014-11-19 无锡和晶科技股份有限公司 A kind of self-defined touch key-press switch
CN107357458A (en) * 2017-07-04 2017-11-17 广东欧珀移动通信有限公司 Response method, device, storage medium and the mobile terminal of touch key-press
CN107608547A (en) * 2017-08-02 2018-01-19 深圳市沃特沃德股份有限公司 The method and apparatus that touch key-press is set

Also Published As

Publication number Publication date
CN112152602A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US11798107B2 (en) Scenario-based application recommendation method and apparatus
CN111107222B (en) Interface sharing method and electronic equipment
CN108763541B (en) Page display method and terminal
CN109032468B (en) Method and terminal for adjusting equipment parameters
CN108415642B (en) Display method and mobile terminal
CN110427165B (en) Icon display method and mobile terminal
CN108958593B (en) Method for determining communication object and mobile terminal
CN108668328B (en) Network switching method and mobile terminal
CN110531915B (en) Screen operation method and terminal equipment
CN110825295B (en) Application program control method and electronic equipment
CN111610904B (en) Icon arrangement method, electronic device and storage medium
CN110442279B (en) Message sending method and mobile terminal
CN110868633A (en) Video processing method and electronic equipment
CN108874906B (en) Information recommendation method and terminal
CN111610903A (en) Information display method and electronic equipment
CN108108113B (en) Webpage switching method and device
CN109933267B (en) Method for controlling terminal equipment and terminal equipment
CN109002245B (en) Application interface operation method and mobile terminal
CN108021315B (en) Control method and mobile terminal
CN111399715B (en) Interface display method and electronic equipment
CN111163227B (en) Sharing method and electronic equipment
CN110515507B (en) Icon display method and terminal
CN110673761B (en) Touch key detection method and terminal equipment thereof
CN112152602B (en) Touch key setting method, touch panel, household appliance and storage medium
CN108897467B (en) Display control method and terminal equipment

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