I'm trying to charge my Nexus 7 2013 while using USB-OTG.
I built the widely described Y-cable that does USB passthrough, grounds the sense pin (yellow lead) through a 100 k resistor, and connects red and black to a charger. Charging worked, but the tablet wouldn't recognize OTG devices.
The tablet does recognize OTG devices through a Samsung OTG adapter (EPL-AU10WEGXAR). So I thought, hey, downstream of the adapter let's just put a USB-A male-female 4-lead extension cable, and tap into its red and black to add a charger.
But even without a charger, the extension cable breaks OTG. Even though it works when inserted between a thumbdrive and a PC. It's just four conductors. The tablet should have no way of detecting it!
Works:
tablet - Samsung adapter - OTG-device.
Fails:
tablet - Samsung adapter - extension-cable - OTG-device.
How might I debug this, or otherwise make progress towards simultaneous OTG and charging?