Detection method of door lock detection device

文档序号:1587862 发布日期:2020-02-04 浏览:18次 中文

阅读说明:本技术 一种门锁检测装置的检测方法 (Detection method of door lock detection device ) 是由 张耀钧 张彩霞 冯兆龙 刘涛 冯紫妍 黄萌桦 于 2019-10-11 设计创作,主要内容包括:本发明公开了一种门锁检测装置的检测方法,所述方法基于门锁检测装置,所述门锁检测装置包括:第一弹片、第一复位弹簧、第二弹片、第二复位弹簧、穿口、第一VL53L0X传感器、第二VL53L0X传感器和单片机,所述单片机接收所述第一VL53L0X传感器和第二VL53L0X传感器传递过来的电平信号,并对所述电平信号进行处理,所述处理包括:步骤1、从电平信号与状态关系表中识别出所述电平信号的种类和其对应的状态;步骤2、当所述电平信号的种类为响应电平信号和所述状态为响应状态时,计算所述响应状态所维持的时间,当所述时间≥10s时,则输出告警信号。本发明主要用于门锁技术领域。(The invention discloses a detection method of a door lock detection device, which is based on the door lock detection device, and the door lock detection device comprises the following steps: the sensor comprises a first elastic sheet, a first return spring, a second elastic sheet, a second return spring, a through hole, a first VL53L0X sensor, a second VL53L0X sensor and a single chip microcomputer, wherein the single chip microcomputer receives level signals transmitted by the first VL53L0X sensor and the second VL53L0X sensor and processes the level signals, and the processing comprises the following steps: step 1, identifying the type of a level signal and a corresponding state thereof from a level signal and state relation table; and 2, when the type of the level signal is a response level signal and the state is a response state, calculating the time for maintaining the response state, and when the time is more than or equal to 10s, outputting an alarm signal. The invention is mainly used in the technical field of door locks.)

1. A detection method of a door lock detection device is based on the door lock detection device, and is characterized in that: the door lock detection device includes: the key comprises a first elastic sheet, a first reset spring, a second elastic sheet, a second reset spring, a through hole, a first VL53L0X sensor, a second VL53L0X sensor and a single chip microcomputer, wherein one side of the first elastic sheet is connected with the first reset spring, one side of the second elastic sheet is connected with the second reset spring, the first VL53L0X sensor and the second VL53L0X sensor are respectively in communication connection with the single chip microcomputer, the sensing surface of the first VL53L0X sensor faces the first elastic sheet, the second VL53L0X sensor faces the second elastic sheet, the first elastic sheet and the second elastic sheet are arranged oppositely, the through hole is positioned between the first elastic sheet and the second elastic sheet, the through hole is positioned in front of a key hole and used for a key to pass through and enable the first elastic sheet and the second elastic sheet to displace, and the single chip microcomputer receives level signals of the first VL53L0X sensor and the second VL53L0X sensor and processes the level signals, the processing comprises the following steps:

step 1, identifying the type of a level signal and a corresponding state thereof from a level signal and state relation table;

step 2, when the type of the level signal is a response level signal and the state is a response state, calculating the time maintained by the response state, and when the time is more than or equal to 10s, outputting an alarm signal;

the level signal and state relation table is pre-established, and the establishment method of the level signal and state relation table comprises the following steps: defining a state in which the key is inserted into the key hole through the penetration and stops moving as a response state in which the resulting level signals of the first VL53L0X sensor and the second VL53L0X sensor are defined as response level signals; and corresponding the response state to the response level signal, and establishing a level signal and state relation table.

2. The detecting method of a door lock detecting device according to claim 1, wherein the door lock detecting device further comprises a wireless module, the wireless module is connected with the single chip microcomputer, and the wireless module is used for sending the alarm signal to a communication network space.

3. The detecting method of a door lock detecting device according to claim 2, wherein the wireless module is a bluetooth module.

4. The method as claimed in claim 2, wherein the wireless module is a ZigBee module.

5. The detection method of the door lock detection device according to claim 1, wherein the single chip microcomputer is an STM32 single chip microcomputer.

Technical Field

The invention relates to the technical field of door locks, in particular to a detection method of a door lock detection device.

Background

