LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:59 AM.

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
Open Source Consulting | Domain Registration