CN110310391B - Touch wake-up method and device, electronic equipment and storage medium - Google Patents

Touch wake-up method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110310391B
CN110310391B CN201910424063.2A CN201910424063A CN110310391B CN 110310391 B CN110310391 B CN 110310391B CN 201910424063 A CN201910424063 A CN 201910424063A CN 110310391 B CN110310391 B CN 110310391B
Authority
CN
China
Prior art keywords
touch
signal
value
door lock
acquiring
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
CN201910424063.2A
Other languages
Chinese (zh)
Other versions
CN110310391A (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.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN201910424063.2A priority Critical patent/CN110310391B/en
Publication of CN110310391A publication Critical patent/CN110310391A/en
Application granted granted Critical
Publication of CN110310391B publication Critical patent/CN110310391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electronic Switches (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The application discloses a touch awakening method, a touch awakening device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a first touch signal acting on a touch area, and acquiring a first signal change value of the first touch signal; judging whether the first signal change value meets a first threshold value condition or not; when the first signal change value meets a first threshold value condition, acquiring a plurality of second touch signals acting on the touch area, and acquiring a plurality of second signal change values corresponding to the plurality of second touch signals; judging whether the plurality of second signal change values meet a second threshold condition; and generating a wake-up instruction when the plurality of second signal change values meet a second threshold condition. According to the method and the device, multiple thresholds are set, the sampling times are increased to acquire multiple second signal change values when the first threshold condition is met, and the awakening instruction is generated when the multiple second signal change values meet the second threshold condition, so that the judgment accuracy rate of the awakening event is improved, and the probability of mistaken awakening is reduced.

Description

Touch wake-up method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a touch wake-up method and apparatus, an electronic device, and a storage medium.
Background
Intelligent door locks are becoming increasingly popular with the market due to their convenience. At present, the door lock is usually powered by a battery, because of the requirements of cost and space, the battery capacity cannot be very large, in order to save power, the door lock is usually in a sleep state, and only after the state of the door lock is changed, the door lock system is wakened up, so that a user can verify unlocking. The door lock awakening mode is different based on different door lock structures. Such as a flip wake mode, a slider wake mode, and a touch wake mode. The mode of touch wakeup usually requires that the door lock periodically scans a plurality of touch channels so as to wake up the door lock in time when touch operation occurs, but the requirement on the power consumption of the door lock is high, and how to reduce the probability of false wakeup has important significance for controlling the power consumption of the door lock.
Disclosure of Invention
In view of the foregoing problems, the present application provides a touch wake-up method, an apparatus, an electronic device, and a storage medium, which can reduce the probability of false wake-up.
In a first aspect, an embodiment of the present application provides a touch wake-up method, where the method includes: acquiring a first touch signal acting on a touch area, and acquiring a first signal change value of the first touch signal; judging whether the first signal change value meets a first threshold value condition or not; when the first signal change value meets a first threshold value condition, acquiring a plurality of second touch signals acting on the touch area, and acquiring a plurality of second signal change values corresponding to the plurality of second touch signals; judging whether the plurality of second signal change values meet a second threshold condition; and generating a wake-up instruction when the plurality of second signal change values meet a second threshold condition.
In a second aspect, an embodiment of the present application provides a wake-on-touch apparatus, including: the first acquisition module is used for acquiring a first touch signal acting on the touch area and acquiring a first signal change value corresponding to the first touch signal; the first judgment module is used for judging whether the first signal change value meets a first threshold value condition or not; the second acquisition module is used for acquiring a plurality of second touch signals acting on the touch area when the first signal change value meets a first threshold condition, and acquiring a plurality of second signal change values corresponding to the plurality of second touch signals; the second judgment module is used for judging whether the plurality of second signal change values meet a second threshold value condition; and the instruction generating module is used for generating a wake-up instruction when the plurality of second signal change values meet a second threshold condition.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the wake-on-touch method as described above in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the wake-on-touch method according to the first aspect.
The touch awakening method, the touch awakening device, the electronic device and the storage medium provided by the embodiment of the application acquire a first signal change value of a first touch signal by acquiring the first touch signal acting on a touch area, then judge whether the first signal change value meets a first threshold condition, acquire a plurality of second touch signals acting on the touch area when the first signal change value meets the first threshold condition, acquire a plurality of second signal change values corresponding to the plurality of second touch signals, then judge whether the plurality of second signal change values meet a second threshold condition, and finally generate an awakening instruction when the plurality of second signal change values meet the second threshold condition. According to the method and the device, multiple thresholds are set, the sampling times are increased to acquire multiple second signal change values when the first threshold condition is met, and the awakening instruction is generated when the multiple second signal change values meet the second threshold condition, so that the judgment accuracy rate of the awakening event is improved, and the probability of mistaken awakening is reduced.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application environment suitable for use in embodiments of the present application;
FIG. 2 is a flowchart illustrating a wake-on-touch method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a wake-on-touch method according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a wake-on-touch method according to another embodiment of the present application;
FIG. 5 is a flowchart illustrating a wake-on-touch method according to still another embodiment of the present application;
FIG. 6 is a block diagram of a wake-on-touch apparatus according to an embodiment of the present application;
fig. 7 is a block diagram illustrating a hardware structure of an electronic device according to an embodiment of the present application, configured to execute a device control method according to the embodiment of the present application;
fig. 8 illustrates a block diagram of a computer-readable storage medium for executing a device control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In order to better understand the touch wake-up method, the apparatus, the electronic device, and the storage medium provided in the embodiments of the present application, an application environment suitable for the embodiments of the present application is described below.
Referring to fig. 1, fig. 1 is a schematic view of a door lock suitable for use in an embodiment of the present application. The touch wakeup method provided by the embodiment of the application can be applied to the door lock 10 shown in fig. 1. Fig. 1 shows a touch panel of the door lock 10. Specifically, the touch area of the touch panel includes 13 touch sub-areas, that is, 13 touch sub-channels.
When the door lock is in a sleep state, the door lock scans the 13 touch sub-channels, when a touch signal is sampled by any touch sub-channel and the signal value of the touch signal meets a preset threshold condition, a wake-up event is considered to occur, and at the moment, the door lock system is awakened, so that the door lock enters a working state. And when the door lock is in a working state, the door lock acquires a corresponding instruction according to the touch area corresponding to the sampled signal.
Specifically, the door lock measures capacitance by detecting the amount of charge accumulated on the touch area, and when an external object such as a finger approaches one touch sub-area, the capacitance of an electrode corresponding to the touch sub-area is increased, so that the door lock can determine at least one of a touch event and a touch position according to the change of the acquired capacitance, and thus when the door lock is in a sleep state, the door lock can wake up the door lock by determining that the touch event occurs, or when the door lock is in a working state, the door lock can acquire a password input by a user by sequentially determining each touch position. For example, when the door lock is in an operating state, when the door lock sequentially acquires that the capacitance of the electrodes corresponding to the key "2", the key "3", and the key "0" is increased, the door lock may acquire that the password input by the user is 2330.
In one embodiment, the electrodes corresponding to the touch sub-regions have corresponding signal reference values and trigger thresholds, and the door lock determines whether a key press event occurs by determining whether a difference value between the acquired signal value and the signal reference value exceeds the trigger threshold. Specifically, when the door lock scans an electrode corresponding to one key, the capacitance value of the electrode at the time is sampled, when the difference value between the sampled capacitance value corresponding to the key and the signal reference value exceeds a preset trigger threshold value, that is, when the sampled capacitance change value corresponding to the key exceeds the preset trigger threshold value, the door lock considers that a key is pressed down, and when the difference value between the next capacitance value and the signal reference value is detected to be smaller than the trigger threshold value, that is, when the next capacitance change value is detected to be smaller than the trigger threshold value, the door lock considers that the key is released. For example, when the door lock scans the electrode of the key "1", the capacitance value S of the key "1" at the time is obtained by sampling1Determining the capacitance value S1And a signal reference value R1Whether the difference exceeds the key triggering threshold Rh corresponding to the key "11When (S)1-R1)>Rh1When the door lock is pressed, the key 1 is pressed, and then (S)1-R1)<Rh1When the door lock is opened, the key 1 is released.
It should be noted that, in the embodiment of the present application, a key pressing event may include an event that a physical key is pressed and generates a displacement to a certain extent, an event that a key is touched but not displaced, and an event that an external object approaches the key but does not touch the key. It can be understood that when the door lock can sample the capacitance value corresponding to the key and the capacitance change value corresponding to the key exceeds the corresponding key trigger threshold, the door lock considers that there is a key press event.
In some embodiments, the 13 touch sub-channels may include 12 key channels and 1 proximity channel. Wherein, 12 key channels may correspond to keys "<", keys "√" and numeric keys 0-9. Specifically, when the door lock is in a sleep state, any key is touched to enable the door lock to acquire a corresponding capacitance value, and when the capacitance change value of a key channel corresponding to the key exceeds a corresponding key trigger threshold value, the door lock system is triggered to be waken up to enable the door lock to enter a working state. When the door lock is in a working state, touching the corresponding key can trigger the door lock to acquire an instruction corresponding to the key, for example, touching the number key "9" can enable the door lock to acquire the number "9", and further, touching the number key "√" can enable the door lock to acquire the currently input password and verify unlocking according to the acquired password. As one approach, the key "<" may also correspond to a delete instruction, so that the user can delete the currently entered password and make modifications.
Wherein, the approach channel may correspond to the approach wake-up area. Specifically, when the door lock is in a sleep state and an external object such as a finger approaches the approach channel, the door lock can sample a capacitance value corresponding to the approach channel, and when a capacitance change value of the approach channel exceeds a corresponding trigger threshold value, the door lock system is triggered and awakened, so that the door lock enters a working state; in some embodiments, the proximity channel may be correspondingly provided with an NFC (Near Field Communication) module, so that when the door lock is in an operating state, the door lock may read a signal of proximity through the proximity channel to verify unlocking, for example, a mobile phone with the NFC module may be brought into proximity with the proximity channel on the door lock to verify unlocking. In some embodiments, an access channel may refer to an area other than 12 key channels.
It is to be understood that the above application environments are only exemplary descriptions for facilitating understanding of the following embodiments, and do not constitute any limitation to the application environments in which the embodiments of the present application may be actually implemented.
At present, the door lock mainly judges whether to awaken the door lock system by detecting the change of the capacitance value corresponding to each touch subchannel, but the judgment accuracy of the door lock on an awakening event may be influenced by various factors, for example, the detection on the capacitance value may be influenced by the change of the ambient temperature, the overlarge external noise and the like, so that whether a correct awakening event occurs or not is difficult to judge by the door lock, the awakening is easy to be triggered by mistake or is difficult to trigger, and the user experience is influenced.
Based on the above problems, the inventor finds that, after a series of researches on the existing touch wakeup method, there is no good method for reducing the false wakeup probability at present, and excessive false wakeup affects the power consumption and user experience of the door lock, so that it is more and more important to reduce the false wakeup probability. In the research process, the inventor researches the current difficult point of touch wakeup, and more comprehensively considers the requirements of various scenes, and provides the touch wakeup method, the device, the electronic equipment and the storage medium in the embodiment of the application.
The touch wake-on-touch method, the apparatus, the electronic device, and the storage medium provided in the embodiments of the present application are described in detail below with reference to specific embodiments.
Referring to fig. 2, an embodiment of the present application provides a touch wake-up method, which can be applied to the door lock. As will be explained in detail with respect to the flow shown in fig. 2, the above wake-on-touch method may specifically include the following steps:
step S210: the method comprises the steps of collecting a first touch signal acting on a touch area, and obtaining a first signal change value of the first touch signal.
In this embodiment, the touch area includes at least one touch sub-channel, when the door lock is in a sleep state, each touch sub-channel on the touch area is scanned, and when a first touch signal is acquired, the touch sub-channel corresponding to the first touch signal is determined, and a difference value between a capacitance value of the acquired first touch signal and a signal reference value of the touch sub-channel is used as a first signal change value, so as to obtain the first signal change value of the first touch signal. The capacitance value of each touch sub-channel under the condition of no touch event is not zero due to the influence of noise existing in the environment, and in order to avoid the influence of noise existing under the condition of no touch event on triggering awakening, the door lock is provided with a signal reference value according to each touch sub-channel, so that the noise existing under the condition of no touch event of the door lock is filtered when the door lock detects the triggering awakening.
It should be noted that the signal reference value of each touch subchannel may be preset by a system, may also be customized by a user, and may also be adaptively adjusted according to an environmental change, and the signal reference values of each touch subchannel may be the same or different, which is not limited in this embodiment. Furthermore, the detection accuracy of each touch subchannel can be adjusted by adjusting the signal reference value of each touch subchannel, so that each touch subchannel can adjust the signal reference value based on the interference of environmental noise to improve the accuracy of signal detection of each touch subchannel, and the adaptability of the door lock to the environment and the accuracy of the door lock to the signal detection are improved.
In one specific embodiment, for example, when the door lock is in a sleep state, the user touches the key "1" so that the door lock acquires the signal value S of the touch signal corresponding to the key "11And collecting the signal value S1Signal reference value R corresponding to key 11The difference value between them is used as the signal change value (S) of the touch signal1-R1) Therefore, the door lock obtains a corresponding signal change value according to the collected signal value.
Step S220: and judging whether the first signal change value meets a first threshold value condition.
In this embodiment, when the first signal variation value is greater than the first signal threshold, the first signal variation value may be considered to satisfy the first threshold condition, and when the first signal variation value is not greater than the first signal threshold, the first signal variation value may be considered not to satisfy the first threshold condition. The first signal threshold may be preset by the system, or may be user-defined. When the first signal change value meets the first threshold condition, the door lock can determine that the possibility of triggering wakeup exists in the touch subchannel corresponding to the first touch signal.
It should be noted that the signal threshold of each touch subchannel is preset by the system, may also be customized by the user, and may also be adaptively adjusted according to the environment, and the signal threshold of each touch subchannel may be the same or different, which is not limited in this embodiment.
It can be understood that when the signal threshold is set to be higher, the sensitivity of touch wakeup is lower, for example, when a user wakes up through a proximity channel by using a finger, the finger needs to be closer to the proximity channel to trigger, so that wakeup which should be triggered cannot be triggered, and user experience is affected; when the signal threshold is set to be lower, the sensitivity of touch awakening is higher, and at the moment, the touch sub-channel has lower stability to external interference such as environmental change, so that false awakening is easy to occur, the user experience is influenced, and meanwhile, the power consumption of the door lock is increased. Therefore, the first threshold condition is set, and the first signal threshold in the first threshold condition is set to be lower, so that the door lock can reduce no response to a correct touch event, the coverage rate of the door lock responding to the touch event is improved, the user experience is improved, and the unlocking time of the user is reduced.
In a specific implementation manner, the first signal threshold of each touch subchannel can be set to be 2 times of the noise, that is, the first signal threshold is set to be lower, so that the door lock is easier to trigger, the probability of no response to the wake-up event is reduced, the coverage rate of the door lock responding to the touch event is improved, the user experience is improved, and the unlocking time of the user is reduced. As a mode, the first signal threshold of each touch sub-channel may be the same, and the signal reference value of each touch sub-channel may be different, so that each touch sub-channel may obtain a signal variation value according to the respective signal reference value, and then compare with the first signal threshold, and under the condition that the first signal threshold is not changed, the accuracy of the door lock in detecting the signal of each touch sub-channel may be adjusted based on the difference of the signal reference values, thereby facilitating to improve the stability and accuracy of signal detection and the adaptability to the environment.
In some embodiments, the signal thresholds for the touch sub-channels are different, so that the door lock can specifically adjust the wake-up sensitivity of the touch sub-channels. Specifically, when the door lock is used, the awakening sensitivity of part of the keys may be reduced, and the awakening sensitivity of other keys is still appropriate without adjustment, at this time, the user can adjust the signal threshold value of the corresponding key through the terminal, so that the awakening sensitivity of the corresponding key is improved, the awakening sensitivity of the door lock can be flexibly adjusted, and the usability of the door lock system is improved.
In some possible embodiments, when the first signal variation value does not satisfy the first threshold condition, the touch area may be continuously scanned, and step S210 is performed, so that the door lock may wait for the next wake-up detection.
Step S230: when the first signal change value meets a first threshold value condition, a plurality of second touch signals acting on the touch area are collected, and a plurality of second signal change values corresponding to the plurality of second touch signals are obtained.
In this embodiment, when the first signal variation value meets the first threshold condition, the plurality of second touch signals acting on the touch area are collected, and the plurality of second signal variation values corresponding to the plurality of second touch signals are obtained, so that when the door lock determines that there is a possibility of triggering wakeup currently, the plurality of second touch signals are continuously collected and the corresponding second signal variation values are obtained to perform the next judgment, thereby improving the detection accuracy of the wakeup event.
As a mode, when the first signal variation value meets the first threshold condition, only the touch sub-channel corresponding to the first touch signal is scanned, and the plurality of second touch signals acting on the touch sub-channel are acquired, so that after the door lock determines that the touch sub-channel with the triggering possibility exists according to the first touch signal, the sampling frequency of the touch sub-channel is increased, the detection efficiency of the wake-up event is increased, and the wake-up efficiency of the door lock is increased.
Further, in some embodiments, when the first signal variation value satisfies the first threshold condition, only the touch sub-channel corresponding to the first touch signal is scanned, and at this time, the door lock may further increase the sampling frequency of the touch sub-channel, so that more second touch signals may be collected in a shorter time, the detection efficiency of wake-on-touch is further increased, and the response speed is increased.
As another mode, when the first signal variation value meets the first threshold condition, the touch signals of all touch sub-channels in the touch area are continuously scanned, and the touch signals acting on each touch sub-channel are acquired, so that after the door lock acquires the first touch signal, the touch signals of other touch sub-channels can be acquired, and therefore when the touch sub-channels corresponding to the first touch signal and the second touch signal acquired by the door lock are inconsistent, the door lock can also acquire the touch signals of other touch sub-channels to continuously perform the judgment of the wake-up event, and the system availability is improved.
Specifically, for example, as shown in fig. 1, in the process of waking up the door lock, a finger moves from the touch sub-channel corresponding to the key "5" to the touch sub-channel corresponding to the key "1" and stops on the touch sub-channel corresponding to the key "1", at this time, if the door lock acquires the first touch signal through the touch sub-channel corresponding to the key "5" in the finger moving process, and the signal variation value of the first touch signal satisfies the first threshold condition, the door lock acquires the second touch signal, and at this time, the finger has moved to the key "1", then the second touch signal needs to be acquired by the touch sub-channel corresponding to the key "1", and the touch sub-channel corresponding to the key "5" cannot acquire the second touch signal. Therefore, when the first signal change value meets the first threshold value condition, the touch signals of all touch sub-channels in the touch area are continuously scanned, and when the first touch signal acquired by the door lock is inconsistent with the touch sub-channels corresponding to the second touch signal, the door lock can also acquire the touch signals of other touch sub-channels to continuously judge the awakening event, so that the system availability is improved.
Further, in some embodiments, when the first signal variation value of the door lock meets the first threshold condition, the door lock may scan the touch signal acting on the touch area at a higher frequency, so that when the door lock determines that there is a possibility of triggering wakeup by acquiring the first touch signal, the detection efficiency of the wakeup event is improved, and further the wakeup efficiency of the door lock is improved.
Step S240: and judging whether the plurality of second signal change values meet a second threshold value condition.
In this embodiment, the second threshold condition includes a second signal threshold, wherein the second signal threshold is not lower than the first signal threshold.
In a specific embodiment, the second signal threshold may be set to a value of more than 80% of the normal key capacitance variation value, so as to filter more noise, and make the wake-up sensitivity moderate, thereby reducing the probability of no response to the wake-up event and improving the detection accuracy of the wake-up event. The capacitance change value of the normal key can be a numerical value preset by a system, and can also be a capacitance change value when a touch event is detected in a working state of the door lock. Specifically, as a mode, the capacitance variation value of the normal key is a capacitance variation value acquired when the user touches the key when the door lock is in a working state. For example, as shown in fig. 1, when the door lock is in the operating state, the user touches the key "1", and the capacitance change value acquired by the touch sub-channel corresponding to the key "1" is the normal key capacitance change value.
In some embodiments, the second threshold condition may further include a preset ratio number, that is, when there is a second signal variation value exceeding the preset ratio number among the plurality of second signal variation values greater than the second signal threshold value, the door lock may consider that the plurality of second signal variation values satisfy the second threshold condition, otherwise not satisfy. Specifically, for example, when the preset ratio is 80%, the door lock samples 20 times and acquires 20 second signal change values when the first signal change value satisfies the first threshold condition, and when more than 80% of the 20 second signal change values are greater than the second signal threshold value, that is, when more than 16 second signal change values are greater than the second signal threshold value, the door lock may determine that the plurality of second signal change values satisfy the second threshold condition, otherwise, the door lock does not satisfy the second threshold condition. Therefore, noise interference is prevented, and the detection accuracy of the wake-up event is improved.
In other embodiments, the second threshold condition may include a predetermined number, i.e., the door lock may consider the plurality of second signal variation values to satisfy the second threshold condition when there is more than the predetermined number of second signal variation values greater than the second signal threshold value among the plurality of second variation values, and otherwise not satisfy the second threshold condition. Specifically, the preset number is 18, the door lock samples 20 times and obtains 20 second signal change values when the first signal change value meets the first threshold condition, and when more than 18 second signal change values are greater than the second signal threshold value in the 20 second signal change values, the door lock can consider that the plurality of second signal change values meet the second threshold condition, otherwise, the door lock does not meet the second threshold condition.
In one particular embodiment, for example, the first signal threshold is Rh1The second signal threshold is Rh2, where Rh1<Rh2The preset proportion is 80%, when the door lock collects a first touch signal corresponding to the key 1 and obtains a first signal change value (S)1-R1)>Rh1And then the door lock considers that the first signal change value meets a first threshold value condition, the touch sub-channel corresponding to the key 1 is sampled for 20 times, namely 20 second touch signals are collected, and the corresponding 20 second signal change values S are obtained2When the number of the second signal changes exceeds 80%, that is, 16 second signal changes are exceeded (S)2-R1)>Rh2And if the second signal change values meet the second threshold value condition, the door lock does not meet the second threshold value condition.
In some possible embodiments, when the plurality of second signal variation values do not satisfy the second threshold condition, the touch area may be continuously scanned, and step S210 is executed, so that the door lock waits for the next wake-up detection.
Step S250: and generating a wake-up instruction when the plurality of second signal change values meet a second threshold condition.
In this embodiment, when the plurality of second signal variation values satisfy the second threshold condition, the wake-up instruction is generated, so as to wake up the door lock system, so that the door lock enters a working state, and waits for obtaining information input by the user to verify unlocking. The information input by the user can comprise information such as fingerprints, passwords and human faces, so that the door lock can be unlocked in the modes of fingerprint matching, password matching, human face matching and the like.
According to the touch awakening method provided by the embodiment, multiple thresholds are set, when the signal change value of the collected first touch signal meets the first threshold condition, the touch sub-channel of the collected first touch signal is sampled for multiple times, a plurality of second signal change values are collected, and the door lock system is awakened when the plurality of second signal change values meet the second threshold condition, so that noise interference can be prevented, the detection accuracy of an awakening event is improved, and the probability of mistaken awakening is reduced. And through setting the first signal threshold value lower, improving the coverage rate that the lock responded to the touch event, setting the second signal threshold value higher, can also filter more noise to make awakening sensitivity moderate, both reduced the probability that does not respond to the awakening event, promoted user experience, improved the detection accuracy rate to the awakening event again, greatly reduced the probability of mistake awakening, be favorable to reducing the lock consumption.
Referring to fig. 3, another embodiment of the present application provides a touch wake-up method, which can be applied to the door lock. As will be explained in detail with respect to the flow shown in fig. 3, the wake-on-touch method may specifically include the following steps:
step S310: and scanning the plurality of touch sub-channels on the touch area according to a preset scanning sequence based on the first sampling frequency.
In this embodiment, the touch area includes a plurality of touch sub-channels, and the door lock scans each touch sub-channel at least once in one scan cycle. It can be understood that the longer the scanning period taken by the door lock to complete one scan of all touch sub-channels, the more difficult it is to acquire the maximum signal change value, and the higher the probability that the door lock will lose the wake-up event.
The first sampling frequency is the number of times that the door lock scans the touch area in each scanning period, for example, it may be set that one touch sub-channel is scanned every 15ms, and when the touch area includes 13 touch sub-channels (including 12 key channels and 1 proximity channel), it takes at least 15ms × 13 ═ 195ms to scan all touch sub-channels, that is, every 195ms of the door lock is one scanning period.
The preset scanning sequence may be preset by a system or may be user-defined. Specifically, as one way, the door lock can set the scanning sequence according to the user's habit; alternatively, the door lock may set the scanning order among the touch sub-channels according to the area or relative position of each touch sub-channel of the touch area.
As a mode, the door lock may set a scanning sequence among the plurality of touch sub-channels according to the number of times that each touch sub-channel of the touch area is awakened, thereby increasing the number of times that the touch sub-channel that detects the most awakening event is scanned in one scanning period, increasing the awakening sensitivity, and increasing the response speed of the door lock in responding to awakening. For example, based on the door lock shown in fig. 1, one touch sub-channel is scanned every 15ms, and the door lock may scan the access channel 1 time every 3 key channels, so that when the door lock scans the other 12 key channels, the access channel is scanned 4 times, and at this time, it takes 15ms × 16 ms — 240ms for the door lock to scan all touch sub-channels.
Alternatively, the door lock may set the scanning order among the touch sub-channels according to the area or relative position of each touch sub-channel of the touch area. Specifically, the door lock can increase the scanning times of the touch sub-channel with larger area in one scanning period, so that the scanning frequency of the touch sub-channel with larger probability to be detected with the awakening event is improved, the awakening event can be judged more quickly, and the awakening sensitivity is increased. The door lock can also increase the number of times of scanning the touch sub-channel with a larger area according to the relative position of each touch sub-channel, and scan the adjacent touch sub-channels in sequence, for example, after scanning 3 touch sub-channels from left to right in sequence, scan the touch sub-channel with a larger area once, thereby further improving the detection efficiency of the wake-up event.
In a specific application scenario, for example, based on the door lock shown in fig. 1, the touch area includes 13 touch sub-channels, which are 12 key channels and 1 proximity channel, respectively, and the area of the 1 proximity channel is greater than the area of the 1 key channel, and in some embodiments, the area of the 1 proximity channel is greater than ten times the area of the 1 key channel, so that the probability of detecting the signal change by the proximity channel is greater than that of the key channel. At this time, 13 scan sequences among the touch sub-channels may be set to scan the proximity channel once every 3 key channels are scanned, so that when the door lock scans 12 key channels, the proximity channel is scanned 4 times, that is, in one scan cycle in which the door lock scans all the touch sub-channels, the door lock scans the proximity channel 4 times, which is more than the number of times of scanning every key channel, and at this time, if it takes 15ms for the door lock to scan each touch sub-channel, it takes 15ms × 16 — 240ms for the door lock to scan all the touch sub-channels. Specifically, in a scanning period, the door lock scans a key 1, a key 2 and a key 3 in sequence, then scans a 1 st approach channel, then scans a key 4, a key 5 and a key 6 in sequence, then scans a 2 nd approach channel, then scans a key 7, a key 8 and a key 9 in sequence, then scans a 3 rd approach channel, then scans a key "<", a key 0 and a key "√" in sequence, and finally scans a 4 th approach channel. Therefore, the scanning sequence of the touch sub-channels is set according to the area and the relative position of each touch sub-channel in the touch area, the scanning times of the door lock to the access channel with larger area in each scanning period is increased, the awakening sensitivity can be effectively increased, the door lock can detect the awakening event more easily and quickly, the user experience is improved, and the unlocking time of the user can be further reduced.
Step S320: and acquiring a first touch signal acting on the current touch sub-channel, and acquiring a first signal change value of the first touch signal.
The current touch sub-channel is a touch sub-channel which is scanned with a first touch signal currently in the door lock scanning process, and the door lock collects the first touch signal acting on the current touch sub-channel and acquires a first signal change value of the first touch signal. Wherein, the first signal variation value is the signal value of the first touch signal collected by the door lock and the current valueA difference between the signal reference values of the touch sub-channels, for example, when the door lock is in a sleep state and the door lock scans the touch sub-channel corresponding to the key "1", the signal value S of the touch signal corresponding to the current touch sub-channel, that is, the touch sub-channel corresponding to the key "1", is collected1And collecting the signal value S1Signal reference value R corresponding to current touch subchannel1The difference value between them is used as the signal change value (S) of the touch signal1-R1)。
Step S330: and judging whether the first signal change value is larger than a first signal threshold value.
In this embodiment, each touch subchannel has a corresponding signal threshold, and the thresholds may be the same or different. When a first signal change value corresponding to a first touch signal acquired by the door lock is greater than a first signal threshold value, the door lock can consider that the possibility of triggering and awakening exists in the current touch subchannel.
For the detailed description of step S330, reference may be made to step S220, and this embodiment is not described herein again.
In this embodiment, after determining whether the first signal variation value is greater than the first signal threshold, the method may include:
when the first signal variation value is greater than the first signal threshold, step S340 may be performed;
when the first signal variation value is not greater than the first signal threshold, step S310 may be performed.
Step S340: and taking the current touch subchannel as a target subchannel, acquiring a plurality of second touch signals acting on the target subchannel based on a second sampling frequency, and acquiring a plurality of second signal change values corresponding to the plurality of second touch signals.
In this embodiment, when a first signal variation value corresponding to a first touch signal acquired by the door lock is greater than a first signal threshold, the door lock may consider that there is a possibility of triggering wakeup in the current touch subchannel, and in order to further determine whether there is a wakeup event in the current touch subchannel, the current touch subchannel is used as a target subchannel.
As one mode, after the door lock determines the target sub-channel, only the target sub-channel is sampled, a plurality of second touch signals acting on the target sub-channel are collected, and a plurality of second signal change values corresponding to the plurality of second touch signals are obtained. The door lock can only further detect the touch sub-channel with the triggering awakening possibility, so that whether the target sub-channel has a correct awakening event can be determined more quickly, and the awakening detection efficiency is improved. When the plurality of second touch signals meet a second threshold condition and a wake-up instruction can be generated, a correct wake-up event exists in the door lock.
In an embodiment, the second sampling frequency may be set to be higher than the first sampling frequency, so as to increase the sampling frequency of the target sub-channel, so that the door lock may sample for more times in a shorter time, thereby increasing the detection efficiency of the door lock on the wake-up event, and further increasing the wake-up efficiency.
In a specific application scenario, for example, the door lock shown in fig. 1 scans one touch sub-channel every 15ms based on the first sampling frequency, scans the approach channel 1 time every 3 key channels, and scans the approach channel 4 times when 12 key channels are scanned, so that it takes 15ms × 16 to 240ms to scan all touch sub-channels. When the door lock scans a touch sub-channel corresponding to the key 1, a first touch signal is collected in the touch sub-channel corresponding to the key 1, a corresponding first signal change value is obtained, when the first signal change value is larger than a first signal threshold value, the door lock determines that the touch sub-channel corresponding to the key 1 has the possibility of triggering awakening, the touch sub-channel is determined as a target sub-channel, and the target sub-channel is sampled based on a second sampling frequency, specifically, the sampling is performed for 1 time every 1ms and is performed for 20 times continuously, so that the door lock can sample the target sub-channel for 20 times every 20ms, the sampling frequency of the target sub-channel is improved, the detection efficiency of awakening events is improved, and the awakening efficiency is further improved.
Further, if the target sub-channel has a correct wake-up event, that is, when the wake-up detection cannot meet the second threshold condition, the door lock can shorten the wake-up detection time by improving sampling, so that the wake-up efficiency is improved; if the target subchannel currently detects the wrong awakening event, namely the awakening detection cannot meet the second threshold condition, the door lock can finish the awakening detection more quickly, continue to acquire a new first touch signal and wait for the next awakening detection, so that the situation that the door lock loses the detection of the correct awakening event due to the fact that the detection time of the wrong awakening event is too long is avoided. Therefore, the sampling frequency of the target sub-channel is improved, the detection efficiency of the door lock on the awakening event is greatly improved, the loss probability of the correct awakening event is reduced, the awakening efficiency is further improved, and the user experience is improved.
Step S350: and judging whether a second signal change value exceeding a preset proportional quantity exists in the plurality of second signal change values and is larger than a second signal threshold value.
The preset ratio may be preset by a system or may be user-defined, and this embodiment does not limit this. It can be understood that the difficulty of waking up the user is increased by the excessively high preset ratio, and the user needs to stay on one touch subchannel for a sufficient time, so that the door lock can acquire a sufficient number of second signal change values larger than a second signal threshold value; the user awakening difficulty is reduced when the preset proportion is too low, although the door lock can complete awakening detection and awaken the system more quickly, the probability of mistaken awakening is improved when the preset proportion is too low. Therefore, the preset proportion needs to take account of both the awakening difficulty and the false awakening probability, and in a specific implementation mode, the preset proportion can be set to 80% so as to reduce the awakening difficulty, reduce the loss probability of the correct awakening event and improve the user experience on the basis of keeping the lower false awakening probability.
In this embodiment, the second signal threshold is greater than the first signal threshold, and in a specific implementation, the first signal threshold is set to be lower and may be set to be 2 times of noise, so that a signal with a lower signal value may also trigger the door lock to determine the corresponding touch subchannel as the target subchannel for the next determination, thereby improving the coverage rate of the door lock in response to the touch event and reducing the probability of the door lock losing the wake-up event; the second signal threshold value is set higher and can be set to be more than 80% of the normal key capacitance change value, so that the door lock can judge the target sub-channel more cautiously, and the embodiment improves the judgment requirement of the door lock on the awakening event while improving the detection sensitivity of the door lock on the touch event by setting double threshold values, and the probability of mistaken awakening can be reduced on the basis of reducing the probability of losing the awakening event.
In this embodiment, after the door lock acquires the second touch signal and acquires the corresponding second signal variation value, it is determined whether the second signal variation value is greater than the second signal threshold value, and it is determined whether the ratio of the number of times that the second signal variation value is greater than the second signal threshold value to the total number of sampling times exceeds a preset ratio. Specifically, for example, the preset ratio is 80%, the door lock samples the target sub-channel 20 times based on the second sampling frequency, compares the second signal change value sampled each time with the second signal threshold, and accumulates the number of times that the second signal change value exceeds the second signal threshold, if the number of times exceeds 80% of the total sampling number, where the total sampling number is 20 times, and when the number of times exceeds 20 × 80% to 16 times, the door lock considers that the second signal change value of the preset ratio number is greater than the second signal threshold. Therefore, the awakening instruction is generated when the change value of the plurality of second signals exceeding the preset proportional number is larger than the second signal threshold, noise interference can be prevented, and the detection accuracy of the awakening event is improved.
In this embodiment, after determining whether there is a second signal variation value exceeding a preset proportion number in the plurality of second signal variation values that is greater than the second signal threshold, the method may include:
when there is a second signal variation value exceeding the preset proportional number among the plurality of second signal variation values that is greater than the second signal threshold, step S360 may be performed;
when there is no second signal variation value exceeding the preset proportional number among the plurality of second signal variation values that is greater than the second signal threshold, step S310 may be executed, so that the door lock continues to scan all touch sub-channels and waits for the next wake-up detection.
Step S360: and generating a wake-up instruction when the plurality of second signal change values meet a second threshold condition.
In this embodiment, when the second signal variation values exceeding the preset proportional number are greater than the second signal threshold value in the plurality of second signal variation values, the plurality of second signal variation values satisfy the second threshold value condition, and at this time, the wake-up instruction is generated to wake up the door lock system, so that the door lock can receive the information input by the user in the working state to perform verification unlocking.
For a detailed description of step S360, refer to step S250, which is not described herein again.
Further, in some embodiments, in this embodiment, three signal thresholds may be further set, where the three signal thresholds are a first heavy signal threshold, a second heavy signal threshold, and a third heavy signal threshold, which are sequentially increased in value, and when a signal variation value obtained by sampling exceeds the third heavy signal threshold, a wake-up event is considered to exist. It can be understood that, based on the method steps of the above embodiment, the present embodiment may further set more than two signal thresholds, so as to further improve the detection accuracy of the wake-up event and reduce the probability of false wake-up. Since the logic of the method for setting more than two signal thresholds is substantially the same as that of the method for setting two signal thresholds in the foregoing embodiment, the description is omitted here.
Further, after comparing the sampled signal change value with the signal threshold, sampling is performed based on a higher sampling frequency, and the signal change value sampled based on the higher sampling frequency is compared with a next signal threshold. Therefore, on the basis of improving the detection accuracy of the door lock to the awakening event and reducing the probability of mistaken awakening, the detection efficiency of the awakening event is further improved, the response time is shortened, and the user experience is improved.
It should be noted that, portions not described in detail in this embodiment may refer to the foregoing embodiments, and are not described herein again.
According to the touch awakening method provided by the embodiment of the application, the multiple threshold values are set, the first re-threshold value is set to be lower, the second re-threshold value is set to be higher, the detection sensitivity of the door lock to the touch event is improved, meanwhile, the judgment requirement of the door lock to the awakening event is improved, and the probability of mistaken awakening can be reduced on the basis of reducing the probability of losing the awakening event; when the door lock is in a sleep state, the touch area is scanned based on a lower first sampling frequency, and after the target sub-channel is determined, the target sub-channel is scanned based on a higher second sampling frequency, so that the detection efficiency of the door lock on the wake-up event is improved, the loss probability of the correct wake-up event is reduced, the user experience is improved, and the wake-up instruction is generated only when a plurality of second signal change values exceeding a preset proportional number are greater than a second signal threshold value, so that the noise interference can be prevented, and the detection accuracy of the wake-up event is improved; furthermore, the scanning sequence of the touch sub-channels is set according to the areas and the relative positions of the touch sub-channels in the touch areas, the scanning times of the door lock to the approach channels with larger areas in each scanning period are increased, the awakening sensitivity can be effectively increased, the door lock can detect awakening events more easily and more quickly, the user experience is improved, and the unlocking time of a user can be further reduced.
Referring to fig. 4, another embodiment of the present application provides a touch wake-up method, which can be applied to the door lock. As will be described in detail with respect to the flow shown in fig. 4, the wake-on-touch method provided in this embodiment may further include the following steps based on the flow shown in fig. 3:
step S410: and acquiring a plurality of signal values respectively corresponding to the current touch subchannel in a plurality of scanning periods based on a preset updating period.
In this embodiment, due to an environmental change, for example, a change in temperature and humidity, a capacitance value corresponding to a touch signal detected by the door lock may change, for example, in an environment with a high temperature, a capacitance value detected by the door lock for the same touch operation is different from a capacitance value detected in an environment with a low temperature. Therefore, in the embodiment, the signal reference value of each touch subchannel is updated and adjusted in each preset update period, so that the signal reference value of each touch subchannel can adapt to environmental changes, each touch subchannel can respond to different environments, the signal reference value can be adjusted, the accuracy of wake-up detection in different environments is ensured, and the stability of wake-up detection and the overall usability of the door lock system are improved.
The preset update period may be preset by the system or may be user-defined. It can be understood that the preset updating period is too long, the sensitivity of the environment adaptation is too low, the preset updating period is too short, the sensitivity of the environment adaptation is too high, and the door lock is subjected to larger power consumption. Therefore, in order to consider both the power consumption of the door lock and the sensitivity of the door lock to the environment, in a specific embodiment, based on the door lock shown in fig. 1, an approach channel is scanned once every 3 key channels are scanned, the approach channel is scanned 4 times when 12 key channels are scanned, the door lock scans one touch sub-channel every 15ms, the time consumed for the door lock to complete one scan of all touch sub-channels is 14ms × 16 — 240ms, at this time, a preset update period may be set to be 240ms × 16 — 3.84s, that is, to be 16 scan periods, that is, after the door lock completes 16 scans of all touch sub-channels, signal values acquired by each touch sub-channel in 16 scan periods are acquired.
Step S420: and updating the signal reference value corresponding to the current touch subchannel according to a plurality of signal values respectively corresponding to a plurality of scanning periods.
As a mode, according to a plurality of signal values respectively corresponding to a plurality of scanning periods, an average value of the plurality of signal values may be taken, a signal reference value corresponding to the current touch subchannel is updated, and the updated signal reference value is used as a new signal reference value of the current touch subchannel and used for the door lock to obtain a corresponding signal change value according to the signal value acquired by the current touch subchannel. Therefore, the signal reference value of each touch subchannel is updated periodically according to the signal values acquired by the plurality of scanning periods, so that the door lock can adjust the signal reference value according to the current environment, the accuracy of awakening detection in different environments is ensured, and the stability of awakening detection and the overall usability of the door lock system are improved.
As another mode, according to a plurality of signal values corresponding to the current touch subchannel in a plurality of scanning periods, a maximum value of the plurality of signal values may be taken, and the maximum value may be used as a new signal reference value of the current touch subchannel, so as to further prevent interference of environmental noise and improve accuracy of wake-up detection. Therefore, the signal reference value of each touch subchannel is updated periodically according to the signal values acquired by the plurality of scanning periods, so that the door lock can adjust the signal reference value according to the current environment, the accuracy of awakening detection in different environments is ensured, and the stability of awakening detection and the overall usability of the door lock system are improved.
In this embodiment, after step S330, when the first signal variation value is not greater than the first signal threshold, step S410 to step S420 may be performed.
In this embodiment, after step S350, when it is determined whether there is a second signal variation value exceeding the preset proportional number in the plurality of second signal variation values greater than the second signal threshold, steps S410 to S420 may be performed.
It is understood that steps S410 to S420 are performed only once per preset update period.
It should be noted that, portions not described in detail in this embodiment may refer to the foregoing embodiments, and are not described herein again.
On the basis of the foregoing embodiment, the touch wake-up method provided in this embodiment updates and adjusts the signal reference value of each touch subchannel in each preset update period, so that the signal reference value of each touch subchannel can adapt to environmental changes, each touch subchannel can cope with different environments, the signal reference value can be adjusted, the accuracy of wake-up detection in different environments is ensured, and the stability of wake-up detection and the overall usability of the door lock system are improved.
Referring to fig. 5, another embodiment of the present application provides a touch wake-up method, which can be applied to the door lock. As will be described in detail with respect to the flow shown in fig. 5, the wake-on-touch method provided in this embodiment may further include the following steps based on the flow shown in fig. 3:
step S510: and acquiring a plurality of signal values respectively corresponding to the current touch subchannel in a plurality of scanning periods based on a preset updating period.
For a detailed description of step S510, refer to step S410, which is not described herein again.
Step S520: and acquiring a reference change value of the current touch subchannel according to a maximum value in a plurality of signal values respectively corresponding to a plurality of scanning periods and a corresponding original signal reference value.
In this embodiment, the original signal reference value is a signal reference value before the current touch subchannel is updated this time, a maximum value of the plurality of signal values may be obtained according to a plurality of signal values corresponding to the current touch subchannel in a plurality of scanning periods, and the reference change value of the current touch subchannel is obtained according to the maximum value and the original signal reference value. The reference variation value may be an absolute value of a difference between the maximum value and the original signal reference value, or may be a difference between the maximum value and the original signal reference value (maximum value — original signal reference value).
Step S530: and judging whether the reference change value exceeds a preset amplification upper limit or not.
The preset amplification upper limit can be preset by a system or can be self-defined by a user. This embodiment is not limited to this. In a specific embodiment, the preset upper limit of the amplification may be set to 2 capacitance values, and it is determined whether the reference variation value exceeds 2 capacitance values. By comparing the reference change value with the preset amplification upper limit, the updating of the signal reference value is facilitated to be subjected to amplitude limiting processing, and the stability of capacitance detection and the usability of a system are improved.
In this embodiment, after determining whether the reference variation value exceeds the preset amplification upper limit, the method may include:
when the reference variation value exceeds the preset upper limit of the amplification, step S540 may be performed;
when the reference variation value does not exceed the preset upper limit of the amplification, step S550 may be performed.
Step S540: and updating the signal reference value corresponding to the current touch subchannel according to the preset amplification upper limit and the original signal reference value.
In this embodiment, when the reference variation value exceeds the preset upper amplification limit, the signal reference value corresponding to the current touch subchannel is updated to the value obtained by increasing or decreasing the preset upper amplification limit from the original signal reference value according to the preset upper amplification limit and the original signal reference value. Therefore, amplitude limiting processing is carried out on the adjustment of the signal reference value, the adjustment of the signal reference value is stable, the phenomenon that the accuracy and the sensitivity of the follow-up capacitance detection of the current touch sub-channel are influenced due to the fact that the updating amplitude of the signal reference value is too large due to too large noise is avoided, and the stability of the capacitance detection and the system usability are improved.
Specifically, when the reference variation value exceeds the preset upper limit of amplification, if the maximum value of the plurality of signal values is not less than the original signal reference value, the signal reference value corresponding to the current touch subchannel is updated to the value obtained by adding the preset upper limit of amplification to the corresponding original signal reference value, for example, when the maximum value S is greater than the preset upper limit of amplificationmaxNot less than (original signal reference value R)0+ preset upper limit of amplification), the updated signal reference value becomes the original signal reference value R0+ presetting an upper amplification limit; if the maximum value of the plurality of signal values is smaller than the original signal reference value, updating the signal reference value corresponding to the current touch subchannel to a value obtained by subtracting a preset amplification upper limit from the corresponding original signal reference value, for example, when the maximum value S is smaller than the original signal reference valuemax< (original signal reference value R0A preset upper limit of amplification), the updated signal reference value is equal to the original signal reference value R0-a preset upper limit of amplification. Therefore, the door lock is updated according to the preset amplification upper limit under the condition that the reference change value is overlarge, the update amplitude of the signal reference value is limited, the adjustment of the signal reference value is stable, the situation that the accuracy and the sensitivity of the follow-up capacitance detection of the current touch sub-channel are influenced due to the overlarge update amplitude of the signal reference value caused by overlarge noise is avoided, and the stability of the capacitance detection and the system usability are improved.
Step S550: and updating the signal reference value corresponding to the current touch subchannel according to the reference change value and the original signal reference value.
In this embodiment, when the reference variation value does not exceed the preset upper limit of amplification, the signal reference value corresponding to the current touch subchannel is updated to the maximum value among the plurality of signal values according to the reference variation value and the original signal reference value, so that the door lock can adjust the signal reference value according to the environmental variation to adapt to the environmental variation, and the accuracy of judging the wake-up event in the non-environment is improved. And under the condition that the reference change value is not large, updating is carried out according to the reference change value, and the accuracy and the sensitivity of the current touch subchannel to capacitance detection are improved.
It should be noted that, portions not described in detail in this embodiment may refer to the foregoing embodiments, and are not described herein again.
The touch wake-up method provided by the embodiment of the application, on the basis of the foregoing embodiment, updates the signal reference value of each touch subchannel to a corresponding maximum value by obtaining a maximum value of a plurality of signal values corresponding to each touch subchannel in a plurality of scanning periods, and determining whether the reference variation value exceeds a preset amplification upper limit, and when the reference variation value does not exceed the preset amplification upper limit, updates the corresponding signal reference value according to the preset amplification upper limit. Therefore, when the signal reference value can be adjusted according to different environments, amplitude limiting processing is further performed on the adjustment amplitude of the signal reference value, so that the adjustment of the signal reference value is stable, the phenomenon that the accuracy and the sensitivity of the current touch sub-channel follow-up capacitance detection are influenced due to overlarge updating amplitude of the signal reference value caused by overlarge noise is avoided, and the stability of the capacitance detection and the system usability are improved.
It should be understood that, although the steps in the flow charts of fig. 2 to 5 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 6, fig. 6 is a block diagram illustrating a wake-on-touch apparatus according to an embodiment of the present disclosure. As will be explained below with respect to the block diagram shown in fig. 6, the wake-on-touch apparatus 600 includes: a first collecting module 610, a first judging module 620, a second collecting module 630, a second judging module 640, and an instruction generating module 650, wherein:
the first acquiring module 610 is configured to acquire a first touch signal acting on the touch area, and acquire a first signal change value of the first touch signal.
The first determining module 620 is configured to determine whether the first signal variation value satisfies a first threshold condition.
The second collecting module 630 is configured to collect a plurality of second touch signals acting on the touch area when the first signal variation value satisfies a first threshold condition, and obtain a plurality of second signal variation values corresponding to the plurality of second touch signals.
The second determining module 640 is configured to determine whether the plurality of second signal variation values satisfy a second threshold condition.
The instruction generating module 650 is configured to generate a wake-up instruction when the plurality of second signal variation values satisfy a second threshold condition.
Further, the first determining module 620 includes a first determining unit, wherein:
and the first judging unit is used for judging whether the first signal change value is larger than a first signal threshold value or not.
Further, the second determining module 640 comprises a second determining unit, wherein:
and the second judging unit is used for judging whether a second signal change value which exceeds the preset proportion quantity exists in the plurality of second signal change values and is larger than a second signal threshold value.
Further, the touch area includes a plurality of touch sub-channels, and the first acquisition module 610 includes a first scanning unit and a first acquisition unit, wherein:
and the first scanning unit is used for scanning the touch sub-channels on the touch area according to a preset scanning sequence based on the first sampling frequency.
The first acquisition unit is used for acquiring a first touch signal acting on the current touch subchannel and acquiring a first signal change value of the first touch signal.
Further, the second acquisition module 630 comprises a second acquisition unit, wherein:
and the second acquisition unit is used for taking the current touch subchannel as a target subchannel when the first signal change value meets a first threshold condition, acquiring a plurality of second touch signals acting on the target subchannel based on a second sampling frequency, and acquiring a plurality of second signal change values corresponding to the plurality of second touch signals.
Further, the second sampling frequency is higher than the first sampling frequency.
Further, the wake-on-touch apparatus 600 further includes: scanning setting module, update scanning module and benchmark update module, wherein:
and the scanning setting module is used for setting the scanning sequence among the touch sub-channels according to the area or the relative position of each touch sub-channel of the touch area.
And the updating scanning module is used for acquiring a plurality of signal values corresponding to the current touch subchannel in a plurality of scanning periods respectively based on a preset updating period.
And the reference updating module is used for updating the signal reference value corresponding to the current touch subchannel according to a plurality of signal values respectively corresponding to a plurality of scanning periods.
Further, the reference updating module includes a reference change value obtaining unit, an amplification judging unit, a first updating unit and a second updating unit, wherein:
and the reference change value acquisition unit is used for acquiring the reference change value of the current touch subchannel according to the maximum value in the plurality of signal values respectively corresponding to the plurality of scanning periods and the corresponding original signal reference value.
And the amplification judging unit is used for judging whether the reference change value exceeds a preset amplification upper limit or not.
And the first updating unit is used for updating the signal reference corresponding to the current touch subchannel according to the preset amplification upper limit and the original signal reference value if the reference change value exceeds the preset amplification upper limit.
And the second updating unit is used for updating the signal reference value corresponding to the current touch subchannel according to the reference change value and the original signal reference value if the reference change value does not exceed the preset amplification upper limit.
The touch wake-up device provided in the embodiment of the present application is used to implement the corresponding touch wake-up method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
An embodiment of the present application provides an electronic device, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the wake-on-touch method as described in fig. 2 to 5 provided in the above method embodiment. In this embodiment, the electronic device may be a door lock or other electronic device capable of running an application program.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
Fig. 7 is a block diagram of a hardware structure of an electronic device 700 according to a wake-on-touch method provided in an embodiment of the present application. Specifically, the electronic device may be a door lock or other electronic device capable of running an application program, and may execute and implement the touch wake-up method provided in the foregoing method embodiments and described in fig. 2 to 5.
As shown in fig. 7, the electronic device 700 may have a relatively large difference due to different configurations or performances, and may include one or more processors 710 (the processors 710 may include but are not limited to processing devices such as a microprocessor MCU or a programmable logic device FPGA), a memory 730 for storing data, and one or more storage media 720 (e.g., one or more mass storage devices) for storing application programs 723 or data 722. Memory 730 and storage medium 720 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 720 may include one or more modules, each of which may include a sequence of instructions operating on the electronic device 700. Further, processor 710 may be configured to communicate with storage medium 720 to execute a series of instruction operations in storage medium 720 on electronic device 700. The electronic device 700 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input-output interfaces 740, and/or one or more operating systems 721, such as a Windows Server, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.
It should be noted that the power supply 760 may include a separate power supply module to supply power to the electronic device 700, or may be used to connect an external power supply to supply power to the electronic device 700.
The input/output interface 740 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device 700. In one example, the input/output interface 740 includes a network adapter (NIC) that can be connected to other network devices through a base station to communicate with the internet. In one example, the input/output interface 740 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 7 is merely an illustration and is not intended to limit the structure of the electronic device. For example, electronic device 700 may also include more or fewer components than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The embodiment of the application also provides a computer readable storage medium. Fig. 8 is a block diagram of a computer-readable storage medium 800 of a wake-on-touch method according to an embodiment of the present application. The computer readable storage medium 800 stores a computer program 810, and the computer program 810 is executed by the processor to implement the processes of the above-mentioned embodiment of the wake-on-touch method, and can achieve the same technical effects, and in order to avoid repetition, details are not described here again. The computer-readable storage medium 800 may be a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a smart gateway, a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, the present embodiments are not limited to the above embodiments, which are merely illustrative and not restrictive, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention.

