-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SerialPort cannot enter listening #116
Comments
I am investigating potential relation of this to #107. Could you share the code that shows the use of I am also interested in the squencing of the events:
Also, are you on Windows and jssc 2.9.4? |
Sorry, I forgot to mention that I was using version 2.9.3, I upgraded to 2.9.4 and the problem did not reappear, thanks for your contribution, thanks brother |
Perfect. |
I was able to correctly access the listen event method after opening the serial port using the following code
However, when I close the serial port, then unplug the USB cable from the serial port and plug it back in, I can't access the listen events (the code above prints statements to see if it's a different serialPort).
When I got desperate, I found I could open the serial port with a putty connection, receive the data, close the serial port, then come back and access the listening event again with the code above ......
PS:
As long as I don't unplug the USB I can access the listener events every time, but as soon as I unplug it once the above problem occurs, even if I restart the java service it doesn't recover, I have to connect the serial port once with putty and then the java will resume accessing the listener events.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: