DB9 from arduino to server? - SOLVED

Hello, I hope I get this in the right place. I honestly don't know if this is programming or hardare. I have a old server that can only be access through serial port. I don't have a usb to serial port adapter. I have on the other hand a lot of Arduinos. From a hardware point of view is it possible to connect from the serial port of the server to an arduino. Which pins of ther serial serial port connector I need to connect to which pins of the arduino?

I don't know If I should ask another question in the programming group on how can I program the arduino to read and right the to the serial port of the sever? Please someone help me to figure this out?

Joseph

1 Like

the server serial port is probably RS232 - have a read of arduino-rs232

1 Like

The question is how you want to use the Arduino; sounds like you just need a serial-to-usb adapter. You can use an Uno or Nano for that; just keep the board in reset and wire it correctly (see link provided by @horace ), no need for programming.

1 Like

Might as well keep your question here, you started it here.
Firstly, you need a converter from RS232 signal levels to TTL levels. Generally, look like:
image

and are available from Amazon, or a local hobby shop if you have one, in many flavors.

Then you need to define in more detail what it is you want your Arduino to do with the "connection to the server" in order to receive guidance about what Arduino would be appropriate. There's so much you could do, depending, so any advice at this point is worth what you pay for it - that is to say, at this point, worth nothing, until you give us hints.

Yes it does.

I don’t have a serial to usb adapter. To get one out here will take days up to a week. Post office here is bad.

I have ordered one. But Amazon said it will take 4 to 6 days to get here.

I know; this is what I said

Oh I’m very sorry. I missed over looked that last part with the uno, nano board. Yes that I can do. Is there anything else besides the the rx and tx that needs to be connected?

At the Arduino side obviously GND and Vcc :wink:
At the DB9 side the usual signals 2, 3 and 5.

Hehe sorry. What I mean is there are other pins. The RTS, CTS, DTR, any of them get connected to anything?

Best Answer: Maybe.
Sometimes RTS joined to CTS, if needed.
"It all depends..."

It might just go without a "converter", or with inverted data .

A voltmeter is highly useful.

Handshake signals are not always needed; if they are you can usually fake them by connecting DTR and DSR as well as RTS and CTS on the DB9 connector. See e.g. RS232 Wiring.

1 Like

Thank you all for the help. I did manage to get a Serial control working. @sterretje Thank you the uno board trick worked. Just RX and TX that is all.

Joseph

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