2 Computer 1 arduino serial port

Hi!
I am trying to connect an Arduino in two differents computers. This Arduino is a Mega, it has two serial, Serial and Serial1 (this case with TTL to RS232). In my own computer I can read the data from the Serial and Serial1 (differents monitors) but when I change the conecction of the cable to a different computer and keeping the conversor in my computer I cannot read the data of the Serial1 in my monitor port. I think it should work in differents computers, one serial in computer A and one serial in computer B. What am I doing wrong?

if you disconnect first computer, do other read proper?

Try restarting the serial monitor on the computer it doesn't work on.

Well, I restarted the monitor several times and it does the same. I tried connecting the Serial 0 in my computer and th serial 1 to a different computer and it does the same and viceversa. It just works when I connect both in my computer. Confusing

Have you connected the ground in to the Arduino, and can you please post a schematic or clear image of the setup?

Yeah I did it.
This is the picture where the two serials can send data:


When I put the white cable or the converter to a different computer the serial 1 does not work.
I'm just doing this in the setup. I also put a println, it does the same as DEBUG_INFO1.

        Serial.begin(115200);
	// Debug UART port on serial 1
	Serial1.begin(115200);
	DEBUG_INFO1("\nDetClockMngMega 201500624\n");
	DEBUG_INFO1("\n0:Reset -> Setup\n");

Maybe it's my Arduino Mega, I do not know.

at the end it reveals that you doesnt install driver

The White USB cable is Serial, so it won't help the Serial1 port connecting it into a different computer.

Can you connect VCC from the serial board into the arduino board as well?

At the beginnig it gave me that error. No drived found so I downloaded now it says: COMx (9) FTDI. The point is that in my computer, the white cable can send information by the Serial and the converter can send information using the Serial 1 but when I change either the white or converter to a different computer, the Serial 1 does not show anything. Even when I just give power, without the white cable does not work.

What is your code?

it is a big code, but that's just the setup, before any change. Oh, btw I am using platformio. At least at the beginning it should send that mssg.

        Serial.begin(115200);
	Serial.println("Start\n"); 
	// Debug UART port on serial 1
	Serial1.begin(115200);
	DEBUG_INFO1("\nDetClockMngMega 201500624\n"); 
	DEBUG_INFO1("\n0:Reset -> Setup\n");

That is why I suggested wiring power in from both chips so the power is in sync.

I tried but it does the same. I am very confused...

So am I.... Anyway time for me to goto bed.
See you tomorrow. :wave:

1 Like

So, I came to a conclusion that would work after some sleep and thinking. :wink:

You need to wire DTR to the reset on the board to "sync" the mega with the serial board.

The problem was that the converter TTL RS232 was bad wired. I put the GND in a TX and that's why when I connected with a different PC in my PC the ground was not matching and the TX was not sending anything.
Thanks!

I thought it may of been a grounding issue... :smiley:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.