Gentoo Archives: gentoo-user

From: Leigh Stewart <agrodellic@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] java comm ports issue
Date: Thu, 04 May 2006 21:52:04
Message-Id: f56589af0605041435g61d1915ckf7c1d62d0c428b97@mail.gmail.com
1 Using rxtx, i cant get past square one on my current system. Ive been
2 trying on and off for the last few months to get some onewire devices
3 working with my system but havent had any luck. So in the process of
4 troubleshooting, I built and ran this fairly simple program:
5
6 http://www.java2s.com/ExampleCode/Development-Class/OpenaserialportusingJavaCommunications.htm
7
8 As soon as I try to open any port, a native exception is thrown, which
9 is a flippin pain.
10
11 I am in uucp, and to be sure I have applied liberal permissions to the
12 serial devices in dev and the contents of /var/lock (and /var/lock
13 itself). ie
14
15 lstewart@yotta ~/Desktop/javaxcomm $ ls -al /dev/ttyS{0,1}
16 crwxrwxr-x 1 root tty 4, 64 Feb 23 09:56 /dev/ttyS0
17 crwxrwxr-x 1 root tty 4, 65 Feb 23 09:56 /dev/ttyS1
18
19 lstewart@yotta ~/Desktop/javaxcomm $ id
20 uid=1000(lstewart) gid=442(media),
21 groups=5(tty),7(lp),10(wheel),11(floppy),12(mail),14(uucp),16(cron),18(audio),19(cdrom),20(dialout),21(ftp),27(video),35(games),80(cdrw),81(apache),100(users),245(slocate),442(media),446(plugdev),449(camera)
22
23 lstewart@yotta ~/Desktop/javaxcomm $ ls -al /var/lock/
24 total 5
25 drwxrwxr-x 2 root uucp 104 May 4 17:23 .
26 drwxr-xr-x 19 root root 552 Apr 20 23:29 ..
27 -rwxrwxr-x 1 root root 0 Mar 27 22:18 .keep
28 -r--r--r-- 1 lstewart media 11 May 4 17:23 LCK..ttyS0
29
30 The answer MUST be simple...this is such a basic task and Linux has
31 such a long history in interfacing with serial devices .... i mean
32 RS-232!! I know im missing something very simple.....anyone???
33
34 --
35 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: java comm ports issue Leigh Stewart <agrodellic@×××××.com>