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

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

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. <br>It seems that&#39;s the only choice for me now.<br><br>GL<br><br><div class="gmail_quote">2009/2/10 S Roderick <span dir="ltr">&lt;<a href="http://kiwi.net" target="_blank">kiwi.net</a>@<a href="http://mac.com" target="_blank">mac.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>On Feb 10, 2009, at 11:11 , guoliang liu wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, all,<br>
Is there any example on it ?<br>
I have seen OCL::IO part, but get a little bit confuse.<br>
Should I built a own component to handle serial port data, or using OCL::IO part?<br>
</blockquote>
<br></div></div>
We&#39;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&#39;t find anything implemented in OCL that would really help.<br>

<br>
YMMV<br><font color="#888888">
S<br>
</font></blockquote></div><br>