The door lock is composed of a cylinder lock at the beginning and a fingerprint lock at the later, and the difficulty faced by many people is solved by each development of the cylinder lock and the fingerprint lock. In life, people are busy in daily work and life. This causes a problem that the key is not pulled out. When the key is forgotten to be pulled out, the problems of key loss, incapability of preventing theft and the like can be caused, and as a heavy barrier for room safety, attention needs to be paid to how to detect the situation that the key is forgotten to be pulled out.

Disclosure of Invention

The invention aims to provide a detection method of a door lock detection device, which aims to solve the problem that the conventional method for detecting the condition that a key is forgotten to be pulled out is lacked.

The solution of the invention for solving the technical problem is as follows: a detection method of a door lock detection device is based on the door lock detection device, and the door lock detection device comprises the following steps: the key comprises a first elastic sheet, a first reset spring, a second elastic sheet, a second reset spring, a through hole, a first VL53L0X sensor, a second VL53L0X sensor and a single chip microcomputer, wherein one side of the first elastic sheet is connected with the first reset spring, one side of the second elastic sheet is connected with the second reset spring, the first VL53L0X sensor and the second VL53L0X sensor are respectively in communication connection with the single chip microcomputer, the sensing surface of the first VL53L0X sensor faces the first elastic sheet, the second VL53L0X sensor faces the second elastic sheet, the first elastic sheet and the second elastic sheet are arranged oppositely, the through hole is positioned between the first elastic sheet and the second elastic sheet, the through hole is positioned in front of a key hole and used for a key to pass through and enable the first elastic sheet and the second elastic sheet to displace, and the single chip microcomputer receives level signals of the first VL53L0X sensor and the second VL53L0X sensor and processes the level signals, the processing comprises the following steps:

step 1, identifying the type of a level signal and a corresponding state thereof from a level signal and state relation table;

step 2, when the type of the level signal is a response level signal and the state is a response state, calculating the time maintained by the response state, and when the time is more than or equal to 10s, outputting an alarm signal;

the level signal and state relation table is pre-established, and the establishment method of the level signal and state relation table comprises the following steps: defining a state in which the key is inserted into the key hole through the penetration and stops moving as a response state in which the resulting level signals of the first VL53L0X sensor and the second VL53L0X sensor are defined as response level signals; and corresponding the response state to the response level signal, and establishing a level signal and state relation table.

The invention has the beneficial effects that: based on a door lock detection device, a key enters a key hole and is divided into three states, a level signal and state relation table is defined in advance, the state of the key is identified through the level signal and state relation table, whether the key is forgotten to be pulled out or not is identified through comparison of set time, and the problem that the existing method for detecting that the key is forgotten to be pulled out is solved.

Further, the door lock detection device further comprises a wireless module, the wireless module is connected with the single chip microcomputer, and the wireless module is used for sending the alarm signal to a communication network space. The level signal is received through the wireless module and is transmitted to the communication network space, so that a user can conveniently capture and know the information that the key is forgotten to be pulled out by using the mobile equipment.

Further, the wireless module is a Bluetooth module. The communication device with the bluetooth communication protocol captures the level signal.

Further, the wireless module is a ZigBee module. The communication equipment with the 2.4G communication protocol is convenient to capture the level signal.

Further, the singlechip is an STM32 singlechip.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the described drawings are only a part of the embodiments of the invention, not all embodiments, and that a person skilled in the art will be able to derive other designs and drawings from these drawings without the exercise of inventive effort.

FIG. 1 is a flow chart of the steps of a single-chip processing method;

FIG. 2 is a schematic structural diagram of a door lock detection device;

fig. 3 is a circuit connection block diagram of the laser detection module.

100. The wireless module comprises a shell, 110, a first elastic sheet, 120, a first return spring, 130, a second elastic sheet, 140, a second return spring, 210, a first VL53L0X sensor, 220, a second VL53L0X sensor, 230, a single chip microcomputer, 240, a wireless module, 300, a key hole, 310, a through hole, 400 and a front panel.

Detailed Description

Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.

In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as up, down, front, rear, left, right, etc., is the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of the description of the present invention, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.

In the description of the invention, if words such as "a number" or the like are used, the meaning is one or more, the meaning of a plurality is two or more, more than, less than, more than, etc. are understood as not including the number, and more than, less than, more than, etc. are understood as including the number.

In the description of the present invention, unless otherwise explicitly defined, terms such as setup, installation, connection, and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the terms in the present invention in combination with the detailed contents of the technical solutions.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:双驱动智能门锁

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!