News for hackers. Stuff that matters.
Re:Nintendo Switch is not USB-C compliant by arghwhat on Thursday March 29, 2018 @10:43AM (#16707446)
There needs to be a way to decide which device is the master, like the prompt on Android devices asking if you wish to power or be powered.
Re:Nintendo Switch is not USB-C compliant by giobox on Thursday March 29, 2018 @12:12PM (#16708194)
This. I’m always completely bemused when I first connect a USB-C charger to a USB-C battery pack before plugging into the wall - the LED on the charger lights up like the battery is powering the charger.

There’s also tons of times where the device you want to power from the battery starts charging the battery instead. With both ends of the connector being identical I’m not sure there even is a _good_ way to fix this that ordinary consumers will understand, the better solution might have been to still keep different cable ends. I hope this mess eventually gets better.

Re:Nintendo Switch is not USB-C compliant by iratewizard on Thursday March 29, 2018 @11:52PM (#16713553)
What's more annoying is when you connect a wacom tablet to your laptop and your laptop says it's charging. Only when your laptop is dead do you realize it was low battery. I had this happen during a demo and it was terrible.
Re:Nintendo Switch is not USB-C compliant by spookthesunset on Thursday March 29, 2018 @11:40AM (#16707930)
Wonder if you could do it on the cable with little embedded LED lights. One end turns red for "charging" the other turns blue for "supplying power". Would add to the BOM cost on the cable for sure, but it would not only be cool looking but rather useful.
Re:Nintendo Switch is not USB-C compliant by woodrowbarlow on Thursday March 29, 2018 @12:25PM (#16708314)
oh yeah, because my bedroom doesn't have enough glowing devices when i'm trying to go to sleep. let's add LEDs to every cable too!
Re:Nintendo Switch is not USB-C compliant by spookthesunset on Thursday March 29, 2018 @01:07PM (#16708739)
Hah. Good point. Yes, too many devices want to put big giant blue LED's on their product.... even ones that are specifically targeted for the bedroom and specifically designed for sleeping...
Re:Nintendo Switch is not USB-C compliant by gargravarr on Saturday March 31, 2018 @06:55AM (#16722764)
Barring the comments about adding more sources of light in a dark room (yep, I agree with this), I still appreciate the MagSafe adapter for my MBP lighting a tiny LED to say charging/full. The new USB-C MBPs we have at work don't have any indication whatsoever that the adapter is working unless the machine is booted and logged in (to pre-empt comments about the chime, what if it's muted, as is often true of workplace laptops?). MagSafe tells me no matter what state the computer is in.

The LEDs don't have to be bright, just dim little indicators that are only really noticeable if you're looking for them. Then you get an instant idea of what the devices are doing.

Re:Nintendo Switch is not USB-C compliant by parliament32 on Thursday March 29, 2018 @12:22PM (#16708285)
The simplest solutions are directional cables (remember directional HDMI cables?) or plug-in order (supplier first, receiver last).
Re:Nintendo Switch is not USB-C compliant by wz1000 on Thursday March 29, 2018 @01:43PM (#16709152)
Plug in order is a terrible idea. With potentially every restart/power cycle, the cable would have to be unplugged and re-plugged into the receiver.
Re:Nintendo Switch is not USB-C compliant by joombaga on Thursday March 29, 2018 @12:39PM (#16708471)
Not an EE, possibly a dumb question, but... do USB-C devices know that a cable has been plugged into them before the other end of the cable is plugged in to something else?
Re:Nintendo Switch is not USB-C compliant by klenwell on Thursday March 29, 2018 @01:23PM (#16708928)
I recently got a new workstation at work that is a MacBook Pro that connects to 2 monitors via USB-C.

I've learned somewhat superstitiously that if I don't connect and disconnect the USB-C cables in the right order the laptop may stop responding and I have to do a hard reboot. I thought this solved the problem but even now it still occasionally happens.

Your question makes me wonder if something like this isn't the cause (Mac misreading USB-C signal).

Re:Nintendo Switch is not USB-C compliant by ufmace on Thursday March 29, 2018 @03:22PM (#16710249)
Based on my experience with a pre-USB-C Macbook connected to multiple monitors, USB-C is not at all required to get them to do strange things, up to and including hard crashing, depending on the order and speed of connecting monitors and sleeping the system.
Re:Nintendo Switch is not USB-C compliant by zrobotics on Thursday March 29, 2018 @02:57PM (#16710014)
If all devices actually follow the standard, then yes, a device should be able to detect a cable was plugged in even if the other end is disconnected. The trouble is finding compliant hardware, I fully expect it will be at least 2 more years before we start seeing common hardware that follows the spec.
Re:Nintendo Switch is not USB-C compliant by wolf550e on Thursday March 29, 2018 @12:53PM (#16708611)
The plug can have (has?) resistors that let the socket "feel" it, even if the cable is not attached to anything.
Re:Nintendo Switch is not USB-C compliant by arghwhat on Thursday March 29, 2018 @06:46PM (#16711878)
Yes, the cables are active and can ID themselves when connected. Detection of another connected device (and orientation) is separate.

So yes, it is possible to detect which end gets connected first, but this absolutely shouldn't have any side-effects. It is unintuitive and fragile (if the 'master' device restarts, it will think the other end connected first, suddenly becoming 'slave').

Re:Nintendo Switch is not USB-C compliant by cbluth on Thursday March 29, 2018 @12:57PM (#16708642)
Just imagine this: Device A <--> Device B

Device A receives the cable first, upon receiving the cable, Device A notices that the cable is not "hot" ("hot" in the sense that there is voltage/activity on the wire), so then Device A decides to "turn on" the cable, make it "hot".

Now Device B receives the cable, it notices that the cable is already "hot" and decides that it must be the second device.

I would imagine it could work that way,

Im also pretty sure that the usb cables are "dumb" cables and not active cables like QSFP (these have chips at each end).

Re:Nintendo Switch is not USB-C compliant by arghwhat on Thursday March 29, 2018 @06:44PM (#16711855)
This is not how USB Type C works. The cables are active (chipped), and the end devices have sense resistors. Each device can detect the presence and type of the cable, as well as the presence and type of an end device and total cable orientation (swapped or not).

This is all done before power is applied, as USB Type C is very explicit about not going hot (apart from a weak 5V V_conn for powering the cable).

Also, QSFP is not a cable, but a pluggable spec. A QSFP module is active, but the fiber optic cable you connect to it to is dumb. Link detection there works by sensing beam power.

Re:Nintendo Switch is not USB-C compliant by lopmotr on Thursday March 29, 2018 @06:00PM (#16711469)
That assumes a device can tell the difference between not hot and not there, which was the parent's question.