LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



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

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


Reply


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 05:02 PM
where is my serial device??? /dev/ttyS* is missing! mrchaos Linux - Hardware 2 03-11-2006 03:50 PM
How to find the correct /dev/ttyS*? SeanatIL Linux - Software 1 07-07-2004 07:33 PM
Bluez and javax.comm ---> NoSuchPortException philipina Programming 1 06-24-2004 10:16 AM
javax comm for suse linux kingshrimp Linux - Newbie 4 11-26-2003 10:19 AM


All times are GMT -5. The time now is 11:29 PM.

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