63 points fcjr 3 hours ago 43 comments
xg15 1 hour ago | parent
It's like the IMAP working group saying "yes, we're 100% backwards compatible to POP3! We wrote a line into the spec that requires every IMAP server to also bundle a POP3 server..."
Out of curiosity, does that mean that in "normal" operation of USB3 or 4 only one of the two internal ports is ever used at a time? Or are there devices that already make use of both the USB2 and 3 lanes when plugged in?
drum55 1 hour ago | parent
dataflow 1 hour ago | parent
drum55 30 minutes ago | parent
Someone 1 hour ago | parent
https://en.wikipedia.org/wiki/Bluetooth#Implementation:
“Originally, Gaussian frequency-shift keying (GFSK) modulation was the only modulation scheme available. Since the introduction of Bluetooth 2.0+EDR, π/4-DQPSK (differential quadrature phase-shift keying) and 8-DPSK modulation may also be used between compatible devices.
[…]
In 2019, Apple published an extension called HDR which supports data rates of 4 (HDR4) and 8 (HDR8) Mbit/s using π/4-DQPSK modulation on 4 MHz channels with forward error correction (FEC)
[…]
The above excludes Bluetooth Low Energy, introduced in the 4.0 specification,[30] which uses the same spectrum but somewhat differently.”
The various network standards (2G, 3G, 4G, 5G) similarly have little to do with each other, technically.
unrented7977 1 hour ago | parent
It's just that there's little use for a 480Mbps link on top of however many gigabits you get from USB3.
arcticbull 1 hour ago | parent
In order for it to work you'd have to basically expose two full separate peripherals, one on the USB2 bus and one on USB3 bus, and they'd require their own descriptors and OS-side host contexts.
This works sometimes, operating systems are not required to support this mode of operation because the OS knows that both devices are attached to the same physical connector. It can mess up enumeration. It also prevents USB3 devices from being able to fall back to USB2 as required in the spec.
A USB3 hub likely has a separate USB2 controller attached, if it doesn't it's non-compliant and not guaranteed to work.
jsmith45 56 minutes ago | parent
You can often get away with splitting the two within a single physical device, as many hosts tend to treat the buses independently except for certain power management related tasks, but officially if you are doing that you need an internal hub. An internal hub is allowed to have 3.x-only devices on it, (although this may be confusing to users).
mirmor23 15 minutes ago | parent
The word 'protocol' there is doing heavy lifting. It is more like a bunch of electrical engineers fancied themselves to be protocol designers, and there we have it - a usb 'protocol' - no layering, no symmetry - just a bunch of structs to dump on the wire.
To be fair, the original problem they were trying to address (keyboard, mouse, serial, printer ports, phone lines etc replaced by a single interface), they did solve in a very comprehensive way, and it benefited the consumers immensely, however the developer side of it is/was really awful. vendor + hardware controller specific asymmetric host/device stacks, no comprehensive 'protocol' other than bit twiddling, incompatible power negotiations (config descriptor up to 2.0, and cc hardware channel for type-c), no OS metadata, and the list goes on..
We have not even started on the 'beautiful' forest of descriptors to manage; and comprehending some of these would leave you wondering if you really understood at all (e.g. hid report descriptor). All in all, great way to age prematurely without having learnt anything worthwhile about protocols.
With all this said, it is really good that they maintained backward compatibility. Otherwise the list of books needed to grok usb would be something like 'Effective USB', 'More effective USB', 'Exceptional USB', 'Modern USB', 'Performant USB' ;)
riobard 1 hour ago | parent
Reversible USB-C is very convenient, but the connector is really complicated and I am always amazed that it is able to transmit 40~120Gbps data while simultaneously conduct up to 240W of power with 24 very tiny pins in tight proximity.
edit: USB-C isn't even serial (the S in USB) anymore with many parallels pairs.
What would be possible with a circular (thus omnidirectional) simple data plug (with a few pins as possible) given modern tech?
drum55 1 hour ago | parent
unrented7977 1 hour ago | parent
You can buy an off the shelf solution for this. Several IC vendors sell auto-negotiating power sharing USB-PD source controllers. It's not that hard to implement and it's a feature you never notice when it works correctly.
Mainly this shows up in power banks and higher end AC adapters.
dspillett 1 hour ago | parent
Also, which device is responsible for what. I have a nice chunky battery that I sometimes charge my phone from while away from power. It it runs out of juice during this, it stops, comes back to life because the phone sees a device in its port and advertises itself as a potential power source, then the phone proceeds to drain power back into the external battery.
seba_dos1 38 minutes ago | parent
gregsadetsky 35 minutes ago | parent
But obviously that'd be a crazy device to carry with me at all times?? But yeah, "charging" vs "charge me" usb-c antics are a bit wild.
xg15 29 minutes ago | parent
cowlevel 23 minutes ago | parent
mrheosuper 14 minutes ago | parent
Rundstecker 1 hour ago | parent
arcticbull 1 hour ago | parent
You're welcome to do that with USB-C, it has the VCC/GND/D+/D- wires and USB 2.0 support as a minimum requirement.
> edit: USB-C isn't even serial (the S in USB) anymore with many parallels pairs.
USB-C is not the same as USB the protocol, it's a connector standard that supports many different transmission methods. It supports USB 2, USB 3, Thunderbolt, DisplayPort, etc.
PCIe is generally considered a serial bus too, yet has many parallel lanes, each of which is hooked up behind a SerDes (serializer/deserializer).
Having multiple serial lanes generally doesn't make something a parallel bus.
dataflow 1 hour ago | parent
What does make it a parallel bus?
xerxes901 1 hour ago | parent
I.e. you have 8 wires which together give a single number between 0-256 per clock cycle, rather than 8 independent channels each with its own independent stream of 1’s and 0’s on it
arcticbull 1 hour ago | parent
PCI has 32 address/data wires, and a whole 32 bit message is output at once on the bus and a clock is toggled when the data is valid along with some contextual information.
PCIe for example has many lanes, each lane has a shift register that turns an N-bit message into N 1-bit messages, which are shifted back in on the other end and turned back into an N-bit message. There's no shared clock, each lane operates essentially independently, and the clock is recovered from the signals on the differential pair. The controller then turns each part of the message each serial lane transmits into one word.
johntb86 54 minutes ago | parent
mirmor23 43 minutes ago | parent
The basic difference between a parallel and a serial communication channel is the number of electrical conductors used at the physical layer to convey bits. [1]
In usb, each differential pair (dp/dm) is driven by a serial interface engine (sie); and even though it is a pair, it is effectively half duplex and serial. Multiple dp/dm pairs does not make it parallel.
the__alchemist 1 hour ago | parent
- Reversible
- Small
- You can still use the same wiring as USB 2.0/A, with the addition of 2 passives on the CC pins to ground. Or wire up all the USB 3.0 data lines, configure for high power draw etc.
- Universal
Replacing the mismatched pile of barrel plugs and competing USB standards we used to have. (Micro, Mini, A, B)Many uses fall within the USB 2.0 data limit (480Mbit/s?) and power reqwuirements. So USB-C wired for USB 2.0 is a fantastic connector. Exceptions are charging Li-Ion batteries quickly, and data storage devices.
dividedbyzero 1 hour ago | parent
ianburrell 50 minutes ago | parent
toast0 35 minutes ago | parent
Thankfully, no device manufacturers label their products as broken by design... and you usually don't notice until way after the return period.
cowlevel 18 minutes ago | parent
the__alchemist 42 minutes ago | parent
toast0 43 minutes ago | parent
USB-A is 4 or 9 pins. USB-3 added 5 more for two differential pairs and a signal ground.
> What would be possible with a circular (thus omnidirectional) simple data plug (with a few pins as possible) given modern tech?
Depends on how crazy you want to go. Tip/Ring/Ring/Ring/Sleve is mass produced, so you could have 5 conductors if you want.
TRRS gives you four conductors. If you cut down 40GBase-T to two pair, you should be able to do 20 Gbps on a twisted pair trrs cable... and you can send power over that too. USB 4 Gen 4 does 40 Gbps per pair, but uses one pair per direction. If you wanted just tip and ring, there's 10Gbase-T1 which is single pair, with optional power delivery.
You would need to make special twisted pair cables with the phone jacks. If you use 1/4" jacks, the connectors could probably manage a few amps. But disconnecting is going to be pretty gnarly as the sleeve tends to short across multiple jack connectors as it's pulled out.
cowlevel 20 minutes ago | parent
15155 19 minutes ago | parent
*With an incredibly large, complicated analog PHY
> USB-C isn't even serial (the S in USB) anymore with many parallels pairs
Only one of the pairs is used except for 2x2 configurations, and each are still serial links (which are then reassembled using an elastic buffer, like PCIe.)
Parallel means "clocked in parallel" - USB-C 2x2 is mesochronously clocked serial, the edges need not land in the same phase.
jsmith45 1 hour ago | parent
The biggest one being power management, especially the cutting off of power to a specific port. If a host wants to cut off power to a 3.x device, it typically needs to know which 2.x port that device is connected to. The host internally can have some really wild mappings of 2.0 and 3.x hubs, controllers, etc, but the device tree or ACPI tables let it know exactly which ones are paired together for any port leaving the device. After that point it is assumed that the host can learn the topology from any hubs attached. The power management is tied to the 2.0 port. Unexpectedly splitting the topology could lead the host to instruct a hub to cut off power to the wrong port when trying to target a specific USB 3.x device.
Also, if a hub indicates that a device is drawing excessive current, and there is nothing communicating on the 2.0 lines, there is a risk of the wrong 3.x getting blamed by the host, possibly showing a warning popup to the user with the wrong device name, or similar.
This isn't to say this is always a problem, because it isn't but it is something to be aware of.
arcticbull 54 minutes ago | parent
FTA: > If you are building an inline USB-C tool where your MCU only needs a slow control channel and the host just needs fast passthrough to the downstream device, you might not need a USB 3 hub. USB-C gives you two independent buses in the same port. The OS knows they're both peripherals are assigned to the same logical connector.
This is bad advice in general because USB-C does not actually give you two independent busses in the same port.
fcjr 45 minutes ago | parent
arcticbull 43 minutes ago | parent
> Can you connect a USB 3.0 device and a USB 2.0 device to the same downstream port of a hub? We don't recommend it. The devices will enumerate and traffic will be routed correctly, but as noted above, the two devices would share a single port power control. Also, the USB specification requires all USB 3.0 devices have the ability to drop to USB 2.0 speeds. Since the USB specification does not allow for two different speed devices connected to the same USB port, TI cannot guarantee that all USB drivers / host controller would support that implementation.
https://e2e.ti.com/support/interface-group/interface/f/inter...
Is it gonna work? Usually, but not properly, and it's not an approach I would recommend for any production devices.
If you are okay being non-compliant with the USB spec and hoping for the best, it's an option for some small run stuff you test. For this application it's probably fine because you know how your host controller behaves but it's not a good approach in general, and may stop working at some point in the future as the busses are not independent. They share a power control and the same logical port identifier, and this is not a support configuration per the USB spec.
For the record I do think this is very cool and the only thing I'd change about the blog post is mentioning that the busses are not actually independent and this is not a supported configuration.
amelius 15 minutes ago | parent
Who cares if it works? We're talking about a tool here that is used by experts, not a mass consumer product.
ktm5j 33 minutes ago | parent