CN109976206B - Intelligent key handle - Google Patents

Intelligent key handle Download PDF

Info

Publication number
CN109976206B
CN109976206B CN201810077288.0A CN201810077288A CN109976206B CN 109976206 B CN109976206 B CN 109976206B CN 201810077288 A CN201810077288 A CN 201810077288A CN 109976206 B CN109976206 B CN 109976206B
Authority
CN
China
Prior art keywords
door
time
chip microcomputer
display screen
key handle
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
CN201810077288.0A
Other languages
Chinese (zh)
Other versions
CN109976206A (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.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
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 Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN201810077288.0A priority Critical patent/CN109976206B/en
Publication of CN109976206A publication Critical patent/CN109976206A/en
Application granted granted Critical
Publication of CN109976206B publication Critical patent/CN109976206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21038Special clock line, module counts clock until equal to its address

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention relates to the technical field of single-chip microcomputers and sensors, and provides an intelligent key handle. The smart key handle of the present invention comprises: the device comprises a touch switch, a single chip microcomputer, a single-axis gyroscope, a real-time clock module, a power supply module and a display screen; the touch switch is connected with the single chip microcomputer and used for sending an external wake-up signal to the single chip microcomputer; the ADC interface of the single-chip microcomputer is connected with the single-axis gyroscope and used for recognizing door locking actions according to detection signals of the single-axis gyroscope after receiving the external wake-up signals; the real-time clock module is connected with the single chip microcomputer and used for timing and providing door locking time for the single chip microcomputer; the power supply module is used for supplying power to other components; the display screen is connected with one display output end of the single chip microcomputer and used for displaying door locking time. The intelligent key handle can identify the action of locking the door and record the time of locking the door, has small change to the key, does not need to be manufactured again, and is simple and convenient to implement, deploy and apply.

Description

Intelligent key handle
Technical Field
The invention relates to the technical field of single-chip microcomputers and sensors, in particular to an intelligent key handle.
Background
In daily life, for many middle-aged and elderly people and mental workers, the people often have the situation that the people are not attentive when leaving a room to lock a door, so that the people have a question whether the door is locked or not after leaving the room for a period of time, and the people have to return to check, thus wasting time, energy and resources. The existing available technology for solving the problem is an intelligent door lock, and partial intelligent door locks can remind users to lock doors in modes of alarming and the like when the users leave. The intelligent door lock can play a role in reminding a user to lock the door, but the door lock needs to be replaced when the intelligent door lock is installed, the difficulty degree of deployment is large, the manufacturing cost is relatively high, and the intelligent door lock is not easily accepted by middle-aged and elderly people who really need the intelligent door lock.
Published patent application No. 201610292856.X (publication No. CN105971399A) discloses a smart key based on a photoelectric sensor, which is mainly based on the photoelectric sensor, and can record the number of turns of key rotation, but cannot record the door locking time of a user so as to achieve the purpose that the user can confirm whether to lock the door at a specific time, and the smart key requires the user to replace a new key, and cannot be directly installed on an existing key. Patent application No. 201120188133.8 (publication No. CN202227786U) discloses a key with a door locking prompt function, which can prompt the time for locking the door, but the time is recorded by detecting the key rod connecting piece through a trigger key, so that the accuracy is not high.
Disclosure of Invention
Problem (A)
The invention aims to provide an intelligent key handle which can identify the door locking action and accurately record the door locking time or the door locking time from now when a user locks a door.
(II) technical scheme
In order to solve the above technical problem, the present invention provides an intelligent key handle, including: the device comprises a touch switch, a single chip microcomputer, a single-axis gyroscope, a real-time clock module, a power supply module and a display screen;
the touch switch is connected with the single chip microcomputer and used for sending an external wake-up signal to the single chip microcomputer;
the ADC interface of the single-chip microcomputer is connected with the single-axis gyroscope and used for recognizing door locking actions according to detection signals of the single-axis gyroscope after receiving the external wake-up signals;
the real-time clock module is connected with the single chip microcomputer and used for timing and providing door locking time for the single chip microcomputer;
the power supply module is used for supplying power to other components;
the display screen is connected with one display output end of the single chip microcomputer and used for displaying door locking time.
Furthermore, the shell structure of the intelligent key handle is a hollow key handle, the display screen is arranged on the shell on the front side of the hollow key handle, a stringing hole is arranged on the frame at one side of the display screen, a first clamping piece and a first tightening knob are arranged on the frame at the other side of the display screen, the touch switch is arranged on the back surface of the hollow key handle and at the position opposite to the display screen, a second clamping piece and a second tightening knob are arranged at the back of the hollow key handle and at the symmetrical positions of the first clamping piece and the first tightening knob at the front, the first tightening knob and the second tightening knob respectively fix the first clamping piece and the second clamping piece, so that a cavity is formed between the first clamping piece and the second clamping piece for placing a common key, the single chip microcomputer, the single-shaft gyroscope, the real-time clock module and the power supply module are arranged in the shell of the hollow key handle.
Furthermore, the shell structure of intelligence key handle includes key head and key pole, the display screen sets up the front of key head, set up the wire rope handling hole on the frame of one side of display screen, the opposite side of display screen sets up the key pole the back of key head, with the position that the display screen is relative sets up touch switch, the singlechip, the unipolar gyroscope, the real-time clock module with power module sets up in the casing of intelligence key handle.
Further, the working mode of the intelligent key handle is a door locking time mode, and the specific process is as follows: after power-on initialization, the display screen enters a low-power-consumption standby state, the screen of the display screen is extinguished, the internal clock of the single chip microcomputer stops running, all interrupts except external wake-up interrupts are not received, and the real-time clock module normally runs along with physical time; when a user touches the touch switch or locks the door, the display screen displays the last recorded door locking time and starts to recognize the door locking action of the user; when the identification result is that the user locks the door, reading and storing the time in the real-time clock module, displaying the time on the display screen, updating the last door locking time, and returning to a low-power consumption standby state after updating; and when the identification result is that the user locks the door, the low-power-consumption standby state is entered again.
Further, the working mode of the intelligent key handle is a current time mode, and the specific process is as follows: after power-on initialization, the display screen enters a low-power-consumption standby state, the screen of the display screen is extinguished, the internal clock of the single chip microcomputer stops rotating, and all interrupts except external wake-up interrupts are not received; when a user touches the touch switch or locks the door, the display screen displays the time of the last door locking distance and starts to recognize the action of locking the door by the user; when the identification result is that the user locks the door, resetting the time of the real-time clock module to be 0, starting timing, and then returning to a low-power consumption standby state; and when the identification result is that the user locks the door, the low-power-consumption state is entered again.
Furthermore, the intelligent key handle is a vertical key longitudinally inserted into the door lock or a horizontal key transversely inserted into the door lock, and the display screen, the single chip microcomputer, the real-time clock module, the power supply module and the touch switch are sequentially arranged; the single-axis gyroscope is located between the display screen and the touch switch, and is arranged in parallel with the single chip microcomputer, the real-time clock module and the power supply module.
Further, a method based on a sliding window is adopted to identify door locking actions, and the specific flow is as follows: initializing and entering a waiting state; judging whether the sampling period is over, if so, finishing the identification, otherwise, further judging whether the sampling period is reached; if the sampling period is not reached, returning to continue waiting, if the sampling period is reached, performing ADC (analog to digital converter) sampling on the single-axis gyroscope, and putting data obtained by sampling behind the last data in the sliding window; judging whether the sliding window is filled up or not, if not, returning to continue waiting; if so, continuing to identify the sliding window; if judging that the user locks the door, finishing the identification; if not, further judging whether the door is opened by the user; if so, finishing the identification; if not, discarding the first interrupt mark in the sliding window to make the sliding window in a non-full state, and returning to continue waiting.
Further, the continuing to perform the identification processing on the sliding window includes: storing sliding window mode time sequences with the same amount of door locking, door opening and noise and corresponding marks in the single chip microcomputer as training data in advance; measuring the distance between a sliding window w obtained in use and a time sequence in the training data by using a DTW algorithm, and taking k training data with the minimum distance to the sliding window w to form a k neighbor set; and selecting the labels with the largest quantity from the k neighbor set as a recognition result, or directly using the labels of the time series with the smallest distance in the k neighbor set as the recognition result.
Further, the continuing to perform the identification processing on the sliding window includes: inputting the sliding window into a feedforward neural network for identification processing, wherein the number of nodes of an input layer of the feedforward neural network is the same as the width of the sliding window, the number of nodes of a hidden layer of the feedforward neural network is set to 2/3 of the number of nodes of the input layer of the feedforward neural network, and an output layer of the feedforward neural network comprises two nodes which are o nodes respectively1And o2When o is1Output is 1 and o2When the output is 0, the user is judged to lock the door, and when the output is o1Output is 0 and o2When the output is 1, it is determined that the user opens the door, and otherwise, it is determined as noise.
Furthermore, the intelligent key handle also comprises a display screen for debugging, and is connected with the other display output end of the single chip microcomputer.
(III) advantageous effects
The technical scheme of the invention has the following advantages:
1. the intelligent key handle can identify the action of locking the door and record the time of locking the door, and helps the middle-aged and elderly people, hypomnesis people and mental workers to confirm whether the middle-aged and elderly people leave the room or not to lock the door after leaving the room.
2. The technical scheme adopted by the invention has small change on the key, can be directly assembled on the existing key without remanufacturing, does not change the door lock at all, and is simple and convenient to implement, deploy and apply.
Drawings
FIG. 1 is a schematic diagram of the constituent modules of a smart key handle of the present invention;
FIG. 2A is a front plan view of a housing structure of the smart key of the present invention;
FIG. 2B is a rear plan view of a housing structure of the smart key of the present invention;
FIG. 2C is a side view of a housing structure of the smart key of the present invention;
FIG. 3A is a front plan view of another housing configuration for the key fob of the present invention;
FIG. 3B is a rear plan view of another housing configuration for the key fob of the present invention;
FIG. 3C is a side view of another housing configuration of the smart key of the present invention;
FIG. 4 is a flowchart of the door lock time mode operation of the smart key handle of the present invention;
FIG. 5 is a time-to-date mode workflow diagram of the smart key handle of the present invention;
FIG. 6A is a diagram of the positional relationship between a single axis gyroscope and modules of the vertical key of the present invention;
FIG. 6B is a diagram of the positional relationship between a single axis gyroscope and modules of the horizontal key of the present invention;
FIG. 7 is a flow chart of a method for identifying door locking actions in accordance with the present invention;
fig. 8 is a specific circuit diagram of the smart key handle of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Fig. 1 is a schematic view of the constituent modules of the smart key handle of the present invention. As shown in fig. 1, the smart key handle of the present invention includes: touch switch, singlechip, unipolar gyroscope, real-time clock module, power module and display screen.
The touch switch is connected with the single chip microcomputer and used for sending an external wake-up signal to the single chip microcomputer. And an ADC (analog to digital converter) interface of the single chip microcomputer is connected with the single-axis gyroscope and used for recognizing door locking actions according to detection signals of the single-axis gyroscope after receiving external wake-up signals. The real-time clock module is connected with the single chip microcomputer and used for timing and providing the door locking time for the single chip microcomputer. The power module is used for supplying power to other components. The display screen is connected with one display output end of the single chip microcomputer and used for displaying the door locking time.
When debugging, can regard the display screen for debugging as the annex, be connected with the display screen for debugging with another demonstration output of singlechip.
The intelligent key handle can be designed into two structures, wherein one structure is shown in figures 2A, 2B and 2C, the intelligent key handle is made into a hollow key handle shape, and the intelligent key handle is clamped on an existing key by using structures such as a screw clamping piece and the like, so that the key does not need to be reconfigured. Fig. 2A is a front plan view of the smart key handle, the display screen 21 is disposed on the housing of the hollow key handle, the frame on one side of the display screen 21 is provided with a rope threading hole 22, and the frame on the other side of the display screen 21 is provided with a clamping piece 23 and a tightening knob 24. Fig. 2B is a top view of the back of the smart key handle, and the touch switch 25 is disposed on the back of the smart key handle opposite to the display screen 21 for the convenience of the user. Fig. 2C shows a side view of a smart key handle having a clamping plate 23 secured to each side by a tightening knob 24 and a cavity 26 formed in the middle. The intelligent key handle can be sleeved on the key handle part of the existing key, and the key rod is fixed through the tightening knob 24 and the clamping piece 23. Each module is disposed within a housing structure of the hollow key handle. The front and back sides are used for convenience of description and do not limit the present invention, and the display screen 21 may be disposed on the back side and the touch switch 25 may be disposed on the front side.
The second configuration, as shown in fig. 3A, 3B, and 3C, may be integrated into a newly designed and manufactured key head portion. Fig. 3A is a front plan view of the smart key handle, a stringing hole 22 is formed in a side frame of the display screen 21, and a key rod 27 is arranged on the other side of the display screen 21. Fig. 3B is a back plan view of the smart key handle, and the touch switch 25 is disposed on the back of the smart key handle opposite to the display screen 21 for user's convenience. Fig. 3C shows a side view of the smart key handle with the key lever 27 in the middle. The front and back sides are used for convenience of description and do not limit the present invention, and the display screen 21 may be disposed on the back side and the touch switch 25 may be disposed on the front side.
The intelligent key handle can work in two working modes, one is a door locking time mode, and the other is a current time mode. In the lock time mode, when the user wakes up to view the screen, the last lock time is displayed, and in the mode, the real-time clock works as a clock which runs synchronously with the physical time. In the time-to-day mode, when the user wakes up to view the screen, the last lock-to-day time interval is displayed, and in this mode, the real-time clock is used as a timer and starts to count from 00:00 (hour: minute) when the real-time clock works. For example, when a user wishes to determine whether he has locked his door upon departure after the departure, the determination may be made by observing the last time the key recorded or the time since the last time the door was locked, in combination with the time at which he left and the time at which he was present. The time the user left is 10:00, at 10: 30, the user wishes to determine whether he has locked the door when he leaves, and can wake up the smart key handle, if the recorded door locking time shows 10: before or after 00, or display time as 00: and about 30, the user locks the door when leaving. These two modes can be factory set in order not to add more buttons to the key.
Fig. 4 is a working flow chart of the door locking time mode of the intelligent key handle of the invention. As shown in fig. 4, after the power-on initialization is completed, the low power consumption standby state is entered, the screen is turned off, the internal clock of the single chip microcomputer stops running, all interrupts except the external wake-up interrupt are not received, and the real-time clock normally runs along with the physical time. When a user contacts the touch switch or locks the door, due to the design of the shell structure, the user can spontaneously contact the touch switch by hand when locking the door, the single chip microcomputer is awakened from the low power consumption state, the last recorded door locking time is displayed on the display screen, the user can determine whether the door is locked when the user leaves or not through the time, and if no related information exists or the door is used for the first time, prompt information such as 99:99 and the like can not be displayed or displayed. And then, identifying the door locking action of the user, reading and storing time information in the real-time clock and displaying the time information on a display screen when the identification result is that the user locks the door, updating the last door locking time, and returning to a low-power consumption standby state after updating. And when the identification result is that the user locks the door, the system enters the low power consumption state again, only the external awakening interruption is allowed, the singlechip clock stops, the screen is extinguished, and the real-time clock is not influenced to continue running.
Fig. 5 is a time-to-date mode workflow diagram of the smart key handle of the present invention. As shown in fig. 5, after power-on initialization, the system enters a low power consumption standby state, the screen is off, the clock of the single chip microcomputer stops running, and all interrupts except the external wake-up interrupt are not received. When a user contacts the touch switch or locks the door, due to the design of the shell structure, the user can spontaneously contact the touch switch by hand when locking the door, the single chip microcomputer is awakened from the low-power-consumption state, the current time of the last door locking distance is displayed on the display screen, the user can determine whether the door is locked when the door leaves or not through the time, and if no related information exists or the door is used for the first time, prompt information such as 99:99 and the like can not be displayed or displayed. And then, identifying the action of locking the door by the user, resetting the time of the real-time clock to 00:00 and starting timing when the identification result is that the door is locked by the user, and then returning to the low-power consumption standby state. And when the identification result is that the user locks the door, the system enters the low-power-consumption state again, the single-chip microcomputer clock stops, only the external awakening interruption is allowed, the screen is extinguished, and the real-time clock is not influenced to continue running.
FIG. 6A is a diagram of the positional relationship between a single axis gyroscope and modules of the vertical key of the present invention; fig. 6B is a diagram showing the positional relationship between the single-axis gyroscope and each module in the horizontal key of the present invention. As shown in fig. 6A and 6B, schematic views of a vertical key (vertical insertion door lock) and a horizontal key (horizontal insertion door lock) are respectively given. The display screen 21, the circuit structure 62 formed by the single chip microcomputer and the real-time clock module, the power module 63 and the touch switch 25 can be sequentially arranged, and the single-axis gyroscope 65 is located between the display screen 21 and the touch switch 25 and is arranged in parallel with the circuit structure 62 formed by the single chip microcomputer and the real-time clock module and the power module 63. The single-axis gyroscope 65 is connected with an ADC interface of the single chip microcomputer.
The single-axis gyroscope is a sensor for detecting the rotation angle of an attached object around a certain axis, different voltage values can be output when the single-axis gyroscope rotates to different angles, digital quantity related to the rotation angle obtained by AD sampling of the voltage values can be used for judging the rotation angle of the attached object, and the single-axis gyroscope can be realized by adopting a chip. When installed, the axis of the single axis gyroscope should be parallel to the key bar.
The method for identifying the door locking action is a sliding window-based method, and a single chip can acquire a sensing value obtained from a single-axis gyroscope sensor according to a certain sampling frequency. A time series is composed of successive perceptual values from different points in time. The goal of the identification method is to identify the pattern of door lock, door open, and noise from this time series.
Because the door locking action lasts for a short time generally and the power consumption of the long-time working state of the single chip microcomputer is higher, a standby time threshold value is set for the identification method, and if the awakening time of the single chip microcomputer exceeds the threshold value, the identification is finished and the low-power-consumption standby state is entered.
FIG. 7 is a flowchart illustrating a method for recognizing a door locking operation according to the present invention. The sliding window based method performs an identification process on all time series segments, wherein each segment having a fixed length called a sliding window, the fixed length called the width of the sliding window, needs to be predetermined. The adjacent sliding windows are overlapped, the latter sliding window discards the first data of the former sliding window, adds a new data at the tail part, and the rest parts are the same.
As shown in fig. 7, initialization is first performed, a wait state is entered, whether timeout occurs is determined, if timeout occurs, the recognition procedure is ended, and if not, it is further determined whether the sampling period has been reached. And if the sampling period is not reached, returning to continue waiting, and if the sampling period is reached, performing ADC (analog to digital converter) sampling on the gyroscope, and putting the data obtained by sampling behind the last data in the sliding window. Judging whether the sliding window is filled up, if not, returning to continue waiting, if so, using one of the following two methods to identify the sliding window. If the user locks the door, the identification program is ended; if not, further judging whether the door is opened by the user. If yes, the identification program is ended; if not, discarding the first interrupt flag in the sliding window to make the sliding window in the unsatisfied state, and then returning to continue waiting. Because the processing capacity of the single chip microcomputer is limited, the number of times of identification operation is large, and the sliding speed v can be set in practical application, namely for any continuous v sliding windows, 1 sliding window is identified first, and the subsequent continuous v-1 sliding windows are discarded.
For the sliding window, the recognition process can be performed using two methods:
the first method is to combine the DTW algorithm (Dynamic Time Warping) and the k-nearest neighbor algorithm.
The sliding window mode time series with the same amount of door locking, door opening and noise and the corresponding labels thereof need to be stored in the single chip microcomputer in advance to be used as training data. When the identification is carried out, the distance between a sliding window w obtained in use and a time sequence in the training data is measured by a DTW algorithm, and k training data with the minimum distance to w are taken to form a k neighbor set. And selecting the labels with the largest number from the k neighbor set as the recognition result, or directly using the labels of the time series with the smallest distance in the k neighbor set as the recognition result.
The second method is based on an artificial neural network.
And inputting the sliding window into a feed-forward neural network for identification. The node number of the input layer of the feedforward neural network is the same as the width of the sliding window; the number of nodes of the hidden layer may be set empirically, for example 2/3 which may be set as the number of nodes of the input layer; the output layer comprises two nodes respectively o1And o2(ii) a When o is1Output is 1 and o2When the output is 0, judging that the user locks the door; when o is1Output is 0 and o2When the output is 1, judging that the user opens the door; otherwise, the noise is judged. The training method of the feedforward neural network is a back propagation algorithm, and the training set is a manually marked door locking, door opening and noise time sequence, wherein the door locking is pairedShall be marked o 11 and o20, the door is marked o10 and o 21, noise corresponds to the label o10 and o2=0。
The two methods have larger calculation amount, are suitable for using a singlechip with higher calculation speed, need to use longer window width to better reflect the characteristics of data, and can also use all data obtained in the awakening process without using a sliding window.
Fig. 8 is a specific circuit diagram of the smart key handle of the present invention. As shown in fig. 8, in a typical embodiment based on an STC15W series single chip microcomputer, the single chip microcomputer is STC15W60S4, the real-time clock is a DS1302 module, the power supply is a 3V button battery, and the display screen is a four-digit liquid crystal display screen driven by HT 1621B. The accessory debugger is LCD 1602. The specific connection relationship is as follows:
VCC and GND of the single-axis gyroscope module are connected with VCC and GND of the system. The signal output end of the single-axis gyroscope is connected with a P1.0 pin of the single chip microcomputer (other pins with ADC function can also be used). VCC and GND of the touch pad are connected with VCC and GND of the power module, and an output signal D is connected with P3.2 (external interrupt 0). VCC and GND of the real-time clock module are connected with VCC and GND of the power module, and CLK, I/O and RST are respectively connected with P1.4, P1.5 and P1.6. VCC and GND of the liquid crystal screen driven by HT1621B are connected with VCC and GND of the power supply module, and CS, WR and DA are respectively connected with P1.1, P1.2 and P1.3. The connection method of the accessory debugger screen comprises the following steps: VSS and VDD are connected to VCC and GND of the power supply module, respectively, and RS, RW and E are connected to P2.5, P2.6 and P2.7. DATA (8 bit) is connected to P0. A and K are connected to VCC and GND.
The circuit structure is only a typical implementation scheme, and all single-chip microcomputers and chips with the same or similar functions can be applied to the invention as an alternative technical scheme.
The intelligent key handle can identify the action of locking the door and record the time of locking the door, and helps the middle-aged and elderly people, hypomnesis people and mental workers to confirm whether the middle-aged and elderly people leave the room or not to lock the door after leaving the room. The technical scheme adopted has the advantages that the change of the key is small, the key can be directly assembled on the existing key without remanufacturing, the door lock is not changed at all, and the implementation, the deployment and the application are simple and convenient.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A smart key handle, comprising: the device comprises a touch switch, a single chip microcomputer, a single-axis gyroscope, a real-time clock module, a power supply module and a display screen;
the touch switch is connected with the single chip microcomputer and used for sending an external wake-up signal to the single chip microcomputer;
the ADC interface of the single-chip microcomputer is connected with the single-axis gyroscope and used for recognizing door locking actions according to detection signals of the single-axis gyroscope after receiving the external wake-up signals;
the real-time clock module is connected with the single chip microcomputer and used for timing and providing door locking time for the single chip microcomputer;
the power supply module is used for supplying power to other components;
the display screen is connected with one display output end of the single chip microcomputer and used for displaying door locking time;
the shell structure of the intelligent key handle is a hollow key handle, the display screen is arranged on the shell on the front side of the hollow key handle, a stringing hole is arranged on the frame at one side of the display screen, a first clamping piece and a first tightening knob are arranged on the frame at the other side of the display screen, the touch switch is arranged on the back surface of the hollow key handle and at the position opposite to the display screen, a second clamping piece and a second tightening knob are arranged at the back of the hollow key handle and at the symmetrical positions of the first clamping piece and the first tightening knob at the front, the first tightening knob and the second tightening knob respectively fix the first clamping piece and the second clamping piece, so that a cavity is formed between the first clamping piece and the second clamping piece for placing a common key, the single chip microcomputer, the single-shaft gyroscope, the real-time clock module and the power supply module are arranged in the shell of the hollow key handle.
2. The smart key handle as claimed in claim 1, wherein the operation mode of the smart key handle is a door locking time mode, and the specific process is as follows: after power-on initialization, the display screen enters a low-power-consumption standby state, the screen of the display screen is extinguished, the internal clock of the single chip microcomputer stops running, all interrupts except external wake-up interrupts are not received, and the real-time clock module normally runs along with physical time; when a user touches the touch switch or locks the door, the display screen displays the last recorded door locking time and starts to recognize the door locking action of the user; when the identification result is that the user locks the door, reading and storing the time in the real-time clock module, displaying the time on the display screen, updating the last door locking time, and returning to a low-power consumption standby state after updating; and when the identification result is that the user locks the door, the low-power-consumption standby state is entered again.
3. The smart key handle as claimed in claim 1, wherein the working mode of the smart key handle is a current time mode, and the specific process is as follows: after power-on initialization, the display screen enters a low-power-consumption standby state, the screen of the display screen is extinguished, the internal clock of the single chip microcomputer stops rotating, and all interrupts except external wake-up interrupts are not received; when a user touches the touch switch or locks the door, the display screen displays the time of the last door locking distance and starts to recognize the action of locking the door by the user; when the identification result is that the user locks the door, resetting the time of the real-time clock module to be 0, starting timing, and then returning to a low-power consumption standby state; and when the identification result is that the user locks the door, the low-power-consumption state is entered again.
4. The smart key handle according to claim 1, wherein the smart key handle is a vertical key longitudinally inserted into a door lock or a horizontal key transversely inserted into a door lock, and the display screen, the single chip microcomputer, the real-time clock module, the power module and the touch switch are sequentially arranged; the single-axis gyroscope is located between the display screen and the touch switch, and is arranged in parallel with the single chip microcomputer, the real-time clock module and the power supply module.
5. The smart key handle according to claim 4, wherein the door locking action is identified by a sliding window-based method, and the specific process is as follows: initializing and entering a waiting state; judging whether the sampling period is over, if so, finishing the identification, otherwise, further judging whether the sampling period is reached; if the sampling period is not reached, returning to continue waiting, if the sampling period is reached, performing ADC (analog to digital converter) sampling on the single-axis gyroscope, and putting data obtained by sampling behind the last data in the sliding window; judging whether the sliding window is filled up or not, if not, returning to continue waiting; if so, continuing to identify the sliding window; if judging that the user locks the door, finishing the identification; if not, further judging whether the door is opened by the user; if so, finishing the identification; if not, discarding the first interrupt mark in the sliding window to make the sliding window in a non-full state, and returning to continue waiting.
6. The smart key handle as recited in claim 5, wherein said continuing the sliding window identification process comprises: storing sliding window mode time sequences with the same amount of door locking, door opening and noise and corresponding marks in the single chip microcomputer as training data in advance; measuring the distance between a sliding window w obtained in use and a time sequence in the training data by using a DTW algorithm, and taking k training data with the minimum distance to the sliding window w to form a k neighbor set; and selecting the labels with the largest quantity from the k neighbor set as a recognition result, or directly using the labels of the time series with the smallest distance in the k neighbor set as the recognition result.
7. The smart key handle as recited in claim 5, wherein said continuing the sliding window identification process comprises: inputting the sliding window into a feedforward neural network for identification processing, wherein the number of nodes of an input layer of the feedforward neural network is the same as the width of the sliding window, the number of nodes of a hidden layer of the feedforward neural network is set to 2/3 of the number of nodes of the input layer of the feedforward neural network, and an output layer of the feedforward neural network comprises two nodes which are o nodes respectively1And o2When o is1Output is 1 and o2When the output is 0, the user is judged to lock the door, and when the output is o1Output is 0 and o2When the output is 1, it is determined that the user opens the door, and otherwise, it is determined as noise.
8. The smart key handle as claimed in claim 1, further comprising a display screen for debugging connected to another display output terminal of the single-chip microcomputer.
CN201810077288.0A 2018-01-26 2018-01-26 Intelligent key handle Active CN109976206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810077288.0A CN109976206B (en) 2018-01-26 2018-01-26 Intelligent key handle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810077288.0A CN109976206B (en) 2018-01-26 2018-01-26 Intelligent key handle

Publications (2)

Publication Number Publication Date
CN109976206A CN109976206A (en) 2019-07-05
CN109976206B true CN109976206B (en) 2020-06-26

Family

ID=67075862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810077288.0A Active CN109976206B (en) 2018-01-26 2018-01-26 Intelligent key handle

Country Status (1)

Country Link
CN (1) CN109976206B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202866418U (en) * 2012-09-11 2013-04-10 马梓馨 Multifunctional key
CN107296357A (en) * 2017-08-01 2017-10-27 宝鸡文理学院 A kind of key storage device and its accumulating method with memory function

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8866639B2 (en) * 2006-07-13 2014-10-21 Volkswagen Ag Key unit for a lock system of a vehicle
US20130186154A1 (en) * 2011-11-22 2013-07-25 Alfred M. Haas Kd
CN102913062A (en) * 2012-11-21 2013-02-06 上海市闵行第二中学 Key with function of displaying locking and unlocking state of door
CN105867201A (en) * 2015-01-19 2016-08-17 陈奎发 Smart switch
CN105261098B (en) * 2015-10-27 2017-11-21 上海斐讯数据通信技术有限公司 Smart lock door system and method
CN105735760B (en) * 2016-02-26 2018-10-19 移康智能科技(上海)股份有限公司 A kind of Intelligent key set, Intelligent key component and locking reminding method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202866418U (en) * 2012-09-11 2013-04-10 马梓馨 Multifunctional key
CN107296357A (en) * 2017-08-01 2017-10-27 宝鸡文理学院 A kind of key storage device and its accumulating method with memory function

Also Published As

Publication number Publication date
CN109976206A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
US11412981B2 (en) Intelligent device wearing detection method and intelligent device
CN104597790B (en) A kind of awakening method of serial ports controller and micro controller system based on it
US11076226B2 (en) Smart sensor for always-on operation
CN106471455B (en) Low-power capacitance type sensor button
CN104142728B (en) Electronic installation
CN103257708B (en) Method for waking up mobile terminal screen and mobile terminal
CN106547415A (en) A kind of Embedded capacitance touch sensing device and its implementation
US9342159B2 (en) Method and apparatus for activating electronic devices with gestures
CN108886749A (en) A kind of management method and device of wearable smart machine
CN108351668A (en) A kind of the wearing state determination method and wearable device of wearable device
CN103729995A (en) Wireless remote-transmission meter reading device with ultralow-power-consumption awakening function and awakening method thereof
CN107664841A (en) Intelligent glasses and the method for controlling intelligent glasses dormancy awakening
CN106648576A (en) Method for quickly starting application, and mobile terminal
CN109753777A (en) A kind of personal identification method, device, storage medium and mobile terminal
CN104236729B (en) A kind of implementation method of moisture recorder
CN107153454A (en) The method and mobile device calibrated with sensor time
CN107577189A (en) A kind of accurate timing Rouser of automatic monitoring system
CN109972918B (en) Intelligent key
CN109976206B (en) Intelligent key handle
CN114137400B (en) Low-power switch state detection system and method
JP3329817B2 (en) Electronic equipment with water depth measurement function
CN106341545A (en) Method for displaying time of mobile terminal under power-off state and system using method
CN112258807A (en) Low-power-consumption cover opening alarm with multi-stage alarm and control method
CN203970358U (en) The bluetooth thermometer that opening ways is measured is shaken in a kind of use
CN213582522U (en) Low-power-consumption cover opening alarm with multi-stage alarm

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