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
----------------------------------