logo elektroda
logo elektroda
X
logo elektroda

Max Length for USB 1.1/2.0 Cables & DIY Cable Material Recommendations

Kwazor 52020 16
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 1476730
    Kwazor
    Level 32  
    What is the maximum length of a USB version 1.1 or 2.0 cable?
    And what cable to use when making your own USB cable.
  • ADVERTISEMENT
  • #2 1476751
    Hucul
    Level 39  
    Theoretically up to 20 m. I don't know how many in usb2.0, but I think so. I used twisted pair for the network and it worked fine (but the twisted pair is inflexible and quite brittle with frequent switching, it may be a problem)
  • ADVERTISEMENT
  • #3 1476854
    Platon
    Level 42  
    5 meters, extended maximum (actively) 5 times. in total it is 25 meters.
  • #4 1477032
    Kwazor
    Level 32  
    Plato under the term "active" should I understand that with an amplifier?

    Ps And the use of good quality cables, e.g. shielded, would improve something?
  • ADVERTISEMENT
  • Helpful post
    #5 1477057
    unitral
    User under supervision
    I had a 50m cable, 4 cores in a common screen - a link :)
  • #6 1477072
    Hucul
    Level 39  
    I have almost 20 meters on a twisted pair :)
  • #7 1477340
    Kwazor
    Level 32  
    Hucul almost 20M, it means that after exceeding this length there were problems with the transmission ??

    Maybe I will present my problem:

    Man on the net NEO and as you know most often it is USB ...
    And I need to know how many meters I can give a cable made by myself to make it work, I know for reducing the speed to USB 1.1 can help me a lot (I know how it was with 40 meters twisted pair and Router I had to give a 10 mbit card because 100 did not want to catch)

    And that's why I need to know if there are any problems along the way.
  • Helpful post
    #8 1477368
    Hucul
    Level 39  
    I only needed 20 m and I didn't check if it would go for more.
    I only checked on usb 1 because I do not have a newer one.
  • #9 1477448
    martinpl
    Level 27  
    I myself made a USB cable for a webcam used to monitor a remote room and with a cable length of 13m (lucky thirteen?) I do not see any disturbances or lags, all on a twisted pair in class 5
  • #10 6381292
    fiskusmati
    User under supervision
    Sorry to dig up :-)

    But which wires should I pair? Ground and 5V in one pair and Data + and data- in the other or how?

    I will need about 45m for a 2500x2000 pixels webcam
  • #11 6394438
    machlanskijan
    Level 11  
    My experience with USB 2: ASROCK board, 2.4 GHz processor, 80GB disk, 5m factory cable from USB to Y cassette something there, 160 GB disk in the cassette, keyboard, mouse included in the cassette's USB sockets. This configuration was unable to copy or move a 60 min DVD file from a 60GB disc to a 160GB cassette drive. Comp. During the operation announced that the operation has been aborted and that data may be lost. And they have been lost. The same steps with a 160 GB disk connected to the motherboard have ALWAYS been successful.
  • #12 6402241
    11111olo
    Level 42  
    It all depends on the specific device.
    For me, the scanner and printer are USB 1.1. They are connected to a 5m extension cord plus a normal 1.8m cable. While the scanner can work all day, the printer only works properly for a while, and then it does not want to print anymore: / You have to turn it off and on again.
  • ADVERTISEMENT
  • #13 6402264
    fiskusmati
    User under supervision
    We will see if 40m on the 2500x2000 camera will last :-)
  • #14 6403240
    mgpentium
    Level 16  
    For me it worked well over 20 m. So I think you can go ahead and give it to the webcam.
  • #15 6403259
    fiskusmati
    User under supervision
    And what resolution is this camera and do I have to have an active hub with an amplifier or are there any chances that it will work without?
  • #16 6405007
    And!
    Admin of Design group
    This is not Ethernet, it is not only about cable losses and their amplification, the times in which information passes through the cable are also important.
    Time restrictions are much stricter than in the ETH.
    USB is a symmetrical serial bus, therefore for D + D-, as in ETH, we use twisted pair.

    USB is quite time strict,
    the total delay caused by the cable connecting two USB devices should not be greater than 30ns.
    The theory is about the use of cables
    For low speed:
    two untwisted 28 AWG wire pairs
    For full and high speed:
    shielded twisted pair D + D- 28 AWG
    28AWG unshielded power pair

    So for cables 6-10ns / m we get distances of 5-3m.
    In practice, the 10m cable works too, 15m not with every device.

    Additionally, if we used USB hubs, their number also cannot be arbitrary.

    The total unidirectional delay in the transmission path should not exceed 350ns.

    On the other hand, the hub + cable should not introduce a delay greater than 70ns.

    So if we have 30ns cables and properly functioning hubs, they cannot form a chain longer than 5 separating devices.

    In practice, it is different, you can often bend the standards, but some devices do not work at all, or work unstably (they disconnect and reconnect).

    There are also problems with USB load capacity, and with larger hub configurations, one device that constantly starts the USB enumeration process may affect the others.

    Also remember about the time restrictions in USB transmission,
    often placing the hub in the middle of the transmission channel can help,
    if the hub is bad it can often hurt.

    Also, beyond the limits of the USB specification, experiments remain.

    By the way, I wonder how USB ETH USB devices work,
    they must have cleverly made data buffers.
  • #17 6407012
    fiskusmati
    User under supervision
    Only 15m. what about 40? I now have a camera at 17 meters, but in terms of quality it is poor, 640x480, but it works without a problem.

Topic summary

The maximum length for USB 1.1 and 2.0 cables is generally accepted to be around 5 meters for reliable performance, with the possibility of extending this to 25 meters using active cables with amplifiers. Users have reported successful DIY cables using twisted pair wiring, achieving lengths of up to 20 meters without significant issues. However, performance can vary based on the specific devices used, with some users experiencing data transfer problems at longer distances. Recommendations for DIY cables include using shielded twisted pairs for data lines and separate pairs for power. The total delay in the transmission path should not exceed 350ns, and the use of USB hubs can affect performance.
Summary generated by the language model.
ADVERTISEMENT