Is the in spec way of connecting a peripheral to a USB 2.0 OTG device, that the OTG device uses Micro 2.0 AB, and the peripheral Micro USB A?
So a keyboard with a USB-A-Male connector on it, should be adapted to Micro USB A?
I understand it to be the case that USB 2.0 OTG devices are meant to use Micro 2.0 AB, but go the cheap route and use Micro 2.0 B. And that Micro 2.0 AB, and Micro 2.0 A, are almost unknown to even most techies, as they are hardly seen. And most devices break spec e.g. Raspberry Pi Zero has a Micro USB2.0 B connector for USB OTG. And the Google Nexus 4 Smartphone as well as no doubt many others, has a Micro USB2.0 B connector on it. And the standard method people use is they then use a spec-breaking adaptor that converts Micro USB 2.0 B Female, to USB-A-female. (which I suppose isn't a disaster, so long as somebody doesn't use a gender changer- prob breaking spec -, to make an A-A cable and send 5V into a host that is sending 5V).
So let's suppose we pute aside that most USB 2.0 OTG devices break spec and have the spec breaking adaptor.
Suppose they go by the book and used Micro USB AB.
Is the spec-correct way to do things, to get Micro-USB A on the peripheral e.g. with an adaptor changing the plug on the end of the peripheral eg USB plug on the end of the keyboard, from male-USB-A, to male-Micro-USB A?