Comments (3)
Please raise (just copy -paste issue) on google group and let us follow it there.
- Version mismatch is not an issue.
- The error reporting from dataListener i.e. method onDataListenerError(int arg0) gets called whenever there is an error. Because USB device is removed error continue to occur. This is why this method is called again and again. The onDataListenerError is intended to trigger system recovery policy to write recoverable and fault tolerant application. Read javadoc here http://www.javadoc.io/doc/com.embeddedunveiled/scm/1.0.3
- SCM does not allow to unregister any listener until port which it is monitoring is closed. But I can see that something more graceful is needed here.
- If the usb device is removed and plugged again into system, it is seen as a new device by both OS and SCM. Device may or may not be assigned same name for example if previously it was ttyUSB0 now it may be ttyUSB1. So if there is a registered data listener it can not automatically open newly plugged device and start watching it.
- No need of creating new instance of SCM or playing with JVM. I am going to resolve the issue more gracefully.
from serialpundit.
This test is passing https://github.com/RishiGupta12/serial-communication-manager/blob/master/tests/test56-dl-removePort/src/test56/Test56.java
Please take a look at when error occurs, 1st unregister listener(s) and then close port. Now if you plugin the device again, open port and register listener.
from serialpundit.
Moved to Google group Discussion
https://groups.google.com/forum/#!topic/serial-communication-manager/Bvi5xfyjix0
from serialpundit.
Related Issues (20)
- Google Group - Issues and support - Do not use github
- serial library seems to be missing from maven HOT 2
- Native Library /tmp/sp_tuartx1/spcomlnxx64.so already loaded in another classloader with servlet HOT 1
- Where is the native c code? HOT 2
- Get InputStream from SerialComManager HOT 4
- "Can't find dependent libraries" on Win 10 32 and 64 bit HOT 10
- tty2com -- cannot read meta info HOT 2
- Linux kernel driver problem HOT 2
- 2018-03-25 20:40:59 JNI call ThrowNew failed to throw exception !, FormatMessageA(), error code : 15100 HOT 9
- My app not work some windows 10 HOT 3
- If i use scm.writeBytes other threads always freeze
- javax.comm Implementation HOT 4
- How to detect Parity errors? HOT 6
- SerialComUSB: Raspi 4 is not supported
- Trouble loading ftdi d2xx lib under Windows7 x64
- ISerialComEventListener and CTS change HOT 6
- Application Crash when starting multiple instance of java file. HOT 1
- Latency timer
- Drop "SerialComManager.BAUDRATE baudRate" parameter of SerialComManager.configureComPortData() function HOT 3
- Native libraries HOT 1
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 serialpundit.