LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   javax.comm for /dev/ttyS* IO errors (http://www.linuxquestions.org/questions/programming-9/javax-comm-for-dev-ttys%2A-io-errors-791495/)

tomax26 02-25-2010 08:04 AM

javax.comm for /dev/ttyS* IO errors
 
hi

i install jdk1.6.0_18 and javax.comm 3 for linux in my asusEEE.
i can compile all java source, i can detect serial ports, but when i try open serial port (ttyS0 or ttyS1), i have this error:

Exception in thread "main" java.lang.RuntimeException:
Error opening "/dev/ttyS1"
tcgetattr(): Input/output error
at com.sun.comm.LinuxDriver.getCommPort(LinuxDriver.j ava:66)
at javax.comm.CommPortIdentifier.open(CommPortIdentif ier.java:369)
...

i create source in c to open serial port, but when i try launch my compiled file, i have this same error (about IO error)

i logged as root

i think it's linux ports permission problem or...

maybe sameone has this problem and can help my

p.s. sorry, my english is bad


All times are GMT -5. The time now is 02:25 PM.