Instructables

Usb Dongles for USB over CAT5 connection

You can run pretty much anything on Cat5, VGA, Usb, Sound Signals, S-Video and so on.

I'm planning in using my web cam as a security cam at my front door and I was thinking in using a pc downstairs to see my web cam over the net, but I have keep both pcs running at the same time and the need of extra software as well, so i decided to use a Cat5 to run a Usb connection over at least 25', I've been searching a little over the web and I found a couple of ideas to connect Usb peripherals over Cat5 successfully and I went over the subject, but I realize that i didn't want to cut the cat5 and solder the usb connections to the cable, so I decide to build a couple of Usb dongles (female and male) to cat5 and the cool thing is that they can be used on existing Ethernet network wall connections as well. I know that I might be pushing the limits but it's worth the try.

I wouldn't use this devices for Data tho, I understand the there are plenty of connectors out there that have baluns (which I don't quite know how they work), to send and receive Data signal, so I wouldn't risk the try but for peripherals such as web cams, mouse or keyboard, and sound signals would do just fine (even S-video).
I would highly recommend using a powered Usb hub for the distance mentioned above, in regards of some of the limits for this type of configurations:
Usb limits are up to 15' (4.5 meters)
S-Video up to 50' (15' meters)

I got very useful information from Tony's Cafe blog, on distances limits and some other valuable info, you may want to take a look at his site: http://girasoli.org/?p=58
 
Remove these adsRemove these ads by Signing Up
tech13371 year ago
Tis a shame that usb traffic cannot be routed! Think of the possibilities just plugging in a usb to a network port in a school or office and receiving a file with just a button press!

Thought of using the other way around? Male jack on usb to female/female extension? (less common I know, but available!)
mast3rbug3 years ago
It seem that peoples here know nothing about electronics and USB specification...  So I will let you know why USB can't work over 5 meters.

This is all about timing. at 5 meters, the delay propagation in the cable is maximum 26 nS(Nano Seconds).  This is the time the USB transceiver will wait after a packet transmission for an ACKnowledge answer.

So if your cable is longer, the ACK will be received too late, and the USB transceiver will be already in the timeout processus.  It's for that reason that if you want longer cable, you need Active USB repeaters.  These Active cables Are real relays that send ACK signals and re-transmit the data over another 5 Meters cable.

There is nothing about voltage drop or crosstalk here.


You're right. A person would be lucky to get USB 1.0 speeds out of a hack like this, if it works at all.
gurr mast3rbug3 years ago
It can not be that critial, since its working!
Once I ran RS232 over a 300 meters telephone cable! (max=16 m?)
It was working constantly for more than one year.

Sometimes we may test the "impossible" and it works.

DGeneral022 years ago
Is there any possibility of this working on a router, am looking forward to connecting a 3g usb dongle to the rj45 wan port of my router running a linux distro so i can establish a dialup connection. Pease any help will be appreciated
jtoomey2 years ago
Three things on running USB over Cat-5 wiring:
1. On the RJ-45 8-pin jack, you want to avoid pins 1,2,3,6 because if it accidentally gets plugged into a switch or PC Ethernet jack, the 5-volts could fry something.

2. You want the power (+5v,ground) on the same color (blue,blue-stripe) so it doesn't make an electronic field that can ruin the valuable data lines. the phone company runs 24V to our homes on one twisted pair of wires and it works fine.

3. Twisting the two data lines on one color (brown,brown-stripe) will keep data integrity over a longer run of lines. Ethernet lines do that and it works just fine.

I suggest the following from the USB to the Cat-5 jack:
1. usb pin 1 (+5v,red) goes to RJ-45 pin 5 (blue-stripe)
2. usb pin 2 (d-,white) goes to RJ-45 pin 8 (brown)
3. usb pin 3 (d+,green) goes to RJ-45 pin 7 (brown-stripe)
4. usb pin 4 (ground,black) goes to RJ-45 pin 4 (blue)

Using this configuration, you could simultaneously run Ethernet to a hub AND your USB extension with splitters and all.
Lke!
ogad_80 jtoomey2 years ago
I actually used this configuration for a USB web cam. Just a note, some USB's have an wire insulation that has nothing to do with making the connection just a tip for noobz like myself. I also had to cut down my Cat5 cable to about 3 meters because I was getting an error of non-recognized hardware. Thanks awesome Instructables and awesome tips!
Why does it tell me that my USB device is unrecognized when i pplug it into the cable?
supadhyay12 years ago
try this one out hope thats help http://guru.technosains.com/EnglishUSBWifiCablesExtender.htm
gerneio2 years ago
just curious, is this whole instructable about extending your usb cable using an ehternet cable (cat 5)? Thats pretty neat, but what i was curios about was if it was to be possible to instead of making an extension, to convert or merge a usb cable and ethernet cable to work together. Its kinda far stretched, but the only hard part in this is figuring out which wires to connect or pair. So on the usb side, which has four wires (red,green,white,black) to the ethernet cable by connecting the wires together in the right way.... Possible or impossible?
E_MAN gerneio2 years ago
Actually it is possible to run other things over a cat5 cable. Search up "POE pinout" and you will find that the brown and blue pairs are not used by a standard networking devices. You SHOULD be able to run the 4 usb wires over the 4 spare wires... but i will warn you, there could be LOTS of interference. If you have any networking equipment that has POE you will probably destroy your networking equipment, usb device and your computer :) but if use disconnect those connections to your devices you should have TOO many issues... have fun!
gerneio E_MAN2 years ago
So it is possible?? :D but I'll destroy my equipment?? Lol.... That's a hard decision...
E_MAN gerneio2 years ago
no, as long as you disconnect the blue and brown pairs from the cable and not splice them you should be fine. Just put that as a warning......
gerneio E_MAN2 years ago
Ok so if I'm using a already made ehternet cable, and cut one end of the cable off to expose the wires, it'll work? By doing what you said, of course
E_MAN gerneio2 years ago
just use a knife and strip off the outer jacket. Then cut only the blue and brown pairs out. do this on either end and just be careful not to cut or untwist the green and orange pairs. oh and by the way, keep the power and data connections on different pairs to minimize interference. Doing it this way will help keep your networking equipment intact :D
gerneio E_MAN2 years ago
Thanks for these fast replys, I will defiantly try this when I get time
金王2 years ago
We do develop the new product for surveillance system by USB Cam. Now, we could do 4 ch USB Cam with a great video. It is also great to read this document. We will try. Thank you those information.
lp1424 years ago
Can a powered hub be put in the middle of this configuration and provide power?
quaired lp1424 years ago
hello everyone, this may be offtopic please excuse my comment. i made myself one project very similar to this but instead pulled out an ethernet port together with 2 usb port on a one module from the back end of a destroyed motherboard already. i have been trying to make a very long range ethernet but as i researched usb is really limited to 5 meters only. therefore i compared two cat5 cables with 1 below 5 meters and 2 above 5 meters and gathered the difference between the two:

