宋志强
摘要: 对基于RS-485总线的指纹锁监控管理系统进行了研究,实现了与指纹锁相关的通信协议。介绍了主要功能模块,给出了显式调用动态链接库的方法,使用Victor串口VCL控件与指纹锁进行通信。主机软件采用C++ Builder 6开发,数据库采用InterBase 6.5。通过软硬件结合的模块化设计,使系统能以主从模式或对等模式进行节点间通信。实际应用结果表明,该系统运行稳定可靠,具有一定的实用性和推广价值。
关键词: 指纹锁; C++ Builder; 串口通信; 监控
中图分类号:TP311.52文献标志码:A 文章编号:1006-8228(2012)11-21-02
Design of monitoring and control system for fingerprint locks based on RS-485 bus
Song Zhiqiang
(Department of Information, Suzhou Institute of Trade & Commerce, Suzhou, Jiangsu 215009, China)
Abstract: The monitoring and control system for fingerprint locks based on RS-485 bus is investigated. The communication protocol relevant to fingerprint locks is realized. The main function modules are introduced. The host software is developed by using C++ Builder 6 and the database by InterBase 6.5. Because of module design of hardware and software, the system can work at master-slave mode or peer-to-peer mode. The real application shows that this system runs stably and accurately. The technology and methods adopted in this system are practical and worthy to be promoted.
Key words: fingerprint lock; C++ Builder; serial communication; monitoring and control
0 引言
指纹锁是一种以人体指纹为识别载体和手段的智能锁具,它是计算机信息技术、电子技术、机械技术和现代五金工艺的完美结合体。指纹锁一般由电子识别与控制、机械联动系统两部分组成。指纹的惟一性和不可复制性决定了指纹锁是目前所有锁具中最为安全的锁种[1]。随着人们生活水平的不断提高,人们对生活品质的追求也日益提高,越来越多的人过上了智能化的生活,只需手指轻触一下,便能开门。指纹锁安全、方便、实用,非常适合写字楼、办公室、物业、宾馆、酒店等集中统一管理。
1 系统总体结构
本指纹锁的核心为Analog Devices公司生产的嵌入式微处理器ADSP-BF533,指纹锁与主机通过RS-485总线相连,系统结构框图如图1所示,RS-485接口连接成半双工通信方式[2]。由于PC机只带有RS232接口,故采用Moxa公司的TCC-80I作为RS-232/RS-485转换器。在单片机端通过MAX487芯片将485信号转换成单片机需要的串口信号,系统中可连接的下位机最多可扩展至128个[3]。……