[go: up one dir, main page]

CN115171252A - BT and IOT based dynamic coded lock unlocking method and system - Google Patents

BT and IOT based dynamic coded lock unlocking method and system Download PDF

Info

Publication number
CN115171252A
CN115171252A CN202210803648.7A CN202210803648A CN115171252A CN 115171252 A CN115171252 A CN 115171252A CN 202210803648 A CN202210803648 A CN 202210803648A CN 115171252 A CN115171252 A CN 115171252A
Authority
CN
China
Prior art keywords
information
unlocking
lock
smart lock
verification
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.)
Pending
Application number
CN202210803648.7A
Other languages
Chinese (zh)
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.)
GRG Banking Equipment Co Ltd
Original Assignee
GRG Banking Equipment 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 GRG Banking Equipment Co Ltd filed Critical GRG Banking Equipment Co Ltd
Priority to CN202210803648.7A priority Critical patent/CN115171252A/en
Publication of CN115171252A publication Critical patent/CN115171252A/en
Pending legal-status Critical Current

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
    • 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
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • 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
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Lock And Its Accessories (AREA)

Abstract

本发明公开了一种基于BT和IOT的动态密码锁开锁方法及系统,本发明的方法包括:预先设置开锁许可信息;接收智能锁发送的开锁申请和与所述开锁申请关联的动态验证信息,并对所述动态验证信息进行解析和编译,得到所述智能锁的第一标识符信息、身份信息和开锁时间信息;根据所述开锁许可信息进行验证,并在验证成功后生成开锁信息发送至智能锁,以使所述智能锁解析所述开锁信息并根据所述智能锁的密钥对解析后的所述开锁信息进行验证,在验证成功时执行开锁动作。本发明实现了智能锁与服务端之间的信息码直接交互,减少了开锁过程中的信息交互环节;而且,提升了开锁效率;同时,节省了锁具使用的运营成本。

Figure 202210803648

The invention discloses a BT and IOT-based dynamic combination lock unlocking method and system. The method of the invention includes: presetting unlocking permission information; receiving an unlocking application sent by a smart lock and dynamic verification information associated with the unlocking application, Analyze and compile the dynamic verification information to obtain the first identifier information, identity information and unlocking time information of the smart lock; verify according to the unlocking permission information, and generate unlocking information after the verification is successful and send it to A smart lock, so that the smart lock parses the unlocking information and verifies the parsed unlocking information according to the key of the smart lock, and performs the unlocking action when the verification is successful. The invention realizes the direct interaction of the information code between the smart lock and the server, reduces the information interaction link in the unlocking process; moreover, improves the unlocking efficiency; meanwhile, saves the operating cost of the lock.

Figure 202210803648

Description

一种基于BT和IOT的动态密码锁开锁方法及系统A kind of dynamic combination lock unlocking method and system based on BT and IOT

技术领域technical field

本发明涉及智能锁技术领域,具体涉及一种基于BT和IOT的动态密码锁开锁方法、系统、电子设备及介质。The invention relates to the technical field of smart locks, and in particular to a method, system, electronic device and medium for unlocking a dynamic combination lock based on BT and IOT.

背景技术Background technique

目前动态密码锁系统通常由锁盘、锁体、电子锁管理系统(下文简称:ELMS)、SMS短信平台四大部分组成。动态密码锁的开锁方式为:以手机为中介,通过手机发送及接收短信与ELMS系统进行信息交互,在锁盘中输入相关的动态密码实现开锁与闭锁。该传统的开锁方式,其信息交互包括个人码、随机码(即特征码)、开锁码、闭锁码。At present, the dynamic combination lock system usually consists of four parts: lock plate, lock body, electronic lock management system (hereinafter referred to as ELMS), and SMS short message platform. The unlocking method of the dynamic combination lock is as follows: using the mobile phone as an intermediary, sending and receiving short messages through the mobile phone to exchange information with the ELMS system, and entering the relevant dynamic password in the lock plate to achieve unlocking and locking. In this traditional unlocking method, the information exchange includes a personal code, a random code (ie, a feature code), an unlocking code, and a locking code.

该传统开锁方式虽然能实现高度安全,但也明显地存在如下三点缺陷:缺陷1:交互信息次数比较多,且各种信息码之间的交互需要依赖第三方载体(手机)实现,存在一定的信息泄露风险;缺陷2:所有交互密码及交互信息都需要人工手动输入,不仅效率低下,而且容易出现输入错误,触发惩罚机制生效(若连续输错动态码,锁具会自动限制开锁人员继续进行开锁的动作,必须要等待相应的规定时间间隔后,才允许重新开锁);缺陷3:锁系统需要配套布置SMS平台,该SMS平台每年均需要向当地运营商付费,一定程度上增加了运营成本。Although this traditional unlocking method can achieve high security, it also has the following three defects: Defect 1: The number of times of information exchange is relatively large, and the interaction between various information codes needs to rely on a third-party carrier (mobile phone) to achieve, there are certain Defect 2: All interactive passwords and interactive information need to be manually entered, which is not only inefficient, but also prone to input errors, triggering the penalty mechanism to take effect (if the wrong dynamic code is continuously entered, the lock will automatically limit the unlocking personnel to continue The action of unlocking must wait for the corresponding specified time interval before allowing re-opening); Defect 3: The lock system needs to be equipped with an SMS platform, which needs to be paid to the local operator every year, which increases the operating cost to a certain extent. .

发明内容SUMMARY OF THE INVENTION

鉴于以上技术问题,本发明的目的在于提供一种基于BT和IOT的动态密码锁开锁方法、系统、电子设备及介质,解决传统的开锁方式存在交互次数多、效率低下且成本高的问题。In view of the above technical problems, the purpose of the present invention is to provide a dynamic combination lock unlocking method, system, electronic device and medium based on BT and IOT, so as to solve the problems of many interactions, low efficiency and high cost in the traditional unlocking method.

本发明采用以下技术方案:The present invention adopts following technical scheme:

一种基于BT和IOT的动态密码锁开锁方法,应用于服务端,包括以下步骤:A method for unlocking a dynamic password lock based on BT and IOT, applied to a server, includes the following steps:

预先设置开锁许可信息;Pre-set unlocking permission information;

接收智能锁发送的开锁申请和与所述开锁申请关联的动态验证信息,并对所述动态验证信息进行解析和编译,得到所述智能锁的第一标识符信息、身份信息和开锁时间信息;Receive the unlocking application sent by the smart lock and the dynamic verification information associated with the unlocking application, and parse and compile the dynamic verification information to obtain the first identifier information, identity information and unlocking time information of the smart lock;

根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,并在验证成功后生成开锁信息发送至智能锁,以使所述智能锁解析所述开锁信息并根据所述智能锁的密钥对解析后的所述开锁信息进行验证,在验证成功时执行开锁动作。The first identifier information, identity information and unlocking time information are verified according to the unlocking permission information, and after the verification is successful, unlocking information is generated and sent to the smart lock, so that the smart lock parses the unlocking information and according to The key of the smart lock verifies the parsed unlocking information, and performs the unlocking action when the verification is successful.

优选的,所述根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,包括:Preferably, the verifying the first identifier information, the identity information and the unlocking time information according to the unlocking permission information includes:

所述开锁许可信息包括开锁任务信息、开锁计划信息和开锁授权信息;确认所述第一标识符信息对应的智能锁在所述开锁时间内,是否存储开锁任务信息、开锁计划信息和开锁授权信息;若存在,则根据所述开锁授权信息确认所述身份信息是否合法;若合法,则根据所述开锁任务信息、开锁计划信息和开锁授权信息确认所述身份信息对应的用户在所述开锁时间内是否具备对所述第一标识符信息对应的智能锁的开锁权限,若具备,则判定验证通过。The unlocking permission information includes unlocking task information, unlocking plan information and unlocking authorization information; confirm whether the smart lock corresponding to the first identifier information stores the unlocking task information, unlocking plan information and unlocking authorization information within the unlocking time. If there is, then confirm whether the identity information is legal according to the unlocking authorization information; if legal, then confirm that the user corresponding to the identity information is in the unlocking time according to the unlocking task information, the unlocking plan information and the unlocking authorization information. Whether it has the unlocking authority for the smart lock corresponding to the first identifier information, if yes, it is determined that the verification is passed.

