Page 1 of 1

Connecting to the serial port of a real motherboard. Both ends are male...

Posted: Sat Nov 22, 2025 2:12 pm
by pearmypie
My motherboard has an internal serial port (COM1) and an bracket adaptor to RS232 (male). I carelessly bought an USB to RS232 adapter, which turned out to be a male connector as well.

USB to female RS232 are ridiculously expensive (the only one I'm able to buy online in my area is about $90...), so I impulse-bought a female-female adapter.

Currently, serial port output works OK when using qemu, I aim to use /dev/ttyUSB0 to see if it works on real hardware. Will this janky setup work?

Re: Connecting to the serial port of a real motherboard. Both ends are male...

Posted: Sat Nov 22, 2025 3:26 pm
by MichaelPetch
This setup should work with one major caveat. Most DCE (data carrier equipment) like modems etc have female RS-232 connectors on them. Most DTE equipment (ie computer) have male connectors on them. The fact you you need to terminate on a 9pin female connector in your setup makes me wonder if you intend to hook up to another computer? I ask because if you are hooking up directly to another computer (or other DTE device) you may need to use a null modem adapter or a crossover cable like https://www.amazon.ca/female-slimline-t ... HWVSJ?th=1

One other observation. I don't know if you need low latency data communications but I have noticed over the years that most of these USB RS-232 adaptors may introduce a bit of lag upon receiving data as data is buffered internally before being sent via a USB packet to the PC. Under normal conditions this behaviour can usually be modified via USB serial device driver.

Re: Connecting to the serial port of a real motherboard. Both ends are male...

Posted: Sun Nov 23, 2025 12:54 am
by nullplan
Yes, just use a crossover cable (also called nullmodem cable). I use them at work all the time. They swap certain pins around (Tx and Rx, RTS and CTS, and there was a third pair I forget), allowing both sides to think they are the DTE.

Re: Connecting to the serial port of a real motherboard. Both ends are male...

Posted: Thu Nov 27, 2025 4:13 pm
by pearmypie
All my stuff finally arrived, I hope I don't fry my PC.
It's My PC -> USB -> RS232 male -> Gender changer -> Null Modem -> Target PC.
abomination-cable.jpeg

Re: Connecting to the serial port of a real motherboard. Both ends are male...

Posted: Thu Nov 27, 2025 4:32 pm
by pearmypie
nullplan wrote: Sun Nov 23, 2025 12:54 am Yes, just use a crossover cable (also called nullmodem cable). I use them at work all the time. They swap certain pins around (Tx and Rx, RTS and CTS, and there was a third pair I forget), allowing both sides to think they are the DTE.
Thanks for the advice, my janky setup now works. However, it seems that my serial port setup works on qemu but not on real hardware