Author Topic: USB cable extention  (Read 1391 times)

0 Members and 1 Guest are viewing this topic.

Offline hpibmxTopic starter

  • Regular Contributor
  • *
  • Posts: 87
  • Country: my
USB cable extention
« on: March 12, 2022, 04:29:38 am »
Hi,

could anyone explain how to extend usb cable? I simply got female usb and added all 4 lines, but it doesn't work, it does work for led light but for data it doesn't work, when using camera or anything else.

I would to know the reason and explanation for this please.

Thank you.
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5018
  • Country: ro
  • .
Re: USB cable extention
« Reply #1 on: March 12, 2022, 05:22:11 am »
Wires have resistance ... the longer the wire, the higher the resistance and the voltage drops.
According to Ohm's law : Voltage = Current x Resistance

let's say the wire has a resistance of 0.1 ohm per meter and you have a 3 meter long usb cable, that means in total there's 6 meters of wire between the device and the power supply that puts 5v on the usb cable... the higher the power consumption, the more losses will be on the cable.
Let's say your camera consumes 5 watts (5v x 1A of current)
So at the end of the USB cable, instead of 5v you would have 5v minus a voltage loss of   V = current x resistance = 1A X (6 METERS of wire x 0.1 ohm ) = 1 x 0.6 = 0.6v

The camera may not start with 4.4v ... too low voltage.

There are also some rules about the length of the data wires, and how long it takes for bits to travel, the longer the wires the more issues there are with clocking the bits and decoding the bits correctly.


IF the power is the issue, you can solve that by using thicker wires, or more wires.. for example you could use an ethernet cable with its 8 wires to extend a usb 2 cable .. you would use 2 wires for each of the 4 wires of the usb 2 cable... you use 2 awg24 wires instead of a single awg22-awg26 wire so you have less resistance... and the wires inside ethernet cable are also twisted so you get a bit better signal quality.
 
The following users thanked this post: hpibmx

Offline hpibmxTopic starter

  • Regular Contributor
  • *
  • Posts: 87
  • Country: my
Re: USB cable extention
« Reply #2 on: March 12, 2022, 06:42:12 am »
Wires have resistance ... the longer the wire, the higher the resistance and the voltage drops.
According to Ohm's law : Voltage = Current x Resistance

let's say the wire has a resistance of 0.1 ohm per meter and you have a 3 meter long usb cable, that means in total there's 6 meters of wire between the device and the power supply that puts 5v on the usb cable... the higher the power consumption, the more losses will be on the cable.
Let's say your camera consumes 5 watts (5v x 1A of current)
So at the end of the USB cable, instead of 5v you would have 5v minus a voltage loss of   V = current x resistance = 1A X (6 METERS of wire x 0.1 ohm ) = 1 x 0.6 = 0.6v

The camera may not start with 4.4v ... too low voltage.

There are also some rules about the length of the data wires, and how long it takes for bits to travel, the longer the wires the more issues there are with clocking the bits and decoding the bits correctly.


IF the power is the issue, you can solve that by using thicker wires, or more wires.. for example you could use an ethernet cable with its 8 wires to extend a usb 2 cable .. you would use 2 wires for each of the 4 wires of the usb 2 cable... you use 2 awg24 wires instead of a single awg22-awg26 wire so you have less resistance... and the wires inside ethernet cable are also twisted so you get a bit better signal quality.

Great thank you for your explanation.
I'll try thicker cable or ethernet as you mentioned.  :-+
 

Offline m3vuv

  • Super Contributor
  • ***
  • !
  • Posts: 1738
  • Country: gb
Re: USB cable extention
« Reply #3 on: March 12, 2022, 07:18:37 am »
how long is it?
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 6761
  • Country: pl
Re: USB cable extention
« Reply #4 on: March 12, 2022, 08:36:28 am »
Check your wire order. Normally it's black, green, white, red respectively for ground, D+, D-, power.

You should get best performance using proper USB cables (characteristic impedance 90Ω, which is a measure of AC signal propagation characteristics and has little to do with resistance between the ends). Ethernet might work. But your cable doesn't even look like D+/D- are twisted together, so it may only be effective over shorter distances than proper high speed data cables.

Try some low speed devices like keyboards or mice, they ought to be more tolerant of poor cabling and may tell you whether the problem is with signal quality or missing/swapped data lines, for example.

Measure the 5V at the end with the device connected, this will tell you if there is a problem with voltage drop along the way.

