Skip to content

Null Modem Night

You'll wire an old machine to a modern one over a serial cable, move files both ways, and then log into a Linux shell from a keyboard made in the 1980s.

About

Nearly every computer made before 2000 has a serial port, and a serial port is the easiest way to get files in and out without hunting for disks. A null modem cable crosses the send and receive lines so two computers can talk directly, and a USB serial adapter costs about eight dollars. The trap that catches everyone is voltage: a real RS-232 port swings to plus and minus 12 volts, so a bare USB-to-TTL adapter meant for Arduinos will not work and can damage the board. Buy an adapter that says RS-232 on it. You need a real old machine for this one, and a 1990s laptop with a serial port counts.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
One weekend
Skill level
Intermediate (months of practice)
Cost
Inexpensive (under $20)
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Common badges in Retro Computing to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Make or buy a null modem cable and identify every pin you're using. The minimum is three wires: transmit to receive, receive to transmit, and ground to ground. On a DB9 that's pins 2, 3 and 5. A bought cable costs about ten dollars, and two connectors and a bit of wire cost less if you'd rather solder. Take a photo of the cable with a pinout drawing beside it. Photo
  2. 2
    Get characters going both ways at a matched speed. Set both ends to 9600 baud, 8 data bits, no parity and one stop bit, and type in a terminal program on each side. If you see nothing, swap the two data wires, and if you see garbage, the speeds don't match. Film typing on one keyboard and the letters appearing on the other screen. Video
  3. 3
    Transfer a file in each direction with XMODEM or ZMODEM. The old machine's terminal program will have one of these built in, and the modern side has lrzsz or a terminal that supports them. Send a text file to the old machine and a file you wrote on it back. Take a screenshot of both transfers finishing, with the byte counts. Photo
  4. 4
    Run a login on the modern machine's serial port and sign in from the old keyboard. On Linux, agetty on the USB serial device gives you a login prompt over the wire, and the old machine's terminal program becomes a terminal. Set the terminal type to vt100 once you're in, or every screen program will draw junk. Take a photo of the old machine's screen with the modern login banner on it. Photo
  5. 5
    Write and save a file on the modern machine from the old keyboard, in a full-screen editor. Open nano or vi over the link and write a 200-word note on how the cable went together, then save it. A full-screen editor is the real test of the terminal type you set, because a wrong one leaves half the screen undrawn and the cursor somewhere else. Film a minute of editing at 9600 baud, and tell us what you missed most, which is usually scrolling. Video
  6. 6
    Use the link to put something new on the old machine and run it. A program you wrote, a disk image, or a utility from an archive, sent over the wire and started on the old machine with no disk involved. Film it starting, and give us the baud rate and how long the transfer took. Video