Brief:
I want my Raspberry Pi to appear as multiple different devices on a network.
Details:
My laboratory contains multiple test equipment that communicate GPIB/SCPI/VISA via a USB interface.
I would like any laptop on the network to be able to connect to any piece of equipment via WiFi.
Each piece of equipment should present to the network with its own unique hostname and implement SCPI commands on port 5025 (and sometimes telnet on 5024 and web GUI on 80).
I need to conform to this way of interfacing in order to be compatible with existing laboratory software that interfaces with SCPI equipment.
I can achieve my objective using a unique Raspberry pi for each piece of equipment as an ethernet-to-serial adapter. I can install the USB related drivers to control each piece of equipment and set up a TCP IP socket / server that listens for connections and forwards commands and responses directly between the USB device and WiFi (ethernet) connection. However, it seems quite inefficient to use one Raspberry Pi per equipment when a single Raspberry Pi and a couple of 1-to-4 USB expanders could easily service all the equipment on a single workbench. (It will also save a lot of power outlets being consumed with plug packs to power the Pis)
Can I make a single Raspberry Pi appear as multiple TCP IP devices on my network? (One for each connected USB device and perhaps one for the Pi itself so that I can send configuration information.)
Have you tried searching online for an answer?
Yes. Here is what I found.
Setting up virtual network interfaces. I note that modifying /etc/network/interfaces won't work on Buster. It looks like the preferred approach has something to do with iproute2. If I can address the (virtual interface) devices by a text-based hostname rather than a static IP, that would be desirable, but the means of achieving this is not very well documented. Overall, this approach appears promising, but I am having a little trouble putting it all together.
Perhaps I can run multiple virtual machines on my Pi. Seems like overkill.
Continue to use multiple Raspberry Pis; one per piece of lab equipment. I don't like this for abovementioned reasons.
Modify the protocol so that I have one hostname (just the Pi) and set up a protocol that re-routes commands to the correct device. I think this might not work with my lab software, which is expecting to send SCPI commands to HOSTNAME:5025
Set up the software on the Raspberry Pi that is connected to the equipment. It is not supported by Linux (and would probably be too much for the poor Pi to handle anyway).