This Micro USB OTG Cable Adapter For Telemetry (Micro-USB to Micro-USB) can be used in a various DIY application as you want.
The cable equips micro USB male pin at both the ends with red and black color indications.
This MicroUSB-to-MicroUSB OTG cable lets you connect two devices with MicroUSB ports for charging and data transfer: two smartphones or tablets, tablet & phone, or a portable external hard drive/SSD and a phone or tablet.
One end of the cable has a mark as “Host” which should be plugged into the “master” device which provides power to the other device.
harikrishnan527 (verified owner) –
works. I don’t know the principle, but one of the sides is for host and the other for device. Reverse the connector if it doesn’t work.