Claims (9)

1. A wake-on-touch method, the method comprising:
acquiring a first touch signal acting on a touch area, and acquiring a first signal change value of the first touch signal;
judging whether the first signal change value is larger than a first signal threshold value;
when the first signal change value is larger than the first signal threshold value, acquiring a plurality of second touch signals acting on the touch area, and acquiring a plurality of second signal change values corresponding to the plurality of second touch signals;
judging whether a second signal change value exceeding a preset proportion number is larger than a second signal threshold value in the plurality of second signal change values;
and when the second signal change value which exceeds the preset proportional quantity in the plurality of second signal change values is larger than a second signal threshold value, generating a wake-up instruction.
2. The method of claim 1, wherein the touch area comprises a plurality of touch sub-channels, and wherein acquiring the first touch signal applied to the touch area and obtaining the first signal variation value of the first touch signal comprises:
scanning a plurality of touch sub-channels on the touch area according to a preset scanning sequence based on a first sampling frequency;
acquiring a first touch signal acting on a current touch subchannel, and acquiring a first signal change value of the first touch signal;
when the first signal variation value meets a first threshold condition, acquiring a plurality of second touch signals acting on the touch area, and acquiring a plurality of second signal variation values corresponding to the plurality of second touch signals, including:
and when the first signal change value meets the first threshold value condition, taking the current touch subchannel as a target subchannel, acquiring a plurality of second touch signals acting on the target subchannel based on a second sampling frequency, and acquiring a plurality of second signal change values corresponding to the plurality of second touch signals.
3. The method of claim 2, wherein the second sampling frequency is higher than the first sampling frequency.
4. The method of claim 2, further comprising:
and setting the scanning sequence among the touch sub-channels according to the area or the relative position of each touch sub-channel of the touch area.
5. The method according to any of claims 1-4, further comprising:
acquiring a plurality of signal values respectively corresponding to the current touch subchannel in a plurality of scanning periods based on a preset updating period;
and updating the signal reference value corresponding to the current touch subchannel according to a plurality of signal values respectively corresponding to the plurality of scanning periods.
6. The method according to claim 5, wherein the updating the signal reference value corresponding to the current touch subchannel according to the plurality of signal values corresponding to the plurality of scanning cycles respectively comprises:
acquiring a reference change value of the current touch subchannel according to a maximum value in a plurality of signal values respectively corresponding to the plurality of scanning periods and a corresponding original signal reference value;
judging whether the reference change value exceeds a preset amplification upper limit or not;
if the reference change value exceeds a preset amplification upper limit, updating a signal reference value corresponding to the current touch subchannel according to the preset amplification upper limit and the original signal reference value;
and if the reference change value does not exceed a preset amplification upper limit, updating a signal reference value corresponding to the current touch subchannel according to the reference change value and the original signal reference value.
7. A wake-on-touch apparatus, the apparatus comprising:
the touch control device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring a first touch signal acting on a touch area and acquiring a first signal change value corresponding to the first touch signal;
the first judgment module is used for judging whether the first signal change value is larger than a first signal threshold value or not;
the second acquisition module is used for acquiring a plurality of second touch signals acting on the touch area when the first signal change value is larger than the first signal threshold value, and acquiring a plurality of second signal change values corresponding to the plurality of second touch signals;
the second judgment module is used for judging whether a second signal change value which exceeds a preset proportion number is larger than a second signal threshold value in the plurality of second signal change values;
and the instruction generating module is used for generating a wake-up instruction when the second signal change value which exceeds the preset proportional quantity is larger than a second signal threshold value in the plurality of second signal change values.
8. An electronic device, comprising:
processor, memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the wake-on-touch method according to any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the wake-on-touch method according to any one of claims 1 to 6.
CN201910424063.2A 2019-05-21 2019-05-21 Touch wake-up method and device, electronic equipment and storage medium Active CN110310391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910424063.2A CN110310391B (en) 2019-05-21 2019-05-21 Touch wake-up method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910424063.2A CN110310391B (en) 2019-05-21 2019-05-21 Touch wake-up method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110310391A CN110310391A (en) 2019-10-08
CN110310391B true CN110310391B (en) 2021-11-30

