I am working on a project which involves a Raspberry Pi 3 Module B Board with Android Things OS on it. My android application running on Raspberry Pi3 needs to communicate with an external hardware over USB. But,it has been mentioned in the Known Issues - https://developer.android.com/things/preview/releases.html that the USB API is currently disabled.
Is there any way for enabling the USB APIs in Android Things? Any help or guidance for the same will be highly appreciated! Thanks in advance!
This API has been added to the Developer Preview 3, see the release notes
May be this post helps. Needs to be some tricks on ttyUSBx.
Currently the Peripheral HAL doesn't recognize USB serial based UART peripherals. However, if your USB serial device (ie Raspberry PI) exposes individual UART TX & RX pins, you can communicate with it using the UART Peripheral API.
Note:
TX and RX must be crossed while connecting the peripheral to the UART board of your development board .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With