CN101216959A - Electronic lock management system - Google Patents
Electronic lock management system Download PDFInfo
- Publication number
- CN101216959A CN101216959A CNA2008100194707A CN200810019470A CN101216959A CN 101216959 A CN101216959 A CN 101216959A CN A2008100194707 A CNA2008100194707 A CN A2008100194707A CN 200810019470 A CN200810019470 A CN 200810019470A CN 101216959 A CN101216959 A CN 101216959A
- Authority
- CN
- China
- Prior art keywords
- electronic lock
- key
- electronic
- lock
- management
- 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.)
- Granted
Links
Images
Landscapes
- Lock And Its Accessories (AREA)
Abstract
电子锁管理系统,其特征是其主站系统为一个数据库服务器及一组网络工作站组成,以数据库服务器记录开锁过程、保存电子钥匙的开锁权限、保存管理部门的机构及人员信息,并存放电子锁、电子钥匙的各类参数;数据库服务器与一组网络工作站组成网络系统;网络工作站放置系统管理软件,管理软件提供对组织机构的管理、电子锁初始化设置、电子钥匙初始化设置、电子钥匙权限管理、电子钥匙开锁过程管理;网络工作站用于读取电子锁用电子钥匙中的信息或下载信息至电子锁及电子钥匙中。本发明系统在满足对电子锁开锁过程的管理的情况下,电子锁无需连网,系统成本、功耗小。
The electronic lock management system is characterized in that its main station system is composed of a database server and a group of network workstations. The database server records the unlocking process, saves the unlocking authority of the electronic key, saves the organization and personnel information of the management department, and stores the electronic lock. , various parameters of the electronic key; the database server and a group of network workstations form a network system; the network workstation is placed with system management software, and the management software provides organization management, electronic lock initialization settings, electronic key initialization settings, electronic key authority management, Electronic key unlocking process management; the network workstation is used to read the information in the electronic key for the electronic lock or download the information to the electronic lock and the electronic key. Under the condition that the system of the invention satisfies the management of the unlocking process of the electronic lock, the electronic lock does not need to be connected to a network, and the system cost and power consumption are small.
Description
技术领域technical field
本发明涉及电子锁管理系统,更具体地说是一种应用在电力系统各类电能计量箱或开关柜中,需要记录开启、关闭柜门的时间,以及对钥匙使用人员的权限进行管理的电子锁管理系统,也包括用于其他重要场合中的箱门管理。The present invention relates to an electronic lock management system, more specifically an electronic lock management system that is used in various electric energy metering boxes or switch cabinets in power systems and needs to record the time of opening and closing the cabinet door and manage the authority of key users. Lock management system, also includes door management for other important occasions.
背景技术Background technique
电子锁已经得到广泛使用,目前的电子锁一般均包括电子控制装置和机械锁部分,电子控制装置通过识别钥匙芯片的ID,对通过的ID发出开锁指令再通过人力或电机驱动方式打开锁具,对没有通过的则拒发开锁指令。这种电子锁存在以下缺陷,一是一把钥匙只能开一把锁,二是不能记录和查询开锁时间、次数和开锁人,三是内部电源一直处于使用状态,功耗较高。Electronic locks have been widely used. The current electronic locks generally include an electronic control device and a mechanical lock part. The electronic control device issues an unlock command to the passed ID by identifying the ID of the key chip, and then opens the lock by manpower or motor drive. If it is not passed, the unlocking instruction will be refused. This electronic lock has the following defects, one is that one key can only open one lock, the other is that the unlocking time, number of times and the unlocker cannot be recorded and inquired, and the third is that the internal power supply is always in use and the power consumption is relatively high.
已有的电子锁管理系统也有很多,主要类似于宾馆中的客房门管理系统,但这种管理系统中的电子锁需要在锁控部分提供电源,如果电源失效,将无法开门。这类锁要物理地连接成一个网络,由主站进行管理。钥匙不具备分析处理功能,只是一个存储体,控制分析处理均由锁控部分管理,安全性有一定的限制。当锁具分散在不同地区使用时,对锁的管理维护困难,且无法以物理方式联网。There are also many existing electronic lock management systems, which are mainly similar to the guest room door management systems in hotels, but the electronic locks in this management system need to provide power in the lock control part. If the power fails, the door cannot be opened. Such locks should be physically connected into a network and managed by the master station. The key does not have the function of analysis and processing, it is just a storage body, and the control analysis and processing are all managed by the lock control part, so the security has certain restrictions. When the locks are scattered in different regions, it is difficult to manage and maintain the locks, and they cannot be physically networked.
在供电企业中,对电能计量箱的开启、关闭情况没有一种有效的监控手段,无法准确掌握和控制电能计量箱开、关过程中的人员、时间、次数等信息。在对抄表、故障抢修到达现场时限及其它现场服务信息统计时没有可靠的依据,在发生服务事故时,如工作人员帮助客户窃电情况下,难以查找责任人。目前供电企业对电能计量箱钥匙采用专人统一保管的方式,由于电能计量箱数量极大,导致钥匙数量、规格相应较多,发放钥匙的过程占用了较多的时间,在管理上经常发生差错。现有计量箱的挂锁实行分台区分锁号使用,须向厂家定制,同时由于各台区计量箱的数量不一致或因台区改造,常出现按台区分配的锁不够或多余的情况,给现场使用造成混乱。由于钥匙的数量是有限的,当发生多个工作人员在需要领取同一编号的钥匙时,会有钥匙不够的情况。钥匙有丢失等情况时,相同编号的几十套锁具需要全部更换。传统计量箱的挂锁由于无防雨装置,数月后很快锈蚀,导致无法开门。In the power supply enterprises, there is no effective monitoring method for the opening and closing of the electric energy metering box, and it is impossible to accurately grasp and control the personnel, time, frequency and other information during the opening and closing of the electric energy metering box. There is no reliable basis for statistics on meter reading, time limit for emergency repair to the scene and other on-site service information. When a service accident occurs, such as a staff member helping a customer steal electricity, it is difficult to find the responsible person. At present, power supply enterprises adopt the method of unified storage of the keys of the electric energy metering boxes. Due to the large number of electric energy metering boxes, the number and specifications of the keys are correspondingly large. The process of issuing keys takes up a lot of time and often makes mistakes in management. The padlocks of the existing metering boxes are used by different stations and different lock numbers, and must be customized from the manufacturer. At the same time, due to the inconsistency in the number of metering boxes in each station or the transformation of the station, there are often insufficient or redundant locks allocated according to the station. Field use creates confusion. Since the number of keys is limited, when multiple staff members need to receive the same numbered key, there will be insufficient keys. When the key is lost or the like, dozens of sets of locks with the same number need to be replaced. The padlock of the traditional metering box has no rainproof device, and it will rust quickly after a few months, making it impossible to open the door.
发明内容Contents of the invention
本发明是为避免上述现有技术所存的不足之处,提供一种电子锁管理系统。该系统能够获取开锁记录;一把电子钥匙开多个锁;电子钥匙遗失后,其开锁功能将失效;在满足对电子锁开锁过程的管理的情况下,电子锁也无需连网,减少网络建设费用,降低系统成本;同时降低系统整体功耗。The present invention provides an electronic lock management system in order to avoid the disadvantages of the above-mentioned prior art. The system can obtain unlocking records; one electronic key can open multiple locks; if the electronic key is lost, its unlocking function will be invalid; in the case of satisfying the management of the electronic lock unlocking process, the electronic lock does not need to be connected to the network, reducing network construction Cost, reduce system cost; reduce the overall power consumption of the system at the same time.
本发明解决技术问题所采用的技术方案是:The technical scheme that the present invention solves technical problem adopts is:
本发明电子锁管理系统的特点是所述系统包括主站系统、电子锁接口电路、电子钥匙接口电路、电子锁锁控电路及电子钥匙电路;所述主站系统为一个数据库服务器及一组网络工作站组成,以所述数据库服务器记录开锁过程、保存电子钥匙的开锁权限、保存管理部门的机构及人员信息,并存放电子锁、电子钥匙的各类参数,包括电子锁的ID号、电子钥匙的ID号、电子锁的密码集合;所述数据库服务器与一组网络工作站组成网络系统;所述网络工作站放置系统管理软件,管理软件提供对组织机构的管理、电子锁初始化设置、电子钥匙初始化设置、电子钥匙权限管理、电子钥匙开锁过程管理;网络工作站通过USB接口与电子锁接口电路连接,用于读取电子锁中的信息或下载信息至电子锁中;网络工作站通过USB接口与电子钥匙接口电路连接,用于读取电子钥匙中的信息或下载信息至电子钥匙中。The electronic lock management system of the present invention is characterized in that the system includes a master station system, an electronic lock interface circuit, an electronic key interface circuit, an electronic lock control circuit and an electronic key circuit; the master station system is a database server and a group of network Composed of workstations, the database server is used to record the unlocking process, save the unlocking authority of the electronic key, save the organization and personnel information of the management department, and store various parameters of the electronic lock and the electronic key, including the ID number of the electronic lock and the ID number of the electronic key. The password set of ID number, electronic lock; Described database server and a group of network workstations form network system; Described network workstation places system management software, and management software provides organization management, electronic lock initialization setting, electronic key initialization setting, Electronic key authority management, electronic key unlocking process management; the network workstation is connected to the electronic lock interface circuit through the USB interface, used to read the information in the electronic lock or download information to the electronic lock; the network workstation is connected to the electronic key interface circuit through the USB interface Connection, used to read the information in the electronic key or download the information to the electronic key.
本发明系统的结构特点也在于:The structural features of the system of the present invention are also:
所述电子锁接口电路包括设置一个USB至232转接芯片U8,将所述转接芯片U8的接收及发送串口线并接,作为信息输入输出端,同时USB接口J2提供5V电源,所述5V电源、信息输入输出端和地线构成与电子锁连接的三芯接口J1,以所述三芯接口J1收发电子锁的信息。The electronic lock interface circuit includes setting a USB to 232 adapter chip U8, connecting the receiving and sending serial lines of the adapter chip U8 in parallel as information input and output terminals, and the USB interface J2 provides 5V power supply simultaneously, and the 5V The power supply, the information input and output terminals and the ground wire form a three-core interface J1 connected to the electronic lock, and the information of the electronic lock is sent and received through the three-core interface J1.
所述电子钥匙接口电路包括设置一个USB至232转接芯片U9,将转接芯片U9的接收及发送串口线并接作为信息输入输出端,所述信息输入输出端和地线构成与电子钥匙连接的二芯接口J3,由串口线启动电子钥匙电路,并收发电子钥匙的信息。The electronic key interface circuit includes setting a USB to 232 adapter chip U9, connecting the receiving and sending serial lines of the adapter chip U9 in parallel as the information input and output terminals, and the information input and output terminals and the ground wire form a connection with the electronic key. The two-core interface J3 of the serial port line starts the electronic key circuit, and sends and receives the information of the electronic key.
所述电子锁锁控电路中,设置一微处理器U1,微处理器U1使用环接的串口线作为信息输入输出端,以所述串口线与电子钥匙连接,接收钥匙芯片的命令帧;微处理器U1以总线方式I2C与存储器U2连接,处理后的数据存入存储器U2;微处理器U1以I2C总线方式与时钟芯片U3连接;微处理器U1与电池电压监测芯片U0连接;微处理器U1的输出信号端与机械锁具的控制器接口OUT-S相连接。In the electronic lock control circuit, a microprocessor U1 is set, and the microprocessor U1 uses a ring-connected serial port line as an information input and output terminal, connects the electronic key with the serial port line, and receives the command frame of the key chip; The processor U1 is connected to the memory U2 through the I 2 C bus, and the processed data is stored in the memory U2; the microprocessor U1 is connected to the clock chip U3 through the I 2 C bus; the microprocessor U1 is connected to the battery voltage monitoring chip U0 ; The output signal end of the microprocessor U1 is connected with the controller interface OUT-S of the mechanical lock.
所述钥匙电路中设置微处理器U5,微处理器U5使用环接的串口线作为信息输入输出,以所述串口线与电子锁锁控电路连接,微处理器U5以总线方式I2C与数据存储器U6连接,处理后的数据放入数据存储器U6;钥匙设置一启动电路和电源,启动电路与电子锁管控电路接触后,获得高电平,并开启钥匙电源,微处理器U5启动后将电源启动电路进行自保持。A microprocessor U5 is set in the key circuit, and the microprocessor U5 uses a ring-connected serial line as information input and output, and is connected with the electronic lock control circuit with the serial line, and the microprocessor U5 communicates with the electronic lock in a bus mode I 2 C The data memory U6 is connected, and the processed data is put into the data memory U6; the key is provided with a starting circuit and a power supply, and after the starting circuit contacts with the electronic lock control circuit, a high level is obtained, and the key power supply is turned on, and the microprocessor U5 will be turned on after starting. The power-on circuit performs self-holding.
本发明利用服务器及工作站构建电子锁管理系统,可以实现如下多种功能:The present invention utilizes the server and the workstation to construct the electronic lock management system, which can realize the following multiple functions:
实现对电子锁的初始化设置及各类运行参数的更新和维护;Realize the initialization setting of the electronic lock and the update and maintenance of various operating parameters;
实现对电子钥匙的初始化设置、权限管理、开锁记录采集;Realize the initialization setting of electronic keys, authority management, and unlocking record collection;
通过电子钥匙对电子锁进行运行参数的管理,从而体现了电子锁不用物理联网即可由主站进行管理;The operating parameters of the electronic lock are managed through the electronic key, which reflects that the electronic lock can be managed by the master station without physical networking;
使用低功耗的电子锁锁具,锁的控制电源由电子钥匙提供,简洁的钥匙电路和低能耗大大减小了电子钥匙的体积;The electronic lock with low power consumption is used, and the control power of the lock is provided by the electronic key. The simple key circuit and low energy consumption greatly reduce the size of the electronic key;
通过电子钥匙接口电路授予电子钥匙开关电子锁的权限,包括电子锁的锁号、时间段、次数等,由此可做到一把电子钥匙开多把电子锁,方便了对钥匙的集中管理。Through the electronic key interface circuit, the electronic key is authorized to switch the electronic lock, including the lock number, time period, and frequency of the electronic lock, so that one electronic key can open multiple electronic locks, which facilitates the centralized management of keys.
电子钥匙遗失后,在时效范围之外,电子钥匙的功能将会失效。After the electronic key is lost, the function of the electronic key will become invalid outside the scope of limitation.
与已有技术相比,本发明的有益效果体现在:Compared with the prior art, the beneficial effects of the present invention are reflected in:
1、本发明系统可以利用主站通过电子钥匙获取电子锁的开锁记录。1. The system of the present invention can use the master station to obtain the unlocking record of the electronic lock through the electronic key.
2、本发明系统中一把电子钥匙可以开多个锁,方便了钥匙的管理。2. One electronic key can open multiple locks in the system of the present invention, which facilitates the management of keys.
3、本发明系统中电子钥匙遗失后,在一定条件下,电子钥匙的功能将会失效。3. After the electronic key is lost in the system of the present invention, under certain conditions, the function of the electronic key will become invalid.
4、本发明系统即满足了对电子锁开锁过程的管理,同时电子锁也无需连网,减少网络建设费用,降低系统成本。4. The system of the present invention satisfies the management of the unlocking process of the electronic lock, and at the same time, the electronic lock does not need to be connected to the network, which reduces network construction costs and system costs.
5、本发明通讯接口的设置使相关数据可以进行事后检索查询及实时查询。5. The setting of the communication interface of the present invention enables related data to be retrieved and inquired after the event and in real time.
6、本发明在锁具不动作时,系统不耗电,电子钥匙插入锁具时,由电子钥匙提供锁具电源,同时电子钥匙离开锁具后,电子钥匙也不耗电,有效降低整体功耗。6. When the lock is not in action, the system does not consume power. When the electronic key is inserted into the lock, the electronic key provides the lock power supply. At the same time, after the electronic key leaves the lock, the electronic key does not consume power, which effectively reduces the overall power consumption.
7、本发明因功耗低,电子钥匙可以使用钮扣电池做为电源,同时简洁的钥匙电路,可以大大减小电子钥匙的体积。7. Due to the low power consumption of the present invention, the electronic key can use a button battery as a power source, and at the same time, the simple key circuit can greatly reduce the volume of the electronic key.
附图说明Description of drawings
图1为本发明系统构成方框图。Fig. 1 is a block diagram of the system of the present invention.
图2为本发明电子锁接口电路原理图。Fig. 2 is a schematic diagram of the interface circuit of the electronic lock of the present invention.
图3为本发明电子钥匙接口电路原理图。Fig. 3 is a schematic diagram of the electronic key interface circuit of the present invention.
图4为本发明电子锁管控电路原理图。Fig. 4 is a schematic diagram of the control circuit of the electronic lock of the present invention.
图5为本发明电子钥匙电路原理图。Fig. 5 is a schematic diagram of the electronic key circuit of the present invention.
图6为本发明工作站对电子锁的参数设置过程。Fig. 6 shows the parameter setting process of the electronic lock by the workstation of the present invention.
图7为本发明工作站对电子钥匙的参数设置过程。Fig. 7 shows the parameter setting process of the electronic key by the workstation of the present invention.
图8为本发明工作站对电子钥匙进行权限设置及读取电子钥匙的开锁记录过程。Fig. 8 shows the process of setting the authority of the electronic key and reading the unlocking record of the electronic key by the workstation of the present invention.
图9为本发明电子钥匙的开锁过程。Fig. 9 is the unlocking process of the electronic key of the present invention.
以下通过具体实施方式,结合附图对本发明作进一步说明:Below by specific embodiment, the present invention will be further described in conjunction with accompanying drawing:
具体实施方式Detailed ways
关于系统构成:About the system composition:
参见图1,设置由主站系统、电子锁接口电路、电子钥匙接口电路、电子锁锁控电路及电子钥匙电路构成的电子锁管理系统;Referring to Fig. 1, an electronic lock management system composed of a master station system, an electronic lock interface circuit, an electronic key interface circuit, an electronic lock control circuit and an electronic key circuit is set;
关于主站系统:About the master station system:
图1中所示,主站系统为一个数据库服务器及一组网络工作站组成,数据库服务器用于记录开锁过程,保存电子钥匙的开锁权限,保存管理部门的机构及人员信息,并用于存放电子锁、电子钥匙的各类参数,包括电子锁的ID号、电子钥匙的ID号、电子锁的密码集合;所述数据库服务器与网络系统相连,并与一组网络工作站组成一个网络系统;网络工作站放置系统管理软件,管理软件提供对组织机构的管理、电子锁初始化设置、电子钥匙初始化设置、电子钥匙权限管理、电子钥匙开锁过程管理;网络工作站通过USB接口与电子锁接口电路连接,用于读取电子锁中的信息或下载信息至电子锁中;网络工作站通过USB接口与电子钥匙接口电路连接,用于读取电子钥匙中的信息或下载信息至电子钥匙中。As shown in Figure 1, the master station system is composed of a database server and a group of network workstations. The database server is used to record the unlocking process, save the unlocking authority of the electronic key, save the organization and personnel information of the management department, and store the electronic lock, Various parameters of the electronic key, including the ID number of the electronic lock, the ID number of the electronic key, and the password set of the electronic lock; the database server is connected to the network system and forms a network system with a group of network workstations; the network workstation placement system Management software, the management software provides organization management, electronic lock initialization setting, electronic key initialization setting, electronic key authority management, electronic key unlocking process management; the network workstation is connected with the electronic lock interface circuit through the USB interface, and is used to read the electronic key. The information in the lock or download information to the electronic lock; the network workstation is connected with the electronic key interface circuit through the USB interface, and is used to read the information in the electronic key or download the information to the electronic key.
关于电子锁接口电路:About the electronic lock interface circuit:
参见图2,电子锁接口电路的转接芯片U8采用CH341T,电容C13用于CH341T的内部电源节点退耦,电容C12用于CH341T的外部电源退耦,电容C14、C11及电感UL1组成滤波电路,晶振Y2及C15向CH341T提供时钟信号,电阻R11和R12起限流作用,CH341T通过限流电阻并接后提供通讯信号。电子锁接口电路向锁提供三芯接口J1,即信号地线(J1的第1脚)、信号线(J1的第3脚)和+5V电源线(J1的第2脚),J2是USB接口。See Figure 2, the adapter chip U8 of the electronic lock interface circuit uses CH341T, the capacitor C13 is used for decoupling the internal power node of CH341T, the capacitor C12 is used for decoupling the external power supply of CH341T, capacitors C14, C11 and inductor UL1 form a filter circuit, Crystal oscillator Y2 and C15 provide clock signals to CH341T, resistors R11 and R12 play the role of current limiting, and CH341T provides communication signals through parallel connection of current limiting resistors. The electronic lock interface circuit provides a three-core interface J1 to the lock, namely the signal ground wire (the first pin of J1), the signal wire (the third pin of J1) and the +5V power line (the second pin of J1), and J2 is the USB interface .
关于电子钥匙接口电路:About the electronic key interface circuit:
参见图3,电子钥匙接口电路的转接芯片U9为CH341T,电容C18用于CH341T的内部电源节点退耦,电容C17用于CH341T的外部电源退耦,电容C19、C16及电感UL2组成滤波电路,晶振Y3及C20向CH341T提供时钟信号,电阻R13和R14起限流作用,CH341T通过限流电阻并接后提供通讯信号。电子钥匙接口电路仅向钥匙提供二芯接口J3,即信号地线(J3的第1脚)和信号线(J3的第3脚),J4是USB接口。Referring to Figure 3, the adapter chip U9 of the electronic key interface circuit is CH341T, capacitor C18 is used for decoupling the internal power node of CH341T, capacitor C17 is used for decoupling the external power supply of CH341T, capacitors C19, C16 and inductor UL2 form a filter circuit, Crystal oscillator Y3 and C20 provide clock signals to CH341T, resistors R13 and R14 play the role of current limiting, and CH341T provides communication signals through parallel connection of current limiting resistors. The electronic key interface circuit only provides the key with a two-core interface J3, namely the signal ground wire (the first pin of J3) and the signal wire (the third pin of J3), and J4 is the USB interface.
关于锁控电路:About the lock control circuit:
参见图4,电子锁锁控电路的微处理器U1采用P89LPC922,数据存储器U2采用24C256WI,时钟芯片U3为8563T,电池电压监测芯片U0采用BL8506。所述的微处理器的4脚通过电阻R3接3.3V电源,5脚接地,9脚接存储器5脚,10脚接存储器6脚,11、12脚并连后接电子锁接口IN-YS的3脚,13脚接锁具控制接口OUT-S的1脚,14脚接锁具控制接口OUT-S的3脚,15脚接3.3V电源,16脚接电池电压监测芯片的1脚,18脚和锁具控制接口OUT-S的2脚并连后通过电阻R4接3.3V电源。微处理器CPU、存储器及时钟芯片均通过上拉电阻R5、R6以I2C总线方式连接通信。Referring to Fig. 4, the microprocessor U1 of the electronic lock control circuit adopts P89LPC922, the data memory U2 adopts 24C256WI, the clock chip U3 adopts 8563T, and the battery voltage monitoring chip U0 adopts BL8506. The 4 pins of the microprocessor are connected to the 3.3V power supply through the resistor R3, the 5 pins are grounded, the 9 pins are connected to the 5 pins of the memory, the 10 pins are connected to the 6 pins of the memory, and the 11 and 12 pins are connected in parallel to the electronic lock interface IN-
当钥匙接口和电子锁接口接上后,由钥匙内部电池通过电子锁接口(IN-YS)1、2脚向锁具电路中提供5V电源,经电源U4调整为3.3V的恒压源,供锁控电路使用,锁控电路中的CPU初始化后,使电子锁接口IN-YS的3脚就获得高电平,该高电平回馈给钥匙,用于开启钥匙的自启动电路,接通钥匙内部电源。When the key interface and the electronic lock interface are connected, the internal battery of the key provides 5V power supply to the lock circuit through
整个锁控电路通过时钟电池和8563T时钟芯片获得实时时钟值,CPU开始工作后,通过11、12脚与钥匙进行单向串口通信,钥匙与电子锁按制定的规约进行信息交流,当信息交流满足通讯规约且有开锁权限,则电子锁的CPU通过18脚(P0.3)向机械锁具发出开锁命令,即实现开锁过程。CPU的13脚(P0.7)、14脚(P0.6)用作CPU的输入,通过这两脚的信息来检测锁具的状态,若检测到机械锁具为已开状态,则不必重新发送开锁命令。在开锁过程中CPU将开锁时间、开锁次数、开锁的钥匙ID号以及其他开锁信息均记录在存储器中,方便以后查询。CPU监测电池电压值,当电池电压低于规定值后,将信息传递给钥匙。The whole lock control circuit obtains the real-time clock value through the clock battery and 8563T clock chip. After the CPU starts to work, it communicates with the key through
关于钥匙电路:About the key circuit:
参见图5,钥匙电路的微处理器U5采用P89LPC922,数据存储器U6采用24C256WI。微处理器U5的第9脚、10脚分别接存储器U6的5脚和6脚,微处理器U5的第11、12脚并联后接电子锁接口SOCKT1的第3脚,微处理器U5和电阻R7、R8以及三极管Q1构成钥匙内部电源自启动及自锁电路。微处理器U5与存储器U6通过上拉电阻R10、R11以I2C方式进行连接通信。Referring to Fig. 5, the microprocessor U5 of the key circuit adopts P89LPC922, and the data memory U6 adopts 24C256WI. The 9th and 10th pins of the microprocessor U5 are respectively connected to the 5th and 6th pins of the memory U6, the 11th and 12th pins of the microprocessor U5 are connected in parallel and then connected to the 3rd pin of the electronic lock interface SOCKT1, the microprocessor U5 and the resistor R7, R8 and transistor Q1 constitute the self-starting and self-locking circuit of the internal power supply of the key. The microprocessor U5 communicates with the memory U6 through the pull-up resistors R10 and R11 in an I 2 C manner.
当钥匙插入锁具时,5V电源通过SOCKT1送出至电子锁具电路,电子锁开始工作,使电子锁中的接口IN-YS的3脚获得高电平,从而使SOCKT1的第三脚通过IN-YS也获得高电平,此时通过三极管开启钥匙的自启动电路,使电源U7能够输出3.3V稳压电源,此3.3V电源开始给钥匙内部系统供电。CPU 20脚(P0.1)在开锁期间始终向电源U7的使能端(第3脚)输送高电平,使得开锁期间U7一直处于工作状态,以维持整个电路中的3.3V恒压。CPU开始工作后,通过11、12脚向电子锁发送命令帧,电子锁再根据接收到的相关信息进行识别处理从而决定开锁与否。在开锁过程中CPU将开锁时间、开锁次数、电子锁的ID号以及其他开锁信息均记录在存储器中,方便以后查询。当钥匙与电子锁完成通讯并相互断开后,钥匙中的CPU向U7的第3脚发出低电平,禁止U7工作,从而关断钥匙的总电源。R8下拉电阻提高三极管Q1导通的开启门限,提高抗干扰能力。When the key is inserted into the lock, the 5V power supply is sent to the electronic lock circuit through SOCKT1, and the electronic lock starts to work, so that the
钥匙中的开锁权限可以根据需要由主站设置,因此管理人员在将钥匙分发给开锁人之前可以轻松对钥匙进行权限设置,可规定哪把钥匙固定只能开哪几把锁,并可设定钥匙的时效性,即该钥匙只能在规定的时间内使用才有效,否则即便有钥匙也无法开锁。该钥匙系统中设一自启动电路,主要目的是为了降低功耗,锁具不动作时,系统不耗电,只有当钥匙插入锁具时,由钥匙提供系统外部电源,再分别启动锁具及钥匙的内部电源,以供内部器件使用,从而降低了系统对电源的消耗。The unlocking authority in the key can be set by the master station according to the needs, so the administrator can easily set the authority of the key before distributing the key to the unlocker. It can be stipulated that which key can only be opened and which locks can be set The timeliness of the key, that is, the key can only be used within the specified time, otherwise the lock cannot be unlocked even if there is a key. The key system is equipped with a self-starting circuit, the main purpose is to reduce power consumption. When the lock is not in action, the system does not consume power. Only when the key is inserted into the lock, the key provides the external power supply of the system, and then starts the interior of the lock and key respectively. Power supply for internal devices, thus reducing the power consumption of the system.
工作站对电子锁的参数设置过程:The parameter setting process of the workstation to the electronic lock:
参见图6,电子锁的参数包括用于识别电子锁的ID号、密码集、数据版本号、功能开启标志等,除包括参数设置外同时还包括对电子锁的时间进行设置,工作站通过电子锁接口电路对电子锁进行参数设置。工作站首先主动下发命令帧,电子锁检测命令帧的合法性并进行密码校对,对于新电子锁(即电子锁中的存储器某一指定区域内容未被改写过或仍为FFH),电子锁不进行密码校验而仅进行命令帧的合法性检查。检测和校对通过后,电子锁应答工作站。接着工作站将相关的参数以命令帧形式发送至电子锁,电子锁按一定规范写入电子锁内部存储器中。Referring to Figure 6, the parameters of the electronic lock include the ID number used to identify the electronic lock, password set, data version number, function enable flag, etc. In addition to parameter settings, it also includes setting the time of the electronic lock. The interface circuit sets parameters for the electronic lock. The workstation first sends the command frame actively, and the electronic lock detects the validity of the command frame and performs password verification. For the new electronic lock (that is, the content of a specified area of the memory in the electronic lock has not been rewritten or is still FFH), the electronic lock does not Perform password verification and only check the validity of the command frame. After passing the inspection and proofreading, the electronic lock answers the workstation. Then the workstation sends relevant parameters to the electronic lock in the form of a command frame, and the electronic lock is written into the internal memory of the electronic lock according to certain specifications.
工作站对电子钥匙的参数设置过程:The parameter setting process of the workstation for the electronic key:
参见图7,电子钥匙的参数包括电子钥匙的ID号、密码集、数据版本号、电子锁的功能开启标志,工作站通过电子钥匙接口电路对电子钥匙进行参数设置。电子钥匙首先主动发出命令帧,工作站对命令帧进行合法性检查,并校对密码,完成上述过程后,工作站与电子钥匙进行工作方式置换,改为由工作站主动提出命令,电子钥匙根据要求应答命令。随后工作站将相关参数以命令帧形式下发至电子钥匙,电子钥匙按一定规范写入电子钥匙内部存储器中。Referring to Fig. 7, the parameters of the electronic key include the ID number of the electronic key, the password set, the data version number, and the function opening flag of the electronic lock, and the workstation sets the parameters of the electronic key through the electronic key interface circuit. The electronic key first sends out a command frame actively, and the workstation checks the validity of the command frame and checks the password. After the above process is completed, the workstation and the electronic key replace the working mode, and the workstation initiates the command instead, and the electronic key responds to the command as required. Then the workstation sends relevant parameters to the electronic key in the form of a command frame, and the electronic key is written into the internal memory of the electronic key according to certain specifications.
工作站对电子钥匙进行权限设置及读取电子钥匙的开锁记录过程:The workstation sets the authority of the electronic key and reads the unlocking record process of the electronic key:
参见图8,在这一过程中,工作站首先读取并保存电子钥匙的开锁记录情况,随后再对电子钥匙的下一次开锁权限进行设置。电子钥匙的开锁记录包括本电子钥匙的开锁记录情况和本电子钥匙从电子锁中读取的由其他电子钥匙开启的开锁记录情况(在本电子钥匙开锁前,在电子锁中记录的最后一次可能是其他电子钥匙开锁的开锁记录),本电子钥匙的开锁记录由电子锁的ID号和开锁时间组成的集合构成,电子锁中最后一次开锁记录由电了钥匙ID号和开锁时间组成的集合构成。电子钥匙的开锁权限由起始时间、权限有效天数及可开锁的ID号和电子锁的功能开启标志组成的集合构成。Referring to Fig. 8, in this process, the workstation first reads and saves the unlocking record of the electronic key, and then sets the next unlocking authority of the electronic key. The unlocking record of the electronic key includes the unlocking record of this electronic key and the unlocking record of other electronic keys read by this electronic key from the electronic lock (before the electronic key is unlocked, the last possible time recorded in the electronic lock It is the unlocking record of other electronic keys). The unlocking record of this electronic key is composed of the ID number of the electronic lock and the unlocking time. The last unlocking record in the electronic lock is composed of the ID number of the electronic key and the unlocking time. . The unlocking authority of the electronic key is composed of a set consisting of the start time, the valid days of the authority, the ID number that can be unlocked, and the function opening flag of the electronic lock.
工作站通过电子钥匙接口电路对电子钥匙进行权限设置及读取电子钥匙的开锁记录。电子钥匙首先主动发出命令帧,工作站对命令帧进行合法性检查,并校对密码,完成上述过程后,工作站与电子钥匙进行工作方式置换,改为由工作站主动提出命令,电子钥匙根据要求应答命令。随后工作站电子钥匙中记录的本钥匙开锁记录及保存在电子钥匙中的电子锁的最后一次开锁记录,然后将开锁权限以命令帧形式下发至电子钥匙,电子钥匙按一定规范写入电子钥匙内部存储器中。The workstation sets the authority of the electronic key and reads the unlocking record of the electronic key through the electronic key interface circuit. The electronic key first sends out a command frame actively, and the workstation checks the validity of the command frame and checks the password. After the above process is completed, the workstation and the electronic key replace the working mode, and the workstation initiates the command instead, and the electronic key responds to the command as required. Then the unlocking record of this key recorded in the electronic key of the workstation and the last unlocking record of the electronic lock stored in the electronic key, and then the unlocking authority is sent to the electronic key in the form of a command frame, and the electronic key is written into the electronic key according to certain specifications in memory.
电子钥匙的开锁过程:The unlocking process of the electronic key:
参见图9,在这一过程中,当电子钥匙的开锁权限被确认后,电子钥匙首先读取电子锁中记录的最后一次开锁记录,并保存至电子钥匙的存储器中,再保存本次开锁记录,然后发出开锁命令由电子锁管控电路开启锁具,同时电子锁保存本次开锁记录于电子锁存储器中。See Figure 9. In this process, when the unlocking authority of the electronic key is confirmed, the electronic key first reads the last unlocking record recorded in the electronic lock, saves it in the memory of the electronic key, and then saves the unlocking record of this time , and then issue an unlock command to unlock the lock by the electronic lock control circuit, and at the same time, the electronic lock saves the unlock record in the electronic lock memory.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2008100194707A CN100541543C (en) | 2008-01-18 | 2008-01-18 | Electronic lock management system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2008100194707A CN100541543C (en) | 2008-01-18 | 2008-01-18 | Electronic lock management system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101216959A true CN101216959A (en) | 2008-07-09 |
| CN100541543C CN100541543C (en) | 2009-09-16 |
Family
ID=39623387
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2008100194707A Active CN100541543C (en) | 2008-01-18 | 2008-01-18 | Electronic lock management system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100541543C (en) |
Cited By (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101807316A (en) * | 2010-03-26 | 2010-08-18 | 深圳市科陆电子科技股份有限公司 | Electric intelligent lock system and control method |
| CN102003117A (en) * | 2010-09-29 | 2011-04-06 | 江苏省电力公司无锡供电公司 | Access control method for cabinet lock system of large-consumer metering device |
| CN102044100A (en) * | 2010-03-22 | 2011-05-04 | 珠海理想科技有限公司 | Intelligent lock-control system for electric power safety |
| CN102373830A (en) * | 2010-08-18 | 2012-03-14 | 深圳市科陆电子科技股份有限公司 | Electric intelligent key and unlocking method thereof |
| CN102704767A (en) * | 2012-05-31 | 2012-10-03 | 烟台久环电子科技有限公司 | Cabinet remote intelligent management system |
| CN102768779A (en) * | 2012-06-29 | 2012-11-07 | 深圳光启创新技术有限公司 | ID (identity) management method for photon key |
| CN102768775A (en) * | 2012-06-29 | 2012-11-07 | 深圳光启创新技术有限公司 | Photon key ID assignment management method |
| CN103021057A (en) * | 2012-12-13 | 2013-04-03 | 辽宁省电力有限公司锦州供电公司 | Cabinet door management system and method of equipment box in electrical power system |
| CN103295283A (en) * | 2012-02-29 | 2013-09-11 | 深圳光启创新技术有限公司 | Light-controlled lock system and realizing method thereof |
| CN103679860A (en) * | 2012-09-20 | 2014-03-26 | 珠海优特电力科技股份有限公司 | Home anti-theft system and working method thereof |
| CN104021611A (en) * | 2014-06-23 | 2014-09-03 | 浪潮集团有限公司 | Access control system based on USB (Universal Serial Bus) protocol and unlocking and locking methods thereof |
| CN104134261A (en) * | 2014-08-05 | 2014-11-05 | 武汉百施达智能技术有限公司 | Smartphone-based intelligent lock management system |
| CN104809795A (en) * | 2015-05-21 | 2015-07-29 | 河南传通电子科技有限公司 | Circuit structure utilizing mobile phone APP (Application Program), cloud platform and Bluetooth intelligent key control switch lock and implementation method of circuit structure |
| CN104898507A (en) * | 2015-04-29 | 2015-09-09 | 德施曼机电(中国)有限公司 | Bluetooth intelligent cloud lock system |
| CN104933797A (en) * | 2015-06-30 | 2015-09-23 | 武汉天喻信息产业股份有限公司 | Intelligent card access control system and method based on dynamic token |
| CN105469471A (en) * | 2014-08-19 | 2016-04-06 | 厦门雅迅网络股份有限公司 | Vehicle monitoring method of local vehicle locking |
| WO2016127943A1 (en) * | 2015-02-12 | 2016-08-18 | 中兴通讯股份有限公司 | Method for controlling electronic lock, electronic lock, key end and lock core end |
| CN106023364A (en) * | 2016-05-13 | 2016-10-12 | 常州市科能电器有限公司 | Access control system and method |
| CN106384412A (en) * | 2016-09-30 | 2017-02-08 | 国网浙江省电力公司宁波供电公司 | Wireless lockset system and unlocking method |
| CN106600794A (en) * | 2016-12-28 | 2017-04-26 | 深圳市正拓盛世精密设备有限公司 | Intelligent Bluetooth electronic lock |
| CN108798286A (en) * | 2018-06-08 | 2018-11-13 | 广东电网有限责任公司 | A kind of intelligent door lock system that distribution net equipment supervision is maked an inspection tour |
-
2008
- 2008-01-18 CN CNB2008100194707A patent/CN100541543C/en active Active
Cited By (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102044100A (en) * | 2010-03-22 | 2011-05-04 | 珠海理想科技有限公司 | Intelligent lock-control system for electric power safety |
| CN101807316A (en) * | 2010-03-26 | 2010-08-18 | 深圳市科陆电子科技股份有限公司 | Electric intelligent lock system and control method |
| CN102373830A (en) * | 2010-08-18 | 2012-03-14 | 深圳市科陆电子科技股份有限公司 | Electric intelligent key and unlocking method thereof |
| CN102003117A (en) * | 2010-09-29 | 2011-04-06 | 江苏省电力公司无锡供电公司 | Access control method for cabinet lock system of large-consumer metering device |
| CN103295283A (en) * | 2012-02-29 | 2013-09-11 | 深圳光启创新技术有限公司 | Light-controlled lock system and realizing method thereof |
| CN102704767A (en) * | 2012-05-31 | 2012-10-03 | 烟台久环电子科技有限公司 | Cabinet remote intelligent management system |
| CN102704767B (en) * | 2012-05-31 | 2014-09-17 | 烟台久环电子科技有限公司 | Cabinet remote intelligent management system |
| CN102768779A (en) * | 2012-06-29 | 2012-11-07 | 深圳光启创新技术有限公司 | ID (identity) management method for photon key |
| CN102768775A (en) * | 2012-06-29 | 2012-11-07 | 深圳光启创新技术有限公司 | Photon key ID assignment management method |
| CN103679860B (en) * | 2012-09-20 | 2016-03-02 | 珠海优特电力科技股份有限公司 | Household burglary-resisting system and method for work thereof |
| CN103679860A (en) * | 2012-09-20 | 2014-03-26 | 珠海优特电力科技股份有限公司 | Home anti-theft system and working method thereof |
| CN103021057A (en) * | 2012-12-13 | 2013-04-03 | 辽宁省电力有限公司锦州供电公司 | Cabinet door management system and method of equipment box in electrical power system |
| CN104021611A (en) * | 2014-06-23 | 2014-09-03 | 浪潮集团有限公司 | Access control system based on USB (Universal Serial Bus) protocol and unlocking and locking methods thereof |
| CN104134261A (en) * | 2014-08-05 | 2014-11-05 | 武汉百施达智能技术有限公司 | Smartphone-based intelligent lock management system |
| CN105469471A (en) * | 2014-08-19 | 2016-04-06 | 厦门雅迅网络股份有限公司 | Vehicle monitoring method of local vehicle locking |
| WO2016127943A1 (en) * | 2015-02-12 | 2016-08-18 | 中兴通讯股份有限公司 | Method for controlling electronic lock, electronic lock, key end and lock core end |
| CN104898507A (en) * | 2015-04-29 | 2015-09-09 | 德施曼机电(中国)有限公司 | Bluetooth intelligent cloud lock system |
| CN104809795A (en) * | 2015-05-21 | 2015-07-29 | 河南传通电子科技有限公司 | Circuit structure utilizing mobile phone APP (Application Program), cloud platform and Bluetooth intelligent key control switch lock and implementation method of circuit structure |
| CN104933797A (en) * | 2015-06-30 | 2015-09-23 | 武汉天喻信息产业股份有限公司 | Intelligent card access control system and method based on dynamic token |
| CN106023364A (en) * | 2016-05-13 | 2016-10-12 | 常州市科能电器有限公司 | Access control system and method |
| CN106384412A (en) * | 2016-09-30 | 2017-02-08 | 国网浙江省电力公司宁波供电公司 | Wireless lockset system and unlocking method |
| CN106600794A (en) * | 2016-12-28 | 2017-04-26 | 深圳市正拓盛世精密设备有限公司 | Intelligent Bluetooth electronic lock |
| CN108798286A (en) * | 2018-06-08 | 2018-11-13 | 广东电网有限责任公司 | A kind of intelligent door lock system that distribution net equipment supervision is maked an inspection tour |
Also Published As
| Publication number | Publication date |
|---|---|
| CN100541543C (en) | 2009-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100541543C (en) | Electronic lock management system | |
| CN104635701A (en) | Intelligent optical cable joint box management platform based on Internet of things technology | |
| CN104268973B (en) | Distribution station intelligent computer lock management system | |
| CN102841596B (en) | Intelligent monitoring method for power cabinet door state | |
| CN107195027A (en) | The secondary fool proof locking method of electrical equipment and system | |
| CN104318650A (en) | Dynamic coded lock management and control system | |
| CN103324148A (en) | Equipment cabinet safety integrated management system and equipment cabinet safety integrated management system control method | |
| CN209199612U (en) | A kind of new medical consumptive material Intelligent management cabinet system | |
| CN105869250A (en) | Monitoring system and monitoring method of lock for intelligent meter box | |
| CN104898507A (en) | Bluetooth intelligent cloud lock system | |
| CN201210309Y (en) | Electronic lock management system | |
| CN108899998A (en) | A kind of intelligent power distribution cabinet, intelligent power distribution cabinet control platform and control method | |
| CN206000382U (en) | Door is intelligently deposited in a kind of express delivery | |
| CN201311673Y (en) | Fingerprint type master key storing compartment | |
| CN103544758B (en) | Lock control management system and method for transformer substation | |
| CN207008752U (en) | An Internet two-dimensional code scanning smart lock | |
| CN204390320U (en) | A kind of dynamic puzzle-lock system | |
| CN102052025B (en) | Anti-electricity-stealing intelligent electronic lock of metering tank | |
| CN104240358A (en) | Smart computer lock of house of power distribution station | |
| CN202976270U (en) | Novel substation lock control system | |
| CN201092778Y (en) | Low power consumption electronic lock control circuit and key circuit | |
| CN108921986A (en) | Hotel house intelligent door lock management system | |
| CN106780190A (en) | A kind of dorm management system | |
| CN101748934A (en) | Networking electronic lock based on power remote meter reading system | |
| CN203573384U (en) | Transformer substation lock control management system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| ASS | Succession or assignment of patent right |
Owner name: STATE GRID CORPORATION OF CHINA Effective date: 20121130 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20121130 Address after: 232007 No. 18 Chaoyang Middle Road, Anhui, Huainan Patentee after: Huainan Power Supply Company of Anhui Electric Power Co., Ltd. Patentee after: State Grid Corporation of China Address before: 232007 No. 18 Chaoyang Middle Road, Anhui, Huainan Patentee before: Huainan Power Supply Company of Anhui Electric Power Co., Ltd. |
