LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I'm having a tough time communcating through a serial port using java. (https://www.linuxquestions.org/questions/linux-software-2/im-having-a-tough-time-communcating-through-a-serial-port-using-java-198374/)

Cobra133 06-27-2004 03:33 PM

I'm having a tough time communcating through a serial port using java.
 
Hi,

I have a problem that is rather complex. It involves both java and serial ports. Allow me to explain.

I'm making some custom software in java (using JSDK 1.4.2). I have the software communicate to a piece of hardware via a serial port (RS-232 to be exact). Whenever i communicate to the box, there is a slight (1.5-2) second delay between the actual communication and the action that is supposed to occur on the screen (a JFreeChart is being updated). There needs to be no visible delay. The thing is, i have the graph set to read data whenver a SerialPortEvent is called. (the chart itself implements the SerialPortEventListener interface). How do i remove this delay? I've tried clearing out the serial buffer, but that doesn't seem to do any good.

Here are the specs for the system I'm working with:

OS:

Linux kernel: 2.4.24
Distro: Morphix, (which is based off of Knoppix which is based off of Debian)
CPU: C3 @ 800Mhz
Memory: 256MB DDR
Java JRE: 1.4.2

If anyone has had ANY experience with a problem even remotely like this please respond!

Thanks!

penguin4 06-28-2004 09:34 AM

cobra133; ok then try favorite of mine,http://tldp.org/HOWTO/HOWTO-INDEX section 5,single list HowTo page 21 of 56pp,s Java (3) subsections;
java gci-howto,java decomplier howto,java station-howto. and of course
several pages of serial howto,s. from section 4.3.18 expanded.


All times are GMT -5. The time now is 08:23 PM.