如何与具有USB连接器的COM端口通信? [英] How to communicate with COM Port having USB connector?

查看:99
本文介绍了如何与具有USB连接器的COM端口通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须制作一个GUI来与设备通信。该设备的末端有USB连接器,我必须通过GUI发送一些命令,并且必须看到设备响应。我必须使用COM端口3,4或5.我正在使用Visual Studio 2012.请一步一步帮助我。

I have to make a GUI to communicate with a device. The device has USB connector at its end and I have to send some commands through GUI and have to see the device response. I have to use COM ports 3,4 or 5. I am using Visual Studio 2012. Please help me step by step.

推荐答案

与设备通信没有任何关系使用GUI。 GUI是用户界面,如果需要,它向用户显示信息并接受输入。实际的设备通信使用串行接口,并且在某种程度上取决于设备使用的协议。您可以通过Google获取序列代码示例,并且您应该联系设备制造商以获取有关读取和写入实际设备的信息。至于GUI,可以通过谷歌或 CodeProject文章部分找到数以千计的样本 [ ^ ]。
Communicating with a device has nothing to do with a GUI. A GUI is a user interface that displays information to the user and accepts input, if necessary. The actual device communication uses a serial interface, and will depend to some extent on the protocol used by the device. You can Google for samples of serial code, and you should contact the device manufacturer for information on reading and writing to the actual device. As to the GUI, there are thousands of samples to be found, again via Google, or in the CodeProject articles section[^].


这篇关于如何与具有USB连接器的COM端口通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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