Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-25-2010, 08:04 AM   #1
LQ Newbie
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/ttyS multiplexer? gm04030276 Linux - Software 6 02-02-2010 04:02 PM
where is my serial device??? /dev/ttyS* is missing! mrchaos Linux - Hardware 2 03-11-2006 02:50 PM
How to find the correct /dev/ttyS*? SeanatIL Linux - Software 1 07-07-2004 06:33 PM
Bluez and javax.comm ---> NoSuchPortException philipina Programming 1 06-24-2004 09:16 AM
javax comm for suse linux kingshrimp Linux - Newbie 4 11-26-2003 09:19 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration