Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Hardware

DIY USB Extension Cables Using Cat5/6? 50

TheDarkRogue asks: "Ok, I have a small USB device that I need to position a distance from my computer, more then the cable, at least 30 feet. The thing is that I don't think it can go that far very well. I looked around for a solution and found a few products I could get for a price way out of my price range, so now I'm looking at this as a doit-myselfer. How can I extend the distance using Cat5/6? Does anyone know of any schematics for something or is that in its self more then is needed?" Extending a USB cable to this length (or more) can't be this easy, can it? What's the maximum length of USB cabling one can get in a single stretch?
This discussion has been archived. No new comments can be posted.

DIY USB Extension Cables Using Cat5/6?

Comments Filter:
  • Long cables (Score:4, Informative)

    by orangesquid ( 79734 ) <`orangesquid' `at' `yahoo.com'> on Saturday August 17, 2002 @03:38AM (#4088135) Homepage Journal
    Can long cables really be this easy? Maybe...

    I dunno, I needed to network two machines QUITE a distance apart, so I made a crossover UTP network cable out of an existing UTP patch cord and several hundred feet of speaker wire, as two pairs (send pair and receive pair).

    Works perfectly. Blazing fast, too. I would say that I just got lucky but I do these sorts of things all the time....

    You may very well be successful with the Cat5/6 option. My excessively-long ethernet cable made out of speaker wire has been functioning flawlessly for months (in fact, I built another to network hubs at vertically and horizontally opposite corners of my household, and it has also worked like a charm).
    • Question: Why would you think it shouldn't? Ethernet (10baseT andyway) can go a very long distance over the correct cables. 100 meters is the spec if I remember correctly, but I've personally done 3000 feet and it worked just fine (This connection I'm using now goes through a 1000ft spool!). If you 're only going a few hundred feet, and you're using a lower gague cable. You may be more easily effected by interference then if you were using twisted pair, but if you're not running the wires near anything that would create interference, then it should work.

      USB is another story. I don't remember completely off the top of my head, but I think that the signals have to arrive within a certain (short) window. That limits the potential length of the cable.
  • by orthogonal ( 588627 ) on Saturday August 17, 2002 @03:53AM (#4088155) Journal
    Ok, I have a small USB device that I need to position a distance from my computer, more then the cable, at least 30 feet.

    Hot chick moved in next door, huh?

    And you've found the perfect perch for your webcam, right outside her bathroom window?

    And you don't want to get a wireless X-10 camera, for fear of being spammed and popped-under every day for the rest of your life?
  • by Futurepower(R) ( 558542 ) on Saturday August 17, 2002 @03:53AM (#4088156) Homepage

    "For a low speed device the limit is 3 meters (9 feet 10 inches)."

    From USB.ORG's USB Info: Frequently Asked Questions [usb.org]

    In practice, manufacturer's technical support representatives often say that their devices will not work with a cable longer than 2 meters (6 feet), and they supply a cable of that length. In many office situations, a cable that short is useless. But they are right, a longer cable doesn't work, and a hub doesn't work.

    Ethernet and FireWire are examples of properly designed computer communication interfaces. They are trouble free.

    USB 1.0 is an example of a poorly designed and poorly implemented interface. USB often interferes with computer hibernation, to give another example.
    • Ethernet and FireWire are examples of properly designed computer communication interfaces. They are trouble free.


      Quite right... What people don't usually realize is that FireWire is just a form of serial SCSI, meaning you should probably be saying 'Ethernet and SCSI'. The same is true of FiberChannel, Serial SCSI, and perhaps even standard parallel SCSI.

      <rant>
      If you think about it, manufactures NOT putting Firewire in their systems makes a good deal of sense. IDE is used rather than SCSI, so USB would be used rather than Firewire. It just makes sense.
      </rant>

      I have two complaints.
      1. SCSI standards are too divergent. If they could just come together and make one controller that does Serial SCSI, Fiber Channel, and Firewire, all three would get quite a boost from the others.
      2. Not enough devices support Firewire and Ethernet. I was looking at laser printers recently, and only the extremely hi-priced ones have NICs. (A 100Mbps Linksys NIC can be had for $5, so I don't see the problem) Perhaps more manufacturers should make their devices (printer, scanner, camera, et al) modular. That would be the best way to encourage easy interface upgrades (buy a new module, not a whole new device)
      • The problem is that instead of just being a layout engine a printer with ethernet interface becomes an embeded pc, it now talks tcp/ip and has to convert the incoming signal(s) into document layout signals. It also has to be able to cope with multiple simultanous documents because now anyone on the network can throw a job its way.
      • Because SCSI is now divided into two parts -- physical and logical.

        SCSI-3 is a protocol that can run on top of:

        Parallel SCSI cable
        Fibre Channel
        FireWire
        TCP/IP (iSCSI)
        etc...

      • I was looking at laser printers recently, and only the extremely hi-priced ones have NICs. (A 100Mbps Linksys NIC can be had for $5, so I don't see the problem)

        A broadband router+4-port switch+print server can be had for under $60, so what's the big deal?

      • I was looking at laser printers recently, and only the extremely hi-priced ones have NICs.

        Get a Brother HL-1270N [brother.com]. They ran about $300 a year ago when I bought one, have on-board ethernet, and specifically mention linux in the setup guide. The print speed's good, the web interface is good, and the price is pretty darned good (IMHO).

        • The print speed's good, the web interface is good, and the price is pretty darned good


          I like laser printers because the ongoing investment is much less than inkjets, not to mention that the print quality is much better (I dare you to print a full page, front and back, in fontsize 2 text on an inkjet). With ink, you know you're getting ripped off in any number of ways (which is why you don't see an estimated page count on the packages). With toner, you used to be safe, but lower cost lasers have led to toner scams.

          For instance, at work, one printer I maintain uses a $150 toner cartridge that prints tens of thousands of pages. This isnot mentioning that, with several toner-saving features, that is stretched into many times more.

          My home laser printer, uses a toner cartridge that costs about the same, yet only prints about 5,000 pages...

          When I am looking for a new printer, I could care less about the interface, and very little about the speed... My biggest concern is how many pages I'll get with the toner cartridge, per-dollar. The printer you mention doesn't do much better than my own. I'd be willing to pay a load of money up front, if necesary, to minimize the ongoing cost of tones, (and the drum for that matter).

          Unfortunately, it's fairly rare that a printer or toner cartridge is listed together with it's page count, so it's hard to search for. If you've got a suggestion for a good printer under THAT criteria, I'm all ears.
          • You're right - the brother's long-life cart does about 6,000 pages and costs about 70-80 bucks. That still gets you 12,000 pages for your $150 figure - but this printer's a "desktop" class machine. I do have a hard time believing "tens of thousands" from a single toner cart, but whatever.

            If you wanna spend some money to get a good laser-class printer with low consumables cost, get a used Tektronix (now Xerox) Phaser 850. It uses wax blocks instead of toner, and they last a long time. It's got your networking built in. The best part about it is that black ink (wax, whatever) is free for the life of the printer. The output is really quite amazing, and you get that cool raised texture at the higher quality settings because of the wax. I maintain one at work (and some laser printers) - it rocks. Unfortunately, they're not sold as new now. Oh, when looking at their "page rating" - note that we average 3% coverage with black, and 1% coverage with the colors. YMMV.
            • That still gets you 12,000 pages for your $150 figure - but this printer's a "desktop" class machine.


              I have been looking at printers lately. After comparing the prices for lower-end laser printers & toner, I've noticed that it will take (at best) around 20,000 pages before the lower priced toner makes up for the price of the machine (and that's not counting the cost of drums). So, I'm not going to half-ass this thing, I'm going to look around for some time, and go for the gold.

              I do have a hard time believing "tens of thousands" from a single toner cart, but whatever.


              Kyocera is a brand I've been looking at closely. The toner cart for the FS1700 [etoner.com] laser printer costs $93, and yeilds 20,000 pages.

              get a used Tektronix (now Xerox) Phaser 850. It uses wax blocks


              I'd be willing to spend the money, and I have heard great reports about wax printers from at least a dozen people already. However, I'm very skeptical of any offer like that (e.g. free for life). There is ALWAYS a very large catch. If you can direct me to some web page with the offer, I'd be happy to read more about it.
              • The supplies page is at http://www.officeprinting.xerox.com/perl-bin/produ ct.pl?product=Z850 [xerox.com] , the printer order page is at http://www.officeprinting.xerox.com/perl-bin/produ ct.pl?product=Z850&page=pric [xerox.com]. It looks like the deal is just for the 850 series, though, and that one's not listed as available new any more. The 8200 series is what they're selling, and they're charging for black ink sticks.

                The tech is still pretty darned nice, though.

                Oh, here -I found that you can get the 850 sereis remanufactured through xerox at http://www.officeprinting.xerox.com/perl-bin/produ ct.pl?mode=remanufactured [xerox.com]. It says right there "Truly brilliant, high performance color, plus free black ink". I'd advise you to go with the DP and just buy the extra memory elsewhere. The $700 difference between the DP and DX is about what you'd pay to get a new extra paper tray and hard drive - and the hard drive's not terribly useful. The price isn't too bad for what's a *really* nice printer, either... :)
                • Appreciate the info, but I've found a bit more on my own:

                  It seems you can order a 3-pack of ink sticks for $0... If true, what ordering limit do they impose? If 'none', they would be broke by now.

                  Their Phaser 860 [xerox.com] is available for $2,000, with 'Free' Ink sticks as well.

                  Their Phaser 8200 sells for $500 less, without the 'Free Black Ink' deal. (but read below)


                  The 'Free Black ink' is expensive!

                  For the 860: '2 cyan + 1 black Free' prints 2,800 pages, and costs $92.

                  For the 8200, '2 cyan' prints 2,800 pages and costs $80.

                  Is it just me, or does it sound like you are paying $12 for the '+ 1 black Free' ink stick?

                  You can verify those prices here: http://www.officeprinting.xerox.com/perl-bin/produ ct.pl?product=860&page=supl#<b>colorstix®_solid_in k</b>

                  And here: http://www.officeprinting.xerox.com/cgi-bin/produc t.pl?product=8200&page=supl&cache=miss#<b>colorsti x®_solid_ink</b>

                  I've looked at other printers they've got for sale as well. Their Phaser 1235 is $2,700, but the black toner ends up only costing $0.0097/page. It would take some time to make up the printer's cost, but it would be a good deal if I get a refub. In any event, I've requested additional information from Xerox and might end up buying one of those three printers. So, I appreciate the information, but the 'Free Black Ink' deal continues to look like snake-oil to me.

    • Thats really just the theoretical limit,, it really depends on your hardware, my USB printer is on a 25' USB cable, which my local store keeps in stock, and works as well as on a 6' cables, and you can buy 10' cables, also over the limit by 1', at most walmarts, etc. Reece,
    • "USB often interferes with computer hibernation, to give another example."

      Are you talking about the Windows 2000/ME/XP hibernation feature? It doesn't require any particular hardware support, only that the drivers are designed with it in mind so that they can save state properly.

      ACPI suspend-to-disk is another matter, however.

  • Profit! (Score:3, Funny)

    by Karma Farmer ( 595141 ) on Saturday August 17, 2002 @04:14AM (#4088182)

    Here's a plan!

    1. Cut ends off existing USB cable, and solder to longer cable.
    2. ...
    3. Profit!
    But seriously -- what exactly are you asking? If want to know if a longer cable will work, then just solder up a longer cable and test it. If you want to know if twisted pair will help with electrical interference, or what wires to choose to run to which pins to give the greatest benefit from the twisted pair, then ask that instead. If you're looking for inexpensive passive or active extensions, ask that. If you want to know where to find cheap cable ends from a reliable vendor, ask that. If you want to build your own USB repeater (or whatever they're called), ask that. But I can't figure out what your current question is. If your question is "How can I extend the cable length using a longer cable," then the answer might be, umm... maybe you could use a longer cable?
  • "active USB extension"

    16 foot for 30 bucks.
    30 foot for 45 bucks.
    60 foot for 60 bucks.

    Relatively cheap, zero signal degradation.

    Roll you own from CAT 5....

    Expencive when you destroy your device and/or motherboard.
    • Roll you own from CAT 5.... Expencive when you destroy your device and/or motherboard.

      It's not that you'll destroy anything; it's that it won't work. Well, I suppose if you tie something powered to ground you might fry your USB chip, which would be annoying. The device, however, should be safe unless it has its own power supply.

  • if i am correct the longer "active" cables use in-line power to keep the signal alive
    so you could just put a small amplifier on ?the far end? of the connection and viola!
  • Comment removed based on user account deletion
    • Can't you get three regular serial cables and three of those serial conenctors with the screw terminals on the ends (for experimentation purposes or whatever where you change wires around a lot)? That'd avoid the hassle of waiting a few minutes to warm up the soldering iron... I know that setup time is the reason *I* rarely get around to soldering things together properly. :)
  • by CMiYC ( 6473 ) on Saturday August 17, 2002 @09:57AM (#4088610) Homepage
    You can't just go hacking into a USB cable and make it longer. Probably the #1 reason is that USB uses a differential signal. That means that however you extend the cable you have to do it exactly the same on both D+ and D-. If you don't, part of your diff signal gets skewed and becomes corrupted at the receiver. Secondly you have to maintain an imepedance match. Anytime you introduce an impedance mismatch you generate reflections. The wire used in a USB cable has a certain about of reactiance (X). The X of a twisted wire pair is completely different.

    In order to do what you want, you really need to build a fairly preceision amplifier/receiver setup. The difficulty is the fact that you are dealing with differential signals. Each "side" of the diff signal must be treated the same way. It is almost impossible for you to make the exact same size solder joints, exact same size wires, and have the exact same impedances throughout. Its especially important on long runs because of the highly immentant signal attenuation.
    • Ethernet is also a differential signal - signal skew is simply not that big of a deal, especially at USB speeds. Light travels a long ways in one clock cycle.

      Impedance also isn't a big deal. According to this [usb.org], it's supposed to be 90 ohms, and the spec allows for 15% variation. Cat5 is about 100 ohms.

      What is important is timing. According to this [usb.org], the low-speed timing limitation is 18ns, or 300000000*.000000018 = 5.4 meters. Significantly under 30 feet.

      Size of solder joints... sheesh.

      • Yes size of solder joints will matter. The impedance mismatch of the solder joint can be enough to generate reflections that will destory the signal.

        Yes skew if a very big deal for differential signals of any speed. Sure maybe adding an inch on a USB cable won't hurt, but more than 3 inches will.

        Impedance mismatches will be the largest problem of them all.

        These are all issues if you do not know that they can cause problems. If you've never soldered something, don't know what a differential signal is, or do not know anything about tranmission lines, these are all big issues. From the sound of the question, my guess is the person asking doesn't know (and maybe not understand) these issues. If you do, then no, they may not be a big problem.
        • Yes skew if a very big deal for differential signals of any speed. Sure maybe adding an inch on a USB cable won't hurt, but more than 3 inches will.

          The wavelength of a 24mhz signal (f.e. USB) is 12.5 meters. Let's round 3 inches up to .1 meters - it's .8% of our wavelength, or 2.88 degrees. 1 - cos(2.88) = .0012, or .12% of RMS. Have you been living in wonder at how people make a 250mhz signal go across these lines? (gigabit ethernet)

          These are all issues if you do not know that they can cause problems.

          Ahh, so that's why having a technician look at a computer problem instantly makes it unreproducible.

  • I'm just curious -- does the USB port put out a strong enough signal to go 20 or 30 feet or more without some kind of booster/amp? And how about the device? Especially if it does not have its own power source.

    I remember trying to extend serial cables and keyboard cables on some computers in the past and it didn't work simply because there wasn't a strong enough signal.
    • It's a timing thing. A simple amplifier can do nothing, even if it somehow caused 0 delay. It's more like the maximum length of an ethernet segment. It's timing. 3 meters at 66% the speed of light (usual speed factor of metal transmission lines) is the maximum timing drift. There's a bit of wiggle-room, to let the devices meet timing, so you might be able to stretch a single segment to 4 meters. The high-speed supposedly is good to 5 meters, also with a bit of fudge. Beyond that, the signal, with its timing, must be regenerated.
      For an analogy, think of one of those marble racetrack things, where you send the marble down lots of troughs, jumps, and such. At a certain distance, you can set up a jump that succeeds every single time, forever. Beyond that distance, you may be able to tweak one that still makes it every time when you're testing it, but change the temperature, let the joints in the tracks wear a bit under vibration, let the marble sit in the sun for a few minutes, whatever, and the ramp may fail 100% of the time. Making a custom ramp/landing box combination could let you greatly exceed the limits of the specification. As long as your combination uses the nonstandard interface to each other and the standard interface to the standard modules, there's no reason not to do it.
      With USB, though, I have never heard of anybody making a bridge. It looks like 5 3 or 5-meter segments are the best you can do.
      For my webcam, I gave up and got X11 (made sure i bought it by going directly to their URL. I'll be DAMNED if I'm going to click a pop-up/under) for the last 100 feet. Resolution sucks, though.
  • by brink ( 78405 ) <<jwarner> <at> <cs.iusb.edu>> on Saturday August 17, 2002 @12:06PM (#4088975) Homepage
    Stranger things have been done. Once my brother-in-law and I were SOL on finding a serial-to-rj45 cable for the management port of a router. All we could find was a cd audio cable and a cat 5 patch cable, so we stripped one end of the cat 5 and plugged it into the pinholes of the audio cable, then pulled the wires out of the plastic on the other end of the audio cable and just shoved them onto the serial port pins. Worked like a charm!

    'Course, it probably helped that the total length was only like 2 feet, but still.

    • I'll agree. Back when I was a young sprite, I brought my computer to a friend's house and we set up in the shed out back. Didn't have a phone line, so I spliced together speaker wire, 300 ohm twinlead, 75 ohm coax, and household zipcord to make a two-conductor cable long enough to get a POTS line out there.

      I never broke 26.4k connects at home normally, but through that line I got 51k to 53k connects all night long.
  • by SagSaw ( 219314 ) <slashdot@noSPam.mmoss.org> on Saturday August 17, 2002 @02:15PM (#4089553)
    From The USB FAQ [usb.org]

    Q3: Why can't I use a cable longer than 3 or 5m?
    A3: USB's electrical design doesn't allow it. When USB was designed, a decision was made to handle the propagation of electromagnetic fields on USB data lines in a way that limited the maximum length of a USB cable to something in the range of 4m. This method has a number of advantages and, since USB is intended for a desktop environment, the range limitations were deemed acceptable. If you're familiar with transmission line theory and want more detail on this topic, take a look at the USB signals section of the developers FAQ.

    Essentially, the USB cable is a mismatched transmission line. As a result, the signal reflects off of the ends of the cable, resulting in a stair-step pattern whenever the voltage level on the line changes. As the cable gets longer, it takes more time for this stair-step pattern to settle to the final voltage.
  • The only way to properly do this is to find a USB extension cable. It's a device that has a small hub controller in one end. (looks like a regular cable with male& female A connectors on each end, but has a larger housing at one end and in that housing, there's a hub.)

    You might find that you can extend it in other ways, but they will be very finicky.

    The other option is to connect multiple cables together using regular hubs.
  • by no_such_user ( 196771 ) <jd-slashdot-20071008.dreamallday@com> on Saturday August 17, 2002 @03:01PM (#4089725)
    I read this story earlier and just happened across this device a minute ago:

    16 ft. USB Active Extension Cable [cablesnmor.com]

    I have ZERO relation to this company (though I have bought from them before) and have ZERO experience with the product. But it looks like what you're after. I'm sure there are other vendors who supply this device as well.

    Good luck!
  • I have a 10 metre usb extention cable, it runs along side 2 cat5 cables, one for lan and the other carrying kvm data. I run it to my linux router which is up in the attic (to keep things quiet).
    In order to get 10m out of usb I used 2 x 5 metre usb(A) to usb(B) cables and a 5 port minihub, the cables cost me 5(ukp) each from Tesco of all places, and the hub was 15(ukp) from maplin electronics. It all works like a dream and only set me back 25(ukp)
    I think this must be working at both high and low speed as I'm running a speedtouch usb adsl modem on the end of the usb as well as my keyboard and mouse. I was even toying with the idea of usb speakers if I can find some that are supported by linux and are available in the UK.

    Maybe someone could help me out with tails of usb audio experiances.

  • I admit I don't know a whole lot about USB, but have you looked into powered USB hubs? I don't think this would overcome the signal problem, but it would fix the power problem.
  • They did this on an episode of the ScreenSavers once. They started stringing USB extension cables together on a USB webcam to see how far they could get it to work. I don't remember what the distance was, but they made it quite the distance beyond the USB spec before it quit being properly detected by the computer and functioning.

    Something to try if you can get some cables on the cheap.
  • Hey,

    I wanted to play about with an extended USB cable, so I could have a webcam at my door. Here's what I did:
    1. Get a short USB cable.
    2. Cut it in the middle.
    3. Get some STP Cat5 cable (I used this because I had spare cable in work).
    4. Splice the Cat5 into the middle of the USB cable (Note: If you don't have much electronics experience, it might be worth employing the help of a friend).
    5. Bind the joints in insulating tape.
    6. Light two black candles, and sacrafice a live chicken.
    7. Test cable.

    Of course, I only wanted a cable for a cheap USB webcam, and it was the only thing on the bus. The specification calls for much shorter cables, and that's presumably for a reason. Your mileage may, or course, vary.

    I've had success though. Good luck.

    Michael

"The medium is the massage." -- Crazy Nigel

Working...