I connect the following to an Android in OTG USB mode:
- Mouse (HID)
- Mass storage (MSD)
- USB to Serial port (CDC)
- Some headsets (ADC)
When the phone goes into sleep mode, the USB does NOT send a suspend command, and does NOT go into L2 mode.
When I connect some other headphones, (ADC and HID), and the phone goes into sleep mode, the USB does send out a suspend command and the USB port does go into L2 mode.
How do I get Android's host USB to go into L2 mode when the phone goes asleep with, for example, CDC. (And yes, remote wake up is enabled in the device)
I have seen no obvious option in the CDC drivers of my target board that would tell the USB host more or other than what the ADC+HID device does. (I have source code for both)
Thanks