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 jan on linuxActions...
From:Marc Ravensbergen (marc@gmail.com)
Date:Mar 11, 2008 12:24:50 pm
List:net.java.dev.jna.users

Hi, any reason you wouldn't use something like rxtx, which is basically serial communications for java? Marc

On Tue, Mar 11, 2008 at 2:58 PM, zamek <zam@vili.pmmf.hu> wrote:

Hi All,

I am new in jna, sorry for stupid-like questions. I would like to handle serial port under debian linux testing with jna based on this sample: http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html

Yes, I know rxtx is a good solving for this, but rxtx has a big latency after read char to data_available signal (cca. 5ms). This native c latency time is 50uS! I would like to check it with jna.

in shortly: open port with fopen get attribs with tcgetattr set attribs with tcsetattr set signal handler

my first question: - how can I call fopen, tcgetaatr, tcsetattr and so on, because these are simple system functions, not a .so library functions. -- thx, ---------------------------------- Zoltan Zidarics programmer PTE-PMMFK H-7621 Pecs, Boszorkany u. 2. Hungary E-Mail: zam@vili.pmmf.hu ----------------------------------