基于RFID的门禁管理系统

上传者: 36684725 | 上传时间: 2021-05-22 10:08:19 | 文件大小: 1.09MB | 文件类型: RAR
基于RFID的门禁管理系统 串口通讯源程序: class SerialListener implements SerialPortEventListener { /** * 处理监控到的串口事件 */ public void serialEvent(SerialPortEvent serialPortEvent) { switch (serialPortEvent.getEventType()) { case SerialPortEvent.BI: // 10 通讯中断 ShowUtils.errorMessage("与串口设备通讯中断"); break; case SerialPortEvent.OE: // 7 溢位(溢出)错误 case SerialPortEvent.FE: // 9 帧错误 case SerialPortEvent.PE: // 8 奇偶校验错误 case SerialPortEvent.CD: // 6 载波检测 case SerialPortEvent.CTS: // 3 清除待发送数据 case SerialPortEvent.DSR: // 4 待发送数据准备好了 case SerialPortEvent.RI: // 5 振铃指示 case SerialPortEvent.OUTPUT_BUFFER_EMPTY: // 2 输出缓冲区已清空 break; case SerialPortEvent.DATA_AVAILABLE: // 1 串口存在可用数据 byte[] data = null; try { if (serialport == null) { ShowUtils.errorMessage("串口对象为空!监听失败!"); } else { // 读取串口数据 data = SerialPortManager.readFromPort(serialport); //dataView.append(ByteUtils.byteArrayToHexString(data,true) + "\r\n"); } } catch (Exception e) { ShowUtils.errorMessage(e.toString()); // 发生读取错误时显示错误信息后退出系统 System.exit(0); } break; } } } private void initData() { commList = SerialPortManager.findPort(); // 检查是否有可用串口,有则加入选项中 if (commList == null || commList.size() < 1) { ShowUtils.warningMessage("没有搜索到有效串口!");

文件下载

资源详情

[{"title":"( 87 个子文件 1.09MB ) 基于RFID的门禁管理系统","children":[{"title":"MenjinSystem","children":[{"title":".project <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"manifest.mf <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"rxtxParallel.dll <span style='color:#111;'> 74.50KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"SerialPotException","children":[{"title":"ExceptionWriter.java <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"SerialPortParameterFailure.java <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"SerialPortInputStreamCloseFailure.java <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"NotASerialPort.java <span style='color:#111;'> 275B </span>","children":null,"spread":false},{"title":"SerialPortOutputStreamCloseFailure.java <span style='color:#111;'> 315B </span>","children":null,"spread":false},{"title":"NoSuchPort.java <span style='color:#111;'> 275B </span>","children":null,"spread":false},{"title":"TooManyListeners.java <span style='color:#111;'> 269B </span>","children":null,"spread":false},{"title":"SendDataToSerialPortFailure.java <span style='color:#111;'> 277B </span>","children":null,"spread":false},{"title":"ReadDataFromSerialPortFailure.java <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"PortInUse.java <span style='color:#111;'> 253B </span>","children":null,"spread":false}],"spread":true},{"title":"rxtxParallel.dll <span style='color:#111;'> 46.31KB </span>","children":null,"spread":false},{"title":"SerialPortUtil","children":[{"title":"ShowUtils.java <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"ByteUtils.java <span style='color:#111;'> 12.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"SerialPortManager","children":[{"title":"SerialPortManager.java <span style='color:#111;'> 6.44KB </span>","children":null,"spread":false}],"spread":true},{"title":"com","children":[{"title":"model","children":[{"title":"HouseholdModel.java <span style='color:#111;'> 719B </span>","children":null,"spread":false}],"spread":true},{"title":"dao","children":[{"title":"UserDao.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"GetConnection.java <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"HouseholdDao.java <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"Session.java <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"GetDate.java <span style='color:#111;'> 911B </span>","children":null,"spread":false}],"spread":true},{"title":"bean","children":[{"title":"User.java <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"Household.java <span style='color:#111;'> 783B </span>","children":null,"spread":false},{"title":"Building.java <span style='color:#111;'> 484B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"ms","children":[{"title":"login.java <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false},{"title":"BackgroundPanel.java <span style='color:#111;'> 764B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"Test.java <span style='color:#111;'> 462B </span>","children":null,"spread":false}],"spread":true},{"title":"chuankou","children":[{"title":"ReadSerialPort.java <span style='color:#111;'> 8.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"rxtxserial.dll <span style='color:#111;'> 54.00KB </span>","children":null,"spread":false},{"title":"mainframe","children":[{"title":"CardFrame.java <span style='color:#111;'> 10.03KB </span>","children":null,"spread":false},{"title":"SystemFrame.java <span style='color:#111;'> 16.21KB </span>","children":null,"spread":false},{"title":"MainFrame.java <span style='color:#111;'> 9.23KB </span>","children":null,"spread":false}],"spread":false},{"title":"org","children":[{"title":"eclipse","children":[{"title":"wb","children":[{"title":"swing","children":[{"title":"FocusTraversalOnArray.java <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 195B </span>","children":null,"spread":false}],"spread":true},{"title":"chuankou","children":[{"title":"ReadSerialPort.java <span style='color:#111;'> 8.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"RXTXcomm.jar <span style='color:#111;'> 59.55KB </span>","children":null,"spread":false},{"title":"sqljdbc41.jar <span style='color:#111;'> 879.78KB </span>","children":null,"spread":false},{"title":"rxtxSerial.dll <span style='color:#111;'> 106.00KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"SerialPotException","children":[{"title":"PortInUse.class <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"ExceptionWriter.class <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"SendDataToSerialPortFailure.class <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"SerialPortParameterFailure.class <span style='color:#111;'> 568B </span>","children":null,"spread":false},{"title":"SerialPortOutputStreamCloseFailure.class <span style='color:#111;'> 595B </span>","children":null,"spread":false},{"title":"SerialPortInputStreamCloseFailure.class <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"NotASerialPort.class <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"TooManyListeners.class <span style='color:#111;'> 532B </span>","children":null,"spread":false},{"title":"NoSuchPort.class <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"ReadDataFromSerialPortFailure.class <span style='color:#111;'> 553B </span>","children":null,"spread":false}],"spread":true},{"title":"rxtxParallel.dll <span style='color:#111;'> 46.31KB </span>","children":null,"spread":false},{"title":"SerialPortUtil","children":[{"title":"ByteUtils.class <span style='color:#111;'> 7.34KB </span>","children":null,"spread":false},{"title":"ShowUtils.class <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"SerialPortManager","children":[{"title":"SerialPortManager.class <span style='color:#111;'> 4.56KB </span>","children":null,"spread":false}],"spread":false},{"title":"com","children":[{"title":"model","children":[{"title":"HouseholdModel.class <span style='color:#111;'> 937B </span>","children":null,"spread":false}],"spread":false},{"title":"dao","children":[{"title":"HouseholdDao.class <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"GetConnection.class <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"UserDao.class <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"Session.class <span style='color:#111;'> 483B </span>","children":null,"spread":false},{"title":"GetDate.class <span style='color:#111;'> 900B </span>","children":null,"spread":false}],"spread":false},{"title":"bean","children":[{"title":"User.class <span style='color:#111;'> 904B </span>","children":null,"spread":false},{"title":"Building.class <span style='color:#111;'> 916B </span>","children":null,"spread":false},{"title":"Household.class <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"ms","children":[{"title":"login.class <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"login$1.class <span style='color:#111;'> 768B </span>","children":null,"spread":false},{"title":"login$TitleMouseAdapter.class <span style='color:#111;'> 828B </span>","children":null,"spread":false},{"title":"BackgroundPanel.class <span style='color:#111;'> 840B </span>","children":null,"spread":false},{"title":"login$2.class <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"test","children":[{"title":"Test.class <span style='color:#111;'> 1021B </span>","children":null,"spread":false}],"spread":false},{"title":"chuankou","children":[{"title":"ReadSerialPort.class <span style='color:#111;'> 6.70KB </span>","children":null,"spread":false}],"spread":false},{"title":"rxtxserial.dll <span style='color:#111;'> 54.00KB </span>","children":null,"spread":false},{"title":"mainframe","children":[{"title":"CardFrame$2.class <span style='color:#111;'> 638B </span>","children":null,"spread":false},{"title":"MainFrame$1.class <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"SystemFrame$SerialListener.class <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"CardFrame.class <span style='color:#111;'> 8.14KB </span>","children":null,"spread":false},{"title":"MainFrame$3.class <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"SystemFrame$2.class <span style='color:#111;'> 650B </span>","children":null,"spread":false},{"title":"CardFrame$1.class <span style='color:#111;'> 638B </span>","children":null,"spread":false},{"title":"MainFrame$2.class <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"MainFrame.class <span style='color:#111;'> 8.49KB </span>","children":null,"spread":false},{"title":"SystemFrame$1.class <span style='color:#111;'> 870B </span>","children":null,"spread":false},{"title":"SystemFrame.class <span style='color:#111;'> 9.25KB </span>","children":null,"spread":false},{"title":"SystemFrame$3.class <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"CardFrame$3.class <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false}],"spread":false},{"title":"org","children":[{"title":"eclipse","children":[{"title":"wb","children":[{"title":"swing","children":[{"title":"FocusTraversalOnArray.class <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明