|
22 | 22 | import androidx.preference.PreferenceManager;
|
23 | 23 |
|
24 | 24 | import com.hoho.android.usbserial.driver.CdcAcmSerialDriver;
|
| 25 | +import com.hoho.android.usbserial.driver.Ch34xSerialDriver; |
25 | 26 | import com.hoho.android.usbserial.driver.Cp21xxSerialDriver;
|
| 27 | +import com.hoho.android.usbserial.driver.FtdiSerialDriver; |
26 | 28 | import com.hoho.android.usbserial.driver.ProbeTable;
|
27 | 29 | import com.hoho.android.usbserial.driver.UsbSerialDriver;
|
28 | 30 | import com.hoho.android.usbserial.driver.UsbSerialPort;
|
@@ -96,10 +98,21 @@ private UsbSerialProber getCustomProber() {
|
96 | 98 | customTable.addProduct(0x1b4f, 0x9204, CdcAcmSerialDriver.class);
|
97 | 99 | // Arduino Due
|
98 | 100 | customTable.addProduct(0x2341, 0x003d, CdcAcmSerialDriver.class);
|
| 101 | + // Arduino Uno/Nano (CH34x) |
| 102 | + customTable.addProduct(0x1a86, 0x5523, Ch34xSerialDriver.class); |
| 103 | + customTable.addProduct(0x1a86, 0x7523, Ch34xSerialDriver.class); |
99 | 104 | // STM, MCHF
|
100 | 105 | customTable.addProduct(0x0483, 0x5732, CdcAcmSerialDriver.class);
|
101 | 106 | // CP2102/2109, iCom
|
102 | 107 | customTable.addProduct(0x10c4, 0xea60, Cp21xxSerialDriver.class);
|
| 108 | + customTable.addProduct(0x10c4, 0xea70, Cp21xxSerialDriver.class); |
| 109 | + customTable.addProduct(0x10c4, 0xea71, Cp21xxSerialDriver.class); |
| 110 | + // FTDI |
| 111 | + customTable.addProduct(0x0403, 0x6001, FtdiSerialDriver.class); |
| 112 | + customTable.addProduct(0x0403, 0x6010, FtdiSerialDriver.class); |
| 113 | + customTable.addProduct(0x0403, 0x6011, FtdiSerialDriver.class); |
| 114 | + customTable.addProduct(0x0403, 0x6014, FtdiSerialDriver.class); |
| 115 | + customTable.addProduct(0x0403, 0x6015, FtdiSerialDriver.class); |
103 | 116 | return new UsbSerialProber(customTable);
|
104 | 117 | }
|
105 | 118 |
|
|
0 commit comments