Family

ID=68075446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910424063.2A Active CN110310391B (en) 2019-05-21 2019-05-21 Touch wake-up method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110310391B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021081890A1 (en) * 2019-10-31 2021-05-06 深圳市汇顶科技股份有限公司 Control method, mcu, touch control device, and storage medium
CN110928443B (en) * 2019-10-31 2024-01-12 维沃移动通信有限公司 Touch position detection method and electronic equipment
CN114954352B (en) * 2021-08-11 2023-05-23 长城汽车股份有限公司 Method and device for controlling door handle electronic induction module, keyless system and vehicle
CN114090087A (en) * 2021-11-24 2022-02-25 北京珠穆朗玛移动通信有限公司 Equipment awakening method, equipment awakening system and electronic equipment
CN114320029B (en) * 2021-12-17 2022-10-11 上海爱信诺航芯电子科技有限公司 Low-power-consumption anti-interference intelligent door lock and awakening method
CN114422881B (en) * 2022-01-18 2023-08-25 宁波东海集团有限公司 Low-power communication method, system, storage medium and intelligent terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019796A (en) * 2012-12-28 2013-04-03 深圳市汇顶科技股份有限公司 Wakening method and system for touch terminal and touch terminal
CN104571922A (en) * 2015-01-13 2015-04-29 小米科技有限责任公司 Touch response method, touch response device and terminal
CN104636065A (en) * 2014-12-31 2015-05-20 小米科技有限责任公司 Method and device for awakening terminal
CN107294522A (en) * 2017-07-05 2017-10-24 广东欧珀移动通信有限公司 Response method, device, storage medium and electronic equipment based on touch key-press
CN108845727A (en) * 2018-08-31 2018-11-20 出门问问信息科技有限公司 Awakening method and device based on mutual capacitance type touch screen

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019796A (en) * 2012-12-28 2013-04-03 深圳市汇顶科技股份有限公司 Wakening method and system for touch terminal and touch terminal
CN104636065A (en) * 2014-12-31 2015-05-20 小米科技有限责任公司 Method and device for awakening terminal
CN104571922A (en) * 2015-01-13 2015-04-29 小米科技有限责任公司 Touch response method, touch response device and terminal
CN107294522A (en) * 2017-07-05 2017-10-24 广东欧珀移动通信有限公司 Response method, device, storage medium and electronic equipment based on touch key-press
CN108845727A (en) * 2018-08-31 2018-11-20 出门问问信息科技有限公司 Awakening method and device based on mutual capacitance type touch screen

