Baud Rate for UsbDeviceConnection

I am trying to get Android USB host mode to work; but I need to set the baud rate to 56000. I found only this code:

UsbDeviceConnection myConnection; myConnection.controlTransfer(0x40, 0x03, 0x4138, 0, null, 0, 0);//baudrate 9600 

I did not find anything about this in the links.

Thank you very much!

+4
source share
1 answer

The command shown contains the baud rate divider. A good explanation for calculating the baud rate is (here) [ http://www.mev.co.uk/pages/Support/USB-Baud-Spoof.html ]

+1
source

Source: https://habr.com/ru/post/1386211/


All Articles