Comments (4)
Hi,
I don't believe this is possible currently. To support this without breaking backwards compatibility, a new function (e.g. write(bytes[])
) would have to be written and the old boolean functions would have to be update to check the return length.
This would require Windows and Unix C++ code to be updated to return jint
and the current functions would be wrapped to still return a boolean.
Disclaimer, this library is mostly in maintenance mode, so any features would have to be authored by the vested/interested parties.
Relevant functions:
Unix:
jssc/src/main/cpp/_nix_based/jssc.cpp
Lines 528 to 535 in 6886b44
Windows:
jssc/src/main/cpp/windows/jssc.cpp
Lines 234 to 257 in 6886b44
from jssc.
Hi @tresf,
Thanks for your update! Iām happy to implement the changes, still I would first want to know if there was a reason behind it not to implement it like this from the beginning?
So is this at all possible with the C stack being used? Or do I have to try?
Thanks!
Best
Daniel
from jssc.
I would first want to know if there was a reason behind it not to implement it like this from the beginning?
Hi, this project is a fork of the original from https://github.com/scream3r/java-simple-serial-connector, so the history behind this decision likely lies there.
So is this at all possible with the C stack being used? Or do I have to try?
I think the Unix code makes it relatively easy, but I'm not sure about the win32 API. Perhaps the answer lies in GetOverlappedResult
returning a zero? I'm not very familiar with hardware flow control and only partially familiar with the C++ portions of the codebase. We do have some other volunteers here as well as a Slack channel if interested. @hiddenalpha has been very helpful with the C++ portions as well.
from jssc.
Looks related to issue #96
from jssc.
Related Issues (20)
- Open port without switching DTR line to low
- On a Mac not all USBserial devices are listed HOT 3
- On Mac OS, the app crash when closing the port. HOT 1
- Exception about removeEventListener
- Missing Characters on USB port HOT 1
- Application (JVM) crash due to missing error handling in native code HOT 1
- Result -1 of Select() when reading from disconnected (USB) serial-port causes infinite loop HOT 3
- Not working on SUSU OS Linux HOT 1
- NullPointerException in SerialPortList.getWindowsPortNames() HOT 1
- SIGSEGV on Linux when JVM near OutOfMemoryError conditions
- fatal error on Raspberry Pi HOT 12
- Complete release 2.9.5 HOT 6
- RISC-V support
- Chat has moved to Discord
- Github actions - Solaris question HOT 2
- Show method names in unit tests
- i got error in Raspberry pi . Arm64 environment HOT 5
- Version 2.9.6 pending maven central publication HOT 3
- Exception when opening port HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jssc.