Internet
Fact-checked

At EasyTechJunkie, we're committed to delivering accurate, trustworthy information. Our expert-authored content is rigorously fact-checked and sourced from credible authorities. Discover how we uphold the highest standards in providing you with reliable knowledge.

Learn more...

What is a Null Modem?

Kurt Inman
Kurt Inman

A null modem is a cable or adapter which allows two serial devices to communicate without a modem. Some null modems connect only the data lines between devices while others include handshaking signals as well. Null modems are often used by engineers or technicians to communicate with devices which have no built-in console. These include many types of embedded systems, network switches and servers. They are also frequently used for debugging operating systems when no keyboard or video services are available.

A crossover cable is a null modem connection where the serial data lines are cross-connected within the cable. The Transmit-Data signal on one end of the cable is connected to the Receive-Data pin on the other and vice versa. This cross-connection may also be implemented in a null modem adapter. In this case, a standard serial cable connects one device with the adapter. An identical cable connects the adapter to the other device and the crossover is wired inside the adapter itself.

A common type of serial cable is the Recommended Standard 232 (RS-232) cable whose ports are often found on computers.
A common type of serial cable is the Recommended Standard 232 (RS-232) cable whose ports are often found on computers.

The serial hardware handshaking signals may also be wired in an adapter or crossover cable. The Request-To-Send line of one device may be wired to the Clear-To-Send line of the other and vice versa. Depending on the hardware and software on both sides of the connection, this may be enough for communication to proceed.

Three additional hardware handshaking signals may be implemented in a null modem. Some serial devices require that the Data-Terminal-Ready, Data-Set-Ready and Carrier-Detect signals are functioning. When all three of these signals are asserted, each device recognizes that the other is powered up and connected. Many null modems wire Data-Terminal-Ready on one end to Carrier-Detect and Data-Set-Ready on the other. Some null modems may not connect the Carrier-Detect signal, however.

A kernel panic may require the use of a null modem to repair if the screen and keyboard cannot be used.
A kernel panic may require the use of a null modem to repair if the screen and keyboard cannot be used.

Prior to the development of the Universal Serial Bus (USB), a null modem was often used to share files between two computers. A direct cable connection was made between the two systems, using their serial ports and a null modem. File transfer software designed for a modem link was then used to copy files from one system to the other. This was particularly useful for very large files which would not fit on a floppy diskette or other removable storage media. For the same reason, a direct connection was commonly used to transfer large numbers of files in a single batch.

Null modems were used for large files that wouldn't fit on a floppy disk.
Null modems were used for large files that wouldn't fit on a floppy disk.

A common modern use is to access an operating system (OS) kernel or console-less device with a separate computer. Often when debugging an OS kernel or diagnosing a kernel panic, the standard keyboard and display cannot be used. A null modem can give an engineer control of the system during the debugging session. Many devices are designed to operate without a console, such as network switches, blade servers and embedded systems. When a keyboard and display are temporarily needed for diagnostics or maintenance, a null modem is a common means of access.

Discussion Comments

Logicfest

@Vincenzo -- there could be a copyright issue provided that the copyright hasn't expired, the company that produced the software hasn't abandoned it and the company decides to throw a fit about what you've done in the first place. There is a very good chance the copyright has expired or the software has been abandoned, but it is very difficult to figure that out when you're talking about something that is old and hasn't been on the market for years.

Meanwhile, when it comes to null modems, a lot of people do transfer old software that way and there are programs easily found on the Internet that can help make that complicated process simple.

Vincenzo

@Soulfox -- true, but that does bring up a legal issue. If I own a old program and transfer it through a null modem to an emulator for my own use, I am not breaking the law. If I take that same program and post it online, there are some copyright concerns, aren't there?

Soulfox

You will also find these in use among people who transfer software from older computers to newer ones. We're talking about those old eight and 16-bit systems that had no USB ports and use media such as floppy discs that are rarely found today. A null modem is still the most effective way to get systems that are so radically different to talk to each other.

The software is transferred and then put in a digital format for archival or emulation purposes. Without null modems and dedicated hobbyists, it is very possible we'd lose a lot of early computer programs due to the deterioration of diskettes. That would be a shame.

Post your comments
Login:
Forgot password?
Register:
    • A common type of serial cable is the Recommended Standard 232 (RS-232) cable whose ports are often found on computers.
      By: intararit
      A common type of serial cable is the Recommended Standard 232 (RS-232) cable whose ports are often found on computers.
    • A kernel panic may require the use of a null modem to repair if the screen and keyboard cannot be used.
      By: CoCreatr
      A kernel panic may require the use of a null modem to repair if the screen and keyboard cannot be used.
    • Null modems were used for large files that wouldn't fit on a floppy disk.
      By: sdubrov
      Null modems were used for large files that wouldn't fit on a floppy disk.