-
串口编程(中文翻译版)
串口编程(中文翻译版)----绝对经典书籍
- 2022-06-20 11:22:10下载
- 积分: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
-
本程序是win32api串口编程tty(虚拟终端)实例包括硬件控制的设置,因此可以用于对modem的编程...
本程序是win32api串口编程tty(虚拟终端)实例包括硬件控制的设置,因此可以用于对modem的编程-win32api Serial Programming tty (virtual terminals) Examples include control of the hardware installed, the modem can be used for programming
- 2022-07-08 08:28:20下载
- 积分:1
-
Automatic detection of serial communication program, has passed the test, be abl...
串口通信自动检测程序,已经通过测试,能够成功在2812板上运行。-Automatic detection of serial communication program, has passed the test, be able to successfully run on the board at 2812.
- 2022-03-25 06:58:11下载
- 积分:1
-
uart实验源码!希望你可以给你们带来帮助!谢谢可以跟大家分享!...
uart实验源码!希望你可以给你们带来帮助!谢谢可以跟大家分享!-UART experimental source! I hope you can help to you! Thank you can share with you!
- 2022-03-22 02:30:59下载
- 积分:1
-
Windows下的串口程序示例
Windows下的串口程序示例-a serial program example under Windows OS
- 2023-02-16 12:50:04下载
- 积分:1
-
在ISE上可运行次程序
改程序主要用实现FPGA串口通信
在ISE上可运行次程序
改程序主要用实现FPGA串口通信-In the ISE program can be run at the main change procedures realize FPGA serial communication
- 2022-01-25 20:12:23下载
- 积分:1
-
Universal Serial Communication C program to achieve source code. With the alread...
通用串口通信C程序实现源码.带有已经在windows下编译好的dll动态库-Universal Serial Communication C program to achieve source code. With the already compiled dll in the windows under the dynamic library
- 2022-01-24 16:50:39下载
- 积分:1
-
串口通信控件,用delphi和c++builder编写
串口通信控件,用delphi和c++builder编写-serial communication control, and c with delphi prepared builder
- 2022-04-13 05:09:31下载
- 积分:1
-
C语言开发串行通讯程序库,可用来进行串口开发用
C语言开发串行通讯程序库,可用来进行串口开发用-C-language development serial communication libraries, which can be used for development with Serial
- 2023-04-06 10:50:04下载
- 积分:1