您好,欢迎来到佳博论文网!

基于JAVA的串口通信管理程序设计与实现

论文编号:TX298论文字数:9650,页数:23

摘要

串口通信因其通信线路简单、使用灵活方便 ,在许多领域应用广泛。本文主要设计与实现了一款运行于WINDOWS操作系统的使用串口传输数据的PC机之间的通信。该软件使用Java语言实现,使用了安美通的APC220-43作为无线收发装置,实现了两台PC机之间的无线通信,并可以进行图形化界面的操作。该软件用到了Java串口包Javax.comm,该串口包是用于开发平台独立的通讯应用程序的扩展API。在数据储存上使用了MySql数据库,在数据访问上使用Hibernate框架。并且自制了对串口数据流进行包装的工具类,方便了对串口读写的控制。

本文详细介绍了串口通信及javax.comm包的使用,并编写和测试了软件达到串口正常通信的效果。

关键词:串口通信,Java语言,Hibernate框架

ABSTRACT

Because of its serial communication line is simple, convenient, widely used in many fields. This paper mainly introduces how to design and realize the WINDOWS operating system is running the communications between PCS. Using the java language applicate this software, APC220-43 as wireless transceiver, realizing the communications between PCS, this design undertake graphic interface operation. This software USES the Javax.comm bag, it is used for development platform independent communications applications extension-api. Data stored in the data access in MySql database, use Hibernate framework. And the serial data flow of homemade packaging tool, convenient for the control and serial

This paper describe serial port and the use of javax.comm in detail.Write and test this software in gear.

Keywords: Serial communication, Java, Hibernate.

目录

摘要I

ABSTRACTII

第1章 引言1

1.1 背景1

1.2 研究内容2

第2章 串行通信简介3

2.1 串口3

2.2 串行通信标准3

2.2.1 RS-2323

2.2.2 RS-4224

2.2.3 RS-4584

2.3 同步和异步通信5

2.4 串行通信的工作模式5

2.4.1 单工5

2.4.2 半双工6

2.2.3 双工6

第3章 串口通信软件总体设计7

3.1程序设计架构7

3.2各模块功能介绍8

3.3总体设计思路8

第4章JAVA开发环境及相关技术9

4.1开发环境9

4.2 Java语言特点9

4.3 Eclipse简介10

4.4 Javax-comm包10

4.4.1 概述10

4.4.2 配置11

4.5 Hibernate框架简介11

第5章 各模块功能具体实现12

5.1窗口模块12

5.2串口基本操作模块12

5.2.1 获得串口标识12

5.2.2 打开串口13

5.2.3 设置串行端口通讯参数13

5.3读写工具类模块14

5.4DAO数据访问模块15

第6章 结束语17

致谢18

参考文献19

基于JAVA的串口通信管理程序设计与实现......