地铁闸机控制系统的设计
2018-11-07曹新莉徐杨喆熊俊俏邹连英
曹新莉 徐杨喆 熊俊俏 邹连英

摘要:该文提出了一套地铁闸机控制系统的设计方案。下位机以单片机为主控元件,辅以非接触式读写卡芯片、液晶屏、灯箱等模块,能够实现读卡,写卡,以及与上位机的通信等功能,上位机信息管理系統提供能够在显示界面内读取、修改卡内相关信息等功能。
关键词:非接触式IC卡;射频识别;串口通信;图形用户界面;数据库
中图分类号:TP311.1 文献标识码:A 文章编号:1009-3044(2018)21-0259-04
Abstract:This design proposes a design scheme for a subway gate control system. The lower computer adopts single-chip microcomputer as the main control element, and is supplemented by non-contact reading and writing card chip, LCD screen, light box and other modules, which can realize the functions of reading card, writing card, and communication with upper computer.The upper computer information management system provides the functions of reading and modifying the card's related information inside the display interface.
Key words:contactless IC card;radio frequency identification; serial communication; graphical user interface; database
随着全球城市的迅速发展以及人口的大量涌入,交通状况愈加紧张。地下铁道作为一种能够缓解地面交通压力的公共交通方式,近年来被广泛运用到城市建设中。地铁闸机控制系统规范行人正确、有序地进出,是地铁系统稳定运行的重要一环。
1 闸机控制系统硬件总体结构
1.1 IC卡结构及协议——Mifare 1 S50
Mifare 1 S50是一种非接触式IC卡,工作频率为13.56MHZ,符合ISO14443A标准。其内部拥有天线模块,接口模块,控制模块和存储模块,均被封装在一张PVC卡片内。存储模块内部拥有16个扇区,每个扇区分为4个块。每张卡片的序列号以及制造商信息等,存放于扇区0的块0中,该块信息已固化,不能被更改,其余各个扇区的块0、块1、块2皆可用于存放数据。每个扇区的块3为控制块,共有16个,每一个块3包含了该扇区的密码字节(密钥A、密钥B)以及对该扇区中其余块0,1,2进行数据处理的存取控制权限字节。
1.2 读卡器硬件组成
本文所设计的非接触式IC卡读写系统主要包括单片机,非接触式读写卡芯片,高频接口,液晶屏等;辅以蜂鸣器和红绿LED灯实时反馈系统状态;……
