UART communication

Hello,
i am Interfacing a module to my MCU using the UART Interface, but this module has only one Hard-Pin for both TX and RX.
Sending packages from the MCU to the module is working already well.
Now i want to receive packages from it.
I searched the net for a solution and readed that i may use a gat switch (NAND, OR, …) or even MUX, DEMUX.
I wanted to write here and ask for some advices which is the better.
I do not want that the MCU hear it self so i want to connect only TX to the module for sending and only RX to the module when receiving.
I added a link to the module
Thanks in advance.

Sorry, which module are you talking about?

Which board are you using?
Do you have a datasheet / user manual for the module? I could not immediately find the correct one.

See link in opening post: Ranger Micro 2.4GHZ ELRS Module – RadioMaster RC.

User manual for the module.
it uses CRSF protocol

Is it a TTL level signal?
What is the baud rate?
What is the MCU I/O signal levels?

They both are working with 3V3 level.
Baud rate is 4200000

Thank you for the schematic.
I will try it.
But don’t i need a pullup resistor on the RX (MCU) line?

You are right!

I've never done this, but have seen similar circuits.

Two-pin side                    One-pin side
(TX/RX UART)                    (Bidirectional UART)
-------------                   ---------------------
TX ---- 1 kΩ ---->----+
                      |
RX ---- 1 kΩ ----<----+---- UART_IO
                      |
GND ---------------------- GND

Naturally you would need the protocol to avoid transmitting from both sides at the same time.

a7

What prevents the MCU to hear it self (what he sends) in this circuit?

Nothing. In such situations, the sender must be smart enough to recognize what it just sent, discarding it before listening for an answer. If there is the possibility of incoming data arriving during the message send, then obviously all bets are off, data will be lost/scrambled. However, if the situation is a simple send-wait-receive, it can be done.

I am sending controll packegs to the receiver and want to receiver telemetry from it say every one second.

So it only sends when you’ve asked for data? Then you should be good. You know what the request string is, you just sent it, so filter it out of the receive buffer.

That’s something I’d try off-the-bat. If for some reason you can’t get that to work, then more effort is required.

X-actly.

a7

Nothing, that is why I gave you the circuit with the HC241