[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: download (1).jpg (5 KB, 225x225)
5 KB
5 KB JPG
I figure with length the signal degrades but with short distances like 30cm is there any other negative effect?
I have a pcb with an awkwardly placed usb port.. Unsoldering and connecting a panel mounted port is beyond my capabilities but i may employ some help that could execute the task if the simple cable extension affects the performance somehow.
>>
>>101573728
>30cm is there any other negative effect?
Should be fine. Use a decent cable, rated beyond the target bandwidth.
>>
File: 1719970925390241.jpg (104 KB, 768x1024)
104 KB
104 KB JPG
>>101573857
What does should be fine mean? Im obsessive about these things so i want to know exactly what and how much im loosing
>>
>>101574092
Nobody can really tell, but I'd estimate, at worst and on average, your maximum thoroughput may be limited to 95% of a direct connection.

What do you want to do with this USB?
I don't need more than ca. 150MB/s, because the maximum here on my system are SATA HDDs on external USB controllers.
That's already too much to be used with USB2, but at the low-end of what USB3 can do, so it really depends on what you want to do with that extension wiring.
>>
What's the use case of not just buying a longer usb cable
>>
it's not an analog signal. the data makes it or it doesn't.
>>
>>101574668
It's transmitted via an analog medium, and has a non-zero chance of packet loss.
With a million packets, this loss can become significant.
With signal carrier medium degradation comes an increase in packet loss ratio, meaning less total bandwidth.
>>
>>101574753
you just send the data again. if you're rolling your own thing, just implement error checking.
a cable can lose packets 99% of the time, but if you just send the lost ones again, you'll eventually transfer it all.
>>
>>101574779
usb isn't stateless like rs232 or something, the host has to communicate with a device when its plugged in and pull its ids, give it an address etc. it only tries like 3 times before it gives up.
>>
>>101574617
Midi will be transmitted over usb.. The device boasts a high hz rate of operating and i dont want to lose any of its performance power..
>>
>>101573728
if the cable is too long it takes longer for the electrons carrying your bits of data to travel over the wire.
>>
File: 1625880249152.jpg (37 KB, 400x396)
37 KB
37 KB JPG
>>101575556
>MIDI
Are you fucking joking? That tech is like 40 years old, its bandwidth is less than a USB2 microphone.
>>
>>101573728
From the resistive part of things:
Internet says USB wires is 28 AWG (0.32 mm diameter), and the spec says +-5% voltage drop
So if we are transmitting 5V, the max voltage drop can be 0.25V
Impedance between 28 and 44 so let's use worst case 28

Now let's image a voltage divider, R1 is the cable and R2 is the 28 ohm impedance
Vin is 5 and Vout is 4.75V, doing the calculation we get R1 must be 1.474ohms

Doing the second ohm law on a copper wire of 0.32mm and 1.474ohms, the length would be 6.933m
So in the worst case you have voltage issues above 6.9 meters, doing the same calculations with best case would be 21.785m

There's also inductive and capacitive reactances, but I'm lazy so I guess the maximum would be 6 meters

BUT

When someone makes a 25 meter USB cable, they probably use thicker wire, and this problem can be easily fixed with USB hubs or extenders

Unless you are making your own cables with thinner wires or wiring usb around your house, I don't think you will have any issue
>>
>>101573728
You can use this adapter and a 200ft / 60meter ethernet cable and it'll probably be fine..
https://www.amazon.com/AV-Access-Extender-Operating-Synchronously/dp/B01EV33R8S

You worry too much, you're talking about a small and cheap cable that'll probably use little bandwidth, just buy the thing and try it out.
>>
>>101573728
Depends on the speed. USB 2.0 can span quite a large distance, whereas USB 3 20Gb/s and Thunderbolt can span maybe a foot before things start getting dicey.
>>
>>101574617
>>101575698
>>101575746
>>101575746
>>101575765

Thanks to all for taking the time to advise me... Btw i only need to move the usb a couple of inches.. I was worried the extra port and the cable could introduce some kind of fuckery so wanted to make sure i dont need to desolder the port from the pcb and connect the panel mounted port directly with wires
>>
File: 1718120366649826.jpg (204 KB, 507x905)
204 KB
204 KB JPG
So i was not that worried about cable length and more about the extra port and extra switch frow wire to port.. So the extra port doesn't introduce any fuckery?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.