如何通过串口读取数据? [英] how to read data through serial port?
本文介绍了如何通过串口读取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
全部受人欢迎
我已经创建了vb.net Windows应用程序,我想使用串行端口读取数据,请问如何帮助我.
在此先感谢....
Respected to all
i have create vb.net windows application, i want to read data using serial port how i can do it pleas help me.
Thanks in advance ....
推荐答案
看看下面的链接.
http://support.microsoft.com/default.aspx?scid= kb; zh-CN; 823179& Product = vb6
http://www.microsoft.com/download/zh-CN/details.aspx? DisplayLang = en& id = 17983
Have a look at below links.
http://support.microsoft.com/default.aspx?scid=kb;en-us;823179&Product=vb6
http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=17983
如果这是一个真实的" VB.NET应用程序,并且您打算从服务器上的客户端PC读取数据,则可以't.安全禁止这样做.
如果这是VB WinForms应用程序,则创建 SerialPort类的实例 [^ ]并使用它.这里有一个简单的指南: MSDN-如何使用SerialPort简单串行通信的类 [ ^ ]在C#中,但是您应该很容易理解它.
If this is a "real" VB.NET application, and you mean to read data from your client PC on the server, you can''t. Security forbids it.
If this is a VB WinForms application, then create an instance of the SerialPort class[^] and use that. There is a simple guide here: MSDN - How to use the SerialPort Class for simple serial communications[^] It''s in C#, but you should understand it pretty easily.
这篇关于如何通过串口读取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文