期刊文献+

多线程CSerialPort类的多串口通信实现 被引量:4

Realizing the multi-serial port communication based on the multithread Cserialport class
下载PDF
导出
摘要 RS-232串口通信的优点是硬件线路简单、灵活方便,以致在很多控制领域有广泛应用。本文对工业通信中广为流行的多线程CSerialPort类,剖析Windows环境下编程的多线程以及同步/异步操作I/O通信端口等。针对实际应用中该类的缺陷和不便,从ASCII文本和二进制数据兼容、修改串口接收字符函数等方面对其进行必要改进。最后基于VS2010平台下,用改进后的CSerialPort类给出开发多串口通信程序的实例,对单个串口连接多个设备的问题,提出可用的解决方案。 The advantage of RS-232 serial communication is simple hardware circuit, flexible and convenient, so it is widely used in many fields. This paper stated the very popular multithread CSerialPort class in industry communication, analyzed the multithread, synchronous or asynchronous I/O communication ports in the range of Windows program. Aiming at the defect and inconvenience of this class in practical application, from ASCII text and binary data compatibility, changing the serial receiving char function and other aspects and making the necessary improvement. Finally based on the stage of VS2010, giving a practical program example of Multi-serial port communication with the changed CSerialPort class about single serial port linking multi equipment, puting forward the available method.
出处 《木材加工机械》 北大核心 2012年第2期1-4,共4页 Wood Processing Machinery
基金 农业科技成果转化基金项目(2010GB24320612)
关键词 多线程机制 CSERIALPORT类 多串口通信 VS2010 multithread mechanism Cserialport class multi-serial port communication VS2010
  • 相关文献

参考文献5

二级参考文献20

共引文献12

同被引文献19

引证文献4

二级引证文献12

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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