I recall that USB is not recommended for distances longer than a few meters, but I don't know how it fails exactly and how far could you push it with good cables.
« Last Edit: March 12, 2022, 08:40:43 am by magic »
 
The following users thanked this post: hpibmx

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: USB cable extention
« Reply #5 on: March 12, 2022, 05:53:14 pm »
I recall that USB is not recommended for distances longer than a few meters, but I don't know how it fails exactly and how far could you push it with good cables.

USB 2.0 has a length limit of 5 meters, set by the turnaround time of a response from a device to the host. If the cable is too long, the host won't see the response in time and assume the device is not functioning correctly.

USB 3.0 superspeed has no length spec as such but the cables need to be "short" for the same reason as with 2.0.
 
The following users thanked this post: hpibmx

Offline cdev

  • Super Contributor
  • ***
  • !
  • Posts: 7350
  • Country: 00
Re: USB cable extention
« Reply #6 on: March 12, 2022, 06:02:35 pm »
I have a USB extension cable thats around 5 meters long. It shows up and acts as a hub. I use it with my RTL-SDR to put the receiver far away from my desktop/monitor. and its RFI.   (or even upstairs) It works well and substitutes for coaxial cable well in that kind of setting. It lets me put the SDR up much higher + closer to the antenna and snake the cable down to where  I have my computer. Coax and its losses at UHF make this a far better way to do this. The small size of the USB dongles lends itself to this too. Some might even contain a DC-DC converter to raise the voltage a bit? (But I am pretty sure mine doesn't, as that would add unwanted noise)
« Last Edit: March 12, 2022, 06:09:34 pm by cdev »
"What the large print giveth, the small print taketh away."
 
The following users thanked this post: Bassman59

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2299
  • Country: gb
Re: USB cable extention
« Reply #7 on: March 12, 2022, 06:23:05 pm »
Example products that might help if you need longer extension:
https://www.lindy.co.uk/usb-c4/usb-extension-c222
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2389
  • Country: gb
  • Recovering Electrical Engineer
Re: USB cable extention
« Reply #8 on: March 12, 2022, 06:49:58 pm »
buy an extender?
 

Offline hpibmxTopic starter

  • Regular Contributor
  • *
  • Posts: 87
  • Country: my
Re: USB cable extention
« Reply #9 on: March 13, 2022, 04:11:31 pm »
Check your wire order. Normally it's black, green, white, red respectively for ground, D+, D-, power.

You should get best performance using proper USB cables (characteristic impedance 90Ω, which is a measure of AC signal propagation characteristics and has little to do with resistance between the ends). Ethernet might work. But your cable doesn't even look like D+/D- are twisted together, so it may only be effective over shorter distances than proper high speed data cables.
Try some low speed devices like keyboards or mice, they ought to be more tolerant of poor cabling and may tell you whether the problem is with signal quality or missing/swapped data lines, for example.

Measure the 5V at the end with the device connected, this will tell you if there is a problem with voltage drop along the way.

I recall that USB is not recommended for distances longer than a few meters, but I don't know how it fails exactly and how far could you push it with good cables.

Yes will try lower speed devices and I’ll measure the voltage definitely.

Thank your explanation.
 

Offline hpibmxTopic starter

  • Regular Contributor
  • *
  • Posts: 87
  • Country: my
Re: USB cable extention
« Reply #10 on: March 13, 2022, 04:17:06 pm »
Example products that might help if you need longer extension:
https://www.lindy.co.uk/usb-c4/usb-extension-c222

Thanks for pointing out, soo what’s the magic the cable quality? Or what makes it work longer cable? As @magic mentioned the voltage drop?
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: USB cable extention
« Reply #11 on: March 13, 2022, 05:00:19 pm »
I have a USB extension cable thats around 5 meters long. It shows up and acts as a hub.

The hub is the key!
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: USB cable extention
« Reply #12 on: March 13, 2022, 05:04:44 pm »
Example products that might help if you need longer extension:
https://www.lindy.co.uk/usb-c4/usb-extension-c222

Thanks for pointing out, soo what’s the magic the cable quality? Or what makes it work longer cable? As @magic mentioned the voltage drop?

The extender has a USB hub built in. That gives you an extra 5 meters of distance. The USB 2.0 spec is that the distance between a device an a hub must be no more than 5 meters, so you can go 5 m from computer to hub, then another 5 m from hub to device. Remember, though, that these extenders are bus powered, so if you have a bus powered device at the end of the wire, it can't draw more than 500 mA minus whatever the extension draws. And some bus-powered devices just claim that they use 500 mA so they won't enumerate with these extensions.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf