1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-13 02:46:18 +00:00

Created Compatible Serial Devices (markdown)

BOOT 1993 2023-08-04 18:39:41 +07:00
parent 40555589be
commit 3cf2a81473

@ -0,0 +1,9 @@
// Probe for our custom CDC devices, which use VID 0x1234
// and PIDS 0x0001 and 0x0002.
ProbeTable customTable = new ProbeTable();
customTable.addProduct(0x1234, 0x0001, CdcAcmSerialDriver.class);
customTable.addProduct(0x1234, 0x0002, CdcAcmSerialDriver.class);
UsbSerialProber prober = new UsbSerialProber(customTable);
List<UsbSerialDriver> drivers = prober.findAllDrivers(usbManager);
// ...