13 messages in net.java.dev.jna.usersRe: [jna-users] handling serial port ...
FromSent OnAttachments
zamekMar 11, 2008 11:58 am 
Marc RavensbergenMar 11, 2008 12:24 pm 
zamekMar 11, 2008 1:47 pm 
Timothy WallMar 12, 2008 5:38 am 
zamekMar 12, 2008 2:34 pm 
Timothy WallMar 12, 2008 4:36 pm 
zamekMar 13, 2008 1:12 pm 
Timothy WallMar 13, 2008 5:04 pm.java
zamekMar 14, 2008 7:26 am 
Timothy WallMar 14, 2008 8:20 am 
zamekMar 14, 2008 8:51 am 
Timothy WallMar 17, 2008 6:58 am 
zamekMar 17, 2008 11:22 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] handling serial port with jna on linuxActions...
From:Timothy Wall (twal@dev.java.net)
Date:Mar 17, 2008 6:58:33 am
List:net.java.dev.jna.users

On Mar 14, 2008, at 11:51 AM, zamek wrote:

hello,

Ezzel a dátummal: Friday 14 March 2008 16.20.57 Timothy Wall ezt írta:

Thanks a lot for the code, but unfortunately it isn´t works:( I can read from port, but signal cannot arrived.

Can you receive *other* signals (e.g. SIGUSR1)? If so, then the problem is likely that SIGIO is never being received.

Yes, your signal.java is working well, there are send and receive signal, and this c program is working too.

http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html

It's possible that the VM itself is playing with signal handlers, but I don't know why it would use SIGIO. The VM flag "-Xrs" reduces the use of signal handlers, you might try that.

Also, if you run the VM under strace you might find out where and when it calls "signal" or "sigaction".

You might also try "signal" (the simpler form of "sigaction") to see if the behavior is any different.