01-05-2023 01:39 AM
Hi Everybody
我有一个labview项目,需要通过TCP Open Connection连接两个产品,这两个产品拥有相同的IP地址及相同的服务器端口号(相同的产品),但是具有不同的无线SSID。
电脑有两张无线网卡,现在需要每张网卡连接一个产品,是否有办法进行区分连接,向A产品写入命令后,从A产品接收数据,向B产品写入命令后从B产品接收数据?
目前可实现单网卡和单产品正常通讯,但是TCP Open Connection.vi的Service Name和Service Port如果都相同的话,如何区分当前连接的是哪个产品?
以上,谢谢!
01-05-2023 04:53 AM
Hello Sqqdjian,
Based on my understanding we should be able change the IP address of the target device, by which you can configure different address for different target device.
Check the specification of the target device.
01-05-2023 08:04 AM
Hello Palanivel,
Thank you for your reply,
But the target device is DUTs(Device under test),we need to communicate with it to do test. We can't change its IP address
Is there a way to let me know which DUT is currently connected?
In other words, is there a way to make a TCP connection through the specified network card
Thank you so much.
01-05-2023 08:23 AM - edited 01-05-2023 08:33 AM
Hi,
There are ways to force routing over specific network adapters.
But using the same IP address twice on one computer for different connections !?!? I can't see that works.
Is it possible to add a router for one of the connected devices ? Than you can use different IP addresses without changing an IP address of the targets.
EDIT
With 'Netsh' you can force the connection to a specific adapter. But somewhere in the communication you will need the IP address.
Kees