CSerialPort类分析及漏洞的修正  被引量:2

CSerialPort Class Analysis and Bug Fixing

在线阅读下载全文

作  者:贾小文[1] 贺秀良[1] 

机构地区:[1]军事交通学院基础部,天津300161

出  处:《军事交通学院学报》2014年第11期81-85,共5页Journal of Military Transportation University

摘  要:CSerialPort类是一个常见且优秀的对串口进行读写操作的C++类。利用该类可以很方便地开发串口读写应用程序,而无需直接调用复杂的Windows API函数。在具体应用时,CSerialPort类存在不能进行二进制数据写入、多串口操作不能正常关闭以及利用USB转RS232时数据不能写入的漏洞,对漏洞进行详细分析,提出修正办法。CSerialPort class is a common and outstanding C + + communication class for com-port communication. The use of this class makes developing application programs for corn-port communication much easier, without complex Windows A- PIs. However, there are still bugs, like binary data cannot be written into corn-port, multiple corn -ports cannot be closed normally and data cannot be written to corn -port via USB-RS232 method in particular applications. The paper makes de- tailed analysis on these bugs and puts forward fixing methods.

关 键 词:串口读写 CSERIALPORT类 WINDOWS API 

分 类 号:TP302.2[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象