Daniel Krippner wrote:
> 
>     Hi everyone!
> 
> What is the best way to do $subject?
> I would prefer to install a handler for a com port, as with
> rtf_create_handler(). Is that possible?

Yes, rtf_create_handler() is what I have done for both ttyS0 and ttyS1.
I collect up enough bytes for a message and then send the data up a
RTFIFO. I did (do) have one problem, I had a hardware error that caused
lots of errors in the serial message. Each error, I sent a message up
the FIFO. When I got a lot of errors and wrote a lot of messages up the
FIFO, apparently overwriting it, the operating system crashes.

> Or create a thread that just waits on rt_com_read()?
> I need a server that also listens on the serial port, up to now I did it
> in userspace with a signal handler that does nothing but copy data from
> the com port to a buffer, but that seems to be not fast enough - only
> ~19200bd on a 133Mhz embedded PC. Any Ideas how to optimize something
> like that?
> Glad for help, cu
>     Daniel
> 
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to