Wykres commitów

136 Commity (234c83dd281e4cbfb1248c4dd5afcff25a245e03)

Autor SHA1 Wiadomość Data
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
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