these are my observations:
usb power supply pins1 and 4 can supply with a steady 5 volts on both cat5 cables. cable 1 below 5 meters and cable 2 above 5 meters both registered on the tester 5 volts steadily.

while testing on terminal +data and -data i get a drop of .5 when i put the testers over 1x continuity.

this lead to a conclusion that signal from the usb running through a cat5 cable drops after 5m. but the 5v supply from the usb running through a cat5 is a steady power supply.

i made this project because i want to use my socket A old cpu as surveilance system of our home using usb webcams. i can connect up to 4 webcams but distributing it around the house is very tricky. im avoiding also of ip cams because of it's high costs any suggestions on how i might solve my problem? thanks for your ideas.
Ant1Xr1st4 years ago
My USB2.0 Webcam works perfect via 12.2Meters CAT5e cable. But 15.5Meters long cable isn’t working. I used one pair for data (D+, D-) and tree others for power. Cat5 cable is directly soldered to webcam on the one side and to the male-A usb connector on the other side.
Nice idea, instead of spending 30.00 + for this.. :-D Lovin it!
tinnyjl4 years ago
Can Use The Cables With Out The Ethernet
arte.sano (author)  tinnyjl4 years ago
It depens for what, I've had luck using a usb webcam over 25ft but witha powered usb, but no luck with mouse or keyboard, maybe adapting some sort of additional power like a battery or power via ethernet using the remaining cables, or using capacitors? good luck
 Yeah your probably going to need to clean and boost the signal for extreme lengths on pins 2-3.
krahoc4 years ago
Tried it with a 20m long cat5 shielded câble. 5V between +5 and ground is ok, but data +/- fails (tried webcam, keyboard, joystick). Guess I will have to find an ethernet webcam.
Your problem is most likely a power sag induced by too long a cable. With a cable that long and that small I can imagine you're going to drop at least .5 volt. Test your voltage at the end farthest from the computer with the load attached. You need at least 4.75 volts. Try using the unused wires in the Cat 5 cable in parallel for the +5 and ground wires.

If your voltage didn't sag that far, then you have crosstalk issues. If this is the case, ground all the  unused wires at the COMPUTER END ONLY (hook 'em to the black wire).
The +5V has been tested and is ok. Checked the connections with a continuity tester for the data cables and the other cables were not connected.
Seems the problem is not power (the hardware is powered) but data transmission (un-recognized by computer). Anyway, I used another solution (optic fiber).
Thanks
qou26005 years ago
Can I use this to get internet or a lan connection?
for USB FLASH MEMORY is work but for w-fi USB not. Wi-fi its working only 2meters leng in 3meters hi dont recognize . salute
... just use the cat 5 cable by itself without doing anything lol this is to extend your usb cable way beyond the normal limits
I understand. My friend has a laptop with a broken network card an I was hoping for a cheap solution to his problem. I'm sure he can find a good deal on something though thank you both
PCfreak qou26005 years ago
no u would have to use something like this:
http://www.linksysbycisco.com/US/en/products/USB300M
LinuxH4x0r6 years ago
Cool! how does it perform (speed)?
arte.sano (author)  LinuxH4x0r6 years ago
So far I've been testing on Usb1.1, and just peripherals, no big deal there. thanks.
I know that speed decreases in as short as 6 feet, so I wasn't sure, but 1.1 should do fine.
hmmm I've tried this stunt on a very long Cat5 cable.. i attached a 5v led on the other side of the wire and it glows.. meaning the power is transfered accurately.. but when i attach a usb mouse or keyboard.. it seems that it doesn't get much power...meaning it doesn't work... is there anything i can do... ???
arte.sano (author)  varun.coolmax6 years ago
mmm, now the you mention it, I try a keyboard and didn't work, Mouse neither, How long is your cable?, check the length cos' my is 25' at least my web cam works with no problem, you can also use the 8 wires and paired them in two to double the connections, check the reply below. cheers
Use this wiring method but instead of using UTP, use CAT5 cable and don't use the hubs.

How to extend your USB using UTP
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!