Used JSSC to write/read data from a COM serial device. COM was detected but attempting to write or read gives this error: EXCEPTION_ACCESS_VIOLATION
Asked
Active
Viewed 1,800 times
0
-
code: https://www.codeproject.com/Tips/801262/Sending-and-receiving-strings-from-COM-port-via-jS – Peter Griffen Jun 06 '19 at 17:27
-
`com` is the wrong tag – Michael Gunter Jun 06 '19 at 20:05
1 Answers
1
This is a known bug in JSSC. Several other people noticed it too (e.g. https://github.com/arduino/Arduino/issues/6788). It seems to happen with Java SE 9 on Windows 10, x64.
Unfortunately, it appears that the JSSC project is no longer maintained/dead. However, as of this writing, there are over 150 forks, some of which appear to be active. For example, maybe the following fork might contain what you're looking for: https://github.com/aploese/spsw
In case you want to go with a different library altogether, this question provides a working example using jSerialComm: How to fix Java rxtxSerial.dll or jSSC-2.7_x86_64.dll Serial Port Error in Windows 10?

Simon
- 1,814
- 20
- 37