mirror of
https://github.com/mik3y/usb-serial-for-android
synced 2025-06-08 00:16:13 +00:00
coverage for PL2303 variants
This commit is contained in:
parent
1661535d6b
commit
12095f6b94
1
.idea/misc.xml
generated
1
.idea/misc.xml
generated
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
<component name="NullableNotNullManager">
|
<component name="NullableNotNullManager">
|
||||||
<option name="myDefaultNullable" value="androidx.annotation.Nullable" />
|
<option name="myDefaultNullable" value="androidx.annotation.Nullable" />
|
||||||
<option name="myDefaultNotNull" value="androidx.annotation.NonNull" />
|
<option name="myDefaultNotNull" value="androidx.annotation.NonNull" />
|
||||||
|
10
.idea/modules.xml
generated
10
.idea/modules.xml
generated
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/usb-serial-for-android.iml" filepath="$PROJECT_DIR$/.idea/modules/usb-serial-for-android.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/usbSerialExamples/usb-serial-for-android.usbSerialExamples.iml" filepath="$PROJECT_DIR$/.idea/modules/usbSerialExamples/usb-serial-for-android.usbSerialExamples.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/usbSerialForAndroid/usb-serial-for-android.usbSerialForAndroid.iml" filepath="$PROJECT_DIR$/.idea/modules/usbSerialForAndroid/usb-serial-for-android.usbSerialForAndroid.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -32,7 +32,15 @@ android {
|
|||||||
dimension 'device'
|
dimension 'device'
|
||||||
testInstrumentationRunnerArguments = ['test_device_driver': 'Ftdi', 'test_device_port': '1']
|
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'
|
dimension 'device'
|
||||||
testInstrumentationRunnerArguments = ['test_device_driver': 'Prolific']
|
testInstrumentationRunnerArguments = ['test_device_driver': 'Prolific']
|
||||||
}
|
}
|
||||||
|
@ -359,7 +359,7 @@ public class DeviceTest {
|
|||||||
doReadWrite(String.valueOf(baudRate + 1) + " + 1<<29", readWait);
|
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
|
// they do not work with my devices and linux driver also excludes them
|
||||||
baudRates = new int[]{110, 56000, 256000};
|
baudRates = new int[]{110, 56000, 256000};
|
||||||
for(int baudRate : baudRates) {
|
for(int baudRate : baudRates) {
|
||||||
@ -373,7 +373,7 @@ public class DeviceTest {
|
|||||||
// silent fallback to 9600 for unsupported baud rates
|
// silent fallback to 9600 for unsupported baud rates
|
||||||
telnet.setParameters(9600, 8, 1, UsbSerialPort.PARITY_NONE);
|
telnet.setParameters(9600, 8, 1, UsbSerialPort.PARITY_NONE);
|
||||||
usb.setParameters(baudRate + (1<<29), 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user