How to enable USB API in Android Things for Raspberry Pi 3

I am working on a project that includes a Raspberry Pi 3 Module B board with Android Things OS on it. My Android application running on the Raspberry Pi3 needs to communicate with external equipment via USB. But known issues pointed out https://developer.android.com/things/preview/releases.html that the USB interface is currently disabled.

Is there a way to enable the USB API in Android Things? Any help or guidance on the same subject would be greatly appreciated! Thanks in advance!

+4
source share
3 answers

API 3, .

+2

. ttyUSBx.

+3

Peripheral HAL USB UART. , USB (, Raspberry PI) UART TX RX, , API UART Peripheral API.

:

  • TX RX UART .

enter image description here

+1
source

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


All Articles