For the RS-232 (DB-9) serial ports, I used these DB9 connectors I found at Digikey: K85X-ED-9P-BRJ (Kycon). This is the male variety, there is also a female variety (9S), and the versions without the J at the end do not have the jackscrews. Very helpful to have the side boardlocks which provide more support, easily soldered in with the rest of the pins. Male DB-9s are usually wired DTE (pin 2 RX, pin 3 TX).
SERIAL PORT #1: True UART (GPIO 14/15)
The true UART (GPIO 14/15) needs to be enabled in the Raspberry Pi configurator, and appears after a reboot.
This device is accessed through /dev/ttyAMA0. During normal system operation, baud rate is 9600 baud (probably configurable somewhere).
(J1) TTL Console pin 1 (GND) -> (J6) RS-232 #1 TTL-level LEFT SIDE pin 5 (GND)
(J1) TTL Console pin 2 (RX) -> (J6) RS-232 #1 TTL-level LEFT SIDE pin 3 (RX Out)
(J1) TTL Console pin 3 (TX) -> (J6) RS-232 #1 TTL-level LEFT SIDE pin 1 (TX In)
(J11) RS-232 #1 RS-232-level LEFT SIDE pin 1 (TX Out) -> (J9 Top) DB-9 Male pin 3 (TX) - DTE wiring
(J11) RS-232 #1 RS-232-level LEFT SIDE pin 3 (RX In) -> (J9 Top) DB-9 pin 2 (RX) - DTE wiring
(J11) RS-232 #1 RS-232-level LEFT SIDE pin 5 (GND) -> (J9 Top) DB-9 pin 5 (GND)
SERIAL PORT #2: Debug UART (Raspberry Pi 5 only,
located between the two DisplayPort connectors)
I also connected the debug UART using the 1mm JST-SH connector mentioned previously in this post:
https://www.amazon.com/dp/B09GP9S1W7This device is accessed through /dev/ttyAMA10.
At boot-up, there is some diagnostic output at 115200 baud. During normal system operation, baud rate is 9600 baud. Probably configurable somewhere for other defaults.
(JST-SH) RED/LEFT (TX) -> (J6) RS-232 #2 TTL-level RIGHT SIDE pin 2 (TX In)
(JST-SH) BLACK/MIDDLE (GND) -> (J6) RS-232 #2 TTL-level RIGHT SIDE pin 6 (GND)
(JST-SH) YELLOW/RIGHT (RX) -> (J6) RS-232 #2 TTL-level RIGHT SIDE pin 4 (RX Out)
(J11) RS-232 #2 RS-232-level RIGHT SIDE pin 2 (TX Out) -> (J9 Bottom) DB-9 Male pin 3 (TX) - DTE wiring
(J11) RS-232 #2 RS-232-level RIGHT SIDE pin 4 (RX In) -> (J9 Bottom) DB-9 pin 2 (RX) - DTE wiring
(J11) RS-232 #2 RS-232-level RIGHT SIDE pin 6 (GND) -> (J9 Bottom) DB-9 pin 5 (GND)
Caveat: I haven't tried connecting to ITS or TOPS-10 or TOPS-20 through these ports yet, though everything works through the Raspberry Pi OS (Bookworm). If there's something that needs to be configured, would love to know about it!
--Kristen