[jacorb-developer] Delay in serial communication
Kujtim Hyseni
kujtimhyseni at hotmail.com
Thu Apr 5 10:28:25 CEST 2012
Hi Nick,
> What version of JacORB are you using?
I think that I am using JacORB 2.3, I have to check this since now (during writing this email) the computer with JacORB is away from me.
> Can you provide more details of your system (sample code perhaps) to
> clarify how your CORBA client/server architecture is affecting the
> separate serial port comms?
At my interface implementation class I am calling serial port communication class - again computer is away to provide with the sources - but, I will prepare details including sources and post to the forum and to you. Situation is really unacceptable.
Kind Regards,Kujtim
> Date: Thu, 29 Mar 2012 14:15:09 +0100
> From: nick at goots.org
> To: jacorb-developer at lists.spline.inf.fu-berlin.de
> CC: kujtimhyseni at hotmail.com
> Subject: Re: [jacorb-developer] Delay in serial communication
>
>
> Hi,
>
> What version of JacORB are you using?
>
> Can you provide more details of your system (sample code perhaps) to
> clarify how your CORBA client/server architecture is affecting the
> separate serial port comms?
>
> Regards
>
> Nick
>
>
> On 29/03/12 12:46, Kujtim Hyseni wrote:
> >
> > Hello,
> >
> > for my project I heave developed a class (implementation class) which
> > forwards requests (operations) from client to serial port, waits for
> > response, receives the response and sends it back to client but it
> > takes a long time to perform it. It delays in receiving the response
> > from serial port. For communication with serial port I have developed
> > a dedicated class which implements Runnable and
> > SerialPortEventListener classes. My class communicates serially with
> > 8051 microcontroller. Again, it seems that class delays in receiving
> > the byte stream from microcontroller. Microcontroller has a built in
> > serial port while my PC uses USB-to-Serial cable. When I communicate
> > microcontroller with the class from usual Java program (from main()
> > routine) it works fine and it takes less than a second to receive the
> > response back.
> >
> > I did some measurements (100 requests) in two ways. In the first,
> > communication class is external and is instantiated from
> > implementation class. In the second, communication class is merged
> > with implementation class. The results are: for first way average
> > response time 9.33266 seconds, minimal response time 4.984 seconds
> > while maximal response time 18.015 seconds; for second way average
> > response time 8.62625 seconds, minimal response time 4.969 seconds
> > while maximal response time 16.015 seconds. These values are
> > unacceptable for real time applications and raise the question for
> > using JacORB further.
> >
> >
> > What do you think and suggest about?
> >
> > Best Regards, Kujtim Hyseni
> > _______________________________________________ jacorb-developer
> > maillist - jacorb-developer at lists.spline.inf.fu-berlin.de
> > https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
More information about the jacorb-developer
mailing list