USB peripheral connection

It seems that UsbManager has gone to assembly. How do we deal with usb peripherals now?

Things like usb-> serial etc. using https://github.com/mik3y/usb-serial-for-android

+5
source share
3 answers

Currently, the HAL peripheral system does not recognize usberial based UART peripherals.

But if your USB device (for example: Arduino) provides separate UART TX RX contacts, you can contact it using the UART Peripheral API .

Protest:

+2
source

In a known part of the article , it is noted that USB support is disabled in the developer preview.

However, I did a quick test on Pi3 and high-end peripherals such as a keyboard, and sent the correct events to the application. Only low-level access is disabled.

+2
source

As @devunwired commented on in the Google IoT Developer Community : USB accessory support is not currently enabled - preview RC1.

+1
source

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


All Articles