LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-27-2004, 03:33 PM   #1
Cobra133
LQ Newbie
 
Registered: Oct 2003
Location: Atlanta/Savannah, GA
Distribution: slackware/mandrake
Posts: 21

Rep: Reputation: 15
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!
 
Old 06-28-2004, 09:34 AM   #2
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
help with serial port in java Diederick Programming 1 11-15-2005 04:22 PM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
serial port programming: Java or C? ar1 Programming 5 05-19-2005 02:55 PM
Having a tough time with K-shell pipeline pjz Programming 4 03-24-2005 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration