annymsMthd
annymsMthd

Reputation: 94

Connecting to a Usb peripheral

It looks like the UsbManager is gone in the build. How do we communicate with usb peripherals now?

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

Upvotes: 5

Views: 1231

Answers (3)

shalafi
shalafi

Reputation: 3996

It is stated on the known issues part of the release notes that USB support is disabled on the developer preview 1.

However I did a quick test on the Pi3 and high level peripherals such a keyboard work and send the correct events to the app. It is just the low level access what is disabled.

Upvotes: 2

proppy
proppy

Reputation: 10504

As @devunwired commented in the Google's IoT Developers Community: USB accessory support is not currently enabled is the RC1 preview.

Upvotes: 1

proppy
proppy

Reputation: 10504

Currently the Peripheral HAL doesn't recognize usbserial based UART peripherals.

But if your usbserial device (ex: Arduino) exposes individual UART TX RX pins, you can communicate with it using the UART Peripheral API.

Caveat:

Upvotes: 2

Related Questions