I need to have a UART link with only a single wire. I have done the hardware side of it by connecting RXD to my line, and TXD via a diode, cathode to TXD. So TXD can pull the line low, and RXD always reads it. The other end of the line is connected to a similarly configured UART.
My question is what is the beast way of disabling the receive so that it does not see the locally transmitted character? I can think of several ways to do it, even just setting a flag when a char is transmitted, and when one is received ignoring it if the flag is set and then clearing the flag.
There must be a canonical way of doing this, I just can't find it.