使用VB.net在2台PC之间进行通信 [英] Communicates between 2 PCs using VB.net

查看:112
本文介绍了使用VB.net在2台PC之间进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,各位。



我需要听听你对我的问题的建议。



我需要用USB连接两台电脑用于显示我创建的简单模拟结果的电缆。第一台计算机将成为输入源,而另一台计算机仅显示输出。



我在visual basic中创建了应用程序。当我在计算机X中滑动轨迹栏时,该值将显示在计算机Y中。这就是全部。

我对此类事物没有任何经验。我一直在网上搜索,但我找不到合适的答案,大多数答案都令人困惑(或者我不理解?)。



任何想法?



谢谢

Hello,guys.

I need to hear your suggestion regarding my problem.

I need to connect two computers using USB cable to display the result of a simple simulation I created. The first computer is going to be the input source while the other only display the output.

I have created the application in visual basic. when I slide the trackbar in computer X, the value will be shown in computer Y. that's all.
I have no experience with this kind of thing. I have been searching all over the web but I have not find a suitable one, most of the answers are confusing (or is it me that do not understand?).

any idea ?

Thank you

推荐答案

引用:

需要使用USB线连接两台计算机

need to connect two computers using USB cable





你需要一根非常特殊的线缆来如果您要将USB直接连接到USB,请执行此操作。您无法使用普通USB线将两个USB主机连接在一起。



我强烈建议使用以太网来执行此操作。然后,您可以使用标准TCP / IP套接字进行通信。



或者,您可以在它们之间使用2条USB转串口电缆和一条零调制解调器串行电缆然后使用SerialPort类进行通信。



You're going to need a very special cable to do that if you're going to connect USB directly to USB. You cannot connect two USB hosts together using a normal USB cable.

I would HIGHLY suggest using a Ethernet network to do this. You can then use standard TCP/IP sockets to communicate.

Or, you could use 2 USB-to-Serial cables and a null modem serial cable between them and then use the SerialPort class to communicate.


Hi


我建议使用以太网来执行此操作,以获取有关vb中套接字编程的更多信息。 net with TCP / IP你可以关注链接:



使用VB.NET的TCP / IP [ ^ ]

使用VB.Net的TCP / IP - 版本2(更省电更容易) [ ^ ]

一个简单的聊天程序,它可以使用TCP / IP非常有用:

TCP / IP聊天程序 [ ^ ] < br $> b $ b

最好的问候。
Hi
I suggest using Ethernet network to do this, for getting more information about socket programming in vb.net with TCP/IP you can follow of links:

TCP/IP with VB.NET[^]
TCP/IP With VB.Net - version 2(more power-more ease)[^]
A simple chat program with TCP/IP it can be usefully:
A TCP/IP Chat Program[^]

Best Regards.


这篇关于使用VB.net在2台PC之间进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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