Also Published As

Publication number Publication date
CN110310391A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110310391B (en) Touch wake-up method and device, electronic equipment and storage medium
US10743182B2 (en) User identification in cell phones based on skin contact
CN102508591B (en) Prevention of accidental device activation
US9430024B2 (en) Ultra low power apparatus and method to wake up a main processor
US9460334B2 (en) Control method for fingerprint recognition apparatus
CN109976500B (en) Fingerprint identification device, mobile terminal and awakening method of fingerprint identification device
CN106886766B (en) A kind of fingerprint identification method, fingerprint recognition circuit and mobile terminal
CN108259044B (en) Touch key scanning method and device and computer readable storage medium
CN106020418A (en) Method and apparatus for reducing power consumption of mobile terminal, and mobile terminal
CN105388992A (en) Fingerprint recognition method and apparatus and terminal
CN106022062B (en) Unlocking method and mobile terminal
CN107831996A (en) Recognition of face starts method and Related product
CN108845727B (en) Mutual capacitance type touch screen based awakening method and device
CN109388225A (en) Key triggers energy-saving control method, storage medium, control device and its terminal
CN109844764B (en) Fingerprint sensor function verification method and terminal
CN112135274A (en) Bluetooth scanning method and device, electronic equipment and readable storage medium
CN106022061A (en) Unlocking control method and mobile terminal
CN111665929A (en) Touch response method, device, terminal and storage medium
CN106200871B (en) Terminal control method and terminal
CN111325877B (en) Electronic equipment control method and device and electronic equipment
CN106020838B (en) Unlocking control method and mobile terminal
CN111665985A (en) Touch sampling control method, device, terminal and storage medium
CN105320875A (en) Control method and mobile terminal
CN113323513B (en) Power supply control method of intelligent door lock, intelligent door lock and storage medium
CN114898484A (en) Method for awakening intelligent door lock, sensor, intelligent door lock and electronic 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