Felipe Herranz
9344450ba0
testing things
2019-07-02 00:16:10 +02:00
Felipe Herranz
e4da56af6b
reading descriptors ok
2019-05-11 17:58:18 +02:00
Felipe Herranz
1e672fcb96
Merge pull request #243 from felHR85/ftdi_custom_baudrates
...
Ftdi custom baudrates
2019-05-01 19:47:00 +02:00
xiongyi
33fed5e09c
add a setBreak interface to set the break feature, now tested on FTDI chip.
2019-04-26 10:03:48 +08:00
Felipe Herranz
5eddda99e9
Merge pull request #228 from t2t-sonbui/fix-write-thread
...
Fix Write Thread does not stop when close port
2019-04-06 00:39:47 +02:00
Felipe Herranz
41ced7c2a7
Merge pull request #229 from felHR85/cdc_fix
...
CDC Default Setup to CDC_CONTROL_LINE_ON
2019-04-06 00:03:02 +02:00
Felipe Herranz
8a0d9c8850
setBaudRated refactored
2019-04-05 23:40:08 +02:00
Felipe Herranz
9c51f4c19b
cdc fix
2019-04-01 23:35:57 +02:00
Felipe Herranz
4108a6905e
first version with custom baudrates
2019-03-31 22:10:21 +02:00
Felipe Herranz
ac88abca1a
added encoded baudrates in ftdi driver
2019-03-31 21:57:15 +02:00
sonbuidev
001e745a4a
Fix Write Thread does not stop when close pory
2019-03-29 14:02:11 +07:00
phuongnam0907
5ec307966a
Update CP210xIds.java
2019-03-28 10:16:39 +07:00
Felipe Herranz
da875752b1
Merge pull request #218 from Arneball/jellybeanapi
...
Reduce garbage by reading usb data right into the buffer on api >= jellybean
2019-03-09 20:55:26 +01:00
Felipe Herranz
1d7d0d9625
Deleted unused import
2019-03-09 02:05:12 +01:00
Raul Bache
b5f7699a52
Runka
2019-03-04 14:26:35 +01:00
Raul Bache
b98ea3278d
Added proguard rules to the AAR-package
2019-02-26 11:04:13 +01:00
Felipe Herranz
234c83dd28
Merge pull request #212 from Arneball/reuseempty
...
Reuse same instance of byte array when the destination array is empty
2019-02-23 19:00:16 +01:00
Felipe Herranz
af18d10953
Removed unused import
2019-02-23 13:21:38 +01:00
Raul Bache
b0f2fd2543
Removed "always-null" parameter
2019-02-20 10:04:23 +01:00
Arneball
aeb1227fa2
Reuse same instance of byte array when the destination array is empty
...
Also using System.arrayCopy in loop instead of manual copying
2019-02-19 14:16:44 +01:00
Raul Bache
d874292505
Removed unneccesary classes and made a memory and cpu optimization
...
After this commit, vendor-product-tuples are stored as longs internally.
This way heap size is conserved and specialized classes are omitted.
This might not be a big deal desktop applications, but for Android,
every bit counts.
The public api is unchanged
Added test to verify that things did not break
2019-02-18 14:52:06 +01:00
Felipe Herranz
04db5825c0
solving issue disconnecting one device with multiple serial ports
2019-01-30 23:47:16 +01:00
Felipe Herranz
dc94ea5879
always recognize other people help
2019-01-27 19:22:56 +01:00
Felipe Herranz
b5863e22cb
changed protocol buffer
2019-01-27 18:31:30 +01:00
Pawit Pornkitprasan
f25cc0ab7b
cp210x: Add support for "Windows Update" PID
...
There are certain PID CP210x devices can be set to to allow Windows to
automatically download drivers from Windows Update. This patch adds
support for those PIDs.
Reference: https://www.silabs.com/community/interface/knowledge-base.entry.html/2016/12/30/downloading_cp210xd-ek07
2019-01-23 19:29:38 +07:00
Felipe Herranz
7db4e625d3
Merge pull request #198 from felHR85/cdc_changes
...
Line off when starting CDC driver
2019-01-19 20:07:45 +01:00
Felipe Herranz
1030409eb2
Merge pull request #199 from felHR85/cp2102_bug
...
Fixes for databits, parity and stopbits in CP2102
2019-01-19 19:58:14 +01:00
Felipe Herranz
3c839efd2c
Merge pull request #196 from felHR85/cp2012_improvs
...
Purging CP2102 when closing
2019-01-19 19:44:28 +01:00
Felipe Herranz
8ee110590d
buffer variables to final
2019-01-19 18:21:59 +01:00
Felipe Herranz
3ad63c9311
Merge branch 'master' into okio
2019-01-19 17:30:42 +01:00
Felipe Herranz
d43e1a2edb
deleted comment
2019-01-19 17:27:58 +01:00
Raul Bache
f4a4bd95d0
Refactored so that all common thread methods are handled in a base class
...
After this commit, common functionality for threads are gathered in a base class.
Less code, removed AtomicBoolean since it can be replaced with a volatile boolean, eliminating an allocation
Some members are made final
2019-01-15 19:53:02 +01:00
Felipe Herranz
e41b04b906
line off when starting CDC driver
2019-01-12 19:35:25 +01:00
Felipe Herranz
e80893539a
purging when closing
2019-01-12 13:35:03 +01:00
Felipe Herranz
e99d6b8d56
fixes for databits, parity and stopbits
2019-01-11 20:04:57 +01:00
Felipe Herranz
ff9f314406
avoiding 16kb limit in bulktransfers
2019-01-06 20:44:45 +01:00
Felipe Herranz
9a30dfb93b
improved write async tests
2019-01-05 19:13:15 +01:00
Felipe Herranz
a244d1a36f
added tests for Read Buffer
2019-01-05 17:38:01 +01:00
Felipe Herranz
72d736bb46
merged with protocols buffer and testing write buffer with okio
2019-01-05 17:14:20 +01:00
Felipe Herranz
538a0d2a38
added okio buffer for write thread
2019-01-04 21:54:35 +01:00
Felipe Herranz
b2222b0c27
added unit tests for binary mode
2018-12-31 03:14:16 +01:00
Felipe Herranz
d837762591
testing test mode
2018-12-30 03:07:24 +01:00
Felipe Herranz
baa2db7c17
adding protocolbuffer test
2018-12-28 17:59:48 +01:00
Felipe Herranz
4a8e09dbf4
added regex
2018-12-27 21:01:44 +01:00
Felipe Herranz
491bf0c029
adding protocols buffer
2018-12-26 20:27:05 +01:00
Felipe Herranz
515b7c242a
Merge pull request #184 from twsmith85/inputstream_int_return_fix
...
InputStream integer return fixes.
2018-12-25 21:20:11 +01:00
Felipe Herranz
c87e408262
Merge pull request #185 from johngray1965/master
...
Adding support for Silicon Labs CP2102 USB to UART Bridge Controller
2018-12-25 20:59:05 +01:00
Felipe Herranz
3d9861bbc8
Merge branch 'master' into bug_40
2018-12-25 20:14:05 +01:00
John Gray
43ca6543ca
Adding support for Silicon Labs CP2102 USB to UART Bridge Controller
2018-12-21 13:10:33 -05:00
twsmith85
13a6cfc6fc
InputStream integer return fixes.
...
Fix one condition where read returns a large negative integer instead of the correct byte value.
Fix a second condition where checkFromBuffer returns a negative number and triggers a serial read before the buffer is depleted.
For example, if 0xFE is read, 0xFFFFFFFE is returned from the buffer which is out of the byte range.
2018-12-20 16:27:02 -06:00