how to write and read data from serial port by orocos?

Hi, all,
Is there any example on it ?
I have seen OCL::IO part, but get a little bit confuse.
Should I built a own component to handle serial port data, or using OCL::IO part?

Cheers,
GL

how to write and read data from serial port by orocos?

On Feb 10, 2009, at 11:11 , guoliang liu wrote:

> Hi, all,
> Is there any example on it ?
> I have seen OCL::IO part, but get a little bit confuse.
> Should I built a own component to handle serial port data, or using
> OCL::IO part?

We've done this using a non-periodic component, that uses standard
open/read/write/close calls on the serial file device (eg. /dev/
ttyXXX). This works fine. We couldn't find anything implemented in OCL
that would really help.

YMMV
S

how to write and read data from serial port by orocos?

Thanks for your reply.
It seems that's the only choice for me now.

GL


2009/2/10 S Roderick <span dir="ltr"><kiwi.net@mac.com><span>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

On Feb 10, 2009, at 11:11 , guoliang liu wrote:



<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, all,

Is there any example on it ?

I have seen OCL::IO part, but get a little bit confuse.

Should I built a own component to handle serial port data, or using OCL::IO part?

<blockquote>

We've done this using a non-periodic component, that uses standard open/read/write/close calls on the serial file device (eg. /dev/ttyXXX). This works fine. We couldn't find anything implemented in OCL that would really help.



YMMV
<font color="#888888">
S

<font><blockquote>