Giter Site home page Giter Site logo

Comments (3)

RishiGupta12 avatar RishiGupta12 commented on August 23, 2024

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.

RishiGupta12 avatar RishiGupta12 commented on August 23, 2024

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.

artjomg avatar artjomg commented on August 23, 2024

Moved to Google group Discussion
https://groups.google.com/forum/#!topic/serial-communication-manager/Bvi5xfyjix0

from serialpundit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.