优选的,所述根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,包括:Preferably, the verifying the first identifier information, the identity information and the unlocking time information according to the unlocking permission information includes:

所述开锁许可信息包括智能锁的第二标识符信息,以及允许智能锁开锁的时间范围信息和授权信息;结合所述第二标识符信息,以及允许智能锁开锁的时间范围信息和授权信息,对所述第一标识符信息、身份信息和开锁时间信息进行验证,在根据所述第二标识符信息确认所述智能锁的第一标识符信息正确,且根据所述授权信息确认所述身份信息合法,以及所述开锁时间信息位于所述时间范围内时,判定验证通过。The unlocking permission information includes second identifier information of the smart lock, and time range information and authorization information that allow the smart lock to unlock; combined with the second identifier information, and the time range information and authorization information that allow the smart lock to unlock, Verifying the first identifier information, identity information and unlocking time information, confirming that the first identifier information of the smart lock is correct according to the second identifier information, and confirming the identity according to the authorization information When the information is legal and the unlocking time information is within the time range, it is determined that the verification is passed.

优选的,所述动态验证信息包括动态随机码,所述开锁信息包括设定时效的动态开锁码。Preferably, the dynamic verification information includes a dynamic random code, and the unlocking information includes a dynamic unlocking code with a set time limit.

一种基于BT和IOT的动态密码锁开锁方法,应用于智能锁,包括以下步骤:A dynamic combination lock unlocking method based on BT and IOT, applied to smart locks, includes the following steps:

与智能终端建立连接;Establish a connection with a smart terminal;

接收用户通过智能终端输入的身份信息,并根据所述身份信息以及所述智能锁的第一标识符信息,生成动态验证信息;Receive the identity information input by the user through the intelligent terminal, and generate dynamic verification information according to the identity information and the first identifier information of the intelligent lock;

将所述动态验证信息发送至服务端,以使所述服务端解析所述动态验证信息并编译得到智能锁的第一标识符信息、身份信息和开锁时间信息,以及以使所述服务端根据预先设置的开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证;Send the dynamic verification information to the server, so that the server parses the dynamic verification information and compiles the first identifier information, identity information and unlocking time information of the smart lock, and makes the server according to The preset unlocking permission information verifies the first identifier information, identity information and unlocking time information;

接收服务端在验证成功后发送的开锁信息并解析;Receive and parse the unlocking information sent by the server after successful verification;

根据所述智能锁的密钥对解析后的开锁信息进行验证,并在验证成功时执行开锁动作。The parsed unlocking information is verified according to the key of the smart lock, and the unlocking action is performed when the verification is successful.

优选的,所述并在验证成功时执行开锁动作步骤后,还包括:Preferably, after performing the unlocking action step when the verification is successful, it further includes:

执行关锁动作,并生成动态闭锁信息发送至服务端,以使所述服务端对所述动态闭锁信息进行确认。The locking action is performed, and dynamic locking information is generated and sent to the server, so that the server confirms the dynamic locking information.

一种基于BT和IOT的动态密码锁开锁系统,包括智能锁、服务端和智能终端,所述智能锁与所述服务端通信连接,所述智能锁与所述智能终端通信连接;A dynamic combination lock unlocking system based on BT and IOT, comprising an intelligent lock, a server and an intelligent terminal, the intelligent lock is connected in communication with the server, and the intelligent lock is connected in communication with the intelligent terminal;

其中,所述智能锁用于与智能终端建立连接;接收用户通过智能终端输入的身份信息,并根据所述身份信息以及所述智能锁的第一标识符信息,生成动态验证信息;将所述动态验证信息发送至服务端;接收服务端在验证成功后发送的开锁信息并解析;根据所述智能锁的密钥对解析后的开锁信息进行验证,并在验证成功时执行开锁动作;Wherein, the smart lock is used to establish a connection with the smart terminal; receive the identity information input by the user through the smart terminal, and generate dynamic verification information according to the identity information and the first identifier information of the smart lock; The dynamic verification information is sent to the server; the unlocking information sent by the server after successful verification is received and parsed; the parsed unlocking information is verified according to the key of the smart lock, and the unlocking action is performed when the verification is successful;

所述智能终端用于预先设置开锁许可信息,接收智能锁发送的开锁申请和与所述开锁申请关联的动态验证信息,并对所述动态验证信息进行解析和编译,得到所述智能锁的第一标识符信息、身份信息和开锁时间信息;根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,并在验证成功后生成开锁信息发送至智能锁。The smart terminal is used to preset unlocking permission information, receive the unlocking application sent by the smart lock and the dynamic verification information associated with the unlocking application, parse and compile the dynamic verification information, and obtain the first information of the smart lock. Identifier information, identity information and unlocking time information; verify the first identifier information, identity information and unlocking time information according to the unlocking permission information, and generate unlocking information and send it to the smart lock after the verification is successful.

优选的,所述智能锁包括智能锁本体、物联网通信模块和蓝牙模块,所述智能锁通过物联网通信模块与所述服务端通信连接,所述智能锁通过所述蓝牙模块与所述智能终端通信连接。Preferably, the smart lock includes a smart lock body, an Internet of Things communication module and a Bluetooth module, the smart lock communicates with the server through the Internet of Things communication module, and the smart lock communicates with the smart lock through the Bluetooth module. Terminal communication connection.

一种电子设备,包括:至少一个处理器,以及与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行所述的基于BT和IOT的动态密码锁开锁方法。An electronic device comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor At least one processor executes, so that the at least one processor can execute the BT and IOT-based dynamic combination lock unlocking method.

一种计算机存储介质,其上存储有计算机程序,所述计算机程序在被处理器执行时,实现所述的基于BT和IOT的动态密码锁开锁方法。A computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, realizes the dynamic combination lock unlocking method based on BT and IOT.

相比现有技术,本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:

本发明通过智能锁接收用户通过智能终端输入的身份信息,并根据所述身份信息以及所述智能锁的第一标识符信息,生成动态验证信息;并将所述动态验证信息发送至服务端,服务端解析所述动态验证信息并编译得到智能锁的第一标识符信息、身份信息和开锁时间信息,并根据预先设置的开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,实现了智能锁与服务端(例如ELMS系统)之间的信息码直接交互,减少了开锁过程中的信息交互环节,例如,减少了传统开锁方法中的生成个人码环节;而且,由服务端进行验证后智能锁再根据所述智能锁的密钥对解析后的开锁信息进行验证后再执行开锁,免去人工手动输入的繁琐及其导致的输入错误,提升了开锁效率;同时,本发明不需要通过短信平台与手持终端进行信息交互,省掉了短信平台的租赁费用,节省了锁具使用的运营成本。The present invention receives the identity information input by the user through the intelligent terminal through the intelligent lock, and generates dynamic verification information according to the identity information and the first identifier information of the intelligent lock; and sends the dynamic verification information to the server, The server parses the dynamic verification information and compiles the first identifier information, identity information and unlocking time information of the smart lock, and analyzes the first identifier information, identity information and unlocking time information according to the preset unlocking permission information. The verification is carried out to realize the direct interaction of the information code between the smart lock and the server (such as the ELMS system), which reduces the information interaction link in the unlocking process, for example, reduces the generation of the personal code link in the traditional unlocking method; After verification by the server, the smart lock verifies the parsed unlocking information according to the key of the smart lock, and then executes the unlocking, which avoids the tedious manual input and the input errors caused by it, and improves the unlocking efficiency; at the same time, The invention does not need to exchange information with the handheld terminal through the short message platform, saves the rental fee of the short message platform, and saves the operating cost of the lock.

