1 |
I solved the problem by installing the latest stable binaries directly |
2 |
from rxtx.org. To anyone having trouble with this, I would recommend |
3 |
you do the same. Maybe someone could update the ebuild to the most |
4 |
recent version... |
5 |
|
6 |
On 5/4/06, Leigh Stewart <agrodellic@×××××.com> wrote: |
7 |
> Using rxtx, i cant get past square one on my current system. Ive been |
8 |
> trying on and off for the last few months to get some onewire devices |
9 |
> working with my system but havent had any luck. So in the process of |
10 |
> troubleshooting, I built and ran this fairly simple program: |
11 |
> |
12 |
> http://www.java2s.com/ExampleCode/Development-Class/OpenaserialportusingJavaCommunications.htm |
13 |
> |
14 |
> As soon as I try to open any port, a native exception is thrown, which |
15 |
> is a flippin pain. |
16 |
> |
17 |
> I am in uucp, and to be sure I have applied liberal permissions to the |
18 |
> serial devices in dev and the contents of /var/lock (and /var/lock |
19 |
> itself). ie |
20 |
> |
21 |
> lstewart@yotta ~/Desktop/javaxcomm $ ls -al /dev/ttyS{0,1} |
22 |
> crwxrwxr-x 1 root tty 4, 64 Feb 23 09:56 /dev/ttyS0 |
23 |
> crwxrwxr-x 1 root tty 4, 65 Feb 23 09:56 /dev/ttyS1 |
24 |
> |
25 |
> lstewart@yotta ~/Desktop/javaxcomm $ id |
26 |
> uid=1000(lstewart) gid=442(media), |
27 |
> 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) |
28 |
> |
29 |
> lstewart@yotta ~/Desktop/javaxcomm $ ls -al /var/lock/ |
30 |
> total 5 |
31 |
> drwxrwxr-x 2 root uucp 104 May 4 17:23 . |
32 |
> drwxr-xr-x 19 root root 552 Apr 20 23:29 .. |
33 |
> -rwxrwxr-x 1 root root 0 Mar 27 22:18 .keep |
34 |
> -r--r--r-- 1 lstewart media 11 May 4 17:23 LCK..ttyS0 |
35 |
> |
36 |
> The answer MUST be simple...this is such a basic task and Linux has |
37 |
> such a long history in interfacing with serial devices .... i mean |
38 |
> RS-232!! I know im missing something very simple.....anyone??? |
39 |
> |
40 |
|
41 |
-- |
42 |
gentoo-user@g.o mailing list |