←back to thread

USB On-The-Go

(computer.rip)
208 points jnord | 2 comments | | HN request time: 0.001s | source
Show context
MarkusWandel ◴[] No.42623539[source]
USB-C has obfuscated things but I was hoping the following would work:

Buy a Y-cable from Ali Express that has USB-C male to plug into the phone, and both USB-C female and USB-A female sockets. Plug keyboard into the USB-A and the charger into USB-C.

But it doesn't work, and I suspect it's a software limitation at least on my phone (Moto G Play 2023). If the charger is plugged in first, the phone will charge but not use the keyboard. If the keyboard is plugged in first, the phone will use it, but not charge. I think the wires are there to make it all work, but the phone's OS just doesn't support this scenario. Pity.

Needless to say documentation is nonexistent so I don't actually know what's in the cable. For all I know, the two female sockets are just connected in parallel.

replies(4): >>42623759 #>>42623866 #>>42624960 #>>42629514 #
nucleardog ◴[] No.42623759[source]
My wild guess would be that, yes, that cable is just a naive splitter. The only real use case I could think of that would work would be taking a USB-C port and making it accept either USB-C or USB-A devices without having to dig around/swap adapters/etc. I say that because as far as I'm aware (though I'm having trouble digging up an authoritative source right now), there's no way for USB devices to share data lines. Even cheap "passive" hubs and things all have ICs to present themselves as a USB device and sit between the host and the downstream devices. With the older USB specs you could still get some power even without the data lines, but with USB-C you need the data lines to negotiate power delivery. I don't think there are any software-level changes would make that setup work.

If you are looking for a solution though (albiet a bit bit bulkier one) it's likely any of a number of "USB C hub" or "USB C dock" products would work there. Most have a USB-C port marked "PD-IN". Plug the hub into your phone, plug your power into the PD-IN, and use the USB-A/other ports to connect your other devices. Run you like $20 from the usual suspects.

replies(1): >>42624147 #
1. MarkusWandel ◴[] No.42624147[source]
Thanks for that. The longer-term goal is to make a "dock" for my elderly mom's phone that lets her use it as a tiny (her eyes are still good) pseudo-desktop setup with keyboard and mouse. She often ends up with her phone as her only communications device when things go wrong (again) on her laptop and this would give a good email experience (she's a skilled touch-typist). Any pointers to a cheap USB-C dock on Ali that does the job?

Sadly, one limitation, at least on the Android device, is that you can't use it in landscape mode with a mouse. Well, you can, but the launcher only operates in portrait mode, as do a lot of apps. I don't want to change the launcher - elderly folks get very fixated on how their device is supposed to work. Anyway as soon as the phone switches to sideways-portrait mode, the mouse also does which is very disorienting.

replies(1): >>42683945 #
2. nucleardog ◴[] No.42683945[source]
Nothing I've tested specifically with Android--my use has been mostly Steam Deck or iPad Pro.

I've had good luck with the Anker stuff. Not sure if any of it's on Aliexpress, but they are on Amazon. I have a couple of the Anker 555 which is about $50. The Anker 332 looks fairly similar for more like $20. Both have the "PD-IN".

I'm, again, not sure how it would interact with Android, but basically all of these have a HDMI port as well. It might be worth a try to see how Android handles the portrait/landscape stuff with an external display--connecting it to a cheap monitor might resolve some of that for you. I have some fuzzy recollection of doing this back in the day with a MHL adapter and the phone displaying portrait the right way up just with black space on the left and right on the screen.

Anker 332 with a charger connected, mouse and keyboard plugged in, and HDMI running to an external monitor might get you essentially a "desktop" experience with a single cable. If her laptop has a USB-C port as well, when that's working she may be able to just plug that in to make use of all the peripherals on that instead. Something like the 555 also has a SD card reader which could work as some shared storage for moving files between the devices just by plugging them in and saving them there.