CN110690905B - Key scanning control method on touch panel and intelligent control equipment - Google Patents
Key scanning control method on touch panel and intelligent control equipment Download PDFInfo
- Publication number
- CN110690905B CN110690905B CN201810725719.XA CN201810725719A CN110690905B CN 110690905 B CN110690905 B CN 110690905B CN 201810725719 A CN201810725719 A CN 201810725719A CN 110690905 B CN110690905 B CN 110690905B
- Authority
- CN
- China
- Prior art keywords
- touch
- keys
- scanning
- control module
- key
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000001514 detection method Methods 0.000 claims description 4
- 238000012795 verification Methods 0.000 claims description 3
- 230000002035 prolonged effect Effects 0.000 abstract description 3
- 239000011159 matrix material Substances 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M11/00—Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
- H03M11/20—Dynamic coding, i.e. by key scanning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K17/00—Electronic switching or gating, i.e. not by contact-making and –breaking
- H03K17/94—Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
- H03K17/96—Touch switches
- H03K17/962—Capacitive touch switches
- H03K17/9622—Capacitive touch switches using a plurality of detectors, e.g. keyboard
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The application provides a key scanning control method and intelligent control equipment on a touch panel, wherein the equipment comprises the following steps: the touch control device comprises a scanning control circuit and a touch control panel comprising a plurality of keys, wherein all the keys on the touch control panel are connected to the scanning control circuit in series; a touch panel for detecting a touch operation performed for touching the key; and the scanning control circuit is used for controlling to scan the keys on the touch panel to determine the keys which are subjected to the touch operation when the touch operation for touching the keys is detected by the touch panel, and controlling to stop scanning the keys on the touch panel when the received information of the keys which are subjected to the touch operation and determined by scanning meets the preset condition. Because the equipment is in a standby state, each key on the touch panel does not need to be scanned, the scanning is started only when the touch operation is detected by the touch module, and the scanning operation is stopped when the received key information accords with the preset condition, the standby power consumption of the equipment can be reduced, and the service life of a battery can be prolonged.
Description
Technical Field
The present application relates to the field of touch panels, and in particular, to a method for controlling scanning of keys on a touch panel and an intelligent control device.
Background
Touch panels including keys are currently being used more and more in intelligent control devices, such as intelligent door locks with touch panels. For the intelligent control device with the touch panel in the standby state, if the user presses the key to respond in time, the intelligent control device is usually powered by a battery, and the service time of the battery is a key problem affecting the use experience of the user.
In the related art, in a standby state, that is, a main control module is in a sleep mode, in order to ensure that a user presses a key to respond in time, the touch control module is required to scan each key on the touch control panel continuously to detect whether the key is pressed, if the key is detected to be pressed, the information of the pressed key is reported to the main control module to wake up the main control module, the main control module processes the information of the key reported by the touch control module until the touch control module does not report the information of the pressed key after a certain preset time, the main control module enters the sleep mode again, and the intelligent control device enters the standby state again.
Because the intelligent control device still needs to continuously scan each key on the touch panel even in the standby state, the power consumption of the intelligent control device is high, and the service life of the battery is short.
Disclosure of Invention
In view of the above, the present application provides a key scanning control method and an intelligent control device for a touch panel, so as to solve the problem that the service life of a battery mounted on the intelligent control device is reduced by the existing key scanning control method.
According to a first aspect of an embodiment of the present application, there is provided an intelligent control device, the device including: the touch control device comprises a scanning control circuit and a touch panel comprising a plurality of keys, wherein all the keys on the touch panel are connected to the scanning control circuit in series;
wherein the touch panel is used for detecting a touch operation performed for touching keys;
the scanning control circuit is used for controlling to scan the keys on the touch panel to determine the keys which are subjected to the touch operation when the touch operation for touching the keys is detected by the touch panel, and controlling to stop scanning the keys on the touch panel when the received information of the keys which are subjected to the touch operation and determined by scanning meets the preset condition.
Optionally, the scan control circuit may include a main control module and a touch control module, where the main control module is connected to the touch control module, and all keys on the touch control panel are connected to the touch control module in series;
the touch control module is used for sending a touch notification message to the main control module when detecting that the touch control panel is executed for touching keys;
the main control module is used for controlling and scanning the keys on the touch panel to determine the keys which are subjected to touch operation, and controlling to stop scanning the keys on the touch panel when the received information of the keys which are subjected to touch operation and determined by scanning meets the preset condition.
Optionally, the touch module may be further separately connected to each key on the touch panel, and the main control module includes:
the sending unit is used for sending a scanning instruction to the touch module so that the touch module scans each key on the touch panel;
and the receiving unit is used for receiving the information of the key which is determined to be subjected to the touch operation by scanning and transmitted by the touch control module.
Optionally, the touch module is a first type touch module provided by the intelligent control device; the intelligent control device can further comprise a second type of touch control module, the second type of touch control module is connected with the main control module, and the second type of touch control module is also respectively and independently connected with each key on the touch control panel;
the main control module comprises:
the sending unit is used for sending a scanning instruction to the second type of touch module so that the second type of touch module scans each key on the touch panel;
and the receiving unit is used for receiving the information of the keys which are determined to be executed with the touch operation by scanning and transmitted by the second type of touch control module.
Optionally, the touch module may include:
a stop detection control unit for stopping detecting that the touch panel is being executed for touching a key after sending a touch notification message to the main control module;
the main control module may include:
and the touch module control unit is used for controlling the touch module to start detecting the touch operation of the touch panel for touching the keys after controlling to stop scanning the keys on the touch panel.
Optionally, the main control module may further include:
the verification unit is specifically configured to, after controlling to stop scanning the keys on the touch panel, sort the received information of the keys on which the touch operation is performed according to the receiving time from small to large, so as to obtain a key sequence; inquiring a database by utilizing the key sequence, wherein the corresponding relation between the key sequence and the operation instruction is recorded in the database; and if the key sequence is queried, executing an operation instruction corresponding to the key sequence.
According to a second aspect of an embodiment of the present application, there is provided a key scanning control method on a touch panel, the method being applied to an intelligent control device, the intelligent control device including a scanning control circuit and a touch panel including a plurality of keys, all the keys on the touch panel being connected in series to the scanning control circuit, the method including:
when the scanning control circuit detects that the touch panel is executed for touching keys, controlling to scan each key on the touch panel to determine the key which is executed for touching, and controlling to stop scanning the key on the touch panel when the received information of the key which is executed for touching and determined by scanning meets the preset condition.
Optionally, the scan control circuit includes a main control module and a touch control module, all keys on the touch control panel are connected in series to the touch control module, and the method may include:
when the touch control module detects that the touch control panel is executed to touch keys, a touch notification message is sent to the main control module;
the main control module controls to scan the keys on the touch panel to determine the keys which are executed with touch operation, and controls to stop scanning the keys on the touch panel when the received information of the keys which are executed with touch operation determined by scanning meets the preset condition.
Optionally, the main control module controls scanning keys on the touch panel to determine keys on which a touch operation is performed, and may include:
sending a scanning instruction to the touch module so that the touch module scans each key on the touch panel;
and receiving the information of the key which is determined to be subjected to the touch operation by scanning and is sent by the touch control module.
Optionally, the touch module is a first type touch module provided by the intelligent control device; the intelligent control device further comprises a second type of touch control module;
the main control module controls scanning of keys on the touch panel to determine keys to be touched, and may include:
the main control module sends a scanning instruction to the second type of touch control module so that the second type of touch control module scans each key on the touch control panel;
and receiving the information of the keys which are determined to be executed with touch operation by scanning and transmitted by the second type touch control module.
Optionally, the method may further include:
after the touch control module sends a touch notification message to the main control module, stopping detecting that the touch control panel is executed for touching keys;
after the main control module controls to stop scanning keys on the touch panel, the touch control module is controlled to start detecting touch operation of the touch panel, which is performed for touching the keys.
Optionally, after the main control module controls to stop scanning the keys on the touch panel, the method may further include:
ordering the received information of the keys which are subjected to touch operation according to the receiving time from small to large to obtain a key sequence;
inquiring a database by utilizing the key sequence, wherein the corresponding relation between the key sequence and the operation instruction is recorded in the database;
and if the key sequence is queried, executing an operation instruction corresponding to the key sequence.
Optionally, when the received information of the key on which the touch operation is performed, which is determined by the scanning, meets a preset condition, controlling to stop scanning the key on the touch panel may include:
when the number of the received information of the keys which are determined by scanning and are subjected to touch operation is a preset number, controlling to stop scanning the keys on the touch panel; or,
and when the information of the key which is determined by scanning and is subjected to touch operation is preset key information, controlling to stop scanning the key on the touch panel.
By applying the embodiment of the application, since all keys included in the touch panel on the intelligent control device are connected in series to the scanning control circuit, the scanning control circuit can control the keys on the scanning touch panel again when detecting that the touch panel is executed for touching the keys, so as to determine the keys which are executed for touching the keys, and control to stop scanning the keys on the touch panel when the received information of the keys which are executed for touching the keys which are determined by scanning accords with the preset condition. As is apparent from the above description, the intelligent control device does not need to continuously scan each key on the touch panel in the standby state, but only enters the working state when detecting that the touch panel is being operated for touching the key, starts scanning each key on the touch panel, and immediately stops the scanning operation when the received information of the key being operated for touching, determined by the scanning, meets the preset condition, so the power consumption of the intelligent control device in the standby state can be reduced, and the service life of the battery mounted on the intelligent control device can be prolonged.
Drawings
Fig. 1 is a schematic structural view of an existing smart door lock according to an exemplary embodiment of the present application;
fig. 2 is a schematic structural view of an intelligent control device according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of another intelligent control device according to the embodiment of FIG. 2;
fig. 4 is a schematic diagram of a connection structure between a touch module and each key according to the embodiment shown in fig. 3;
FIG. 5 is a schematic diagram of a connection structure between a first type of touch module and a second type of touch module and each key according to the embodiment shown in FIG. 3;
fig. 6 is a flowchart of an embodiment of a method for controlling scanning of keys on a touch panel according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification 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 also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
Taking an intelligent door lock with a touch panel as an example, fig. 1 is a schematic structural diagram of an existing intelligent door lock according to an exemplary embodiment of the present application, where the intelligent door lock in fig. 1 includes a touch panel (including 12 keys), a main control module, and a touch module. The touch module comprises a switch matrix, each key on the touch panel is correspondingly provided with a key switch in the switch matrix, and the touch module polls and controls each key on the scanning touch panel through the switch matrix. In order to ensure that the user presses the keys to respond in time, the touch module needs to constantly poll and scan each key through the switch matrix, so that the power consumption of the touch module is always higher in a standby state.
The inventors estimated battery replacement time for various intelligent door locks on the market according to the standby power consumption, as shown in table 1, which is an exemplary battery usage time of the intelligent door lock. As can be seen from table 1, the standby power consumption current of various intelligent door locks on the market at present is above 50uA, and the primary battery needs to be replaced within one year. Therefore, the intelligent door lock has relatively high power consumption and short battery life because of relatively high current consumption in the standby state.
Door lock category | A | B | C | D | E |
Standby power consumption | 121.6uA | 52.6uA | 76.3uA | 58.9uA | 121.8uA |
Battery life time | 9.6 months | 13 months of | 12 months of | 11.1 month | 8.5 months |
TABLE 1
Based on the above, the application uses all keys on the touch panel as one key by connecting all keys on the touch panel in series, so that the intelligent door lock can detect whether a touch operation for touching the keys is executed or not by scanning one key in a standby state, and when the touch operation is detected, each key is scanned respectively to determine the key which is executed the touch operation. Because the intelligent door lock only needs to scan one key instead of all keys in the standby state, the current consumption in the standby state can be reduced, thereby reducing the standby power consumption and prolonging the service life of the battery.
It will be appreciated by those skilled in the art that the intelligent control device according to the present application refers to a device with a touch panel including keys, and is not limited to the above-mentioned intelligent door lock with a touch panel. The application is illustrated in more detail below by means of specific examples:
fig. 2 is a schematic structural diagram of an intelligent control device according to an exemplary embodiment of the present application, and as shown in fig. 2, the intelligent control device includes: the touch panel comprises a scanning control circuit and a touch panel (12 keys are listed in fig. 2) comprising a plurality of keys, and all the keys on the touch panel are connected to the scanning control circuit in series. Wherein, the touch panel is used for detecting the touch operation executed for touching the key; and the scanning control circuit is used for controlling to scan the keys on the touch panel to determine the keys which are subjected to the touch operation when the touch operation for touching the keys is detected by the touch panel, and controlling to stop scanning the keys on the touch panel when the received information of the keys which are subjected to the touch operation and determined by scanning meets the preset condition.
The mode of detecting the touch operation by the scanning control circuit is determined by the attribute of the touch panel, and if the touch panel is a capacitive touch panel, the scanning control circuit can detect the touch operation by detecting the change of the capacitance value. The scan control circuit may poll each key on the scan touch panel through the switch matrix (each key has a corresponding key switch in the switch matrix).
It will be understood by those skilled in the art that all the keys on the touch panel are connected in series to the scan control circuit, and the adopted serial connection mode may be parallel serial connection or serial connection, and the parallel serial connection mode is illustrated in fig. 2, but the serial connection mode is not limited by the present application.
In one example, for controlling to stop a process of scanning a key on a touch panel when information of the key on which a touch operation is performed, which is determined by scanning, is received to meet a preset condition, the preset condition may include two cases, the first is: when the number of the received information of the keys which are determined by scanning and are subjected to touch operation is a preset number, controlling to stop scanning the keys on the touch panel; the second is: and when the information of the key which is determined by scanning and is subjected to touch operation is preset key information, controlling to stop scanning the key on the touch panel.
The preset number refers to preset key digits to be input. The preset key information may be a key value of a key, and a flag for indicating that the user has completed key password input may be set as the preset key information, for example, "×" or "#", as an end flag.
Taking intelligent control equipment as an intelligent door lock, as shown in fig. 2, for example, 12 keys are arranged on a touch panel of the intelligent door lock, a switch matrix for scanning the 12 keys is correspondingly arranged in a scanning control circuit, under a standby state of the intelligent door lock, according to the existing key scanning control mode, the scanning control circuit needs to continuously control the opening and closing of each corresponding key switch in the switch matrix so as to scan the 12 keys in a polling manner, and according to the key scanning control mode of the application, the method is equivalent to only scanning one key, the control operation is not required to be performed on the switch matrix, namely, the switch matrix is in a closing state, only when the touch operation is detected, the switch matrix is opened, and the opening and closing of each corresponding key switch in the switch matrix are controlled so as to scan the 12 keys in a polling manner. Therefore, the power consumption of the intelligent door lock is theoretically 1/12 times that of the existing intelligent door lock in the standby state. Through tests, the current consumption of the intelligent door lock in the standby state is between 20uA and 25uA, which is reduced by one time compared with the current consumption in the prior art, and the actual power consumption in the standby state is at least 1/2 times of the current consumption in the prior art by considering the influence of factors such as leakage current, standby current and the like of a chip in the intelligent door lock.
It should be noted that, the intelligent control device may further include a power supply module, a disable module, and the like, in addition to the touch panel and the scan control circuit.
In this embodiment, since all the keys included in the touch panel on the intelligent control device are connected in series to the scan control circuit, the scan control circuit may further control the keys on the scan touch panel to determine the keys to be touched when detecting that the touch panel is touched by the touch keys, and control to stop scanning the keys on the touch panel when the received information of the keys to be touched determined by the scan meets the preset condition. As can be seen from the above description, in the standby state, the intelligent control device does not need to continuously scan each key on the touch panel, enters the working state only when the touch operation of the touch panel for touching the key is detected, starts scanning each key on the touch panel, and immediately stops the scanning operation when the received information of the key determined by the scanning to be touched meets the preset condition.
In an embodiment, fig. 3 is a schematic structural diagram of another intelligent control device according to the embodiment shown in fig. 2, and as shown in fig. 3, the scan control circuit may include a main control module and a touch control module, where the main control module is connected with the touch control module, and all keys on the touch control panel are connected in series to the touch control module. The touch control module is used for sending a touch notification message to the main control module when detecting that the touch control panel is executed for touching keys; the main control module is used for controlling the scanning of the keys on the touch panel to determine the keys which are subjected to touch operation, and controlling to stop scanning of the keys on the touch panel when the received information of the keys which are subjected to touch operation determined by scanning meets the preset condition. The touch control module and the main control module can be connected through an I2C bus, and touch notification information is sent to the main control module in an interrupt mode.
In one example, during the real-time detection of the touch operation performed by the touch panel for touching the keys, the intelligent control device may be in a standby state all the time, i.e. the main control module is in a sleep mode, and when the main control module receives the touch notification message sent by the touch control module, the intelligent control device enters a working state from the standby state, i.e. the main control module switches from the sleep mode to the wake mode, and starts to control the keys on the touch panel to be scanned.
In another example, for each key process of the main control module on the control scanning touch panel, in order to ensure that the key can respond in time when pressed, the scanning interval duration, that is, the duration of each time the scanning is completed, may be preset according to practical experience, where the time taken from the touch detection operation to the sending of the touch notification message to the main control module by the touch control module is very short and negligible, but the set scanning interval duration cannot be less than the time required for completing one time of scanning. For a touch panel on an intelligent door lock, the touch panel generally comprises 12 keys (numbers 0-9, #), the time for scanning one key is about 5 ms, the time required for completing one scan is 60 ms, and the time for pressing the key by a user is about 100 ms, so that one scan can ensure that the key is pressed to respond timely, and the set scanning interval time is required to be greater than 60 ms and less than 200 ms for continuously pressing the key by the user, for example, the scanning interval time can be set to be 150 ms.
It should be noted that, if the main control module does not receive the scanning result within the preset time, it indicates that the user has not input the complete key password, and the key password input has ended, the main control module may directly control to stop scanning the key on the touch panel, and prompt the user to re-input the key password in a voice manner or a screen reminding manner.
In an embodiment, fig. 4 is a schematic diagram of a connection structure between a touch module and each key shown in the embodiment of fig. 3, where, as shown in fig. 4, the touch module is further separately connected to each key on the touch panel, that is, each key on the touch panel is separately connected to the touch module through a connector, so that the main control module may scan each key on the touch panel by controlling the touch module, that is, the main control module may include: the sending unit is used for sending a scanning instruction to the touch module so that the touch module scans each key on the touch panel; and the receiving unit is used for receiving the information of the key which is determined to be subjected to the touch operation by scanning and transmitted by the touch control module. Compared with the existing intelligent control equipment, the intelligent control equipment in the embodiment can achieve the purpose of reducing standby power consumption without adding any hardware chip, so that the implementation cost is low.
For the 12 keys shown in fig. 2, the touch module may be composed of a touch chip with 13 scan channels, where the 12 keys are connected to 1 scan channel in series for detecting the touch operation performed for touching the keys, and the other 12 scan channels are respectively connected to each key on the touch panel for respectively scanning each key to determine the key on which the touch operation is performed.
Based on the intelligent control device shown in fig. 4, the process of stopping scanning the keys on the touch panel is controlled when the main control module cannot receive the information of the keys which are determined by scanning and are touched within the preset time, the main control module can send a stopping instruction to the touch module, and the touch module stops scanning the keys on the touch panel after receiving the stopping instruction.
In an exemplary scenario, for 12 keys included in the touch panel of the smart door lock, the connector needs to be connected to the 12 keys respectively to connect the 12 keys to the touch module respectively, and besides, the touch module is further connected to the 12 keys connected in series, so that the touch module has 13 channels, wherein 1 channel is used for detecting touch operations, and the other 12 channels are used for scanning the 12 keys.
In another embodiment, as shown in fig. 5, a schematic diagram of a connection structure between a first type touch module and a second type touch module and each key according to the embodiment shown in fig. 3 of the present application is shown, where the touch module in fig. 5 may be a first type touch module provided by an intelligent control device and used for detecting that a touch panel is executed to touch the key, the intelligent control device further includes a second type touch module connected to the main control module, and the second type touch module is further separately connected to each key on the touch panel and used for scanning each key on the touch panel. Thus, the main control module may include: the sending unit is used for sending a scanning instruction to the second type of touch module so that the second type of touch module scans each key on the touch panel; the receiving unit is used for receiving the information of the keys which are determined to be touched and operated by scanning and sent by the second type of touch control module.
The first type touch control module and the second type touch control module can be connected with the main control module through the I2C bus. The first type of touch module may be a low-power-consumption single-path touch module, i.e. may be composed of a touch chip having a single-path scanning channel. The second type of touch module may be a touch module used in the prior art, and for the 12 keys shown in fig. 2, the second type of touch module may be a touch chip with 12 scan channels, where the 12 scan channels are respectively connected to each key on the touch panel, and are used to scan each key respectively to determine the key on which the touch operation is performed.
In the intelligent control device in this embodiment, in a working state, each key on the touch panel is scanned by the second type touch module, and in a standby state, touch operation is detected by the first type touch module, and since the first type touch module only needs to process touch operation of one channel, the processing core of the first type touch module is simple compared with the processing core of the second type touch module, and the operation capability is strong and the time is short.
Based on the intelligent control device shown in fig. 5, the second type touch module may be in a sleep mode in a standby state, and when a scan command is received, the sleep mode is switched to an awake mode, and each key on the touch panel starts to be scanned.
In yet another embodiment, the touch module may include: a stop detection control unit for stopping detecting that the touch panel is being executed for touching the key after sending the touch notification message to the main control module; the main control module can also include: and the touch module control unit is used for controlling the touch module to start detecting the touch operation of the touch panel for touching the keys after controlling to stop scanning the keys on the touch panel. Because the touch control module stops detecting after detecting the touch operation and starts detecting the touch operation after the scanning is finished, the power consumption of the intelligent control device can be further reduced.
In still another embodiment, the main control module may further include a verification unit, configured to, after the control unit stops scanning the keys on the touch panel, sort the received information of the keys that are executed with the touch operation according to the receiving time from small to large to obtain a key sequence, and then query a database by using the key sequence, where a correspondence between the key sequence and the operation instruction is recorded, and if the key sequence is queried, execute the operation instruction corresponding to the key sequence.
Based on the above-mentioned intelligent door lock scene, it is assumed that the key sequence obtained by sorting the information of the keys input by the user is 238658, and the corresponding relationship of 238658 and the door lock release instruction is stored in the database, so that the corresponding door lock release instruction can be queried in the database, and after the door lock release instruction is executed, the door is opened, so that the user can enter the room.
Fig. 6 is a flowchart of an embodiment of a method for controlling key scanning on a touch panel according to an exemplary embodiment of the present application, which can be applied to the intelligent control device of the embodiment shown in fig. 2, as shown in fig. 6, the method for controlling key scanning on a touch panel includes the following steps:
step 501: when the scan control circuit detects that the touch panel is being operated to touch keys, the scan control circuit controls scanning of the keys on the touch panel to determine the keys on which the touch operation is being performed.
Step 502: and when the information of the keys which are determined to be executed with touch operation through scanning and received by the scanning control circuit accords with the preset condition, controlling to stop scanning the keys on the touch panel.
In one embodiment, the preset conditions include two cases: the first is: when the number of the received information of the keys which are determined by scanning and are subjected to touch operation is a preset number, controlling to stop scanning the keys on the touch panel; the second is: and when the information of the key which is determined by scanning and is subjected to touch operation is preset key information, controlling to stop scanning the key on the touch panel.
For the processes from step 501 to step 502, the scan control circuit may include a main control module and a touch control module, so as to send a touch notification message to the main control module when the touch control module detects that the touch control panel is executed for touching the key; the main control module controls the scanning of the keys on the touch panel to determine the keys which are subjected to touch operation, and controls the stopping of scanning of the keys on the touch panel when the information of the keys which are subjected to touch operation and determined by scanning is the preset key information.
In an embodiment, the process of scanning the keys on the touch panel is controlled by the main control module to determine the keys to be touched, and the main control module may send a scanning instruction to the touch module to enable the touch module to scan each key on the touch panel, and then may receive the information of the keys to be touched, which is determined by the scanning and sent by the touch module.
In an embodiment, the touch module may be a first type touch module provided in the intelligent control device, and the intelligent control device may further include a second type touch module, so that a process of scanning each key on the touch panel to determine a key to be touched is controlled by the main control module, the main control module may send a scan instruction to the second type touch module to enable the second type touch module to scan each key on the touch panel, and then may receive information of the key to be touched determined by the scan sent by the second type touch module.
In an embodiment, after the main control module controls to stop scanning the keys on the touch panel, the main control module may sort the received information of the keys subjected to the touch operation according to the receiving time from small to large to obtain a key sequence, and then query a database by using the key sequence, where a correspondence between the key sequence and an operation instruction is recorded, and if the key sequence is queried, execute the operation instruction corresponding to the key sequence.
It should be noted that, after the touch module sends the touch notification message to the main control module, the touch module may stop detecting that the touch panel is being executed for touching the key, and after the main control module controls to stop scanning the key on the touch panel, the touch module may be controlled to restart detecting that the touch panel is being executed for touching the key.
In this embodiment, since all the keys included in the touch panel on the intelligent control device are connected in series to the scan control circuit, the scan control circuit may further control the keys on the scan touch panel to determine the keys to be touched when detecting that the touch panel is touched for touching the keys, and control to stop scanning the keys on the touch panel when receiving the information of the keys to be touched determined by the scan as the preset key information. As can be seen from the above description, in the standby state, the intelligent control device does not need to continuously scan each key on the touch panel, and only when detecting that the touch panel is being operated for touching the key, the intelligent control device enters the working state to start scanning each key on the touch panel, and when receiving that the information of the key being operated is the preset key information, the scanning operation is immediately stopped, so that the power consumption of the intelligent control device in the standby state can be reduced, and the service life of the battery mounted on the intelligent control device can be prolonged.
The main control module in the embodiment of the application can be realized by a hardware circuit according to the design requirement of an actual circuit. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific description of the above embodiment of the method may refer to the relevant description in the foregoing embodiment of the intelligent control device, which is not repeated herein.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above embodiments may be implemented by hardware associated with program instructions, and the foregoing program may be stored in a computer readable storage medium, which when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (6)
1. An intelligent control device, the device comprising: the touch control device comprises a scanning control circuit and a touch panel comprising a plurality of keys, wherein all the keys on the touch panel are connected to the scanning control circuit in series;
wherein the touch panel is used for detecting a touch operation performed for touching keys;
the scanning control circuit is configured to control scanning of keys on the touch panel to determine keys to be touched when a touch operation for touching the keys is detected by the touch panel, and control stopping scanning of the keys on the touch panel when information of the keys to be touched determined by the scanning is received to meet preset conditions, the preset conditions including: the number of the received information of the keys which are determined by scanning and are subjected to touch operation is a preset number or the information of the keys which are determined by scanning and are subjected to touch operation is preset key information;
the scanning control circuit comprises a main control module and a touch control module, wherein the main control module is connected with the touch control module, and all keys on the touch control panel are connected to the touch control module in series; the touch control module is a first type of touch control module arranged on the intelligent control equipment; the intelligent control device further comprises a second type of touch control module, wherein the second type of touch control module is connected with the main control module, and the second type of touch control module is also respectively and independently connected with each key on the touch control panel;
the touch control module is used for sending a touch notification message to the main control module in an interrupt mode when detecting that the touch control panel is executed for touching keys;
the main control module is used for controlling and scanning keys on the touch panel to determine keys which are subjected to touch operation, and controlling to stop scanning the keys on the touch panel when the received information of the keys which are subjected to touch operation and determined by scanning accords with preset conditions; wherein, the main control module includes: the sending unit is used for sending a scanning instruction to the second type of touch module so that the second type of touch module scans each key on the touch panel; and the receiving unit is used for receiving the information of the keys which are determined to be executed with the touch operation by scanning and transmitted by the second type of touch control module.
2. The device of claim 1, wherein the touch module comprises:
a stop detection control unit, configured to stop detecting that the touch panel is executed to touch a key after sending a touch notification message to the main control module in an interrupt manner;
the main control module comprises:
and the touch module control unit is used for controlling the touch module to start detecting the touch operation of the touch panel for touching the keys after controlling to stop scanning the keys on the touch panel.
3. The apparatus of claim 1, wherein the master control module further comprises:
the verification unit is specifically configured to, after controlling to stop scanning the keys on the touch panel, sort the received information of the keys on which the touch operation is performed according to the receiving time from small to large, so as to obtain a key sequence; inquiring a database by utilizing the key sequence, wherein the corresponding relation between the key sequence and the operation instruction is recorded in the database; and if the key sequence is queried, executing an operation instruction corresponding to the key sequence.
4. The method is characterized in that the method is applied to intelligent control equipment, the intelligent control equipment comprises a scanning control circuit and a touch panel comprising a plurality of keys, all the keys on the touch panel are connected in series to the scanning control circuit, the scanning control circuit comprises a main control module and a touch module, the main control module is connected with the touch module, and all the keys on the touch panel are connected in series to the touch module; the touch control module is a first type of touch control module arranged on the intelligent control equipment; the intelligent control device further comprises a second type touch control module, the second type touch control module is connected with the main control module, the second type touch control module is further connected with each key on the touch control panel separately, and the method comprises the following steps:
when the main control module receives a touch notification message sent in an interrupt mode when the touch control module detects that the touch control panel is executed to touch keys, controlling to scan the keys on the touch control panel to determine the keys which are executed to touch the keys, and controlling to stop scanning the keys on the touch control panel when the received information of the keys which are executed to touch the keys which are determined by scanning meets preset conditions; the preset conditions include: the number of the received information of the keys which are determined by scanning and are subjected to touch operation is a preset number or the information of the keys which are determined by scanning and are subjected to touch operation is preset key information;
the main control module controls and scans keys on the touch panel to determine the keys which are executed with touch operation, and the specific steps comprise: the main control module sends a scanning instruction to the second type of touch control module so that the second type of touch control module scans each key on the touch control panel; and receiving the information of the keys which are determined to be executed with touch operation by scanning and transmitted by the second type touch control module.
5. The method of claim 4, wherein the method steps further comprise:
after the touch control module sends a touch notification message to the main control module in an interrupt mode, stopping detecting the touch operation of the touch control panel, which is executed for touching keys;
after the main control module controls to stop scanning keys on the touch panel, the touch control module is controlled to start detecting touch operation of the touch panel, which is performed for touching the keys.
6. The method according to claim 4, wherein after the main control module controls to stop scanning the keys on the touch panel, the method further comprises:
ordering the received information of the keys which are subjected to touch operation according to the receiving time from small to large to obtain a key sequence;
inquiring a database by utilizing the key sequence, wherein the corresponding relation between the key sequence and the operation instruction is recorded in the database;
and if the key sequence is queried, executing an operation instruction corresponding to the key sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810725719.XA CN110690905B (en) | 2018-07-04 | 2018-07-04 | Key scanning control method on touch panel and intelligent control equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810725719.XA CN110690905B (en) | 2018-07-04 | 2018-07-04 | Key scanning control method on touch panel and intelligent control equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110690905A CN110690905A (en) | 2020-01-14 |
CN110690905B true CN110690905B (en) | 2023-11-14 |
Family
ID=69106456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810725719.XA Active CN110690905B (en) | 2018-07-04 | 2018-07-04 | Key scanning control method on touch panel and intelligent control equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110690905B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113282194A (en) * | 2021-05-31 | 2021-08-20 | 中微半导体(深圳)股份有限公司 | Low-power-consumption touch detection awakening method and device |
CN114496599B (en) * | 2021-12-31 | 2023-09-01 | 绿碳智能建筑(杭州)有限公司 | Intelligent switch and local linkage control method |
CN114706469A (en) * | 2022-04-13 | 2022-07-05 | 晟矽微电子(南京)有限公司 | Awakening method and device of touch key module, electronic equipment and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06131097A (en) * | 1992-10-16 | 1994-05-13 | Canon Inc | Key input device and method |
CN101807927A (en) * | 2010-03-19 | 2010-08-18 | 青岛海信电器股份有限公司 | Touch key scanning method and system |
CN201607717U (en) * | 2010-02-05 | 2010-10-13 | 通泰积体电路股份有限公司 | Power-saving multi-key touch switch sensing device |
CN102704761A (en) * | 2012-06-01 | 2012-10-03 | 杭州双华智能家居有限公司 | Intelligent lock system supporting multiple authentication modes |
CN103257716A (en) * | 2013-05-14 | 2013-08-21 | 湖南工业大学 | Low-power dissipation keyboard and scanning positioning method thereof |
CN104598783A (en) * | 2014-12-22 | 2015-05-06 | 广东欧珀移动通信有限公司 | Unlocking method and device of intelligent terminal |
CN104850417A (en) * | 2014-02-18 | 2015-08-19 | 联想(北京)有限公司 | Method for information processing and electronic equipment |
CN104932705A (en) * | 2015-06-26 | 2015-09-23 | 张泽 | Intelligent electronic lock keyboard, unlocking method thereof and intelligent electronic lock |
CN105386643A (en) * | 2015-12-04 | 2016-03-09 | 佛山市汇泰龙智能科技有限公司 | Keyboard navigation system and method for intelligent lock |
CN105807996A (en) * | 2016-03-08 | 2016-07-27 | 武汉华星光电技术有限公司 | Touch scanning driving method capable of lowering power consumption |
CN206021402U (en) * | 2016-09-12 | 2017-03-15 | 南京欣网通信科技股份有限公司 | A kind of off-line cipher lock control device of low-power consumption |
CN107327229A (en) * | 2017-08-11 | 2017-11-07 | 浙江公共安全技术研究院有限公司 | A kind of intelligent door lock of low-power consumption |
CN107422913A (en) * | 2017-07-24 | 2017-12-01 | 安徽华米信息科技有限公司 | Electronic equipment and its touch-screen control method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9665217B2 (en) * | 2014-04-28 | 2017-05-30 | Qualcomm Incorporated | Touch panel scan control |
-
2018
- 2018-07-04 CN CN201810725719.XA patent/CN110690905B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06131097A (en) * | 1992-10-16 | 1994-05-13 | Canon Inc | Key input device and method |
CN201607717U (en) * | 2010-02-05 | 2010-10-13 | 通泰积体电路股份有限公司 | Power-saving multi-key touch switch sensing device |
CN101807927A (en) * | 2010-03-19 | 2010-08-18 | 青岛海信电器股份有限公司 | Touch key scanning method and system |
CN102704761A (en) * | 2012-06-01 | 2012-10-03 | 杭州双华智能家居有限公司 | Intelligent lock system supporting multiple authentication modes |
CN103257716A (en) * | 2013-05-14 | 2013-08-21 | 湖南工业大学 | Low-power dissipation keyboard and scanning positioning method thereof |
CN104850417A (en) * | 2014-02-18 | 2015-08-19 | 联想(北京)有限公司 | Method for information processing and electronic equipment |
CN104598783A (en) * | 2014-12-22 | 2015-05-06 | 广东欧珀移动通信有限公司 | Unlocking method and device of intelligent terminal |
CN104932705A (en) * | 2015-06-26 | 2015-09-23 | 张泽 | Intelligent electronic lock keyboard, unlocking method thereof and intelligent electronic lock |
CN105386643A (en) * | 2015-12-04 | 2016-03-09 | 佛山市汇泰龙智能科技有限公司 | Keyboard navigation system and method for intelligent lock |
CN105807996A (en) * | 2016-03-08 | 2016-07-27 | 武汉华星光电技术有限公司 | Touch scanning driving method capable of lowering power consumption |
CN206021402U (en) * | 2016-09-12 | 2017-03-15 | 南京欣网通信科技股份有限公司 | A kind of off-line cipher lock control device of low-power consumption |
CN107422913A (en) * | 2017-07-24 | 2017-12-01 | 安徽华米信息科技有限公司 | Electronic equipment and its touch-screen control method |
CN107327229A (en) * | 2017-08-11 | 2017-11-07 | 浙江公共安全技术研究院有限公司 | A kind of intelligent door lock of low-power consumption |
Non-Patent Citations (1)
Title |
---|
基于VHDL语言和FPGA的电子密码锁;代金龙;《中国优秀硕士学位论文全文数据库工程科技Ⅰ辑》(第01(2016)期);B024-334 * |
Also Published As
Publication number | Publication date |
---|---|
CN110690905A (en) | 2020-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110690905B (en) | Key scanning control method on touch panel and intelligent control equipment | |
CN103544021B (en) | The screenshotss method and its device of a kind of mobile terminal screen content | |
US9565293B2 (en) | Method and device for operating mobile terminal based on sensor, and mobile terminal | |
US9483633B2 (en) | Method and terminal for authenticating a stlyus | |
CN105320924A (en) | Electronic device and fingerprint identification device control method | |
CN105208008A (en) | Fingerprint-identification-based account logging-in method and apparatus, and terminal | |
CN104243750A (en) | IMAGE FORMING APPARATUS and METHOD FOR CONTROLLING IMAGE FORMING APPARATUS | |
CN105589654A (en) | Pressure sensor based mobile terminal unlocking method and system | |
CN104699510A (en) | Application program starting method, application program starting device and terminal | |
EP2765824A1 (en) | Mobile terminal boot control method and mobile terminal | |
US12057960B2 (en) | Method for notifying a message of a smart home based on a smart screen apparatus and smart screen | |
CN100525154C (en) | Call processing apparatus and method for WCDMA terminal | |
CN104834850A (en) | Fingerprint button device and control method adopting fingerprint button device | |
CN104836869A (en) | Mobile communication terminal and mobile communication terminal power-on method | |
CN105933742A (en) | Remote control terminal and method for paring same with primary device | |
CN111782036A (en) | Input method, input device, electronic equipment and storage medium | |
CN102945124B (en) | The method and system that a kind of mobile terminal controlling application program exits fast | |
CN113014898B (en) | Projector wake-up control method, projector and readable storage medium | |
CN105491242A (en) | Mobile communication terminal and control method and device thereof | |
CN111818621B (en) | Bluetooth equipment awakening method, device and system and electronic equipment | |
CN103019607A (en) | Gesture screen locking method of touch mobile terminal, and mobile terminal | |
TWI416368B (en) | Keyboard mouse switch and switching method thereof | |
CN100466827C (en) | New message of short message presenting method | |
CN105892879A (en) | Terminal equipment and awakening processing method of touch key | |
CN106534512B (en) | Method and system for switching forced restart modes of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 266061 Songling Road, Laoshan District, Qingdao, Shandong Province, No. 399 Applicant after: Qingdao Hisense Smart Life Technology Co.,Ltd. Address before: 266061 Songling Road, Laoshan District, Qingdao, Shandong Province, No. 399 Applicant before: QINGDAO HISENSE SMART HOME SYSTEMS Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |