C++串口开发开源库

来源:互联网 发布:阿里云香港速度怎么样 编辑:程序博客网 时间:2024/06/05 20:29

一、串口开源包1: 
https://github.com/wjwwood/serial
github上基于c++语言排名靠前的开源库,一个缺点是只支持同步I/O,不支持重叠I/O。
在win10上读取串口时总出现蓝屏,不晓得是什么原因。 

二、codeproject上的开源库:
http://www.codeproject.com/KB/system/cserialport.aspx
支持的特性包括:
1、Simple and clean C++ interface.
2、Uses C++ exceptions in preference to the normal Win32 return value mechanism. This ensures that code which uses CSerialPort is more robust.
3、Unicode enabled, supports linking to MFC statically and all code compiles cleanly at warning level 4.
4、Supports overlapped, blocking and callback usage models of the serial port. (Callback is only supported on NT).