Multiple TTL interface

I'd like to build an interface composed of USB to TTL, micro USB to TTL and RS232 to TTL and want to speak to one TTL master device. I've got myself the necessary modules.

Only one interface is supposed to be connected/plugged in at a time. So it's basically a providing-the-option thing.

I realized that pluging them all together doesn't work out for some reason. All modules work when being used separately though.

As an explanation I found this:
https://forum.arduino.cc/index.php?topic=412904.0
(the OP provides a drawing in his initial post)

The first answer then mentions a solution:
"As well as diodes you need a pull-up resistor on the Rx pin."

I am really new to circuits and controllers and kind of sorry to ask for this, but how is this to be done?

I think this diagram will be clearer

R2-multiTX.jpg

When the Serial system is idle the normal process is for the TX pin to hold the line HIGH. But the diodes prevent that so the resistor is used to hold the line HIGH at the RX end.

Of course with a system like this there will just be garbage if two or more of the slaves talks at the same time so your master program must control which slave is allowed to talk. If the master cannot do that then this system won't work.

...R

Thanks Robin for your quick reply.

The more I think about your answer the more I believe I've mistaken my problem and the concept of the other thread.
Doesn't all my optional interfaces pose as "Masters" here?

Here is an example leaving "Master" and "Slave" out of it:

  1. I plug in my Computer (Win10 and/or Ubuntu) into Interface 1 (e.g. RS232). Interface 2 and Interface 3 stay empty. (They are powered though)
  2. The device I connect to pops up as a COM (serial point) device in my OS. I assume that device is nothing but the RS232 to TTL module.
  3. I can now send commands to connect, transfer and receive data from the desired TTL device.

interface_circuit_example.jpg

Do you think it is going to work based on your diagram anyway?

PS: I'm really curious whether I'm just too bad finding what I'm looking for. Having different interfaces as an option to connect to a device seems like a pretty common task to me.

interface_circuit_example.jpg

m3nelaos:
Do you think it is going to work based on your diagram anyway?

I suspect not, but I can't envisage what you are trying do.

Exactly what are the devices you want to connect to your PC?

...R