USB over IP

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone now if you've watched this channel for a while you'll notice that I do a lot of SDR stuff usually with um an RTL SDR dongle or sometimes a hack RF and I'm able to do that remotely over the network so this computer here doesn't have any um Hardware connected to it directly but I have the server out in the garage which is connected to the antennas and I got a whole bunch of these and hack RF and that and I can get that through the network now I've shown in previous videos how I can do that either with the Soapy server or just using RTL TCP for the things but one particular program SDR trunk is something I wanted to use in here but I don't have an antenna and also it doesn't it doesn't have the mechanism to get it from the network through soap or rlcp so I was a bit stuck so what I decided to do was set up a USB device that works over a network so essentially um the USB device lives out there in the garage but it's accessed locally as though it's plugged in here so I'll go through how I set that up um so you you can do the same thing if you need to so in the garage here I've got the antenna feeds coming in and they go to all these SDR receivers and Tuners and things here on top of the rack which then go into the many USB ports on the server so we're doing it this way I can avoid having all that on the desktop okay so starting off on the server that's the one where the device is going to be actually physically connected do a mod probe USB IP core um the USB IP should be in if not just AP to install it but you shouldn't need to install anything just um prob for it so USB IP host as well because it's going to host the device okay so once they're in you can check them if you want with lsod grab USB IP you'll see they're there now to avoid having to do that every time just put them in your Etc modules um file here so you can see I've added them here so they come up during boot up so what I want to do first is see what's available on the system so do USB IP list and DL for local local on this um server and you can see I've got a whole bunch of things here okay so what I'm going to do is grab this um RTL device that's out there cuz you can see I've got a bunch of them and all sorts of other things the hack RFS out there um but the thing I'm interested in is the bus ID so you can see it there 3-11 so what I'll do is I'll start USB IP with USB ipd and you can see it there now it's listening on Port 3244 for connections over the network but nothing's assigned to it yet so I'll just open another little console here on the server and I'll attach that device that I showed before so USB IP list- L as I said it's going to be uh 3-11 so what I do is go USB bind bus ID 3-11 and it says it's complete so that's ready to go from the servers end now I come over to this desktop which is the client here now before I connect to anything I'm going to start a packet capture on Port 3240 so here's the capture ready to go TCP Port 3240 just so just so we can come back to that so on the client device here what I have to do is a couple of mod probes as well so mod probe USB I core and mod probe vh- hcd okay and same as before you can put them in um the modules directory so it starts at boot up okay as I've already done so similar to before for listing the devices I'm going to go USB IP list but instead of local like I did on the server I'm now doing it remote to the server's address and you can see that there's one device available so there it is and if I have a quick look at the packet capture you can see a little bit of comms went through there just asking some stuff so if I just show what happened you can see it sent some info back so that's obviously what it did when it interrogated it but I'll leave that capture running on this port so I haven't stopped that capture yet so back on this client desktop here I want to attach that so I'll go USB IP attach the remote 1 2 13101 and the bus ID which is 3-11 actually before I do that I haven't done that yet I'll do an lsusb to show you what's connected here locally and you can see I don't have any RTL things plugged in okay that's just some other crap that I've got here so if I do that now it's attached then if I show LS USB again you can see I now have that um RTL device here just as it would appear if I pluged it in directly here that means all the programs that use it can use it directly here now in the packet capture there's some stuff flowing constantly even though I'm not really doing anything with that at the moment there's just a bit of background stuff but of course once I start that'll really take off so what I might do is just stop that capture for now cuz I don't need that anymore what I'll do is I'll start the radio up and you can see it's accessing it locally here so it's working fine over the network like if I go to the settings uh you can see it's it's accessing it just locally not through um RTL TCP and if I were to do a packet capture it would be going crazy because of course there's there's lots of data going through here so anyway no need for that now if I want to detach it it's a little bit trickier what I got to do is do USB IP port and it shows up this port here Port 00 so I do USB IP detach and it's by port number so you do it like that and detaches it and you have to kind of do that if you want to do this cleanly otherwise it gets itself in a bit of a state of the server it thinks something's still connected when it's not and then you try to connect it again and funny things can happen so it's good to detach it properly um you know when you shut this down so when you start it up it might not be able to attach just better to do it this way okay so that's detached now if I do LS USB of course it's gone so I'll just attach it again Bo there it is LS USB and it's back now it's handy for me because I've been on and off programming a 3D Spectrum analyzer and I don't have the um the Soapy server or RTL code at all in my software I've just I'm expecting this to be local so what I can do here is just access that remotely from here and uh continue working on on my um program here so that helps me in that regard so that's one of the main reasons I did it now to unbind on the server I just do the opposite of what I did to bind it so um USB IP unbind and the bus ID was 3-11 and that takes it out so that's pretty simple and that's all the rest to it now if you want to set up your own startup scripts you'll you'll want to do that if you want something permanent but um it works for a number of things so I've got um TV adapters out there I'll just show you one of those since we since we've come this far so I'll go through it again with one of those I'll go I'll do USB IP uh List local okay and I'm just going to pick one of these um tv tuners that one there will do so it's it's bus 5-11 okay so USB bind bus ID 5-11 now it says it's already bound um I obviously forgot to unbind it but here's what little catch can happen if I go on the client device and I look for devices that are ready to go on the servey it says it's not there so what is it it gets itself in a bit of a state as I was saying so what I've got to do is just unbind it okay and bind it again and now it says it's happy so now when I list the remote devices there it is so I'll attach it to this Lo host here USB IP attach from the remote 1 10.1 plus ID 5-11 and once again I should see it here now so now I've got that device so what I can do is I can scan for channels um on aubr brisban channels.com and that'll go through the scanning out there just as though it's here it'll find the channels and then you'll be able to run it so I might as well show you that just to show that it works okay okay now I've got a channels.com file as you can see and I can just open that up in VLC so there it is there and you can just pick one and it'll Play Just as I as local here now that doesn't stream through the network as decoded multicast video like I I usually do that's emulating the um adapter result it's plugged in right here so as far as VLC is concerned it's right here and another program that I use this for is SDR trunk which is for decoding digital trunk Radio Systems because that program doesn't support either a soap soapy server or the um RTL TCP program so I have to do it that way and that works fine as well so anyway wanted to share that with you I'm sure that'll come in handy for a lot of people for a lot of things certainly will for me anyway so that'll do for now till next time take it easy
Info
Channel: Tall Paul Tech
Views: 38,612
Rating: undefined out of 5
Keywords: usbip, usb over network, network, usb
Id: 9RAR1lo_Yc0
Channel Id: undefined
Length: 8min 47sec (527 seconds)
Published: Sun Oct 08 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.