附图说明Description of drawings

图1为本发明一实施例提供的一种基于BT和IOT的动态密码锁开锁方法的流程示意图;1 is a schematic flowchart of a method for unlocking a dynamic combination lock based on BT and IOT according to an embodiment of the present invention;

图2为本发明一实施例提供的一种基于BT和IOT的动态密码锁开锁方法的流程示意图;2 is a schematic flowchart of a method for unlocking a dynamic combination lock based on BT and IOT according to an embodiment of the present invention;

图3为本发明一具体实施例提供的一种基于BT和IOT的动态密码锁开锁方法的流程示意图;3 is a schematic flowchart of a method for unlocking a dynamic combination lock based on BT and IOT provided by a specific embodiment of the present invention;

图4示出了本发明一具体实施例提供的一种对锁具的物联网通信模块参数的设置示意图;FIG. 4 shows a schematic diagram of setting parameters of an Internet of Things communication module of a lock provided by a specific embodiment of the present invention;

图5示出了本发明一具体实施例提供的一种ELMS系统创建开锁任务、开锁计划或开锁授权示意图;5 shows a schematic diagram of creating an unlocking task, an unlocking plan or an unlocking authorization by an ELMS system provided by a specific embodiment of the present invention;

图6示出了本发明一具体实施例提供的一种开锁申请的示意图;6 shows a schematic diagram of an unlocking application provided by a specific embodiment of the present invention;

图7示出了本发明一具体实施例提供的一种身份信息认证示意图;7 shows a schematic diagram of an identity information authentication provided by a specific embodiment of the present invention;

图8示出了本发明一具体实施例提供的一种手持终端开锁申请的主界面示意图;FIG. 8 shows a schematic diagram of a main interface of a handheld terminal unlocking application provided by a specific embodiment of the present invention;

图9示出了本发明的一种基于RFID和IOT的基于BT和IOT的动态密码锁开锁系统;Fig. 9 shows a kind of RFID and IOT-based dynamic combination lock unlocking system based on BT and IOT of the present invention;

图10为本发明一实施例提供的一种电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面,结合附图以及具体实施方式,对本发明做进一步描述,需要说明的是,在不相冲突的前提下,以下描述的各实施例之间或各技术特征之间可以任意组合形成新的实施例:The present invention will be further described below with reference to the accompanying drawings and specific embodiments. It should be noted that, on the premise of no conflict, the embodiments or technical features described below can be combined arbitrarily to form new embodiments. :

实施例一:Example 1:

请参照图1-10所示,图1示出了本发明的一种基于BT和IOT的动态密码锁开锁方法,应用于服务端,包括以下步骤:Please refer to Fig. 1-10, Fig. 1 shows a kind of dynamic combination lock unlocking method based on BT and IOT of the present invention, is applied to the server, comprises the following steps:

步骤S1:预先设置开锁许可信息;Step S1: preset unlocking permission information;

在本实施例中,所述开锁许可信息可具体包括开锁任务信息、开锁计划信息和开锁授权信息,通过开锁许可信息,服务端可确定是否许可在特定时间内特定开锁人员对特定智能锁的开锁事件。In this embodiment, the unlocking permission information may specifically include unlocking task information, unlocking plan information and unlocking authorization information. Through the unlocking permission information, the server can determine whether to allow a specific unlocking person to unlock a specific smart lock within a specific time. event.

步骤S2:接收智能锁发送的开锁申请和与所述开锁申请关联的动态验证信息,并对所述动态验证信息进行解析和编译,得到所述智能锁的第一标识符信息、身份信息和开锁时间信息;Step S2: receive the unlocking application sent by the smart lock and the dynamic verification information associated with the unlocking application, and parse and compile the dynamic verification information to obtain the first identifier information, identity information and unlocking of the smart lock time information;

在本实施例中,所述第一标识符信息为锁具自身信息,例如锁ID、锁编号、锁具通信IP/端口等必要信息。In this embodiment, the first identifier information is information of the lock itself, such as necessary information such as a lock ID, a lock number, and a communication IP/port of the lock.

在本实施例中,所述身份信息为用户通过智能终端输入的用于验证权限的身份信息,例如,输入邮箱地址和密码,人脸识别中获取的人脸图像和视频、员工工号和密码等信息。In this embodiment, the identity information is the identity information input by the user through the smart terminal to verify the authority, for example, input email address and password, face image and video obtained in face recognition, employee ID number and password and other information.

在本实施例中,所述动态验证信息包括动态随机码。具体的,可由智能锁根据预设的密码生成算法,把用户的身份信息和锁具自身信息(如锁ID、锁编号、锁具通信IP/端口等必要信息)进行加密处理,生成动态随机码(Random Code)。In this embodiment, the dynamic verification information includes a dynamic random code. Specifically, the smart lock can encrypt the user's identity information and the lock's own information (such as lock ID, lock number, lock communication IP/port and other necessary information) according to the preset password generation algorithm to generate a dynamic random code (Random Random Code). Code).

步骤S3:根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,并在验证成功后生成开锁信息发送至智能锁,以使所述智能锁解析所述开锁信息并根据所述智能锁的密钥对解析后的所述开锁信息进行验证,在验证成功时执行开锁动作。Step S3: verify the first identifier information, identity information and unlocking time information according to the unlocking permission information, and generate unlocking information after the verification is successful and send it to the smart lock, so that the smart lock parses the unlocking information and the parsed unlocking information is verified according to the key of the smart lock, and the unlocking action is performed when the verification is successful.

在本实施例中,所述开锁信息可具体为开锁码。In this embodiment, the unlocking information may specifically be an unlocking code.

优先的,所述开锁信息包括设定时效的动态开锁码。Preferably, the unlocking information includes a dynamic unlocking code with a set time period.

优选的,在步骤S3中,所述根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,包括:Preferably, in step S3, the verification of the first identifier information, the identity information and the unlocking time information according to the unlocking permission information includes:

所述开锁许可信息包括开锁任务信息、开锁计划信息和开锁授权信息;确认所述第一标识符信息对应的智能锁在所述开锁时间内,是否存储开锁任务信息、开锁计划信息和开锁授权信息;若存在,则根据所述开锁授权信息确认所述身份信息是否合法;若合法,则根据所述开锁任务信息、开锁计划信息和开锁授权信息确认所述身份信息对应的用户在所述开锁时间内是否具备对所述第一标识符信息对应的智能锁的开锁权限,若具备,则判定验证通过。The unlocking permission information includes unlocking task information, unlocking plan information and unlocking authorization information; confirm whether the smart lock corresponding to the first identifier information stores the unlocking task information, unlocking plan information and unlocking authorization information within the unlocking time. If there is, then confirm whether the identity information is legal according to the unlocking authorization information; if legal, then confirm that the user corresponding to the identity information is in the unlocking time according to the unlocking task information, the unlocking plan information and the unlocking authorization information. Whether it has the unlocking authority for the smart lock corresponding to the first identifier information, if yes, it is determined that the verification is passed.

需要说明的是,BT是BlueTooth的简写,又称为蓝牙;IOT,又称为物联网(英语:Internet of Things,缩写IoT),是互联网、传统电信网等信息承载体。It should be noted that BT is the abbreviation of BlueTooth, also known as Bluetooth; IOT, also known as the Internet of Things (English: Internet of Things, abbreviated IoT), is an information carrier such as the Internet and traditional telecommunication networks.

作为另一实施方式,在步骤S3中,所述根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,包括:As another implementation manner, in step S3, the verifying the first identifier information, the identity information and the unlocking time information according to the unlocking permission information includes:

