Coder Social home page Coder Social logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
In Windows jSSC take port names from registry: 
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM\ If jSSC return list with 
unpluged port name, it's mean that this port name present in registry. It can 
be a problem with USB->Serial adapter driver. Try to close the port before 
after step #4 and try again. May be driver cannot unregister device if it busy.

Original comment by [email protected] on 7 Jun 2013 at 4:43

from java-simple-serial-connector.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
It's true, if the COM port is closed before i try to unplug the USB device, 
SerialPortList.getPortNames() return an updated list.

But, if i remove "brutally" the USB device when a SerialPortEventListener is 
still running (the COM port is always busy)... after i'm unable to close the 
connection.

This is the exception: setEventsMask(); Exception type - Can't set mask.

it is possible to handle this type of event?

Original comment by [email protected] on 7 Jun 2013 at 9:11

from java-simple-serial-connector.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
You can't close port if device phisically removed from system, because port 
handle at this moment incorrect. You should close port before removing of 
device. It's a bad practice - remove device while working.

Original comment by [email protected] on 7 Jun 2013 at 10:09

from java-simple-serial-connector.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024

Original comment by [email protected] on 21 Jun 2013 at 5:49

  • Changed state: Done

from java-simple-serial-connector.

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.