# SerialPortStreamHelper **Repository Path**: xhubobo/SerialPortStreamHelper ## Basic Information - **Project Name**: SerialPortStreamHelper - **Description**: 本项目是对SerialPortStream类库的一个封装,参考了CustomSerialPort,本质上是对CustomSerialPort项目的改进及扩展,参见对CustomSerialPort类库的改进、对CustomSerialPort类库的扩展。 - **Primary Language**: C# - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 5 - **Created**: 2021-03-29 - **Last Updated**: 2025-09-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SerialPortStreamHelper #### 介绍 本项目是对[SerialPortStream](https://github.com/jcurl/serialportstream)类库的一个封装,参考了[CustomSerialPort](https://github.com/flyfire-cn/flyfire.CustomSerialPort),本质上是对CustomSerialPort项目的改进及扩展,参见[对CustomSerialPort类库的改进](https://www.cnblogs.com/xhubobo/p/14592596.html)、[对CustomSerialPort类库的扩展](https://www.cnblogs.com/xhubobo/p/15146934.html)。 #### 软件架构 基于SerialPortStream的串口整包数据接收解决方案。 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. 定义SerialPortStreamHelper对象 var serialPortStreamHelper = new SerialPortStreamHelper(); 2. 添加事件处理 serialPortStreamHelper.DataReceived += OnDataReceived; 3. 打开串口 serialPortStreamHelper.Open(PortName, BaudRate) 4. 发送数据 serialPortStreamHelper.Write(bytes); #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)