所述开锁许可信息包括智能锁的第二标识符信息,以及允许智能锁开锁的时间范围信息和授权信息;结合所述第二标识符信息,以及允许智能锁开锁的时间范围信息和授权信息,对所述第一标识符信息、身份信息和开锁时间信息进行验证,在根据所述第二标识符信息确认所述智能锁的第一标识符信息正确,且根据所述授权信息确认所述身份信息合法,以及所述开锁时间信息位于所述时间范围内时,判定验证通过。The unlocking permission information includes second identifier information of the smart lock, and time range information and authorization information that allow the smart lock to unlock; combined with the second identifier information, and the time range information and authorization information that allow the smart lock to unlock, Verifying the first identifier information, identity information and unlocking time information, confirming that the first identifier information of the smart lock is correct according to the second identifier information, and confirming the identity according to the authorization information When the information is legal and the unlocking time information is within the time range, it is determined that the verification is passed.

请参照图2所示,图2示出了本发明另一实施例提供的一种基于BT和IOT的动态密码锁开锁方法,应用于智能锁,包括以下步骤:Please refer to FIG. 2. FIG. 2 shows a BT and IOT-based dynamic combination lock unlocking method provided by another embodiment of the present invention, which is applied to a smart lock and includes the following steps:

步骤S11:与智能终端建立连接;Step S11: establish a connection with an intelligent terminal;

步骤S12:接收用户通过智能终端输入的身份信息,并根据所述身份信息以及所述智能锁的第一标识符信息,生成动态验证信息;Step S12: receive the identity information input by the user through the intelligent terminal, and generate dynamic verification information according to the identity information and the first identifier information of the intelligent lock;

步骤S13:将所述动态验证信息发送至服务端,以使所述服务端解析所述动态验证信息并编译得到智能锁的第一标识符信息、身份信息和开锁时间信息,以及以使所述服务端根据预先设置的开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证;Step S13: the dynamic verification information is sent to the server, so that the server parses the dynamic verification information and compiles the first identifier information, identity information and unlocking time information of the smart lock, and to make the The server verifies the first identifier information, the identity information and the unlocking time information according to the preset unlocking permission information;

在本实施例中,所述动态验证信息可具体为随机码。In this embodiment, the dynamic verification information may specifically be a random code.

步骤S14:接收服务端在验证成功后发送的开锁信息并解析;Step S14: receive the unlocking information sent by the server after the verification is successful and parse;

步骤S15:根据所述智能锁的密钥对解析后的开锁信息进行验证,并在验证成功时执行开锁动作。Step S15: verifying the parsed unlocking information according to the key of the smart lock, and executing the unlocking action when the verification is successful.

优选的,所述并在验证成功时执行开锁动作步骤后,还包括:Preferably, after performing the unlocking action step when the verification is successful, it further includes:

步骤S16:执行关锁动作,并生成动态闭锁信息发送至服务端,以使所述服务端对所述动态闭锁信息进行确认。Step S16: Execute the locking action, and generate dynamic locking information and send it to the server, so that the server confirms the dynamic locking information.

在上述实现过程中,本发明通过智能锁接收用户通过智能终端输入的身份信息,并根据所述身份信息以及所述智能锁的第一标识符信息,生成动态验证信息;并将所述动态验证信息发送至服务端,服务端解析所述动态验证信息并编译得到智能锁的第一标识符信息、身份信息和开锁时间信息,并根据预先设置的开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,实现了智能锁与服务端(例如ELMS系统)之间的信息码直接交互,减少了开锁过程中的信息交互环节,例如,减少了传统开锁方法中的生成个人码环节;而且,由服务端进行验证后智能锁再根据所述智能锁的密钥对解析后的开锁信息进行验证后再执行开锁,免去人工手动输入的繁琐及其导致的输入错误,提升了开锁效率;同时,本发明不需要通过短信平台与手持终端进行信息交互,省掉了短信平台的租赁费用,节省了锁具使用的运营成本。In the above implementation process, the present invention receives the identity information input by the user through the intelligent terminal through the intelligent lock, and generates dynamic verification information according to the identity information and the first identifier information of the intelligent lock; The information is sent to the server, and the server parses the dynamic verification information and compiles the first identifier information, identity information and unlocking time information of the smart lock. The identity information and unlocking time information are verified, which realizes the direct interaction of the information code between the smart lock and the server (such as the ELMS system), and reduces the information interaction in the unlocking process. Moreover, after verification by the server, the smart lock verifies the parsed unlocking information according to the key of the smart lock, and then executes the unlocking, which avoids the tedious manual input and the input errors caused by it. The unlocking efficiency is improved; at the same time, the present invention does not need to exchange information with the handheld terminal through the short message platform, saves the rental fee of the short message platform, and saves the operation cost of the lock.

下面以具体实施例对本发明的方法进行说明:The method of the present invention is described below with specific embodiments:

如图3所示,图3为本发明一具体实施例提供的一种基于BT和IOT的动态密码锁开锁方法的流程示意图;在本实施例中,服务端为ELMS系统,智能终端为手持终端,智能锁又可以称为锁具。As shown in FIG. 3, FIG. 3 is a schematic flowchart of a method for unlocking a dynamic combination lock based on BT and IOT provided by a specific embodiment of the present invention; in this embodiment, the server is an ELMS system, and the smart terminal is a handheld terminal , smart locks can also be called locks.

具体的,所述方法包括:Specifically, the method includes:

(1)ELMS创建开锁任务、开锁计划、开锁授权;(1) ELMS creates unlocking tasks, unlocking plans, and unlocking authorizations;

系统管理人员在服务端的ELMS对相关的锁具、开锁人员创建在特定时间内的开锁任务、开锁计划、开锁授权等开锁许可。The system administrator creates unlocking tasks, unlocking plans, unlocking authorizations and other unlocking permissions for related locks and unlocking personnel in the ELMS on the server side.

(2)锁具与手持终端之间的Bluetooth匹配;(2) Bluetooth matching between the lock and the handheld terminal;

(3)开锁人员身份信息的输入、处理及开锁申请;(3) Input, processing and application for unlocking the identity information of the unlocking personnel;

①开锁人员在手持终端进行身份信息输入;①The unlocker enters the identity information on the handheld terminal;

②身份信息输入完毕,开锁人员确认开锁申请后,该身份信息由手持终端通过Bluetooth方式自动传输给锁具;②After the input of the identity information is completed, after the unlocking personnel confirms the unlocking application, the identity information is automatically transmitted to the lock by the handheld terminal through Bluetooth;

③随机码(Random Code)的生成;③Generation of Random Code;

锁具接收到由手持终端传输过来的用户身份信息后,通过锁具预设的密码生成算法,把用户身份信息和锁具自身信息(如ID,锁编号、锁具通信IP/端口等必要信息)进行加密处理,生成动态随机码(Random Code);After the lock receives the user identity information transmitted from the handheld terminal, it encrypts the user identity information and the lock's own information (such as ID, lock number, lock communication IP/port and other necessary information) through the preset password generation algorithm of the lock. , generate a dynamic random code (Random Code);

④开锁申请④Application for unlocking

锁具生成随机码后,自动上传给ELMS进行开锁申请;After the lock generates a random code, it is automatically uploaded to ELMS for unlocking application;

(4)开锁验证及开锁码;(4) Unlock verification and unlock code;

ELMS系统接收到来锁端的开锁申请后,通过调用内部密码解密算法对来自锁端的随机码(Random Code)进行解密、编译(编译后信息分为锁具信息、用户身份信息和开锁时间三部分)并进行如下处理:After the ELMS system receives the unlock application from the lock end, it decrypts and compiles the random code (Random Code) from the lock end by calling the internal password decryption algorithm (the compiled information is divided into three parts: lock information, user identity information and unlock time). Process as follows:

①ELMS系统提取锁具信息,结合开锁时间,查询、验证并确认锁具在该开锁时间范围内是否存在开锁任务、开锁计划、开锁授权的开锁事件;① The ELMS system extracts the lock information, and combines with the unlock time to query, verify and confirm whether the lock has unlock tasks, unlock plans, and unlock events within the unlock time range;

