Giter Site home page Giter Site logo

lsdcomm's Introduction

CSerialPort类的经典应用项目

一份小项目的源代码,使用最新的串口修正类,它超越了串口助手,给人一种耳目一新的感觉。亮点如下:

  • 它解决了,串口关闭时出现死锁不响应问题,可以直接用到开发的项目上。
  • 并且是扩展了的串口助手,具有通信协议编辑和使用功能,
  • 软件升级检测,值得做软件升级例子使用。
  • 最重要的是源代码很不错,很值得大家去研究。

分享给做工控上位机的朋友们,有问题,可以留言,以便做进一步修正。

以下是串口类的更新list: First Version by Remon Spekreijse on 2000-02-08 http://www.codeguru.com/cpp/i-n/network/serialcommunications/article.php/c2483/A-communication-class-for-serial-port.htm

Second Version by mrlong on 2007-12-25 https://code.google.com/p/mycom/

  • 增加 ClosePort
  • 增加 WriteToPort 两个方法
  • 增加 SendData 与 RecvData 方法

by liquanhai on 2011-11-04 http://blog.csdn.net/liquanhai/article/details/4955253

  • 增加 ClosePort 中交出控制权,防止死锁问题

by liquanhai on 2011-11-06 http://blog.csdn.net/liquanhai/article/details/6941574

  • 增加 ReceiveChar 中防止线程死锁

by viruscamp on 2013-12-04 https://github.com/viruscamp/CSerialPort

  • 增加 IsOpen 判断是否打开
  • 修正 InitPort 中 parity Odd Even 参数取值错误
  • 修改 InitPort 中 portnr 取值范围,portnr>9 时特殊处理
  • 取消对 MFC 的依赖,使用 HWND 替代 CWnd,使用 win32 thread 函数而不是 MFC 的
  • 增加用户消息编号自定义,方法来自 CnComm

by itas109 on 2014-01-10 http://blog.csdn.net/itas109/article/details/18358297

  • 解决COM10以上端口无法显示的问题
  • 扩展可选择端口,最大值MaxSerialPortNum可以自定义
  • 添加QueryKey()和Hkey2ComboBox两个方法,用于自动查询当前有效的串口号。

by liquanhai on 2014-12-18

  • 增加一些处理措施,主要是对减少CPU占用率

lsdcomm's People

Contributors

liquanhai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.