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
Felipe Herranz
8265c8d73f
unregistering receivers
2018-11-18 13:06:00 +01:00
Felipe Herranz
35fad70a3d
solved issues with multiple ports
2018-11-17 21:52:58 +01:00
Felipe Herranz
5c30d0d00f
solved inputStream issues and getSerialPorts
2018-11-16 00:19:45 +01:00
Felipe Herranz
45071b8484
solved issue in SerialInputStream
2018-11-14 00:08:07 +01:00
Felipe Herranz
10f493054b
first version example multiple port
2018-11-11 20:44:09 +01:00
Felipe Herranz
a2ae5ab2e5
bringing master
2018-11-11 16:55:46 +01:00
Felipe Herranz
8846e3d9ce
added disconnectDevice method and finishing example
2018-11-11 16:46:08 +01:00
Felipe Herranz
274cf71f62
starting example and improved SerialPortBuilder
2018-11-10 02:39:55 +01:00
Felipe Herranz
5e79ed88c6
added a method for creating specific UsbSerialDevice objects
2018-11-04 16:16:10 +01:00
Felipe Herranz
5e95168192
added check open port
2018-11-03 19:49:59 +01:00
Felipe Herranz
e5e0ecd597
added port name
2018-11-03 18:17:31 +01:00
Felipe Herranz
e6a7062242
added SerialPortBuilder
2018-11-03 18:01:17 +01:00
Felipe Herranz
8b5a23c57f
starting improved multiple ports support
2018-11-01 21:23:56 +01:00
Felipe Herranz
19beda957d
allowing RTS and DTR turned on/off on CDC
2018-10-29 00:01:44 +01:00
Felipe Herranz
63e0e8db68
added testing dependencies
2018-10-28 19:02:38 +01:00
Felipe Herranz
5ac494fb8d
added InputStreams and OutputStreams inside UsbSerialDevice
2018-10-28 18:45:33 +01:00
Felipe Herranz
a3e390bded
SerialInputStream and SerialOutputStream using sync api
2018-10-28 17:19:48 +01:00
Felipe Herranz
8fb9922c08
overridden available method
2018-10-28 11:12:53 +01:00
Henry Addo
ee1f49f931
Merge pull request #101 from jzaruba/feature/initial_baud_rate
...
Feature/initial baud rate
2018-01-16 03:52:39 +01:00
Felipe Herranz
2db179235b
Merge pull request #141 from eyedol/travisCiSupport
...
Travis ci support
2018-01-14 16:50:06 +01:00
Bart
bad5558125
added CC3D board (STM F1)
2018-01-11 03:33:50 +01:00
Bart
e8847515d0
added CC3D
2018-01-11 03:23:25 +01:00
Bart
5c652593cf
added fake FTDI reprogrammed by driver
2018-01-11 03:20:22 +01:00
Henry Addo
9d9c4183b6
Automate Releases Using Travis CI and Github Releases
...
Add Travis CI config with github release support.
This should upload artifacts to GitHub release after
a tag is pushed to the repo. A way to automate the release.
It also makes builds on every branch that gets a commit push.
Add information on how to make a release for the project. This
is a separate markdown file detailing the procedure.
2018-01-08 07:49:22 +01:00
Henry Addo
c228699a2f
Remove build tools version
...
The latest Android Gradle plugin now set its default
build tools version so explicitly setting is not necessary.
2018-01-04 17:26:10 +01:00
Felipe Herranz
e9d27bbba0
returning a 0 length array when position -1
2018-01-04 13:10:05 +01:00
Henry Addo
09a3f869ec
Minor code reformatting
2018-01-04 03:14:34 +01:00
Henry Addo
42e8e772e0
Return when put byte array is empty or null
2018-01-04 03:14:02 +01:00
Henry Addo
0a4d47f409
Return empty buffer when there's no read
2018-01-04 01:58:53 +01:00
Henry Addo
3fcccaad6f
Fix intermittent crashes with buffer reads
...
It seems there are some cases that the `from` value for
Arrays#copyOfRange is `-1` or less. This causes it to throw
`IllegalArgumentException`. To naively solve this issue,
make sure the `to` argument is `0` or more.
2018-01-03 10:34:45 +01:00
Quang Nguyen
de152a0684
Fix null exception in read() API by checking nullability first.
2017-11-21 17:31:24 +09:00
Jaromor
b32cbb57ff
implemented initial baud rate for CDCSerialDevice
2017-05-08 17:12:51 +02:00
Jaromor
8c6969b6ac
subclasses can now implement support for initial baud rate (see issue #91 )
2017-05-08 17:01:39 +02:00
Felipe Herranz
3895d03581
added UC-232A Serial Port from ATEN manufacturer
2016-11-02 23:06:16 +01:00
Felipe Herranz
fb3e96a43d
added jar version of usbserial for the sake of retrocompatibility
2016-09-23 19:05:35 +02:00
Felipe Herranz
f63a29f0b4
solved a bug in syncRead for FTDI devices
2016-09-18 21:42:19 +02:00
Felipe Herranz
59add313e9
added isSupported method
2016-07-23 13:41:35 +02:00
Felipe Herranz
19f7773dff
added safeguards in stopFlowControlThread methods
2016-07-23 13:21:30 +02:00
Felipe Herranz
128dd8d68c
write and read functions perform asynchronously
2016-05-01 13:55:09 +02:00
Felipe Herranz
eb3671f7d3
CP2130 writeRead method added
2016-04-30 22:28:06 +02:00
Felipe Herranz
a1480886cd
CP2130 ids and closeSPI method added
2016-04-28 23:32:57 +02:00
Felipe Herranz
c437f77816
readMISO method added
2016-04-28 23:14:52 +02:00
Felipe Herranz
101c2ec017
writeMOSI method added
2016-04-28 23:02:03 +02:00
Felipe Herranz
7b9041706d
Added getClockDividerMethod
2016-04-25 23:10:22 +02:00
Felipe Herranz
8bf3a754ca
Added setGpioChipSelect method
2016-04-25 22:17:14 +02:00
Felipe Herranz
ab03620e45
Added CP2130SpiDevice class
2016-04-24 13:36:59 +02:00
Felipe Herranz
277c8dc4a4
UsbSpiDevice class added
2016-04-23 17:14:05 +02:00
Felipe Herranz
7cd6434ad1
Added SPI interface
2016-04-23 13:45:51 +02:00
Felipe Herranz
e96be3761b
Flow control thread started when getParity method is called
2016-04-22 22:58:14 +02:00
Felipe Herranz
d74716eac1
Added parity,frame,overrun and break error callbacks for FTDI
2016-04-17 19:17:45 +02:00
Felipe Herranz
9eb8037fec
Added parity,frame,overrun and break error callbacks for CP2102
2016-04-17 18:22:47 +02:00
Felipe Herranz
2a00a249b1
requestIN implemented as SafeUsbRequest
2016-04-17 12:51:43 +02:00
Felipe Herranz
1d78e71c21
SafeUsbRequest class added hoping to fix #40 bug
2016-04-17 12:25:50 +02:00
Felipe Herranz
63d4eef0ef
Added safeguards in Flow control threads
2016-04-16 01:29:56 +02:00
Felipe Herranz
ff4c839585
CTS and DSR implementations added to CH340
2016-04-15 23:32:32 +02:00
Felipe Herranz
14e5190f87
Added flow control thread for CH340 driver
2016-04-15 22:40:10 +02:00
Felipe Herranz
5b321a6672
checkState method updated
2016-04-10 23:21:40 +02:00
Felipe Herranz
a5b9fe73a5
setRTS and setDTR methods implemented
2016-04-10 22:01:13 +02:00
Felipe Herranz
31effe67a9
Deleted redundant call in writeHandshakeByte method
2016-04-10 21:09:03 +02:00
Felipe Herranz
cc7ada0a53
setFlowControl method implemented
2016-04-10 19:32:02 +02:00
Felipe Herranz
1d85013857
setParity method added
2016-04-10 18:43:39 +02:00
Felipe Herranz
792ef2a765
REQTYPE_HOST_TO_DEVICE changed
2016-04-10 17:15:11 +02:00
Felipe Herranz
b946a3e696
new setBaudRate method added
2016-04-10 16:56:02 +02:00
Felipe Herranz
c587ef9a6d
deleted setBaudRate when opening, redundant
2016-04-10 13:21:36 +02:00
Felipe Herranz
7ce54326de
ch340 new init method
2016-04-10 13:04:48 +02:00
Felipe Herranz
6da1eed12e
style adapted
2016-02-28 19:44:54 +01:00
Dmitry
c67ba4b08b
FTDI sync read timeout
2016-02-28 21:05:55 +03:00
Felipe Herranz
ce1dc92f4e
Synchronous write now works with FTDI devices
2016-02-27 19:07:35 +01:00
Felipe Herranz
8ed36b0c73
Filtering modem status in FTDI synchronous reads
2016-02-27 13:20:49 +01:00
Felipe Herranz
c8cda2f6b2
Added safeguards to not synchronously write or read when using asynchronous api and viceversa
2016-02-21 17:52:31 +01:00
Felipe Herranz
c686d79383
CH34x sync operations added
2016-02-21 16:14:27 +01:00
Felipe Herranz
73994f9043
CDC sync operations added
2016-02-21 14:06:13 +01:00
Felipe Herranz
eb722b0460
PL2303 sync operations added
2016-02-21 13:46:44 +01:00
Felipe Herranz
d80a89ba3f
FTDI sync operations added
2016-02-21 13:24:16 +01:00
Felipe Herranz
39bb876c96
CP2102 sync operations added
2016-02-21 13:05:49 +01:00
Felipe Herranz
7b7537c9d9
Added abstract methods for synchronous mode
2016-02-21 12:34:30 +01:00
Felipe Herranz
6464515345
cosmetic change
2016-02-13 18:32:59 +01:00
Felipe Herranz
9d2562d8da
DSR and CTS callbacks are executed on the beginning to know the status of the line
2016-02-13 18:24:56 +01:00
Felipe Herranz
7a8794430e
Added Moxa USB-Serial device VID:0x110a PID:0x1150
2016-02-13 17:06:58 +01:00
Felipe Herranz
79445e975c
Merge pull request #25 from jimcondon/master
...
Fixed close in CDCSerialDevice to enable reset on Arduino Leonardo/Micro
2016-02-13 17:00:16 +01:00
Felipe Herranz
2c0ea553b1
CTS and DSR signals will be read the first time a modem info packet is received
2016-02-13 13:04:55 +01:00
Felipe Herranz
bdf60c2bc5
rtsCts and dtrDsr flags put into some places where they are needed
2016-02-12 18:36:32 +01:00
Jim Condon
68eedd2988
Fixed close in CDCSerialDevice to enable reset on Arduino Leonardo/Micro
2016-02-10 14:29:57 -05:00
Felipe Herranz
b47e5311a6
RTS and DTR signals can be raised in the FTDI device now
2016-01-31 22:02:10 +01:00
Felipe Herranz
adfcea8bbb
flags enabled when flow control selected
2016-01-31 19:51:19 +01:00