Move hardware handshaking null-modem connections into a single function.