登录
首页 » Com Port » 调用WinAPI函数进行串口通信,并且应用了多线程技术启动工作线程对串口的输入进行监听...

调用WinAPI函数进行串口通信,并且应用了多线程技术启动工作线程对串口的输入进行监听...

于 2022-07-07 发布 文件大小:34.71 kB
0 110
下载积分: 2 下载次数: 1

代码说明:

调用WinAPI函数进行串口通信,并且应用了多线程技术启动工作线程对串口的输入进行监听-call WinAPI serial communication functions, and uses multi-threading technology to activate the working threaded serial input eavesdropping

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 下载工具源代码,用于串口RS232下载,二次下载
    下载工具源代码,用于串口RS232下载,二次下载-download source code
    2022-08-07 05:06:05下载
    积分:1
  • the code can be accurately produce 1
    本程序代码可以准确地生成1-500Hz波形文件,正弦波,方波等。具体功能,下载下来,自己运行一下就知道了-the code can be accurately produce 1-500Hz waveform, sine, square, etc.. Specific functions, downloads, running about themselves will know.
    2022-05-20 01:36:18下载
    积分:1
  • provide serial communication interface parameter setting and control settings in...
    提供串口通讯参数设置接口,控制方式设置接口,传递和接收数据手段控件是在VC++6.0下开发的-provide serial communication interface parameter setting and control settings interface, transmit and receive data means control of the VC 6.0 development
    2022-02-14 05:19:59下载
    积分:1
  • Serial Communication for the (source code) do maxplusII
    串行通信的(源代码)做maxplusII
    2022-12-22 04:30:03下载
    积分:1
  • 多线程串口通信的例子,可以实现同时多串口的通信
    多线程串口通信的例子,可以实现同时多串口的通信-multithread serial communication example, can achieve more while the Serial Communications
    2022-07-08 09:37:04下载
    积分:1
  • Real
    实时控制,可根据需要增加或删除参数变量,随机曲线表示实例。-Real-time control, can be the addition or deletion of variable parameters, said examples of random curves.
    2022-02-05 20:36:34下载
    积分:1
  • 使用说明: 系统要求:WIN9X/ME/NT/2000 VC++6.0 且安装了VC ACTIVEX控件(在VC6安装时选上) 免费...
    使用说明: 系统要求:WIN9X/ME/NT/2000 VC++6.0 且安装了VC ACTIVEX控件(在VC6安装时选上) 免费 简介:在VC++6.0中用MSComm控件编程,可以实现串口接收数据和发送数据,数据分别显示在接收框和发送框中。-Usage: System Requirements: WIN9X/ME/NT/2000 VC++ 6.0 and installed VC ACTIVEX controls (in VC6 installation selected) Free Introduction: In VC++ 6.0 using MSComm control programming can be achieved Serial receive data and send data, data were displayed on the receiver box and sent box.
    2022-08-22 02:44:04下载
    积分:1
  • 从串口读取数据,有两种方法,1、每接收一个EV_RXCHAR,就用ReadFile读一次,这样我觉得太恐怖了。2、接收到一个EV_RXCHAR后,等一定数据量的...
    从串口读取数据,有两种方法,1、每接收一个EV_RXCHAR,就用ReadFile读一次,这样我觉得太恐怖了。2、接收到一个EV_RXCHAR后,等一定数据量的CPU周期(GetTickCount),再一次性读取缓冲区里的数据。这样做,一般情况下不会有问题,但是,如果数据很多,过了“一定数据量的CPU周期”,还没收完数据怎么办?就会少读数据了。 我用三个线程序来完成串口数据的接收,其实就是第一种方法的变种: 一个侦听EV_RXCHAR,一个对EV_RXCHAR进行分析,其实就是超时判断。如果接收到一个消息后,一段时间没收到下一个EV_RXCHAR,就认为是一个数据包的结束。这个线程就会通知数据接收线程,进行数据接收。一般同一包数据,两个字符之间的时间间隔,应该很小了吧,而两个数据包之间的间隔,应该不会太小吧!(这个地方我不清楚,猜的:( :) )最后一个线程,是接收数据的。-read data from the serial port, there are two methods, one, each receiving a EV_RXCHAR, on the ReadFile read, I think this vote. 2, received a EV_RXCHAR after a certain volume of data, such as CPU cycles (GetTickCount), and the one-time reader, the data buffer. To do so, under normal circumstances there is no problem, but if many of the data, and after a "certain amount of data the CPU cycles," also confiscated End Data how do? Few will read the data. I used three lines to complete serial data reception, the first method is a variant : an interception EV_RXCHAR, one pair of EV_RXCHAR analys
    2023-03-23 09:55:03下载
    积分:1
  • 实现数据链路层 串口间的通讯,可以调试网络间的简单连接
    实现数据链路层 串口间的通讯,可以调试网络间的简单连接-Data link layer communication between serial port, you can debug a simple connection between networks
    2022-03-07 20:34:47下载
    积分:1
  • 短信猫测试软件。测试短信猫和系统相连接性能。可以发送短消息...
    短信猫测试软件。测试短信猫和系统相连接性能。可以发送短消息-SMS cat test software. Test SMS cats and systems connectivity. Can send short message
    2022-02-21 18:35:06下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载