1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-07 16:06:10 +00:00

268 Commits

Author SHA1 Message Date
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 v2.0.0 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
xseignard
e0d9c3c091 Added CH34x driver 2015-12-09 02:29:30 +01:00
mike w
a213f06ad0 Merge pull request #111 from sureshjoshi/master
Updating Gradle project to > 1.0.0
2015-06-23 10:05:45 -04:00
SJ
9d48757285 - Updating Gradle project to > 1.0.0
- Updated .gitignore with Github ignore settings
- Updated build tools and SDK versions to 22
- Migrated .gradle files from pre-1.0.0 to post-1.0.0
2015-06-23 00:24:43 -04:00
Jens Peter Schroer
45b8364103 adding support for USB devices with only one channel 2015-05-12 12:23:40 +02:00
xeonfusion
50dda78a63 Update ProlificSerialDriver.java
Missing Parity case in switch statement causes the Prolific driver code to crash when Parity is set to Even.
2015-03-13 15:50:14 +04:00
Marcos Diez
e04c5f8877 User can now set DTR and RTS on the fly 2015-01-17 14:34:31 +02:00
mike w
228c7936eb Merge pull request #85 from treymarc/patch-1
remove uncessary call to mWriteBuffer.position()
2014-11-10 23:10:04 -05:00
Trey Marc
b251430e02 remove uncessary call to mWriteBuffer.position()
assigne len with mWriteBuffer.position() before testing
2014-11-10 23:35:03 +01:00
mike w
ef13784f4f Fix off-by-one error in filterStatusBytes.
Closes #74.
2014-11-10 10:24:53 -05:00
mike w
f6f7e2600a Merge pull request #82 from treymarc/patch-1
Correct USART init for stm32 autobauding
2014-11-10 09:38:27 -05:00