期刊文献+

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

CSerialPort Class Analysis and Bug Fixing
下载PDF
导出
摘要 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.
出处 《军事交通学院学报》 2014年第11期81-85,共5页 Journal of Military Transportation University
关键词 串口读写 CSERIALPORT类 WINDOWS API corn-port communication CSerialPort class Windows API
  • 相关文献

参考文献8

  • 1Telecommunications Industry Association. ANSI/TIA - 232 - F -1997 Interface Between Data Terminal Equipment and Data Circuit - terminating Equipment Employing Serial Binary Data Interchange [ S ]. Virgina: Telecommunications Industry Associ- ation, 1997.
  • 2史培.串口技术应用概述[J].科技资讯,2013,11(34):6-7. 被引量:1
  • 3Wikipedia. USB ( Universal Serial Bus ) [ EB/OL ]. ( 2014 - 09 - 23 ) [ 2014 - 09 - 23 ]. http ://en. wikipedia, org/wiki/USB.
  • 4胡家华,徐鹏,郑昌雨,周扬,梁春阳,宁宇.PL2303单片机串口转USB口实现串行通信[J].单片机与嵌入式系统应用,2013,13(4):76-77. 被引量:13
  • 5徐民,张博.基于CP2102/CP2103的RS232接口转换为USB接口的应用设计[J].国外电子元器件,2008(5):15-17. 被引量:13
  • 6Remon S. A Communication Class for Serial Port [ EB/OL ]. ( 2000 - 02 - 08 ) [ 2014 - 02 - 08 ]. http ://codeguru. earth- web. com/network/serialport, html.
  • 7Microsoft Inc. MSDN. Using Messages and Message Queues [ EB/OL]. (2014 - 01 - 01 ) [ 2014 - 02 - 08 ]. http ://ms- dn. microsoft, com/zh - cn/ms644928.
  • 8LiQH.CSerialPort串口类最新修正版[EB/OL].(2011-11-06)[2014-01-11].http://blog.csdn.net/liquanhai/article/details/6941574.

二级参考文献8

共引文献24

同被引文献8

引证文献2

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部