http://pastebin.ca/694372
I did add "err = rt_task_shadow(&task_desc,"mytask",20,T_CPU(0));" and
_something_ is sent out on the serialport at least, but not what I
expect.
What I do get on the other side of my nullmodem looks like:
00 00 00 00 00 00
000000a0: 00 00 00 00 00 00 00 00   00 00 00 00 00 00 00 00
000000b0: 00 00 00 00 00 00

not what I expected.. :(

thanks.
/Bachman

On 12/09/2007, Gilles Chanteperdrix <[EMAIL PROTECTED]> wrote:
> On 9/12/07, Bachman Kharazmi <[EMAIL PROTECTED]> wrote:
> > > You can copy this code almost unmodified into an application and compile
> > > it against the Xenomai POSIX skin. The serial port configuration apart
> > > (same under Linux, though), it will open "rtser<whatever>", even if
> > > given like "/dev/rtser...", and work on that port as if it where a Linux
> > > one. Life can be simple, sometimes.
> >
> > Simple? ;)
> > I've tried to write a c-program which basiclly should open the device
> > rtser0 and write 100x to it and then close.
> >
> > The simple program can be found here: http://pastebin.ca/693873
> >
> > I've connected the serial cable to a reading terminal, but there's no
> > data at all, when I run the binary. :/
>
> You are missing a call to rt_task_shadow. Note that with the POSIX
> skin, this would not happen, because the main thread is automatically
> shadowed.
>
> >
> > /Bachman
> >
> > _______________________________________________
> > Xenomai-help mailing list
> > [email protected]
> > https://mail.gna.org/listinfo/xenomai-help
> >
>
>
> --
>                                                Gilles Chanteperdrix
>

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to