237 points · by panic · 6y ago · 154 comments
"It's hard not to generate harmful interference."
We built a prototype sensor payload that included a USB3 external hard drive. Started suffering broad spectrum interference that stomped all over L-band (Iridium and GPS) reception. Made the entire system unusable!
Some references on USB3 noise:
USB 3.0 Radio Frequency Interference Impact on 2.4 GHz Wireless Devices (by Intel) https://www.usb.org/sites/default/files/327216.pdf
see especially Figure 2-2: "the data spectrum is very broadband, ranging from DC to 5 GHz"
USB 3.0 Interference - Cradlepoint Knowledgebase https://customer.cradlepoint.com/s/article/NCOS-USB-3-0-Inte...
"USB 3.0, or SuperSpeed USB, uses broadband signaling that can interfere with cellular and 2.4GHz WIFI signaling. This interference can significantly degrade cellular and 2.4GHz WIFI performance. Customers using cellular networks or 2.4GHz WIFI networks near USB 3.0 devices should take measures to reduce the impact of these devices on their network connectivity. Please note that interference is generated by both the actual USB 3.0 device as well as its cable."
In fact, we tested existing laptops on the market for WiFi/USB3 coexistence, and only 1 laptop ever made it flawlessly. It was a quite old Sony Vaio, where USB3 lanes were physically put under an RF shield from controller to the port.
I have never heard of interference with Iridium & GPS for USB2/3 and I worked on a team that was responsible for GPS at Apple, but it's entirely possible there's shielding needing to account for this & I just wasn't closely involved in it. If this were actually an unsolvable problem though, I would expect CarPlay & Android Auto would have a problem when you use your phone for navigation & start playing audio through USB. Maybe that's not enough traffic frequently enough to generate the noise needed to make it unusable, maybe the EE problem you were having was different, or maybe there's just good shielding in phones to avoid this as a problem.
https://usb.org/sites/default/files/327216.pdf
Paper by Intel about USB 3.0 interfering with 2.4 GHz WiFi. The fact that the USB-IF hosts this paper on their own site seems to be a strong endorsement of their conclusions too.
It is worth noting that the RF noise generated by USB 3.0 covers a fairly wide spectrum from basically zero up to the mid-4 GHz range, but it gets discussed mostly in the context of interference with 2.4 GHz because most USB 3.0 capable devices don't have any other radios in that range to interfere with.
Given the report is 8 years old, I find it hard to believe this isn't an active thing that's designed around. Hell, you can buy USB3 WiFi dongles that do 2.4 Ghz. If this were a critical flaw that's unsolvable such a device wouldn't be possible to build. Even Table 4-2 indicates different mouse models have different performance characteristics, indicating not all 2.4Ghz devices are similarly sensitive to the problem.
During all those years the only way I could avoid random drops is by connecting the dongle to usb 2.0 ports.
I've had this issue both on a old dell l502x laptop and also now on my current asrock x370 motherboard which doesn't even have native usb 2.0 ports.
Sad to know this is actually a design issue, and thus may repeat on any computer I acquire in the future.
Does "flaky" here mean connection going in & out vs inconsistent & bad speed?
Assuming we're talking about speed rather than the connection itself, two walls can be a challenge if you're on 5ghz depending on the quality of your router & dongle. Do you have any old devices on your network? Your WiFi router will run at the speed of the slowest client. Can't recall if camping is a problem - I'm less clear about the details here, but it should be. If your 802.11AC dongle is on the same frequency as 802.11N, performance will be degraded off the bat so consider moving those devices onto a different frequency if you have a dual-band router (e.g. wireless printers or older wireless TVs can be causes).
If the connection itself is flaky, check if the RSSI is really bad. Anything >= -70 dBm is good & anything <= -80 dBm is pretty bad. Note the negative sign. -90 is worse than -80. If you're on 2.4Ghz you could also be having issues from poorly shielded electronics (e.g. old microwaves) or cordless phones.
Hope this helps!
As a SW engineer my interpretation has always been that USB3 speeds are just too high to work really reliably with consumer grade hardware. This article gives technical details that tell me I have been correct.
The last section of the article is the most relevant: the hardware, tools, and documentation for USB3 are of mediocre quality. The whole history of moving bits over cables is adding and adapting tricks for getting more and more data through, we’ve always been at the point where poorly implemented solutions would cause problems, and we’re several orders of magnitude away from it being possible for a novice to implement a hardware and software solution from scratch (bit banging a serial interface on a microcontroller GPIO is possible for a reasonable person to do in a week to achieve less than a megabit connection). Super fast data rates are all over and most of them are very reliable, USB isn’t up to the same quality. You can make any speed reliable and fool proof, you just have to do it.
A large number of problems appear to be bad hardware compliance, documentation, firmware or driver. For example, I have a PC with an early Renesas USB 3.0 controller. Once in a while, the controller could become completely unresponsive. The reason was that the controller has a firmware bug, and you can actually get some reverse-enginnered firmware update tool on GitHub to fix it.
It took a while to debug because I was absolutely convinced the slowdown was a software or GPU issue. After all, wouldn't you expect most digital ports to be binary: either be plugged in or not? It turns out with USB3 there's a third state.
No. USB-A plugs for 2.x have 4 contacts that extend close to the outer edge. USB-A plugs for 3.x have additional 5 contacts close to the inner edge. If you don't insert the plug fully, you physically just get a USB 2.x connection. Nothing magic there.
https://www.techspot.com/guides/235-everything-about-usb-30/
There are more subtle problems with 3.0.
Mmm, I am surprised about that because USB 2.0 is fully capable of 1080p60 without issues. I have Logitech C910 and it does 1080p60 flawlessly. I wonder if it is not actually 2.0 but USB 1.1 which made sense since the transfer rate is abysmally low (1.1 does up to 12 Mbps, 2.0 is up to 480 Mbps).
But again, computers does have their quirks and can do weird & strange things that seem impossible but it is possible.
I am not who you were responding to, but I can confirm that at 480 Mbps our Intel Realsense does not work, 5000 Mbps are mandatory. We use an Infrared stereo mode at 30 fps. I am not a my desk now and don't remember the exact details by heart.
mjpeg compressed
https://telestreamforum.forumbee.com/t/6363z0/psa-windows-10...
It's always a good idea to have a known-good extra cable or two and laptop that you know has good ports. All the time and frustration you will save is definitely worth the hassle.
In contrast to the sheer idiocy of demanding a "pocket change" fee of $1 per port, which made FireWire an instant turnoff for most device makers not targeting Western markets, and singlehandedly killed FireWire as a standard.
FireWire was possibly better engineered, but USB was better marketed.
Yes, perhaps, but it had a big drawback. You could not build a Firewire device with a single die because of the high voltages. This added cost to the USB device (memory stick, etc) meant it would never be price competitive with USB. I was a member of a USB working group and was amazed when a member from a large Japanese company explained that to me. Up to that point, I had not been exposed to the low-end (as in price) of the USB market and didn't realize the significance of this issue. These manufactures would bring the 5V straight into their IC and drop the voltage on-chip. That is actually fairly difficult in the age of such small chip geometries, but basically impossible for Firewire which is 8V to 30V. The USB market is driven by the low-end, so Firewire never had a chance because of an engineering specification.
The problem with USB 1 and 2 is that it was designed by insane committee. This resulted in stuff like those versions not using true differential signaling (like USB3 does) even though that was common technology at the time. Instead they have end of packets delimited by single-ended conditions. That, coupled with a single ground wire for power and data makes for a world of ground loop issues.
And then they made the frame rate 1kHz, which is right in the peak of human hearing sensitivity. And so, USB's terrible design is single-handedly responsible for a huge amount of, even most, noise and interference issues in audio systems involving it. Especially in low cost consumer hardware, but it has made its way into many professional productions. Any time you hear a constant 1kHz beep of interference, mixed with some fuzzy crackling, nine times out of ten that's a ground loop with USB and audio involved. It's everywhere once you listen closely. Headphone output on your laptop or phone is noisy when you access a USB drive, or has a 1k beep? USB. USB audio widget has background fuzz and a beep? USB. Slight 1k beep in the background of a news cast? Someone had the bright idea of using USB somewhere along the line.
It didn't have to be this way. Ethernet, SATA, plenty of other protocols use proper differential signaling and don't have this issue. How to do this properly was well established long before USB existed.
And to add insult to injury, while USB 2 specifies a transaction translator, so you can run USB 1 devices on a USB 2 bus, USB 3 does not. And so, while USB 3 devices don't have this problem any more, you can't plug in a USB 2 device into a USB 3 bus or a USB 3 hub. And nobody uses USB 3 for low channel count audio interfaces, so this problem will remain forever. Oh sure, you can plug it into a USB 3 port, which is actually a USB 3 port and a USB 2 port in one. And you can plug it into a hub labeled "USB 3" which actually has a whole USB 2 hub along side it in parallel. The communication from USB 2 devices remains USB 2 all the way to the host. And so, not only do USB 2 devices only get 480Mbps of total bandwidth on a USB "3" hub (minus a ton of overhead, because the protocol is terrible), it doesn't fix this issue! And did I mention USB 2 is impossible to galvanically isolate in any kind of cost-effective way?
I could go on and on about how the polled architecture causes performance bottlenecks, about how it's impossible to tunnel without unfixable corner cases, about how its latency requirements preclude lots of innovative ideas, about how the descriptor and device inquiry protocols are practically designed to guarantee that implementations are vulnerable and have exploitable bugs (yes, your USB stack is vulnerable. They all are. This is how the PS3 got hacked. And the Switch. And tons of other devices. USB developers like me know misbehaving USB devices crash hosts all the time).
I don't like USB.
Sounds like it delivered what it said on the tin!
Do we?
That's an interesting domain. What are you working on? Any reason for choosing Realsense over Azure Kinect or other sensors?
Firstly, RealSense cameras are really affordable. I think the cameras we were using were around $80 a piece. Cost was an important consideration for us because we were building a multi camera device and to do something similar with Azure Kinect would have cost us several thousand dollars.
Another thing we like was how great the Intel RealSense SDK is. They have official wrappers for multiple languages along with sample code to get you started.
The RealSense ecosystem is quite healthy too – at least for a niche technology. RealSense cameras have a proven track record in various commercial devices and the development forums are fairly active. We found we could find answers to most common questions and problems we had.
Another nice thing about RealSense is that they have a great range of cameras so they have something perfectly suited for every application. For example, some of their cameras use stereo vision while others use LIDAR or structured light. They also use the same SDK for every camera which makes swapping out cameras fairly easy. We were using structured light cameras, but we were able to swap them out with Stereo and LIDAR cameras with no problems at all.
Azure Kinect looks interesting. I've wanted to play around with one of a while, although given its price and feature set it wouldn't have been the right camera for us. It's probably a good all-rounder for general robotics / vision projects though.
An awful lot of USB issues would go away by getting rid of the need to push an electrical protocol too close to physical limits, enforcing sane minimum standards so end users have a clear idea of what a given port can provide (none of the current mess where 'USB-C' represents a connector that could support any number of protocols), and making layer 1 a dumb pipe (no special wires needed to support optional feature X) so functionality could be entirely software-defined.
USB is just too complicated for its own good, and has too many optional features, to be friendly to end users.
Thunderbolt chips already cost an arm, and a leg.
I'd say a purpose made, abuse proof optical cable is better than high frequency copper cabling.
So I can take that pattern, repeat it a few million times, and then if someone transmits it (as simple as saving it to disk), it turns their USB devices into transmitters.
Generally a key defence is the maximum packet size (you can’t keep your evil stream aligned with the scrambler) along with the huge pattern length (for PCIe g1/2 and USB3, 10GE and PCIe g3 works differently) which means that the amount of data you’d have to send is just too large.
The PCB routing and cable do not have to not be tightly coupled differential pairs (this is almost never seen in practice).
The data you’re trying to transmit falls within the line code. Keep in mind only 1/4 of all possible bit sequences are even available in 8b/10b.
An interesting question is if the USB2/micro-USB connector era was peak USB and that we're going to see more varied and differing implementations in the future.
Though I think this was more to do with controller bandwidth than the physical layer.
10GBASE-T consumes too much power (2-5 Watts!) and generates too much heat for a single port (a transceiver can go up to 90 celsius!) , so it is not suitable for most of areas, including for home NICs (requires spaces for big coolers) and for enterprise switches (ports cannot be densely placed [1]). But I haven't heard of reliability concerns that USB3 has. Well, they are designed to work up to 100 meters so they should be reliable. Maybe it's all because of the transformers you mentioned?
Therefore it's very common to use alternatives like optics and simple DAC copper cables for 10Gbe. I also think home networking industry will eventually give up 10GBASE-T.
[1] https://wiki.mikrotik.com/wiki/S%2BRJ10_general_guidance#Gen...
Infiniband for homelabs is a really underrated choice, if you can source cheap cables.
I mean, I have an Asus 10GbE pciex card in my workstation that works at the advertised 10 gigabit speed using a 10GbE switch, Cat6 cables and another workstation with the same card - what am I missing?
Running at much lower frequencies makes it reach much farther, makes it more immune to EMI and makes it more reliable (because the margins are much fatter when you are only using 10 % of the possible minimum cable length).
Other than the fact 10GBASE-T buyers are ready to spend a lot more per port :)
Four pairs vs one pair already quarters the bandwidth requirements on top of that.
Miniature magnetics are a thing now, possibly provide better signal integrity, but they are still are purpose made parts, and they were not around the time of first USB3 drafting.
Replace it with a stripped down version of Ethernet with a simple, sane protocol that can encapsulate ethernet frames, display port frames and PCIe frames. Something like firewire where we can memory map a device or perform bulk transfers or byte oriented transfers.
Maybe a "converged" controller with some brains can allow it to handle Ethernet frames directly so an Ethernet port or dongle isn't much more than an external MAC. Then we can use existing Ethernet interface hardware, MAC's, jacks and so on. A new connector would be nice too. One that doesn't have the ability to inject 20V into a 5V device. Real-time can be handled using TSN and PTP can also be used.
Finally, combine that with single pair Ethernet for local desktop device networking at up to 1GB with PoE over a single pair of wires. Why do we need USB 3 and C again?
Typical copper ethernet is 1Gb/s, while USB 3 is 5 Gb/s, going on 10/20/40 Gb/s with USB 3.2, USB 4 .. thunderbolt.
As others have said, 10G ethernet is too power hungry, and even 1G ethernet is inherently more expensive. I resent active cables and do prefer ethernet, but it's not a realistic proposition for most use cases.
All the bit rates you listed Ethernet also covers. And as for copper - at the speeds you listed thunderbolt and USB3/C are limited to severely short cables, a measly 0.5 meters for 40Gb. Though 20Gb can do 1 or 2m, 2m being the longest thunderbolt cable you can use.
As for power, that devil is in the interface details. I see no reason why multi-gigabit Ethernet can't be pushed over a similarly designed low power differential copper serial transceiver.
As far as I'm concerned, Ethernet is more mature than USB could ever dream of being.
I constantly see "certified" USB3 gear failing.
HDMI though, the routing examples for that one are stunning.
Signal integrity minimums for thunderbolt is more strict than USB3, and it is a bigger EMI issue, but at least the new standard mandates mandatory shielding.
So yes, you can have USB 3 on USB C or older shapes of USB cables.