文件名称:SerialPortTest
- 所属分类:
- 串口编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 58kb
- 下载次数:
- 0次
- 提 供 者:
- 借**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在VC程序中,每当串口缓冲区中有一个或一个以上字符时触发串口通信事件(字符个数可以在程序中进行设定),该事件就驱动(调用)串口通信事件处理函数,对接收到的数据进行处理,判断是否为包(串)头,即第一个字符,再判断是不是结束字符,若是结束字符,则还要对数据进行校验计算,并与接收到的校验值比较,或两者相同,则断定接收到的数据包是正确的,否则是错误的。-In the VC procedure, whenever the serial buffer has one or more serial communication event trigger character (number of characters can be set in the program), the event to drive (call) event handler serial communication, the receiver data processing to determine whether the package (string) first, that the first character, then judge the character is not the end, if the end of the characters, but also check the data calculated and received checksum comparison , or both are the same, to determine the received packet is correct, otherwise it is wrong.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
20070633SerialPortTest\20070633SerialPortTest.aps
......................\20070633SerialPortTest.clw
......................\20070633SerialPortTest.cpp
......................\20070633SerialPortTest.dsp
......................\20070633SerialPortTest.dsw
......................\20070633SerialPortTest.h
......................\20070633SerialPortTest.ncb
......................\20070633SerialPortTest.opt
......................\20070633SerialPortTest.plg
......................\20070633SerialPortTest.rc
......................\20070633SerialPortTestDlg.cpp
......................\20070633SerialPortTestDlg.h
......................\Debug\20070633SerialPortTest.exe
......................\ReadMe.txt
......................\res\20070633SerialPortTest.ico
......................\...\20070633SerialPortTest.rc2
......................\...\OFF.ICO
......................\...\RED.ICO
......................\resource.h
......................\SerialPort.cpp
......................\SerialPort.h
......................\StdAfx.cpp
......................\StdAfx.h
......................\Debug
......................\res
20070633SerialPortTest
......................\20070633SerialPortTest.clw
......................\20070633SerialPortTest.cpp
......................\20070633SerialPortTest.dsp
......................\20070633SerialPortTest.dsw
......................\20070633SerialPortTest.h
......................\20070633SerialPortTest.ncb
......................\20070633SerialPortTest.opt
......................\20070633SerialPortTest.plg
......................\20070633SerialPortTest.rc
......................\20070633SerialPortTestDlg.cpp
......................\20070633SerialPortTestDlg.h
......................\Debug\20070633SerialPortTest.exe
......................\ReadMe.txt
......................\res\20070633SerialPortTest.ico
......................\...\20070633SerialPortTest.rc2
......................\...\OFF.ICO
......................\...\RED.ICO
......................\resource.h
......................\SerialPort.cpp
......................\SerialPort.h
......................\StdAfx.cpp
......................\StdAfx.h
......................\Debug
......................\res
20070633SerialPortTest