Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2006

Tip: Looking for answers? Try searching our database.

Java in linux

Thread view: 
raam - 16 Mar 2006 08:30 GMT
Dear Sir(s),
I am using a javaprogram which will send comands through serial port
and get response for the commands it had sent.I am running the program
in linux .It works fine if the program alone is active.If I open a
browser or if I open a terminal or some other application the program
does not get the responses correctly.Is there any way to stop
multitasking  of linux.I am using Redhat Linux Enterprise edition 3.I
want linux not to allow any other program (other my application) to
run.We feel because of timesharing between the applications only we are
not able to receive the responses.Can anyone please help.
Thanks ,
Raam.
Gordon Beaton - 16 Mar 2006 08:42 GMT
> I am using a javaprogram which will send comands through serial port
> and get response for the commands it had sent.I am running the
> program in linux .It works fine if the program alone is active.If I
> open a browser or if I open a terminal or some other application the
> program does not get the responses correctly.Is there any way to
> stop multitasking of linux.

This is purely a Linux issue and it doesn't belong in a Java
newsgroup.

Disabling multitasking is not the way to solve your problem, and even
if it were possible it would likely cause more trouble than it's
worth. Even a "completely unloaded" system has at least a dozen or so
necessary processes running, and once you log in using a desktop
manager like Gnome or KDE that number increases to around 35 even
before you run any "normal" applications.

To solve the problem (not just the symptom) you should probably be
using some kind of flow control between your application and the
device connected to the serial port.

Finally, use a realtime version of Linux if your application needs
that kind of behaviour. Start by looking here: http://www.rtai.org/

/gordon

Signature

[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e

Tony Burrows - 16 Mar 2006 15:46 GMT
>> I am using a javaprogram which will send comands through serial port
>> and get response for the commands it had sent.I am running the
[quoted text clipped - 21 lines]
>
> /gordon

I'm not sure this is really a Linux issue.  I suspect that, if you are
using some form of Socket then there may be a problem with ports if some
other app is listening on the same port.  Without some idea of how you are
accessing the i/o device it is hard to say.

Tony
Monique Y. Mudama - 16 Mar 2006 18:54 GMT
> Dear Sir(s),

Sorry,  I stopped reading after this, since clearly you don't want my
advice.

(Hint: excluding one gender from your salutation is a bit rude.)

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

raam - 17 Mar 2006 07:59 GMT
Hi ,
I am Sorry.It came like that when i wrote.I regret for excluding a
gender in my salutation.It was not intentional.
Raam
Monique Y. Mudama - 17 Mar 2006 18:27 GMT
> Hi , I am Sorry.It came like that when i wrote.I regret for
> excluding a gender in my salutation.It was not intentional.  Raam

And I'm sorry for being so mean about it.  I just wanted to be sure I
got my point across.

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

Monique Y. Mudama - 17 Mar 2006 18:32 GMT
> Dear Sir(s), I am using a javaprogram which will send comands
> through serial port and get response for the commands it had sent.I
[quoted text clipped - 6 lines]
> the applications only we are not able to receive the responses.Can
> anyone please help.  Thanks , Raam.

Raam,

This sounds more like a linux question than a java question.  If
you're using Enterprise RedHat, you probably have a support contract
(sorry if I'm wrong about this).  If not, there are many linux mailing
lists and news groups.

I don't know the answer to your question, but here are a few thoughts:

I don't know if you are developing this program for your own company
or for use by customers, but you might look into a Linux-based RTOS
(real time operating system), where processes are more rigorously
controlled.  I don't know if you can run the Java app you have on a
RTOS, though.

I find it really odd that other applications being open would affect
your program.  I wonder if it's actually a bug in the serial driver
you're using.

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.