我想读串口 [英] I want to read the serial port

查看:66
本文介绍了我想读串口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨:



我已经能够通过序列发送数据使用MFC C ++ 2017的端口.ON和OFF按钮发送命令。



我想要能够从串口读取消息并将其显示在下方图像的位置。



观看视频


这是MFC和Arduino的教程。
它只会打开和关闭最短系列的LEd。 (在西班牙语中h)。


教程


有谁知道如何使用MFC C ++读取串口?



使用"Visual Studio Community 2017"。


;)





http://electronica-pic.blogspot.com

解决方案

我从这里开始:


https://msdn.microsoft.com/en-us/library/ff802693.aspx


或此处:





HTTPS://www.codepr oject.com/Articles/2682/Serial-Communication-in-Windows


或此处:


http://www.codeguru.com/cpp/in/network/ serialcommunications / article.php / c5425 / Serial-Communication-in-Windows.htm


或者这里:


http://www.codeguru.com /cpp/in/network/serialcommunications/article.php/c2503/CSerial--AC-Class-for-Serial-Communications.htm


如果您使用首选搜索引擎你会发现更好的例子。 Windows下的串行通信并不是什么新鲜事。这是因为NT4没有改变。




Hi:

I have been able to send data through the serial port with MFC C ++ 2017. The ON and OFF buttons send commands.

I want to be able to read the messages from the serial port and show it where it indicates the image below.

View video.

Here a tutorial on MFC and Arduino. It only turns an LEd on and off for the shortest series. (In Spanish).

Tutorial.

Does anyone know how to read the serial port with MFC C ++?

Use "Visual Studio Community 2017".

;)


http://electronica-pic.blogspot.com

解决方案

I'd start here:

https://msdn.microsoft.com/en-us/library/ff802693.aspx

or here:

https://www.codeproject.com/Articles/2682/Serial-Communication-in-Windows

or here:

http://www.codeguru.com/cpp/i-n/network/serialcommunications/article.php/c5425/Serial-Communication-in-Windows.htm

or here:

http://www.codeguru.com/cpp/i-n/network/serialcommunications/article.php/c2503/CSerial--A-C-Class-for-Serial-Communications.htm

If you use your prefered search engine you will finde even more good examples. The serial communication under windows is nothing really new. It is since NT4 not changed.


这篇关于我想读串口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