solomonope / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

Detecting port busy is not working as expected #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open the port for device#1 ( USB device that has a virtual port ex: 
/dev/ttyACM0)
2. Open the port/dev/ttyACM0 again, and it succeeds where it should throw an 
exception, and this cause device#1 to stop functioning, and isCTS() starts to 
return "false".

What is the expected output? What do you see instead?
Throw an exception, instead the port is opened successfully

What version of the product are you using? On what operating system?
Version 0.9 , OS: Ubuntu 9.10

Please provide any additional information below.

Original issue reported on code.google.com by srishm...@gmail.com on 4 Jan 2012 at 10:14

GoogleCodeExporter commented 8 years ago
I have the same issue in Solaris version, and only in Oracle Solaris 11. Thank 
you for your report, I will test it on Ubuntu 9.10

Original comment by scream3r.org@gmail.com on 5 Jan 2012 at 7:28

GoogleCodeExporter commented 8 years ago
Any updates ?

Original comment by srishm...@gmail.com on 23 Jan 2012 at 10:48

GoogleCodeExporter commented 8 years ago
2 srishmawi
I tested jSSC on Ubuntu 9.10 and I have no problems on this OS. Can you tell me 
version of libstdc++ library from your system ?

Original comment by scream3r.org@gmail.com on 23 Jan 2012 at 8:33

GoogleCodeExporter commented 8 years ago
I'm using libstdc++6.

Original comment by srishm...@gmail.com on 24 Jan 2012 at 7:42

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Which version of libstdc++ are you using ?

Original comment by srishm...@gmail.com on 24 Jan 2012 at 8:18

GoogleCodeExporter commented 8 years ago
Me too, libstdc++.so.6.0.10 Hmm, it's interesting. Are you working under root 
user ? TIOCEXCL directive for exclusive access has no effect while working 
under root.

Original comment by scream3r.org@gmail.com on 25 Jan 2012 at 4:19

GoogleCodeExporter commented 8 years ago
The issue because I'm working under root, if there is nothing you could do 
about it in the code, then I guess you can close it.

thanks, that was very helpful.

Original comment by srishm...@gmail.com on 25 Jan 2012 at 2:53

GoogleCodeExporter commented 8 years ago
Unfortunaly where is no way to use TIOCEXCL under root. Issue closed.

Original comment by scream3r.org@gmail.com on 26 Jan 2012 at 5:59