-   Programming (
-   -   javax.comm for /dev/ttyS* IO errors (

tomax26 02-25-2010 08:04 AM

javax.comm for /dev/ttyS* IO errors

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)

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 07:37 PM.