若确认为“非法事件”,ELMS直接拒绝来自锁端的开锁申请,若确认为“合法事件”,则进行下一步的开锁人员身份合法性验证;If it is confirmed as an "illegal event", ELMS directly rejects the unlocking application from the lock end, and if it is confirmed as a "legal event", the next step is to verify the legality of the identity of the unlocking personnel;

②ELMS系统提取用户身份信息,进行查找并确认开锁申请人员的合法性,判断其是否具备开锁权限;②The ELMS system extracts the user's identity information, searches and confirms the legality of the unlocking applicant, and judges whether they have the unlocking authority;

若为非法开锁者,同理地,ELMS也拒绝来自锁端的开锁申请,若为合法开锁者,则进一步验证开锁者与开锁事件、开锁时间的关联性、合法性;If it is an illegal unlocker, similarly, ELMS also rejects the unlocking application from the lock end. If it is a legal unlocker, it will further verify the relevance and legitimacy of the unlocker, the unlocking event, and the unlocking time;

③ELMS系统调用内置的“开锁验证算法”对特定开锁人员在特定时间内对特定锁具开锁事件的开锁许可合法性进行验证。③The ELMS system calls the built-in "unlocking verification algorithm" to verify the legality of the unlocking permission for a specific lock-unlocking event by a specific unlocking person within a specific time.

若验证结果为该特定开锁人员不具备在特定时间内对特定锁具的开锁权限许可,ELMS拒绝来自锁端的开锁申请;If the verification result is that the specific unlocker does not have the permission to unlock the specific lock within a specific time, ELMS rejects the unlock application from the lock end;

若验证结果为该特定开锁人员具备在特定时间内对特定锁具的开锁权限许可,即是开锁人员具备对开锁事件的合法性,ELMS则调用内置的加密处理算法,生成一个具备时效性的动态开锁码(一次性组合码:OTC)。If the verification result is that the specific unlocker has the permission to unlock the specific lock within a specific time, that is, the unlocker has the legitimacy of the unlocking event, and the ELMS calls the built-in encryption processing algorithm to generate a time-sensitive dynamic unlocking. code (one-time combined code: OTC).

(5)开锁码处理;(5) Unlock code processing;

ELMS从来自锁端的锁具信息中提取锁具的网络通信地址(IP及端口),把生成的开锁码(OTC)按锁具提供的网络通信地址准确地下发到锁具端。ELMS extracts the network communication address (IP and port) of the lock from the lock information from the lock end, and accurately sends the generated unlock code (OTC) to the lock end according to the network communication address provided by the lock.

(6)开、闭锁处理;(6) Open and lock processing;

锁具接收到来自ELMS的开锁码(OTC)后,通过内置解密算法对开锁码进行解密及密钥匹配,若密钥匹配验证成功,锁具自动开启,若密钥匹配失败,锁具提示非法开锁,并终止开锁流程。After the lock receives the unlock code (OTC) from ELMS, it decrypts the unlock code and matches the key through the built-in decryption algorithm. If the key matching verification is successful, the lock will be automatically opened. If the key matching fails, the lock will prompt illegal unlocking, and Terminate the unlocking process.

开锁任务完成后,锁具会执行自动落锁,并通过内置加密算法生成一个动态闭锁码,并自动回传给ELMS。After the unlocking task is completed, the lock will automatically lock, and a dynamic lock code will be generated through the built-in encryption algorithm and automatically sent back to the ELMS.

ELMS系统对闭锁码进行解密、闭锁确认,并结束整个开锁流程。The ELMS system decrypts the lock code, confirms the lock, and ends the entire unlocking process.

下面以具体实施例对本发明的系统的使用方法进行说明,在本实施例中,以“邮箱+邮箱密码”作为身份识别的单人开锁应用作为具体实施案例介绍该密码锁的开闭锁方法,具体包括:The method of using the system of the present invention will be described below with a specific embodiment. In this embodiment, a single-person unlocking application with "mailbox + mailbox password" as the identity identification is used as a specific implementation case to introduce the unlocking and locking method of the combination lock. include:

一、对锁具内置的物联网通信模块进行参数设置;1. Set the parameters of the built-in IoT communication module of the lock;

具体的,锁具在ELMS系统激活时,对锁具的物联网通信模块参数进行设置,请参照图4所示,图4示出了本发明一具体实施例提供的一种对锁具的物联网通信模块参数的设置示意图;Specifically, when the lock is activated by the ELMS system, the parameters of the Internet of Things communication module of the lock are set. Please refer to FIG. 4. FIG. 4 shows an Internet of Things communication module for the lock provided by a specific embodiment of the present invention. Schematic diagram of parameter setting;

其中,MAC为锁具的物理地址,Sever IP and port为ELMS系统服务器的IP及端口设置。指定ELMS的IP及端口,目的是让锁具知道与其信息交互的系统地址,限定其只能与ELMS系统单一通信,避免网络恶意攻击,提高锁具的安全性。Among them, MAC is the physical address of the lock, and Sever IP and port are the IP and port settings of the ELMS system server. The purpose of specifying the IP and port of the ELMS is to let the lock know the address of the system with which it interacts with its information, limit it to only a single communication with the ELMS system, avoid malicious network attacks, and improve the security of the lock.

设置锁具MAC地址,确保在ELMS系统上激活的每一把动态密码锁的MAC地址不相同,避免通信冲突。Set the MAC address of the lock to ensure that the MAC addresses of each dynamic combination lock activated on the ELMS system are different to avoid communication conflicts.

二、ELMS系统创建开锁任务、开锁计划或开锁授权。2. The ELMS system creates unlocking tasks, unlocking plans or unlocking authorizations.

请参照图5所示,图5示出了本发明一具体实施例提供的一种ELMS系统创建开锁任务、开锁计划或开锁授权的示意图;Please refer to FIG. 5, which shows a schematic diagram of creating an unlocking task, an unlocking plan or an unlocking authorization by an ELMS system provided by a specific embodiment of the present invention;

其中,开锁任务、开锁计划或开锁授权一般包括待开锁的锁具编号、开锁时间、开锁授权人员等信息。Among them, the unlocking task, the unlocking plan or the unlocking authorization generally includes information such as the number of the lock to be unlocked, the unlocking time, and the unlocking authorized personnel.

三、开锁人员匹配手持终端与智能锁端的Bluetooth连接。3. The unlocker matches the Bluetooth connection between the handheld terminal and the smart lock.

四、开锁人员身份信息输入及开锁申请。4. Input of the identity information of the unlocking personnel and application for unlocking.

如图6所示,图6示出了本发明具体实施例提供的一种开锁申请的示意图,开锁人员在手持终端单击开锁界面的“开锁身份信息输入”按钮,进入开锁人员身份信息输入。As shown in FIG. 6, FIG. 6 shows a schematic diagram of an unlocking application provided by a specific embodiment of the present invention. The unlocking personnel clicks the “unlocking identity information input” button on the unlocking interface on the handheld terminal to enter the unlocking personnel identity information input.

在本实施例中,输入的身份认证信息为邮箱和密码信息,如图7所示,图7示出了本发明具体实施例提供的一种身份信息认证示意图;In this embodiment, the input identity authentication information is mailbox and password information, as shown in FIG. 7 , which shows a schematic diagram of an identity information authentication provided by a specific embodiment of the present invention;

在开锁人员身份信息采集输入完毕后,按“确认”返回开锁的主界面,如图8所示,图8示出了本发明具体实施例提供的一种手持终端开锁申请的主界面示意图;After collecting and inputting the identity information of the unlocking personnel, press "Confirm" to return to the main interface of unlocking, as shown in Figure 8, which shows a schematic diagram of the main interface of a handheld terminal unlocking application provided by a specific embodiment of the present invention;

