Kevin Herron
df4a8b7cb8
Block/loop until all bytes are written SerialOutputStream
...
Ensures that the write methods of SerialOutputStream fulfill their
contract by acknowledging the possibility that not all bytes could be
written in the first call to native writeBytes() and looping until all
bytes have been written.
2017-04-30 06:48:46 -07:00
Kevin Herron
6edf6f9396
Reduce byte[] allocations in SerialInputStream and SerialOutputStream
...
* use a shared, re-usable buffer for single byte reads and writes
* implement read(byte[]) directly instead of delegating to
read(byte[], int, int), which makes an unnecessary copy.
* implement write(byte[]) directly instead of delegating to
write(byte[], int, int), which makes an unnecessary copy.
* avoid a corner case unnecessary copy in write(byte[], int, int)
2017-04-30 06:47:38 -07:00
hedgecrw85
46790676e6
Allow the safety sleep timer to be user-configurable when opening a port.
2016-12-05 15:24:49 -06:00
hedgecrw85
c943df001f
Ensure that port reads do not block indefinitely if a user enters an incorrect timeout value (<100) on Linux or Mac.
2016-12-05 14:51:06 -06:00
hedgecrw85
5d9b261ee4
Documentation.
2016-12-05 14:29:04 -06:00
hedgecrw85
73b0d5918c
Added bytesAwaitingWrite() method and allow enumeration of rfcomm Bluetooth ports.
2016-12-05 14:25:23 -06:00
hedgecrw85
b30504e5b2
Added "bytes awaiting write" functionality
2016-03-25 11:19:29 -05:00
hedgecrw85
3957c116fb
Removed separate function for setting flow control parameters.
2016-03-24 11:58:21 -05:00
hedgecrw85
44882a4cef
Fixed bug where calling configuration options after setting timeouts negated the timeout settings.
2016-03-23 17:11:37 -05:00
hedgecrw85
6a3cc212db
Fix bug where reconfiguring ports after setting timeouts negates the timeout settings.
2016-03-23 16:51:07 -05:00
hedgecrw85
cbc7f952b4
Added ability to resolve symbolic links.
2016-02-18 11:09:27 -06:00
hedgecrw85
f55a1af7e7
Updated to version 1.3.11.
2016-01-04 10:43:42 -06:00
hedgecrw85
ff5617118d
Allow users to specify a port in a non-standard directory
2016-01-04 09:27:11 -06:00
hedgecrw85
9ae2f07f2a
Fixed some closing while executing a blocking call bugs.
2015-11-20 11:14:45 -06:00
hedgecrw85
51d7e2fb01
Allow for closing of port during blocking call on Windows.
2015-11-20 10:52:50 -06:00
hedgecrw85
7edec93c87
Updated to Version 1.3.10.
2015-11-19 13:36:02 -06:00
hedgecrw85
4939a18b2d
Allow Windows serial port to return after several failed attempts at closing.
2015-11-19 13:32:16 -06:00
hedgecrw85
bde6b6ce7c
Updated to version 1.3.9.
2015-10-28 14:56:16 -05:00
hedgecrw85
8ae6c186e2
Updated to version 1.3.9.
2015-10-28 10:21:07 -05:00
hedgecrw85
2f3861391b
Updated to version 1.3.9.
2015-10-28 09:49:08 -05:00
hedgecrw85
15b33245d5
Updated to version 1.3.9.
2015-10-28 09:05:42 -05:00
hedgecrw85
d2e19f658a
Updated to version 1.3.9.
2015-10-28 09:01:22 -05:00
hedgecrw85
7821161dcc
Forced flush before close, monitors return value of close(), and releases exclusive lock of port before close.
2015-10-09 11:42:15 -05:00
hedgecrw85
ec0acd7ac4
Retry POSIX calls if EINTR value is returned and try a last-ditch brute force enumeration of any ports that aren't properly listed in sysfs on Linux.
2015-08-13 16:45:05 -05:00
hedgecrw85
7e7ac77796
Fixed some Android permission issues and made direct calls to native read/write methods instead of multiple Java-based calls.
2015-08-12 09:50:20 -05:00
rbanalagay
2499fd3245
Fixed Mac bug whereby some drivers could not set baud rates appropriately due to lack of IOSSIOSPEED support
2015-07-02 11:32:59 -05:00
hedgecrw85
45f7d6cccf
Fixed #include problems on Mac.
2015-07-02 11:30:47 -05:00
hedgecrw85
f0c717c1a3
Mac OS Makefile updates.
2015-07-02 11:28:28 -05:00
hedgecrw85
422304c2d0
Fixed problem with IOSSIOSPEED not working on some drivers under Mac.
2015-07-02 11:23:16 -05:00
hedgecrw85
8a45680e70
Fixed default number of stop bits to 1 in Javadoc.
2015-06-16 11:02:22 -05:00
hedgecrw85
6f5f2c4e8b
Added documentation for OS-specific differences.
2015-06-15 12:42:25 -05:00
hedgecrw85
85e219a285
Added an isOpen() function call.
2015-06-14 16:56:00 -05:00
Rueben Banalagay
33df74c31f
Allowed opening multiple ports at the same time.
2015-05-20 13:10:43 -05:00
hedgecrw85
af99aee913
Allow user to open multiple ports at the same time.
2015-05-20 13:01:28 -05:00
hedgecrw85
5741a2f827
Allow use of pseudo-terminals on Linux.
2015-05-18 21:39:31 -05:00
hedgecrw85
cb3b50196f
Fixed bug whereby Event-Based Reading hangs forever on Windows if there is no input from the serial port.
2015-05-13 10:32:07 -05:00
hedgecrw85
de600d05c8
Forced enumeration of ttyAMA* on RPi-B.
2015-05-12 10:21:04 -05:00
hedgecrw85
83e70bf4b9
Allow Mac to enumerate tty AND cu ports. Simply system port name returned on Linux systems.
2015-05-07 10:49:39 -05:00
hedgecrw85
3bcda2e64e
Removed all dependencies on libstdc++ (pure C now), fixed bug with dropping MSB on Linux when set to 8N1.
2015-05-04 18:48:48 -05:00
hedgecrw85
f49e8803a4
Updated to Version 1.2.2
2015-04-30 18:16:39 -05:00
hedgecrw85
ec08bff500
Added ability to use this library with a user-defined serial port desriptor.
2015-04-28 10:43:01 -05:00
hedgecrw85
2ac7b35390
Updated Android code to allow changing of baud rates.
2015-04-21 13:32:23 -05:00
hedgecrw85
8561097d18
Fixed a problem whereby serial baud rates were not updated correctly on some Linux distros.
2015-04-21 12:18:20 -05:00
hedgecrw85
c41af75283
Updated Android implementation from C++ to C.
2015-04-20 18:01:08 -05:00
hedgecrw85
ecc78366d1
Changed all Linux implementations from C++ to C to remove dependencies on libstdc++.
2015-04-20 17:30:57 -05:00
hedgecrw85
ef1ebd4ee7
Full support for Raspberry Pi.
2015-04-20 12:46:38 -05:00
hedgecrw85
3a2caaf248
Updated friendly port names.
2015-03-17 16:26:00 -05:00
hedgecrw85
e3c078284a
Fixed Mac OS X friendly port names.
2015-03-17 16:19:57 -05:00
hedgecrw85
2960f9425e
Updated to Version 1.0.1.
2015-03-17 12:43:23 -05:00
hedgecrw85
bc7ae187f6
Fixed Mac OS bug of death.
2015-03-17 12:18:08 -05:00