Commit Graph

73 Commits

Author SHA1 Message Date
Alexey Sokolov 4b4ad8b4b1 Removed 0.9 native libs for MacOS X 2013-04-25 16:10:49 +03:00
Alexey Sokolov 4f3f66c30f Readme update 2013-04-25 14:44:36 +03:00
Alexey Sokolov 5aaaf63115 Added 2.4 Solaris native libs 2013-04-25 14:42:01 +03:00
Alexey Sokolov 9b2554b8de Removed Solaris native libs 2013-04-25 14:41:40 +03:00
scream3r d613a3dabe Enabled using of TIOCEXCL and TIOCNXCL for Solaris OS (SunOS) 2013-04-25 15:00:00 +04:00
Alexey Sokolov 30accf3130 Readme file update 2013-04-25 09:33:05 +03:00
Alexey Sokolov 771f1caca9 Updated Windows "jssc.c++" file. jint changed to jlong 2013-04-24 15:58:08 +03:00
scream3r 33d9953eb0 Updated library version to 2.4 2013-04-24 16:43:18 +04:00
scream3r aa73deab57 Updated _nix "jssc.cpp" file. jint changed to jlong 2013-04-24 16:41:49 +04:00
scream3r f83f0d397e Updated "jssc_SerialNativeInterface.h" header file. jint changed to jlong 2013-04-24 16:08:12 +04:00
scream3r d818ecb60a Changed port handle from "int" to "long" type, to prevent Win64 HANDLE problems. Don't ever seen this problem, but theory it could be 2013-04-24 15:44:09 +04:00
Alexey Sokolov c7a199c98c Readme update 2013-04-24 13:21:10 +03:00
Alexey Sokolov e8cfc9b7ea Added 2.3 Windows native libs 2013-04-23 15:15:42 +03:00
Alexey Sokolov 7f44d125aa Removed 0.9 Windows native libs 2013-04-23 15:15:18 +03:00
Alexey Sokolov 394bebd794 Added fix for issue #10. If user home folder is read-only, the native library will be unpacked into temp folder 2013-04-23 11:28:54 +03:00
scream3r 3363195bef Removed port opening only for Linux in "getUnixBasedPortNames()" method of SerialPortList class, now port opening will be used on all _unix_based systems, because it can help to get real serial devices 2013-04-22 11:31:27 +04:00
Alexey Sokolov 9544ad46cd Windows native part. Added using of "ERR_INCORRECT_SERIAL_PORT", checking the DCB structure on port opening like in _nix based version and a little refactoring was made 2013-04-22 10:19:21 +03:00
scream3r f756417b29 Linux native part, used "ERR_INCORRECT_SERIAL_PORT" instead of "ERR_PORT_NOT_FOUND" if termios structure for serial port can not be get 2013-04-22 10:49:45 +04:00
scream3r 5b5a6041c1 Added using of "ERR_INCORRECT_SERIAL_PORT" into SerialPort class. Also made a little refactoring - if/else changed to switch/case in "openPort()" method for handling error 2013-04-22 10:46:45 +04:00
scream3r 44f6fea8fa Added "ERR_INCORRECT_SERIAL_PORT" into SerialNativeInterface class and jssc_SerialNativeInterface.h header file. Also added "TYPE_INCORRECT_SERIAL_PORT" for throwing if "ERR_INCORRECT_SERIAL_PORT" 2013-04-22 10:29:15 +04:00
scream3r ef28e80bd2 Linux native jssc.cpp little refactoring 2013-04-22 10:16:55 +04:00
scream3r 73c7a6870b Added constants into jssc_SerialNativeInterface.h header file 2013-04-22 10:12:52 +04:00
scream3r df65d88787 Added 3 constants to SerialNativeInterface class, and made a little refactoring of SerialPort and SerialPortList classes 2013-04-22 09:59:59 +04:00
scream3r 1043354ec1 Added methods for advanced port listing by using another search path, RegExp and comparator. Also some internal method were modified 2013-04-19 16:52:53 +04:00
scream3r 6ab3e83451 Added method "getPortNames(String searchPath, Pattern pattern, Comparator comparator)", added default PORTNAMES_REGEXP for Windows, modified "getUnixBasedPortNames()" method 2013-04-19 14:41:15 +04:00
Alexey Sokolov cd4f05d84c Added "getPortNames(String searchPath)" method and maded a little changes in "getUnixBasedPortNames()" method 2013-04-19 11:50:25 +03:00
Alexey Sokolov e8df64618d jSSC version number changed in SerialNativeInterface class 2013-04-19 11:49:01 +03:00
scream3r 8e5a797e01 Added bluetooth serials to Linux port list search "rfcomm" 2013-04-19 10:25:16 +04:00
scream3r 2d481ff6e7 Added JSSC_NO_TIOCEXCL property for disable using exclusive access to serial device. See issue #6 2013-04-18 15:22:49 +04:00
scream3r 6d056234b9 Copyright symbol fix in native header file 2013-04-18 14:57:40 +04:00
Alexey Sokolov e4076c5efd Readme file update 2013-04-18 13:06:12 +03:00
Alexey Sokolov 235f677881 Readme file update 2013-04-18 13:02:17 +03:00
Alexey Sokolov 279c8b335f Readme file update 2013-04-18 12:09:47 +03:00
Alexey Sokolov 521909e65a Updated Windows native "openPort()" function signature, and function comment 2013-04-18 11:35:58 +03:00
scream3r d0b558aa17 Updated comment for openPort() in _nix_based jssc.cpp 2013-04-18 11:31:58 +04:00
scream3r e23a29229c Cleared "getUnixBasedPortNames()" method is SerialPortList class 2013-04-18 10:25:52 +04:00
scream3r f4e725252f Removed using of "invockedByPortList" parameter. Using of F_GETFL/F_SETFL has no effect on already opened port 2013-04-18 10:17:54 +04:00
scream3r 49c677a663 Expanded javadoc for native openPort() method 2013-04-18 09:44:30 +04:00
scream3r 6d542e09a1 Fixed "openPort()" invocations in considering of last changes 2013-04-17 17:26:26 +04:00
scream3r 273e132321 Added useTIOCEXCL and invokedByPortList keys into native openPort() method 2013-04-17 17:24:55 +04:00
scream3r ebcb3d8c4c Updated _nix_based jssc.cpp, added keys for disabling TIOCEXCL and prevent flags rewriting for serial port while port listing 2013-04-17 17:23:07 +04:00
scream3r 223740af44 Updated jssc_SerialNativeInterface.h header file 2013-04-17 17:20:23 +04:00
scream3r 5a2f8017ad Rewrited native readBytes function, now it use termios structure for setting min count of bytes to read, it makes read operation blocking, like in Windows version, and prevent reading of garbage 2013-04-17 15:29:49 +04:00
scream3r c2c52e1e5c Added termios structure checking while port opening, and "Permission denied" exception support 2013-04-17 13:48:55 +04:00
scream3r 82a01329a6 Added SerialPortException.TYPE_PERMISSION_DENIED support into SerialPort class 2013-04-17 13:38:06 +04:00
scream3r fa056da300 Added TYPE_PERMISSION_DENIED exception to SerialPortException class 2013-04-17 13:33:12 +04:00
scream3r 618d77309e Added serialPort.closePort() to getUnixBasedPortNames() 2013-04-17 12:49:46 +04:00
scream3r 2590ae3a54 Fixed path to jssc_SerialNativeInterface.h in _nix_based source file 2013-04-17 11:08:52 +04:00
Alexey Sokolov 6baab11179 Added support of errorOccurred method for SerialPortEventListener. Only getting "public void errorOccurred(SerialPortException ex)" from event listener object implemented, no invokation yet 2013-04-12 15:02:08 +03:00
Alexey Sokolov 03356b73f9 Cleared body duplicating in addEventListener() methods 2013-04-12 14:08:42 +03:00