Commit Graph

188 Commits

Author SHA1 Message Date
hedgecrw85 0768e856ae Use CreateProcess to directly preset DTR/RTS modes instead of calling system() 2020-01-03 13:54:21 -06:00
hedgecrw85 924bd97ad4 New SerialPortMessageListenerWithExceptions to allow users to handle event-based exceptions 2020-01-03 13:50:55 -06:00
hedgecrw85 05a84e4aff Update copyright years 2020-01-03 13:48:58 -06:00
hedgecrw85 a730f9819c Update version numbers 2020-01-03 12:53:09 -06:00
hedgecrw85 3da47be0f1 Update version numbers 2020-01-03 12:48:04 -06:00
hedgecrw85 155ae7940c Ensure all data structures are properly initialized 2019-11-12 11:21:55 -06:00
hedgecrw85 f06b03f186 Properly initialize termios structure 2019-11-12 10:04:19 -06:00
hedgecrw85 65ef32f061 Check for open serial port before reading/writing 2019-11-07 18:35:21 -06:00
hedgecrw85 5c7673c875 Check for closed port before trying to read from port 2019-11-07 17:20:04 -06:00
hedgecrw85 6d8da8a9e2 Update test to include opening with no sleep timeout 2019-11-07 10:05:13 -06:00
hedgecrw85 9189732c3d Make all config update safety sleep timeouts configurable 2019-11-04 10:49:10 -06:00
hedgecrw85 b764c88d75 Set native library file and directory permissions to be globally accessible 2019-10-29 15:31:16 -05:00
hedgecrw85 0acc234660 Increase preset RTS/DTR command buffer size 2019-10-29 11:37:51 -05:00
hedgecrw85 11864b4afe Add presetting RTS test 2019-10-29 11:36:55 -05:00
hedgecrw85 d2243293b7 Add calls to get RTS/DTR/RI line statuses, suppress terminal output from pre-setting DTR/RTS lines, and set estimated device xmit/receive buffer sizes from runtime code 2019-10-15 14:31:48 -05:00
hedgecrw85 0f2566ce51 Update version number 2019-09-03 14:01:59 -05:00
hedgecrw85 e8074068cf Allow waitForSerialEvent() to throw any kind of exception 2019-09-03 13:49:53 -05:00
hedgecrw85 04d1bb2ae8 Check for sun.arch.data.model property when determining architecture on armv8 2019-08-28 20:16:47 -05:00
hedgecrw85 606657e45a Javadoc updates 2019-08-28 19:49:31 -05:00
hedgecrw85 6634692ac9 Store temporary platform binary into directory instead of root tmp 2019-08-28 19:48:37 -05:00
hedgecrw85 058a4dcc3a Add DataListener class which can handle exceptions and reset Interrupted state on threads when that may occur 2019-07-23 10:22:39 -05:00
hedgecrw85 fbb51c858b Check for valid file descriptor before closing and add RS485 mode 2019-07-10 11:22:03 -05:00
hedgecrw85 53449d43bc Update version to 2.5.2 2019-05-06 10:17:20 -05:00
hedgecrw85 35abad5433 Add Android Manifest to enable building AAR 2019-04-15 15:10:19 -05:00
hedgecrw85 7fdab3aea6 Ensure we can break out of while loop waiting for full message retrieval 2019-04-15 10:54:22 -05:00
hedgecrw85 69aba390fa Fix getDSR status call in Posix 2019-04-15 10:34:54 -05:00
hedgecrw85 4065bdd8fe Make getCommPort() unchecked-throwable instead of returning invalid object 2019-04-15 10:10:37 -05:00
hedgecrw85 15a24d4cf6 Add ability to get library version programmatically with getVersion() 2019-03-22 10:43:48 -05:00
hedgecrw85 206d1721a9 Update build version to 2.5.1 2019-03-22 10:43:24 -05:00
hedgecrw85 a6a377a1bc Make SerialPortMessageListener able to parse multi-byte binary delimiters 2019-03-19 12:38:36 -05:00
hedgecrw85 bebef1f45c Update version numbers 2019-03-15 11:36:00 -05:00
hedgecrw85 6ec19f472f Initial implementation of SerialPortMessageListener 2019-03-15 11:35:44 -05:00
hedgecrw85 051ba9f8fb Add additional port locking for root users 2019-03-07 13:58:30 -06:00
hedgecrw85 11896f44cc Add ability to retrieve DCD line status 2019-03-07 13:57:54 -06:00
hedgecrw85 4f4d9ebd7b Newer Android runtimes don't include any tc* functions, use ioctl instead 2019-02-11 12:54:40 -06:00
hedgecrw85 30a464cad7 Ensure no NullPointerException is thrown when reading ldd 2019-02-11 09:53:10 -06:00
hedgecrw85 62fc0f0184 InputStream.read() throws SerialPortTimeoutException instead of silently returning same character 2019-01-10 11:39:59 -06:00
hedgecrw85 e1fda4d2f2 Update all version strings to 2.4.1 2018-12-20 12:20:50 -06:00
hedgecrw85 62f566034d Fixed incorrect Sparc path for Solaris library 2018-12-20 10:31:09 -06:00
hedgecrw85 5a6dbfd820 Change system calls from select() to poll() to overcome max FD limit of 1024 2018-12-11 16:07:29 -06:00
Arthur Gay 9457337495 Check return value of ioctl `TIOCGSERIAL` on Linux 2018-12-07 15:51:44 +01:00
hedgecrw85 b4d3898355 Consolidate all Posix-based OSs into one platform 2018-11-13 10:08:19 -06:00
hedgecrw85 0260a0961a Fix stty flag capitalization error 2018-11-07 13:25:41 -06:00
hedgecrw85 e81d397c8c Enumerate Advantech Serial Port extender ports 2018-11-01 15:14:27 -05:00
hedgecrw85 7a1ee004d9 Fix calling convention of FTDI drivers on Windows 2018-10-31 13:16:36 -05:00
hedgecrw85 f86ce54cb2 Add loading of Solaris shared library 2018-10-29 10:44:04 -05:00
hedgecrw85 07f109e625 Updated build version to 2.4.0 in expectation of Solaris additions 2018-10-29 10:16:46 -05:00
hedgecrw85 522cd5525c Add secondary lib search path for Android 2018-10-12 16:58:08 -05:00
Redirion 0578b3813b
Avoid using su on Android if not required
on some devices the com ports already have the required file flags, so check them first to avoid unnecessary work
2018-10-09 12:15:09 +02:00
Will Hedgecock 6ec32c65cf Implement blocking-write mode on Linux 2018-10-08 13:34:42 -05:00