Commit Graph

319 Commits

Author SHA1 Message Date
Will Hedgecock 1ba4040162 Ensure that all bytes have been written before returning from writeBytes() 2021-11-18 18:06:50 -06:00
Will Hedgecock 3297603ba2 Do not mark SerialPortEvent as final 2021-11-18 17:42:41 -06:00
Will Hedgecock 3ee680b155 Complete rework of Windows native code 2021-11-17 01:20:30 -06:00
Will Hedgecock 20ea873390 Ensure port handle exists before closing it 2021-11-17 01:07:24 -06:00
Will Hedgecock 79d09f38c9 Enumerate ports twice to ensure no leaks or duplicates 2021-11-17 01:03:56 -06:00
Will Hedgecock bb559137c9 Set native error codes for all functions 2021-11-17 01:03:40 -06:00
Will Hedgecock 34c72ceeb3 Use cross-toolchains to build all Posix architectures 2021-11-16 21:07:36 -06:00
Will Hedgecock 1c2edbde4d Move Crosstool-Ng config files out of build repo 2021-11-16 21:07:07 -06:00
Will Hedgecock d593ede42f Update open/close test and make Makeable 2021-11-16 21:06:24 -06:00
Will Hedgecock ea23ccd90e Only close input Scanner once 2021-11-16 21:05:38 -06:00
Will Hedgecock e9133adc2c Do not automatically close ports upon error 2021-11-16 21:05:21 -06:00
Will Hedgecock a756870d2d Renew support for 32-bit MacOS 2021-11-16 21:04:21 -06:00
Will Hedgecock 9a2fcb26bd Move hard-float library locations 2021-11-16 21:04:02 -06:00
Will Hedgecock 9395d29777 Allow retrieval of native error codes and source locations 2021-11-16 21:01:49 -06:00
Will Hedgecock 28efbd1a51 Complete overhaul of Posix native implementation 2021-11-16 21:00:43 -06:00
Will Hedgecock bc39570ff1 Complete overhaul of JNI boundary - store FD and details in C 2021-11-16 20:59:15 -06:00
Will Hedgecock 6ab8a2380a Update tuple storage functions 2021-11-08 12:50:17 -06:00
Will Hedgecock 24e5e14a6d Simplify tmpFile directory parsing 2021-11-03 14:04:01 -05:00
Will Hedgecock fc17fd225a Fix deprecated MacOS typedef 2021-11-03 13:41:52 -05:00
Will Hedgecock 92c00b9eb0 Add new built-in MacOS baud rates 2021-11-03 13:25:07 -05:00
Will Hedgecock 1ccc3b7d8a Ignore SIGIO POSIX signals 2021-11-03 13:24:44 -05:00
Will Hedgecock 1ef3467529 Properly clear Xon/Xoff flow control settings 2021-10-29 18:17:38 -05:00
Will Hedgecock 0e6903362e Update documentation for serial port descriptors 2021-10-29 16:38:38 -05:00
Will Hedgecock c7cf3cbbfb New method to return full system path of the serial port 2021-10-29 16:30:37 -05:00
Will Hedgecock 3aa348378f Update all native libraries 2021-10-25 11:22:24 -05:00
Will Hedgecock 5ef0d56559 Fix MacOS compilation using new Apple compilers 2021-10-25 11:22:04 -05:00
Will Hedgecock 3de973bbb0 Fix ARM64 compiler command 2021-10-22 16:14:34 -05:00
Will Hedgecock 260fff8a3a Update version numbers 2021-10-22 14:37:15 -05:00
Will Hedgecock ed2efc0b76
Merge pull request #369 from javmarina/latency-timer
Reduce latency timer in FTDI devices
2021-10-22 13:04:58 -05:00
Will Hedgecock 2f70a93a27 Add remaining RS-485 configuration parameters (PR #357) 2021-10-22 12:50:08 -05:00
Will Hedgecock c1684de18e
Merge pull request #353 from chargeITmobility/fix-rs485-delays
Fix RS-485 delays passed to ioctl
2021-10-22 12:30:03 -05:00
Will Hedgecock e4b34d51d9 Update AppID documentation 2021-10-22 12:25:59 -05:00
Will Hedgecock 956364b449
Merge pull request #352 from yigitpirildak/separate_tmpdir_across_applications
Separate tmpdir across applications
2021-10-22 12:18:57 -05:00
Will Hedgecock f0ff8c39cc Add option to disable exclusive lock 2021-10-22 12:13:26 -05:00
Javi Marina 996201fe7a
Reduce latency timer in FTDI devices 2021-10-14 17:11:39 +02:00
Christian Meusel 2092ca0c0b Fix RS-485 delays passed to ioctl
The kernel wants to have them in milliseconds where
SerialPort.setRs485ModeParameters uses microseconds.
2021-06-23 16:55:56 +02:00
Eclipse 55ede252d6 Check fazecast.jSerialComm.appid property and use it to create an app-specific tmpdir folder so that multiple applications running jSerialComm simultaneously don't cause problems with each other 2021-06-19 02:18:44 +03:00
Will Hedgecock 374323cd6e Update tools for ARM and PowerPC building 2021-04-14 16:32:20 -05:00
Will Hedgecock b467a52b11 Update version number to 2.7.0 2021-04-14 11:38:58 -05:00
Will Hedgecock 4864aebfb1 Add PowerPC binary 2021-04-14 11:36:29 -05:00
Will Hedgecock cb1c628bf1 Allow for building on a PowerPC 2021-04-14 11:33:25 -05:00
Will Hedgecock 3896f2d414
Merge pull request #343 from nuntipat/apple-silicon
Add native support for Apple Silicon
2021-04-14 11:17:08 -05:00
hedgecrw85 1f8efa6e64 Switch order of name mangling for port path detection 2021-04-14 09:16:26 -05:00
hedgecrw85 53d3fae865 Allow for read timeout exceptions to be suppressed within InputStream 2021-04-14 09:12:05 -05:00
hedgecrw85 c8192cf87d Throw SerialPortInvalidPortException if descriptor search fails 2021-04-14 08:45:10 -05:00
hedgecrw85 43e302ec14 Update port descriptor name mangling if invalid port path is passed in 2021-04-14 08:38:46 -05:00
Nuntipat Narkthong 775fde1ef8 Add native support for Apple Silicon 2021-04-11 21:12:50 +07:00
hedgecrw85 3d4c7d7abb Update version number 2020-04-29 11:32:07 -05:00
hedgecrw85 d8c8fee2e0 Update documentation to show that getCommPorts returns new instances each call 2020-04-29 11:30:23 -05:00
hedgecrw85 759914cb3f Set LOW_LATENCY mode and remove tcdrain before close 2020-04-29 11:29:50 -05:00
hedgecrw85 ad91c4e562 No change 2020-04-06 10:34:24 -05:00
hedgecrw85 03b5cacc9a Do not completely reset port configs upon native configuration 2020-04-06 10:29:47 -05:00
hedgecrw85 dad4251487 Test program for opening/closing ports 2020-04-06 10:29:05 -05:00
hedgecrw85 f7cad9d377 Native binary updates 2020-04-06 10:28:42 -05:00
hedgecrw85 db08686f07 Replace deprecated javah call with "javac -h" 2020-04-02 17:30:48 -05:00
hedgecrw85 a2ee09ab76 Update documentation 2020-04-02 16:47:01 -05:00
hedgecrw85 05ecc50de8 Android build different based on OS 2020-04-02 00:00:11 -05:00
hedgecrw85 1d297ca610 New test cast native application for opening/closing a port 2020-04-01 23:55:12 -05:00
hedgecrw85 9122adccea Redefine fdatasync to fsync on Mac 2020-04-01 22:55:06 -05:00
hedgecrw85 2ca1073277 Return boolean values whether setting serial port config parameters succeeded 2020-04-01 22:45:33 -05:00
hedgecrw85 ca1c709d00 Check return value of SetupComm in Windows 2020-04-01 22:43:51 -05:00
hedgecrw85 5ef0299abd Only enable BRKINT flag if not in RS485 mode 2020-04-01 21:31:57 -05:00
hedgecrw85 ff463aaa42 Change output error message for different types to differentiate better 2020-04-01 20:33:42 -05:00
hedgecrw85 4502ae3a9a Sync data before closing port 2020-04-01 20:33:22 -05:00
hedgecrw85 057184ba3d Update Crosstool-NG config files to work with newer versions 2020-04-01 16:19:47 -05:00
hedgecrw85 a8bd56e454 Remove deprecated Android architectures MIPS, MIPS64, and ARMEABI 2020-02-25 12:24:58 -06:00
hedgecrw85 80cbf0362f Remove Android-specific code and move to Posix codebase 2020-02-25 12:24:13 -06:00
hedgecrw85 4e7e2711ff Update version to 2.6.1 2020-02-20 12:04:08 -06:00
hedgecrw85 79b29397c0 Update all native binaries 2020-02-19 12:04:27 -06:00
hedgecrw85 74bb7d7515 Update version number to v2.6.0 2020-02-19 12:04:02 -06:00
hedgecrw85 7aec1d59d7 Force interrupt event waiting thread in case it gets stuck in native/driver code during close 2020-02-19 11:48:25 -06:00
hedgecrw85 8c9e671c43 Break out of event waiting loop based on Java-side boolean value 2020-02-19 11:47:39 -06:00
hedgecrw85 5e41067f00 Remove isOpened field and detect openness based on file descriptor 2020-02-19 11:45:13 -06:00
hedgecrw85 9b77808440 Officially remove OSX 32-bit support 2020-02-19 11:43:47 -06:00
hedgecrw85 87b54778ea Synchronize open/close/setup calls in Java to avoid race conditions 2020-02-18 16:46:06 -06:00
hedgecrw85 4bdd0bf331 Perform full port close routine upon native error 2020-02-18 16:45:10 -06:00
hedgecrw85 349f0adffb Use flock() to ensure exclusive access instead of TIOCEXCL 2020-02-18 16:44:01 -06:00
hedgecrw85 ed126f4235 Update test cases 2020-02-18 16:42:21 -06:00
hedgecrw85 71d959c7f6 Add additional ARM version indicator for choosing correct native binary 2020-02-18 12:32:14 -06:00
hedgecrw85 c856cc1ef4 Ensure data was actually received on waitForEvent on Windows 2020-02-18 12:14:37 -06:00
hedgecrw85 cc0d0315d9 Add ability for user to specify whether RTS is high/low when sending in RS485 mode 2020-01-22 15:28:20 -06:00
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