kkohase / usb-serial-for-android

Automatically exported from code.google.com/p/usb-serial-for-android
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Support for enumerating available devices #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The attached patch introduces a new Method 
UsbSerialProber.getAvailableDevices() to enumerate the USB Serial Adapter 
devices which are currently connected. It returns a collection of UsbDevice 
objects of the USB devices which are connected and the library can handle.

I developed this for an integration of the usb-serial-for-android for the 
gliding computer XCSoar - http://www.xcsoar.org. It is used to communicate with 
GPS devices, flight recorders and collision warning devices.

The list returned by this new method is used as input for a list where the user 
can select the device he wants to connect to. When a USB to Serial Adapter 
device is selected and the permission is not yet granted, 
UsbManager.requestPermission() is called for the USB device.

Original issue reported on code.google.com by felix.ha...@gmail.com on 7 May 2013 at 10:57

Attachments:

GoogleCodeExporter commented 9 years ago
The same patch with correct intendeation (4 spaces instead iof tabs)

Original comment by felix.ha...@gmail.com on 15 May 2013 at 9:53

Attachments:

GoogleCodeExporter commented 9 years ago
Btw. I have signed the Google CLA a while ago.

Original comment by felix.ha...@gmail.com on 15 May 2013 at 10:04

GoogleCodeExporter commented 9 years ago
moved to github: https://github.com/mik3y/usb-serial-for-android/issues/23

Original comment by mike.wak...@gmail.com on 13 Sep 2013 at 4:37