我如何使用 wxwidgets 访问 C++ 中的串口数据 [英] how can i access serial port data in c++ using wxwidgets
问题描述
我是电子和通信工程专业的学生.我正在做一个项目,其中微控制器将数据发送到计算机的串行端口(异步).我目前正在为我的 GUI 工作学习 wxWidgets.
i am electronics and communication engineering student. i am working on a project in which a microcontroller send data to serial port of computer (asynchronously). i currently learning wxWidgets for my GUI work.
我的问题-是否可以使用 wxWidgets 来获取数据和显示.实现这个是不是很困难.我搜索它,但没有得到如何实现这一点的直接答案.所以建议我为此需要阅读什么.以及有什么替代方法可以做到这一点.我使用 Windows 7.
my question- is it possible to do using wxWidgets to get data and display. is it very difficult to implement this. i search for it but not get direct answer that how to implement this. so suggest me what i need to read for this. and what alternative available to do this. i use windows 7.
我还需要将这些数据上传到网络服务器(稍后需要)
i also need to upload this data to web server (it is needed later)
推荐答案
wxWidgets,据我所知,没有实现串行 I/O 设施.还有其他可用的库可以提供此功能.最好的选择之一可能是 boost::asio(参见 http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/overview/serial_ports.html)
wxWidgets, to the best of my knowledge, does not implement serial I/O facilities. There are other libraries available that provide this. One of the best choices is probably boost::asio (see http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/overview/serial_ports.html)
这篇关于我如何使用 wxwidgets 访问 C++ 中的串口数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!