其中,开锁人员单击“开锁申请”按钮,手持终端把会把开锁人员信息通过Bluetooth方式传输给锁具,锁具调用内置加密算法,把开锁人员信息及锁具信息(锁具ID、锁具IP等必要信息)进行加密处理,生成一个动态随机码。Among them, the unlocker clicks the "unlock application" button, the handheld terminal will transmit the unlocker's information to the lock through Bluetooth, and the lock will call the built-in encryption algorithm, and the unlocker's information and lock information (lock ID, lock IP and other necessary information) Perform encryption processing to generate a dynamic random code.

动态随机码生成后,锁具根据预先设置的服务器通信地址,通过网络自动把随机码上传给ELMS系统,进行开锁申请。After the dynamic random code is generated, the lock automatically uploads the random code to the ELMS system through the network according to the preset server communication address to apply for unlocking.

五、ELMS系统收到来自锁端的开锁申请后,先调用ELMS系统内部的密钥解密算法对开锁申请的锁具信息解密处理,然后调用“开锁验证算法”对锁具开锁事件的合法性、开锁人员身份的合法性及开锁人员在特定时间内对锁具开锁事件权限的合法性进行综合性验证及判断。5. After the ELMS system receives the unlock application from the lock end, it first calls the key decryption algorithm inside the ELMS system to decrypt the lock information of the unlock application, and then calls the "unlock verification algorithm" to verify the legality of the lock unlock event and the identity of the unlocker. The legality of the lock and the legality of the unlocking personnel to comprehensively verify and judge the legality of the lock unlocking event authority within a specific time.

若上述开锁申请不通过开锁验证,ELMS系统会判断其为非法开锁申请操作,自动拒绝该开锁申请,并终止开锁申请流程;If the above unlocking application does not pass the unlocking verification, the ELMS system will determine that it is an illegal unlocking application operation, automatically reject the unlocking application, and terminate the unlocking application process;

若上述开锁申请通过开锁验证,ELMS系统会调用密钥加密算法,为开锁申请生成一个动态的开锁码(即一次性组合码:OTC),并自动把开锁码下发到锁具。If the above unlocking application passes the unlocking verification, the ELMS system will call the key encryption algorithm to generate a dynamic unlocking code (i.e. one-time combination code: OTC) for the unlocking application, and automatically issue the unlocking code to the lock.

然后,锁具调用内置的密钥解密算法对开锁码进行解密、匹配、验证,若验证结果为合法,锁具自动打开,若验证结果为“非法”,终止开锁程序。Then, the lock uses the built-in key decryption algorithm to decrypt, match and verify the unlock code. If the verification result is legal, the lock is automatically opened; if the verification result is "illegal", the unlocking procedure is terminated.

在开锁任务完毕后,开锁人员关闭保险柜门,动态密码锁自动执行落锁,并产生一个动态闭锁码,并将闭锁码上传给ELMS系统。After the unlocking task is completed, the unlocking personnel closes the safe door, and the dynamic combination lock automatically executes the lock, generates a dynamic lock code, and uploads the lock code to the ELMS system.

在ELMS系统收到闭锁码后,自动对闭锁码进行确认,结速开锁流程。After the ELMS system receives the blocking code, it will automatically confirm the blocking code and speed up the unlocking process.

实施例二:Embodiment 2:

请参照图9所示,图9示出了本发明的一种基于BT和IOT的动态密码锁开锁系统,包括智能锁、服务端和智能终端,所述智能锁与所述服务端通信连接,所述智能锁与所述智能终端通信连接;Please refer to Fig. 9, Fig. 9 shows a BT and IOT-based dynamic combination lock unlocking system of the present invention, including a smart lock, a server and a smart terminal, and the smart lock is connected in communication with the server, The smart lock is connected in communication with the smart terminal;

其中,所述智能锁用于与智能终端建立连接;接收用户通过智能终端输入的身份信息,并根据所述身份信息以及所述智能锁的第一标识符信息,生成动态验证信息;将所述动态验证信息发送至服务端;接收服务端在验证成功后发送的开锁信息并解析;根据所述智能锁的密钥对解析后的开锁信息进行验证,并在验证成功时执行开锁动作;Wherein, the smart lock is used to establish a connection with the smart terminal; receive the identity information input by the user through the smart terminal, and generate dynamic verification information according to the identity information and the first identifier information of the smart lock; The dynamic verification information is sent to the server; the unlocking information sent by the server after successful verification is received and parsed; the parsed unlocking information is verified according to the key of the smart lock, and the unlocking action is performed when the verification is successful;

所述智能终端用于预先设置开锁许可信息,接收智能锁发送的开锁申请和与所述开锁申请关联的动态验证信息,并对所述动态验证信息进行解析和编译,得到所述智能锁的第一标识符信息、身份信息和开锁时间信息;根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,并在验证成功后生成开锁信息发送至智能锁。The smart terminal is used to preset unlocking permission information, receive the unlocking application sent by the smart lock and the dynamic verification information associated with the unlocking application, parse and compile the dynamic verification information, and obtain the first information of the smart lock. Identifier information, identity information and unlocking time information; verify the first identifier information, identity information and unlocking time information according to the unlocking permission information, and generate unlocking information and send it to the smart lock after the verification is successful.

优选的,所述智能锁包括智能锁本体、物联网通信模块和蓝牙模块,所述智能锁通过物联网通信模块与所述服务端通信连接,所述智能锁通过所述蓝牙模块与所述智能终端通信连接。Preferably, the smart lock includes a smart lock body, an Internet of Things communication module and a Bluetooth module, the smart lock communicates with the server through the Internet of Things communication module, and the smart lock communicates with the smart lock through the Bluetooth module. Terminal communication connection.

在具体实施时,所述智能锁包括锁盘、锁体。手持终端(具备Bluetooth功能)。在上述实现过程中,通过在锁具上集成物联网通信模块,实现锁具与ELMS系统直接互连通信;通过锁具上集成Bluetooth模块,实现锁具与手持终端蓝牙连接。In a specific implementation, the smart lock includes a lock plate and a lock body. Handheld terminal (with Bluetooth function). In the above implementation process, by integrating the Internet of Things communication module on the lock, the direct interconnection and communication between the lock and the ELMS system are realized; by integrating the Bluetooth module on the lock, the Bluetooth connection between the lock and the handheld terminal is realized.

在本实施例中,在动态密码锁正式上线使用前,必须先对对其物联网通信模块的参数进行设定(如锁具的MAC信息,锁具需要访问的服务器通信地址:即ELMS系统的IP及端口)。In this embodiment, before the dynamic combination lock is officially put into use, the parameters of the Internet of Things communication module must be set (such as the MAC information of the lock, the communication address of the server that the lock needs to access: the IP address of the ELMS system and the port).

实施例三:Embodiment three:

图10为本申请实施例提供的一种电子设备的结构示意图,在本申请中可以通过图10所示的示意图来描述用于实现本申请实施例的本发明一种基于RFID和IOT的动态密码锁开锁方法的电子设备100。FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. In the present application, a dynamic password based on RFID and IOT of the present invention for implementing an embodiment of the present application can be described by the schematic diagram shown in FIG. 10 . The electronic device 100 of the lock-unlock method.

如图10所示的一种电子设备的结构示意图,电子设备100包括一个或多个处理器102、一个或多个存储装置104,这些组件通过总线系统和/或其它形式的连接机构(未示出)互连。应当注意,图10所示的电子设备100的组件和结构只是示例性的,而非限制性的,根据需要,所述电子设备可以具有图10示出的部分组件,也可以具有图10未示出的其他组件和结构。As shown in FIG. 10 is a schematic structural diagram of an electronic device, the electronic device 100 includes one or more processors 102 and one or more storage devices 104. These components are connected through a bus system and/or other forms of connection mechanisms (not shown). out) interconnection. It should be noted that the components and structures of the electronic device 100 shown in FIG. 10 are only exemplary and non-limiting, and the electronic device may have some of the components shown in FIG. 10 or not shown in FIG. 10 as required. other components and structures.

