Score:0

Access a USB directly-attached device from another networked device

us flag

I run Ubuntu 21.04 server (GNU/Linux 5.11.0-1016-raspi aarch64) on a Pi 4 which is connected to my LAN through its ethernet port. I have a MOTU UltraLite-mk5 soundcard attached directly by USB. I would like to be able to access the UL5 over the network from my Mac for control purposes. Is there a way I can configure the Pi 4 to allow the UL5 to acquire its own IP address which can be reached from the LAN?

By way of background, if the UL5 is directly connected by USB to my Mac, I can direct sound to the UL5 and simultaneously access the UL5 using control software provided my MOTU (CueMix5). When directly connected, the UL5 is listed in the Mac's System Preferences | Network tab as connected with its internal 169.254.1.243 address. I've also noted that the CM5 app can connect to a UL5 over the network if given the UL5's IP address, but I've not tested that since I don't know how to connect the UL5 directly to the network by USB ... hence the question!

So I'm guessing the steps (none of which I fully understand!) will involve:

(1) getting a second LAN IP address on the RPi4's NIC (so the CM5 software can address that IP address from another networked machine). I know an NIC can have more than one IP address. I'd like to set up a second address, ideally acquired from the network's DHCP server, but the key thing is that the IP address needs to work with the rest of the setup, in particular, step (3). For that reason, does this second LAN IP address need to be static? And what CLI instruction do I need to set it up?

(2) configuring a USB network connection to the UL5 so both RPi4 and UL5 can talk to each other. I can see that the MOTU software installation on my Mac for the UL5 creates a USB network service (called UltraLite-mk5) and if I knew the relevant CLI instructions for Mac I could examine what has been set up so I could reproduce it on the RPi4. But I don't know yet how to do this. Can you help me with this?

(3) mapping that second IP address set up in (1) to the RPi4's USB connection to the UL5, so that network traffic addressed to the UL5's network IP is forwarded directly by the RPi4 via the USB network service to the UL5, and vice versa. Sounds simple enough! And if you know what the CLI instructions are, I guess it is. Help!

No doubt you can tell from my description that I don't have a deep understanding of networking, and I've only recently started to get to grips with the CLI of Ubuntu, so please pitch your replies at that level. Many thanks for reading.

CrazyTux avatar
us flag
How do you access to the uls5 user interface? Shell? Web service through its ip? an app using the uls5 ips?
johnanon avatar
us flag
Currently the only way I can access the UL5 for control purposes is through the CueMix 5 app as described in the second paragraph my question - with CM5 running on my Mac with the UL5 directly connected to the Mac with USB. But my need is to be able to control the UL5 when it's connected to the USB of the RPi4. For that, I presume the CM5 app will address the UL5 using the UL5's IP, the third of your suggestions
johnanon avatar
us flag
So I'm guessing the steps (none of which I fully understand!) will involve getting a second LAN IP address in the RPi4's NIC (so the CM5 software can address it), mapping that second IP address to the RPi4's USB connection to the UL5, and configuring that USB connection so both RPi4 and UL5 can talk to each other
CrazyTux avatar
us flag
According to your answer, the ul5 gets an ip adress when connected, if it is true, you can use `ssh -R` to port forwarding the wanted service to the rpi4 local ip, then it should be accessible all over your lan, by typing the rpi4 ip with the specific port that was forwarded.
johnanon avatar
us flag
Thanks CrazyTux. I think there are more steps involved, and I've edited the question to clarify. Specifically, there needs to be a USB network service on the RPi4 to connect to the UL5. That's how it seems to work on the Mac. And I'm not sure if the CM5 software will work addressing a IP:port rather than just an IP address.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.