kai-morich
8c559ef892
Merge pull request #240 from tva-TIS/master
...
DTR and RTS support for CP21xx drivers
2019-11-14 19:40:45 +01:00
Tim Vahlbrock
89ad5be9c3
Improved DTR and RTS support. DTR and RTS can now be queried after transmission. Added usage of existing methods and new constants.
2019-11-14 14:44:39 +01:00
Tim Vahlbrock
92b16a8c24
Merge branch 'master' of https://github.com/mik3y/usb-serial-for-android
2019-11-14 14:15:39 +01:00
kai-morich
fd2055791a
added proguard rules
...
now they are part of the .aar library, before you had to add them to each release app
2019-11-13 18:49:27 +01:00
kai-morich
24187b3af6
refactor duplicated code in close method
2019-11-09 22:48:00 +01:00
kai-morich
5767298636
refactor duplicated read/write methods
2019-11-09 20:26:50 +01:00
kai-morich
e1b62cf675
write + purge tests, remove unused read buffer code
2019-11-03 19:34:14 +01:00
kai-morich
5c6748e1b8
improve setParameter() error handling
...
harmonize exception messages, more UI friendly messages
distinguish IllegalArgumentException and UnsupportedOperationException
2019-11-02 13:49:08 +01:00
kai-morich
18b5b6e648
unify open() error handling, more tests, minor cleanup
2019-11-02 13:09:15 +01:00
kai-morich
6869eff88a
revert previous usbRequest.cancel() removal
...
Combine usbRequest.cancel() and releaseInterface to interrupt read() and terminate SerialInputOutputManager.
UsbRequest.cancel() immediately interrupts read() on newer Android versions.
With releaseInterface() only, some hickup are observed on fast reconnect.
Keep releaseInterface() as only this interrupts read() on older Androids.
2019-11-02 12:46:45 +01:00
Tim Vahlbrock
7eaea45068
Added DTR and RTS support for cp21xx driver
2019-10-28 13:20:34 +01:00
TVa[TIS]
e20b3cc913
Merge pull request #1 from mik3y/master
...
Update from upstream
2019-10-28 13:16:12 +01:00
kai-morich
9ea936b14a
improve close handling
...
Use releaseInterface to interrupt read() and terminate SerialInputOutputManager. Previously some drivers used usbRequest.cancel() but this does not interrupt read() on older Android.
Added connection check to read(). Before Android 8.0 request.initialize() did not check usbConnection, which can lead to native crash if NULL
2019-10-27 21:32:38 +01:00
Kai Morich
b3631dff58
README with SerialInputOutputManager for read() and port for write()
...
test the usually not used read/write variants
2019-10-26 21:32:28 +02:00
Kai Morich
800381e370
CdcAcm driver: cancel read() on close()
2019-10-26 20:37:06 +02:00
Kai Morich
fac8c9f340
test nonstandard baud rates
2019-10-26 15:40:40 +02:00
Kai Morich
f7399c2aad
more coverage tests
...
purgeHwBuffers: adjust parameter names to match read/write methods and actual behavior
2019-10-25 22:23:00 +02:00
Kai Morich
37059b1a27
reduce non covered code
...
move HexDump class from library to example
remove unused UsbSerialRuntimeException
2019-10-21 21:04:58 +02:00
Kai Morich
ac1fe40793
manage USB permission intent
2019-10-21 20:56:13 +02:00
kai-morich
6a50595274
Merge pull request #231 from mik3y/coverage
...
show code coverage
2019-10-20 22:52:58 +02:00
Kai Morich
54a3db115f
show code coverage
2019-10-20 22:41:55 +02:00
Kai Morich
9755a4cb87
release preparations
2019-10-12 11:37:35 +02:00
Kai Morich
2bee5b930b
build with jitpack
2019-10-06 17:52:17 +02:00
Kai Morich
508c39e66a
README cleanup
2019-10-06 10:27:41 +02:00
kai-morich
6e58180f91
Merge pull request #230 from kai-morich/async
...
Async
2019-10-05 14:12:27 +02:00
Kai Morich
0d48ed04e7
Always use async read, as bulkTransfer can cause data loss. Increase API version to 17 because async read only works reliably since Android 4.2 ( http://b.android.com/28023 )
2019-10-05 10:35:15 +02:00
Kai Morich
e527afdf35
compile+target sdk 28, gradle 4.6
2019-10-05 10:35:15 +02:00
kai-morich
f54dd65624
Merge pull request #212 from kai-morich/multiport
...
support ft_232h, cp210_ multiport devices
2019-10-05 10:32:27 +02:00
Kai Morich
61b272b8b6
support ft_232h, cp210_ multiport devices
...
harmonize claimInterface() error handling
cancel read() on close()
2019-10-05 10:27:11 +02:00
Kai Morich
0ea5b282b7
implement async read for all devices
2019-10-05 10:27:11 +02:00
Kai Morich
adb22f718e
build tools update; instrumented device test
2019-10-05 10:27:11 +02:00
kai-morich
c89ca2c96a
Merge pull request #195 from kai-morich/ch340-parameter
...
CH34x: data bits, parity, stop bits
2019-10-04 16:50:16 +02:00
kai-morich
d7147201de
Merge pull request #188 from kai-morich/ch340-async
...
enable async read for CH340 as in CDC driver to prevent data loss at high baud rates
2019-10-04 16:49:50 +02:00
kai-morich
eb2de17af8
Merge pull request #170 from kai-morich/ftdi-async
...
enable async read for FTDI + prevent loss of last packet if full
2019-10-04 16:49:03 +02:00
kai-morich
deabc510c1
Merge pull request #189 from kai-morich/cdc-endpoints
...
support USB devices with other non CDC related endpoints, e.g. when u…
2019-10-04 16:48:03 +02:00
kai-morich
f1c147125f
Merge pull request #156 from grevaillot/master
...
ch34xSerialDriver: support more baudrates.
2019-10-04 16:45:34 +02:00
Kai Morich
9c1ca288ae
CH34x: data bits, parity, stop bits
...
CP21xx: mark+space
all devices: return error on unsupported parameters
2018-01-20 13:09:29 +01:00
Kai Morich
df4e9174cb
enable async read for CH340 as in CDC driver to prevent data loss at high baud rates
2017-11-03 22:52:32 +01:00
Kai Morich
fcd8596bdd
enable async read for FTDI as in CDC driver. this prevents -1 error from bulkTransfer() when receiving data in multiple packets, e.g. if consumed to slow at high baud rates.
...
prevent loss of last packet if full
2017-04-01 23:15:55 +02:00
Kai Morich
608c67499a
support USB devices with other non CDC related endpoints, e.g. when using ARM mbed DAPLink firmware
2017-02-17 22:03:32 +01:00
Guillaume Revaillot
73b8b73133
ch34xSerialDriver: support more baudrates.
...
allow to use 57600bps with ch34x based adapter by using dynamic computation of baudrate configuration, based on linux kernel's driver.
2016-11-16 13:58:01 +01:00
mike w
b96f9ca7a2
Merge pull request #108 from Scypho/master
...
adding support for USB devices with only one channel
2016-09-11 16:32:00 -04:00
mike w
6d8c40a71c
Merge pull request #137 from shanet/readme_fixes
...
Readme fixes
2016-09-11 16:30:05 -04:00
mike w
3d6c092e07
Merge pull request #147 from jmiguelrc/add_support_arduino_micro
...
Add support for Arduino Micro (Issue #146 )
2016-09-11 16:29:18 -04:00
João Costa
458ed446fb
Add support for Arduino Micro
2016-07-08 16:29:55 +01:00
shane tully
1ef426920f
fix example code in README
2016-05-01 18:43:30 -07:00
shane tully
3479892809
fix link to device_filter.xml and remove trailing whitespace in README
2016-05-01 18:31:40 -07:00
mike w
ccc8e8d3f0
Merge pull request #96 from marcosdiez/dtr_and_rts
...
User can now set DTR and RTS on the fly
2016-03-23 19:31:56 -04:00
mike w
f53c5e548a
Merge pull request #103 from xeonfusion/patch-1
...
Update ProlificSerialDriver.java
2016-03-23 19:31:24 -04:00
mike w
b9b9c7268f
Merge pull request #121 from xseignard/master
...
Added CH34x driver
2016-03-23 19:27:55 -04:00