所述处理器102可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其它形式的处理单元,并且可以控制所述电子设备100中的其它组件以执行期望的功能。The processor 102 may be a central processing unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.

所述存储装置104可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序指令,处理器102可以运行所述程序指令,以实现下文所述的本申请实施例中(由处理器实现)的功能以及/或者其它期望的功能。在所述计算机可读存储介质中还可以存储各种应用程序和各种数据,例如所述应用程序使用和/或产生的各种数据等。The storage device 104 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and/or cache memory, or the like. The non-volatile memory may include, for example, read only memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 102 may execute the program instructions to implement the functions (implemented by the processor) in the embodiments of the present application described below and/or or other desired functions. Various application programs and various data, such as various data used and/or generated by the application program, etc. may also be stored in the computer-readable storage medium.

本发明还提供一种计算机存储介质,其上存储有计算机程序,本发明的方法如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在该计算机存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机存储介质不包括电载波信号和电信信号。The present invention also provides a computer storage medium on which a computer program is stored. If the method of the present invention is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the computer storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer storage medium, and the computer program is in the When executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer storage medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer storage medium does not include Electrical carrier signals and telecommunication signals.

对本领域的技术人员来说,可根据以上描述的技术方案以及构思,做出其它各种相应的改变以及形变,而所有的这些改变以及形变都应该属于本发明权利要求的保护范围之内。For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims (10)

1.一种基于BT和IOT的动态密码锁开锁方法,其特征在于,应用于服务端,包括以下步骤:1. a kind of dynamic combination lock unlocking method based on BT and IOT, is characterized in that, is applied to server, comprises the following steps: 预先设置开锁许可信息;Pre-set unlocking permission information; 接收智能锁发送的开锁申请和与所述开锁申请关联的动态验证信息,并对所述动态验证信息进行解析和编译,得到所述智能锁的第一标识符信息、身份信息和开锁时间信息;Receive the unlocking application sent by the smart lock and the dynamic verification information associated with the unlocking application, and parse and compile the dynamic verification information to obtain the first identifier information, identity information and unlocking time information of the smart lock; 根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,并在验证成功后生成开锁信息发送至智能锁,以使所述智能锁解析所述开锁信息并根据所述智能锁的密钥对解析后的所述开锁信息进行验证,在验证成功时执行开锁动作。The first identifier information, identity information and unlocking time information are verified according to the unlocking permission information, and after the verification is successful, unlocking information is generated and sent to the smart lock, so that the smart lock parses the unlocking information and according to The key of the smart lock verifies the parsed unlocking information, and performs the unlocking action when the verification is successful. 2.根据权利要求1所述的基于BT和IOT的动态密码锁开锁方法,其特征在于,所述根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,包括:2. The method for unlocking a dynamic combination lock based on BT and IOT according to claim 1, wherein the first identifier information, identity information and unlocking time information are verified according to the unlocking permission information, include: 所述开锁许可信息包括开锁任务信息、开锁计划信息和开锁授权信息;确认所述第一标识符信息对应的智能锁在所述开锁时间内,是否存储开锁任务信息、开锁计划信息和开锁授权信息;若存在,则根据所述开锁授权信息确认所述身份信息是否合法;若合法,则根据所述开锁任务信息、开锁计划信息和开锁授权信息确认所述身份信息对应的用户在所述开锁时间内是否具备对所述第一标识符信息对应的智能锁的开锁权限,若具备,则判定验证通过。The unlocking permission information includes unlocking task information, unlocking plan information and unlocking authorization information; confirm whether the smart lock corresponding to the first identifier information stores the unlocking task information, unlocking plan information and unlocking authorization information within the unlocking time. If there is, then confirm whether the identity information is legal according to the unlocking authorization information; if legal, then confirm that the user corresponding to the identity information is in the unlocking time according to the unlocking task information, the unlocking plan information and the unlocking authorization information. Whether it has the unlocking authority for the smart lock corresponding to the first identifier information, if yes, it is determined that the verification is passed. 3.根据权利要求1所述的基于BT和IOT的动态密码锁开锁方法,其特征在于,所述根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,包括:3. the dynamic combination lock unlocking method based on BT and IOT according to claim 1, is characterized in that, described according to described unlocking permission information, described first identifier information, identity information and unlocking time information are verified, include: 所述开锁许可信息包括智能锁的第二标识符信息,以及允许智能锁开锁的时间范围信息和授权信息;结合所述第二标识符信息,以及允许智能锁开锁的时间范围信息和授权信息,对所述第一标识符信息、身份信息和开锁时间信息进行验证,在根据所述第二标识符信息确认所述智能锁的第一标识符信息正确,且根据所述授权信息确认所述身份信息合法,以及所述开锁时间信息位于所述时间范围内时,判定验证通过。The unlocking permission information includes second identifier information of the smart lock, and time range information and authorization information that allow the smart lock to unlock; combined with the second identifier information, and the time range information and authorization information that allow the smart lock to unlock, Verifying the first identifier information, identity information and unlocking time information, confirming that the first identifier information of the smart lock is correct according to the second identifier information, and confirming the identity according to the authorization information When the information is legal and the unlocking time information is within the time range, it is determined that the verification is passed. 4.根据权利要求1所述的基于BT和IOT的动态密码锁开锁方法,其特征在于,所述动态验证信息包括动态随机码,所述开锁信息包括设定时效的动态开锁码。4 . The method for unlocking a dynamic combination lock based on BT and IOT according to claim 1 , wherein the dynamic verification information includes a dynamic random code, and the unlocking information includes a dynamic unlock code with a set time limit. 5 . 5.一种基于BT和IOT的动态密码锁开锁方法,其特征在于,应用于智能锁,包括以下步骤:5. a kind of dynamic combination lock unlocking method based on BT and IOT, is characterized in that, is applied to intelligent lock, comprises the following steps: 与智能终端建立连接;Establish a connection with a smart terminal; 接收用户通过智能终端输入的身份信息,并根据所述身份信息以及所述智能锁的第一标识符信息,生成动态验证信息;Receive the identity information input by the user through the intelligent terminal, and generate dynamic verification information according to the identity information and the first identifier information of the intelligent lock; 将所述动态验证信息发送至服务端,以使所述服务端解析所述动态验证信息并编译得到智能锁的第一标识符信息、身份信息和开锁时间信息,以及以使所述服务端根据预先设置的开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证;Send the dynamic verification information to the server, so that the server parses the dynamic verification information and compiles the first identifier information, identity information and unlocking time information of the smart lock, and makes the server according to The preset unlocking permission information verifies the first identifier information, identity information and unlocking time information; 接收服务端在验证成功后发送的开锁信息并解析;Receive and parse the unlocking information sent by the server after successful verification; 根据所述智能锁的密钥对解析后的开锁信息进行验证,并在验证成功时执行开锁动作。The parsed unlocking information is verified according to the key of the smart lock, and the unlocking action is performed when the verification is successful. 6.根据权利要求5所述的基于BT和IOT的动态密码锁开锁方法,其特征在于,所述并在验证成功时执行开锁动作步骤后,还包括:6. The dynamic combination lock unlocking method based on BT and IOT according to claim 5, is characterized in that, after described and performing the unlocking action step when the verification is successful, also comprises: 执行关锁动作,并生成动态闭锁信息发送至服务端,以使所述服务端对所述动态闭锁信息进行确认。The locking action is performed, and dynamic locking information is generated and sent to the server, so that the server confirms the dynamic locking information. 7.一种基于BT和IOT的动态密码锁开锁系统,其特征在于,包括智能锁、服务端和智能终端,所述智能锁与所述服务端通信连接,所述智能锁与所述智能终端通信连接;7. A dynamic combination lock unlocking system based on BT and IOT, characterized in that it comprises a smart lock, a server and a smart terminal, the smart lock is communicatively connected with the server, and the smart lock is connected to the smart terminal communication connection; 其中,所述智能锁用于与智能终端建立连接;接收用户通过智能终端输入的身份信息,并根据所述身份信息以及所述智能锁的第一标识符信息,生成动态验证信息;将所述动态验证信息发送至服务端;接收服务端在验证成功后发送的开锁信息并解析;根据所述智能锁的密钥对解析后的开锁信息进行验证,并在验证成功时执行开锁动作;Wherein, the smart lock is used to establish a connection with the smart terminal; receive the identity information input by the user through the smart terminal, and generate dynamic verification information according to the identity information and the first identifier information of the smart lock; The dynamic verification information is sent to the server; the unlocking information sent by the server after successful verification is received and parsed; the parsed unlocking information is verified according to the key of the smart lock, and the unlocking action is performed when the verification is successful; 所述智能终端用于预先设置开锁许可信息,接收智能锁发送的开锁申请和与所述开锁申请关联的动态验证信息,并对所述动态验证信息进行解析和编译,得到所述智能锁的第一标识符信息、身份信息和开锁时间信息;根据所述开锁许可信息对所述第一标识符信息、身份信息和开锁时间信息进行验证,并在验证成功后生成开锁信息发送至智能锁。The smart terminal is used to preset unlocking permission information, receive the unlocking application sent by the smart lock and the dynamic verification information associated with the unlocking application, parse and compile the dynamic verification information, and obtain the first information of the smart lock. Identifier information, identity information and unlocking time information; verify the first identifier information, identity information and unlocking time information according to the unlocking permission information, and generate unlocking information and send it to the smart lock after the verification is successful. 8.根据权利要求7所述的基于BT和IOT的动态密码锁开锁系统,其特征在于,所述智能锁包括智能锁本体、物联网通信模块和蓝牙模块,所述智能锁通过物联网通信模块与所述服务端通信连接,所述智能锁通过所述蓝牙模块与所述智能终端通信连接。8. The dynamic combination lock unlocking system based on BT and IOT according to claim 7, wherein the smart lock comprises a smart lock body, an Internet of Things communication module and a Bluetooth module, and the smart lock passes through the Internet of Things communication module It is communicatively connected with the server, and the smart lock is communicatively connected with the smart terminal through the Bluetooth module. 9.一种电子设备,其特征在于,包括:至少一个处理器,以及与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-6任一项所述的基于BT和IOT的动态密码锁开锁方法。9. An electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, The instructions are executed by the at least one processor, so that the at least one processor can execute the BT and IOT-based dynamic combination lock unlocking method according to any one of claims 1-6. 10.一种计算机存储介质,其上存储有计算机程序,其特征在于,所述计算机程序在被处理器执行时,实现权利要求1-6任一项所述的基于BT和IOT的动态密码锁开锁方法。10. A computer storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, realizes the dynamic combination lock based on BT and IOT according to any one of claims 1-6 unlock method.
CN202210803648.7A 2022-07-07 2022-07-07 BT and IOT based dynamic coded lock unlocking method and system Pending CN115171252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210803648.7A CN115171252A (en) 2022-07-07 2022-07-07 BT and IOT based dynamic coded lock unlocking method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210803648.7A CN115171252A (en) 2022-07-07 2022-07-07 BT and IOT based dynamic coded lock unlocking method and system

