mirror of
https://github.com/mik3y/usb-serial-for-android.git
synced 2026-08-11 16:32:53 +00:00
coverage for PL2303 variants
This commit is contained in:
@@ -32,7 +32,15 @@ android {
|
||||
dimension 'device'
|
||||
testInstrumentationRunnerArguments = ['test_device_driver': 'Ftdi', 'test_device_port': '1']
|
||||
}
|
||||
pl2302 {
|
||||
pl2303 {
|
||||
dimension 'device'
|
||||
testInstrumentationRunnerArguments = ['test_device_driver': 'Prolific']
|
||||
}
|
||||
pl2303t {
|
||||
dimension 'device'
|
||||
testInstrumentationRunnerArguments = ['test_device_driver': 'Prolific']
|
||||
}
|
||||
pl2303g {
|
||||
dimension 'device'
|
||||
testInstrumentationRunnerArguments = ['test_device_driver': 'Prolific']
|
||||
}
|
||||
|
||||
@@ -359,7 +359,7 @@ public class DeviceTest {
|
||||
doReadWrite(String.valueOf(baudRate + 1) + " + 1<<29", readWait);
|
||||
}
|
||||
|
||||
// some PL2303... data sheets mention additional baud rates, others don't
|
||||
// some PL2303... data sheets mention additional standard baud rates, others don't
|
||||
// they do not work with my devices and linux driver also excludes them
|
||||
baudRates = new int[]{110, 56000, 256000};
|
||||
for(int baudRate : baudRates) {
|
||||
@@ -373,7 +373,7 @@ public class DeviceTest {
|
||||
// silent fallback to 9600 for unsupported baud rates
|
||||
telnet.setParameters(9600, 8, 1, UsbSerialPort.PARITY_NONE);
|
||||
usb.setParameters(baudRate + (1<<29), 8, 1, UsbSerialPort.PARITY_NONE);
|
||||
doReadWrite(String.valueOf(baudRate ) + " + 1<<29", readWait);
|
||||
doReadWrite(String.valueOf(baudRate) + " + 1<<29", readWait);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user