1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-11 01:46:15 +00:00

103 Commits

Author SHA1 Message Date
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
mike w
37bfca8908 Merge pull request #84 from diegoherranz/master
Fix typo on link to usbSerialExamples
2014-11-04 10:43:03 -05:00
Diego Herranz
49af3725d0 Fix typo on link to usbSerialExamples 2014-11-04 16:31:58 +01:00
treymarc
4ccaff47b1 source formating :replaced tab 2014-10-27 22:03:58 +01:00
Trey Marc
8f439384a7 Correct USART init for stm32 autobauding
Hello,

I had some headache trying to figure out the issue when flashing some stm32 mcu over uart [1] 

With the above changes i can now flash stm32 devices correctly.

regards,

1 : http://www.st.com/web/en/resource/technical/document/application_note/CD00264342.pdf
2014-10-27 21:26:37 +01:00
bens-unit01
09c84a4a3c added support to retrieve the device serial number 2014-09-16 11:50:50 -07:00
mike wakerly
dbdf95525e maven: Update group name and artifact id. 2014-09-08 11:22:17 -07:00
mike wakerly
06582e68ad Add Maven Central uploadArchives target.
Issue #70.
2014-09-08 11:02:45 -07:00
mike wakerly
c842a1d5f6 Fix LICENSE file.
Source and docs have always listed LGPL v2.1; v3 version was
originally added in error.
2014-09-08 11:02:45 -07:00
mike wakerly
0b65b42f84 Update build tools. 2014-09-08 11:02:45 -07:00
mike w
64652c1971 Merge pull request #77 from chiragnagpal/master
Update README.md
2014-09-01 09:52:47 -07:00
Chirag Nagpal
942adc18a2 modified: README.md 2014-09-01 21:40:26 +05:30
mike wakerly
4a226864b0 Merge branch 'develop' 2014-06-24 13:47:22 -07:00
mike wakerly
a9c42b96e1 Update build tools. 2014-06-24 13:45:45 -07:00
mike wakerly
6ef85d04c1 cdc: Special case read timout == Integer.MAX_VALUE.
Some systems return 0 from read() when the device has been disconnected.
The only way to detect this is to 'never' expect a timeout.
2014-06-14 12:55:28 -07:00
mike wakerly
8e8ded4a9c cdc: Add async read capability. 2014-06-14 12:55:28 -07:00