(I may be sending this twice, but my first posting doesn't show.)
Hi,
Two questions:
1 - How can I use rt_com to generate a line break?
2 - From the code it seems like no handshaking is used for communication, is
that correct? Will this give trouble with ports that do or don't expect
hardware handshaking?
note -> 1
I tried the following, which didn't seem to work:
---------------------------------
void send_line_break(void)
{
char zeros[20] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" ;
rt_com_setup(0, -1, 0, 0, 0); /* decrease module count */
rt_com_setup(0, 75, 0, 0, 8); /* a "raw" setting */
rt_com_write(0, zeros,20);
rt_com_setup(0, -1, 0, 0, 0); /* decrease module count */
rt_com_setup(0, RT_CF_DEFAULT_BAUD, RT_CF_PARITY, RT_CF_STOPBITS, RT_CF_WORDLENGTH);
}
---------------------------------
many thanks,
Willem
--
______________________________
Willem J Atsma
[EMAIL PROTECTED]
http://www.mech.ubc.ca/~watsma
______________________________
-- [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/~rtlinux/