12-17-2013 05:02 AM
Hello,
I need to communicate by TCPIP to 4 DUT at the same time. The tricky part is that those DUTs have the same IP address (but different MAC address).
I'm wondering what would be the best approach?
Thanks!
Vincent
12-17-2013 06:27 AM
Vincent,
sharing the same IP address for several devices is "forbidden". You are currently seeing exactly why.
That being said, you have no chance to use TCP to communicate with that devices as TCP (layer 4) is using IP (layer 3) internally. See here and here for more information.
There are, however, some workarounds you can probably use:
There might be some more, but i think, these are the two most obvious....
Norbert
12-17-2013 08:02 AM
I have not done this, so do not know what trouble you would run into. I had developed a serial to Ethernet bridge for a project using the Lantronix XPort. Out of the box, it should work, but supported custom firmware if I need to change anything. Basically, the PC will see a serial port and send serial commands.
I found this via Google:
https://www.sparkfun.com/products/9476
It is the same basic idea. Part of this depends on what you need to do. If you don't care about speed, and are just telneting into the device and sending some commands, then something like this will work great. If you are trying to do any kind of heavy traffic communication, it probably won't.
12-17-2013 10:58 AM - edited 12-17-2013 11:04 AM
Ran into this problem several years ago...
Our solution was to use multiple routers, one on each device and a hub.
You computer connects to the hub and the WAN side of each router connects to the hub.
Give each router a static IP address on it's WAN
Connect one device to each router's LAN side.
DISABLE any firewalls and set up port forwarding on each router to IP of the device.
Now from the computer and LabView each device will be on the IP address you gave the router's WAN and the router will tack care of the address translation using NAT
It might sound expecive but go to your local Goodwill and you can pick up routers for around $5 each.