I had build an android application which uses the accessory manager to connect to an external PIC. This connection uses the USB OTG from the imx6 board to connect to the PIC.
The problem is that if the cable is connected before Android boots it doesn't recognize the device, so I can't connect with it, and the application becomes useless.There is someway to simulate a new connection without remove and connect the cable manually? I had though use some linux command line or script which enable/disable the OTG USB. I know how to execute commands from Android, but my knowledge about Linux is a very rusty.
and thanks for your time.