52 Star 298 Fork 27

itas109 / CSerialPort

2024-02-04 18:37
7112 itas109 1652622743 itas109

CSerialPort v4.3.1.240204

轻量级、跨平台串口类库,支持C/C++/C#/Java/Python/Node.js

新功能:

  • 支持linux和macos获取硬件信息vid和pid
  • 支持DTR和RTS设置
  • 支持刷新读写缓冲区
  • 支持CSeiralPort 作为cmake子目录
  • 编译器支持的情况下使用C++定时器

修复:

  • #75 修复macos下getPortInfoList 崩溃问题
  • #76 修复linux下自定义波特率无效问题
  • #80 修复unix同步模式下读取无限等待问题
最后提交信息为: doc(VERSION): update to 4.3.1
2023-02-15 21:01
7112 itas109 1652622743 itas109

CSerialPort v4.3.0.230215

轻量级、跨平台串口类库,支持C/C++/C#/Java/Python/Node.js

新功能:
使用CSerialPortListener进行读取事件通知
尽可能使用const char*代替std::string
增加getReadBufferUsedLen函数用于获取缓冲区长度
增加LOG_INFO输出串口信息

2023-02-15 21:00
7112 itas109 1652622743 itas109

CSerialPort v4.2.2.230215

轻量级、跨平台串口类库,支持C/C++/C#/Java/Python/Node.js

新功能:

读取事件通知支持串口名称与长度
增加getReadBufferUsedLen函数用于获取缓冲区长度
增加LOG_INFO输出串口信息

2022-11-09 21:53
7112 itas109 1652622743 itas109

CSerialPort v4.2.1.221107

轻量级、跨平台串口类库,支持C/C++/C#/Java/Python/Node.js

新功能:

  • 读取缓冲区大小默认为4096字节
  • 读取超时间隔默认0ms,即实时接收
  • 支持vcpkg安装CSerialPort
  • 新增wxWidgets示例程序

实验特性:

  • 新的事件通知类CSerialPortListener(宏定义USE_CSERIALPORT_LISTENER开启)
  • 支持C#(CSharp)调用CSerialPort
  • 支持Java调用CSerialPort
  • 支持Python调用CSerialPort
  • 支持JavaScript调用CSerialPort
2022-10-07 19:29
7112 itas109 1652622743 itas109

CSerialPort v4.2.0.221001

lightweight, cross-platform, and efficient serial port library
轻量级、跨平台、高效的串口类库

Fixed:

  • #60 application compiled with source code under windows still has export information 在windows下以源码方式编译仍然带有导出信息

Feature:

  • modify examples 优化示例程序
  • add cross compile toochain.cmake for arm aarch64 mips64el riscv 增加arm aarch64 mips64el riscv的交叉编译cmake 文件
  • improve windows receive performance 优化windows接收性能
  • add custom baud rate for linux 新增linux下设置自定义波特率
  • add cross-platform thread library 新增跨平台线程库
  • add cross-platform ringbuffer library 新增跨平台环形缓冲区库
  • add cross-platform timer based condition variable 新增基于条件变量的跨平台定时器库
  • add ringbuffer for receive data(asynchronous mode) 新增环形缓冲区接收数据(异步模式)
  • add read interval timeout setting(default 50ms, asynchronous mode) 新增读取超时设置(默认50ms, 异步模式)
  • add clang-tidy 增加clang-tidy代码检测
2021-09-03 23:25
7112 itas109 1652622743 itas109

CSerialPort v4.1.1.210903

lightweight, cross-platform, and efficient serial port library
轻量级、跨平台、高效的串口类库

Fixed:

  • #49 function writeData hanle leak on windows 修复windows下writeData函数句柄泄漏问题
  • #41 could not enum all avaiable ports on windows 修复windows下偶尔枚举可用串口不全的问题
  • #42 high cpu usage problem on unix 修复unix上高cpu占用问题
  • #33 No Gui Application without endless loop crash problem 修复NoGui程序崩溃问题
  • #28 VS2015 x64 MFC not work 修复VS2015生成x64程序不能正常运行问题

Feature:

  • use unsigned int instead of int64 使用unsigned int代替int64
  • add unix virtual serial port 增加unix虚拟串口工具
  • read thread optimization 读取线程优化
最后提交信息为: update version to 4.1.1.210903
2020-10-11 00:17
7112 itas109 1652622743 itas109

CSerialPort v4.1.0.201010

lightweight, cross-platform, and efficient serial port library
轻量级、跨平台、高效的串口类库

Fixed:

  • #29 windows xp unable to locate the program input point in msvcrt.dll 无法定位程序输入点于msvcrt.dll
  • #30 _T() cannot convert 'const char*' to 'LPCWSTR
  • #39 fix getPortInfoList crash on unix(not linux and mac os) 修复unix系统(非linux和macos)getPortInfoList引起的崩溃问题
  • #40 fix vs2008 vs2010 Cannot open include file: 'ntddser.h' 修复msvc无法找到ntddser.h问题

Feature:

  • header files is separated into include directory 头文件独立到include文件夹
  • add Tui Demo based pdcurses and ncurses 增加基于pdcurses和ncurses的tui示例
  • use cmake compile CSerialPort 使用cmake编译
  • add cmake install 增加cmake安装
  • add cppcheck file 增加cppcheck代码检测文件
  • add clang-format 增加clang-format代码格式化
  • add travis ci and appveyor ci 增加travis和appveyor持续集成

Remove:

  • remove function init of integer port 移除init整型串口函数
  • remove function availablePorts and availableFriendlyPorts 移除availablePorts和availablePorts函数
最后提交信息为: update LICENSE
2020-10-11 00:16
7112 itas109 1652622743 itas109

CSerialPort v3.0.3

该版本仅支持windows

  • 增加信号与槽机制传输数据 add sigslot.h to send data
  • 修复handle初始化问题,全部初始化为INVALID_HANDLE_VALUE modify handle init INVALID_HANDLE_VALUE
  • 修复串口打开失败,再次成功打开串口后,不能正常读写问题 fix can not read and write when the port open failed
  • 修复availablePorts函数不能枚举所有串口问题 fix function availablePorts can not enum all port error
  • ★修复不能连续发送的问题 ★ fix can not continue send error
  • ★一次性写入尽可能多的数据到串口 ★ try best to send mutil data once in WriteChar funtion
  • 修复BYTE内存设置的问题 fix BYTE memset error
  • 在构造函数中初始化和释放临界区 initialize and delete critical section in Constructor
  • 精简代码
最后提交信息为: update README.md
C++
1
https://gitee.com/itas109/CSerialPort.git
git@gitee.com:itas109/CSerialPort.git
itas109
CSerialPort
CSerialPort

搜索帮助