Publications (1)

Publication Number Publication Date
CN115171252A true CN115171252A (en) 2022-10-11

Family

ID=83493345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210803648.7A Pending CN115171252A (en) 2022-07-07 2022-07-07 BT and IOT based dynamic coded lock unlocking method and system

Country Status (1)

Country Link
CN (1) CN115171252A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118334783A (en) * 2024-05-14 2024-07-12 深圳市智汇安行科技有限公司 Control method, device, equipment and storage medium of intelligent electronic lock

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103971435A (en) * 2014-05-22 2014-08-06 广东欧珀移动通信有限公司 Unlocking method, server, mobile terminal, electronic lock and unlocking system
CN109785477A (en) * 2018-12-13 2019-05-21 深圳市海云天科技股份有限公司 A kind of method for unlocking and intelligent secrecy box of intelligence secrecy box
CN112002043A (en) * 2020-09-03 2020-11-27 云南电网有限责任公司信息中心 Intelligent lock control method and system based on NB-IOT
CN113140056A (en) * 2020-12-28 2021-07-20 上海安威士科技股份有限公司 Intelligent lock management system for wireless communication
CN113808305A (en) * 2021-09-02 2021-12-17 广州广电运通金融电子股份有限公司 Coded lock system, coded lock opening and closing method and storage medium
CN114550353A (en) * 2022-02-24 2022-05-27 广东电网有限责任公司 Intelligent lock control system of transformer substation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103971435A (en) * 2014-05-22 2014-08-06 广东欧珀移动通信有限公司 Unlocking method, server, mobile terminal, electronic lock and unlocking system
CN109785477A (en) * 2018-12-13 2019-05-21 深圳市海云天科技股份有限公司 A kind of method for unlocking and intelligent secrecy box of intelligence secrecy box
CN112002043A (en) * 2020-09-03 2020-11-27 云南电网有限责任公司信息中心 Intelligent lock control method and system based on NB-IOT
CN113140056A (en) * 2020-12-28 2021-07-20 上海安威士科技股份有限公司 Intelligent lock management system for wireless communication
CN113808305A (en) * 2021-09-02 2021-12-17 广州广电运通金融电子股份有限公司 Coded lock system, coded lock opening and closing method and storage medium
CN114550353A (en) * 2022-02-24 2022-05-27 广东电网有限责任公司 Intelligent lock control system of transformer substation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118334783A (en) * 2024-05-14 2024-07-12 深圳市智汇安行科技有限公司 Control method, device, equipment and storage medium of intelligent electronic lock
CN118334783B (en) * 2024-05-14 2024-11-26 深圳市智汇安行科技有限公司 Control method, device, equipment and storage medium of intelligent electronic lock

Similar Documents

Publication Publication Date Title
CN110213246B (en) Wide-area multi-factor identity authentication system
CN110149328B (en) Interface authentication method, device, equipment and computer readable storage medium
CN111931144B (en) Unified safe login authentication method and device for operating system and service application
CN112330855B (en) Electronic lock safety management method, equipment and system
CN105827573B (en) System, method and the relevant apparatus of internet of things equipment strong authentication
CN107733636B (en) Authentication method and authentication system
CN104202338A (en) Secure access method applicable to enterprise-level mobile applications
WO2018187960A1 (en) Method and system for managing and controlling root permission
JP2017152880A (en) Authentication system, key processing coordination method, and key processing coordination program
WO2016070611A1 (en) Method for processing data, server and terminal
CN114598501A (en) Data processing method and device based on Internet of things
CN112862487A (en) Digital certificate authentication method, equipment and storage medium
CN115171252A (en) BT and IOT based dynamic coded lock unlocking method and system
CN115131901A (en) Dynamic coded lock unlocking method and system based on RFID and IOT
CN104753886A (en) Locking method for remote user, unlocking method and device
CN112261008A (en) A temporary token-based authentication method, client, and server
CN115334505B (en) Multi-mode intelligent terminal secure communication method and system for 5G+Beidou
CN114615309B (en) Client access control method, device, system, electronic equipment and storage medium
CN113297563B (en) Method and device for accessing system-on-chip privileged resources, and system-on-chip
CN114885326A (en) Bank mobile operation safety protection method, device and storage medium
CN115063910A (en) Online locking and unlocking method, dynamic coded lock, system and storage medium
CN115022064A (en) Private work network encrypted access method and device
CN118174874B (en) A unified authentication token generation method and device
CN115913696B (en) Virtual network zero trust access control method, device, equipment and medium
CN119562255A (en) Authority control method, remote service platform, target vehicle and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20221011

RJ01 Rejection of invention patent application after publication