刚在csdn下一个串口收发数据的程序
将数据发出后,用kernel32.dll的WriteFile写入了缓冲区
WriteFile(hComm,WriteBytes,WriteBytes.Length,ref BytesWritten,ref ovlCommPort);
但用ReadFile从缓冲区中读取时,读不到数据~
ReadFile(hComm,BufBytes,NumBytes,ref BytesRead,ref ovlCommPort);
将数据发出后,用kernel32.dll的WriteFile写入了缓冲区
WriteFile(hComm,WriteBytes,WriteBytes.Length,ref BytesWritten,ref ovlCommPort);
但用ReadFile从缓冲区中读取时,读不到数据~
ReadFile(hComm,BufBytes,NumBytes,ref BytesRead,ref ovlCommPort);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货