Knowledge

Null modem

Source 📝

628: 761: 712: 670: 619: 160: 752: 703: 661: 168: 139: 1065: 588:, and other IEC variants. The Electric, Oil, Gas, and Water Utilities are slow to respond to newer networking technologies which may be due to large investments in capital equipment that has useful service life measured in decades. Serial ports and null modem cables are still widely used in these industries with Ethernet just slowly becoming a widely available option. 31: 596:
Connecting two DTE devices together requires a null modem that acts as a DCE between the devices by swapping the corresponding signals (TD-RD, DTR-DSR, and RTS-CTS). This can be done with a separate device and two cables, or using a cable wired to do this. If devices require Carrier Detect, it can be
124:
machines which could communicate with each other over phone lines. Each teleprinter would be physically connected to its modem via an RS-232 connection and the modems could call each other to establish a remote connection between the teleprinters. If a user wished to connect two teleprinters directly
575:
Another context where these cables can be useful is when administering "headless" devices providing a serial administration console (i.e. managed switches, rackmount server units, and various embedded systems). An example of embedded systems that widely use null modems for remote monitoring include
489:
The original application of a null modem was to connect two teleprinter terminals directly without using modems. As the RS-232 standard was adopted by other types of equipment, designers needed to decide whether their devices would have DTE-like or DCE-like interfaces. When an application required
684:
Because of the compatibility issues and potential problems with a simple null modem cable, a solution was developed to trick the software into thinking there was handshaking available. However, the cable pin out merely loops back, and does not physically support the hardware flow control.
567:
for Windows can be used to remotely debug systems, for example. This can also provide a serial console through which the in-kernel debugger can be dropped to in case of kernel panics, in which case the local monitor and keyboard may not be usable anymore (the
775:
This cable is incompatible with the previous types of cables' hardware flow control, due to a crossing of its RTS/CTS pins. With suitable software, the cable is capable of much higher speeds than its predecessors. It also supports software flow control.
688:
This cable could be used with more software but it had no actual enhancements over its predecessor. The software would work thinking it had hardware flow control but could suddenly stop when higher speeds were reached and with no identifiable reason.
146:
A null modem cable is a RS-232 serial cable where the transmit and receive lines are crosslinked. In some cables there are also handshake lines crosslinked. In many situations a straight-through serial cable is used, together with a null modem
646:
has to be implemented in the software. The use of this cable is restricted to data-traffic only on its cross-connected Rx and Tx lines. This cable can also be used in devices that do not need or make use of modem control signals.
129:
may also refer to the cable or adapter itself as well as the connection method. Null modem cables were a popular method for transferring data between the early personal computers from the 1980s to the early 1990s.
738:(CD) signal (at pin 1 on a DE-9 cable and pin 8 on a DB-25 cable). As a result, only specially designed software could make use of this partial handshaking. Software flow control still worked with this cable. 80:
communication refers to using a crossed-over RS-232 cable to connect the teleprinters directly to one another without the modems. It is also used to serially connect a computer to a printer, since both are
642:
The simplest type of serial cable has no hardware handshaking. This cable has only the data and signal ground wires connected. All of the other pins have no connection. With this type of cable
181:
Below is a very common wiring diagram for a null modem cable to interconnect two DTEs (e.g. two PCs) providing full handshaking, which works with software relying on proper assertion of the
796:
solution which emulates a hardware null modem within the computer. All features of a hardware null modem are available in a virtual null modem as well. There are some advantages to this:
839:
interface to user applications, including virtual serial controls. Two such ptys may easily be linked together by an application to form a virtual null modem communication path.
580:, device controllers, and smart sensing devices. These devices tend to reside in close proximity and lend themselves to short run serial communication through protocols such as 734:(CTS) flow control but has no actual functionality. The only way the flow control signal would reach the other device is if the opposite device checked for a 543:
mode development, since it allows the user to remotely debug a kernel with a minimum of device drivers and code (a serial driver mainly consists of two
1036: 597:
simulated by connecting DSR and DCD internally in the connector, thus obtaining CD from the remote DTR signal. One feature of the
112:
lines are crosslinked. Several wiring layouts are in use because the null modem connection is not covered by the RS-232 standard.
726:
In this cable the flow control lines are still looped back to the device. However, they are done so in a way that still permits
92:
The RS-232 standard is asymmetric as to the definitions of the two ends of the communications link, assuming that one end is a
1090: 529: 513: 97: 105: 544: 1095: 560: 873: 1069: 539:
made the use of null modem cables less common. In modern systems, such a cable can still be useful for
17: 548: 540: 490:
that two DTEs (or two DCEs) needed to communicate with each other, then a null modem was necessary.
858: 505: 370: 93: 82: 42: 800:
Higher transmission speed of serial data, limited only by computer performance and network speed
572:
reserves those resources and dropping to the debugger in the case of a panic won't free them).
521: 904: 109: 785: 577: 230: 520:
on one computer as a network drive on the other computer. No Ethernet hardware (such as a
8: 789: 643: 444: 428: 148: 54: 803:
Virtual connections over local network or Internet, mitigating cable length restrictions
108:
and receive lines are crosslinked. Depending on the purpose, sometimes also one or more
1040: 991: 970: 498: 50: 501: 258: 605:" that just reverses pins 1 through 8 on one end to 8 through 1 on the other end. 1085: 848: 176: 125:
without modems (null modem) then they would crosslink the connections. The term
949: 868: 832: 602: 598: 535:
The popularity and availability of faster information exchange systems such as
400: 342: 314: 213: 1016:"Null-modem emulator | Download Null-modem emulator software for free at" 1079: 863: 494: 286: 627: 61: 1015: 1037:"BerliOS Developer: Project Summary - N8VB_vCOM Virtual Null Modem Cable" 928: 813: 760: 711: 669: 121: 69: 159: 836: 167: 618: 995: 853: 517: 151:. The adapter contains the necessary crosslinks between the signals. 138: 751: 702: 660: 793: 536: 46: 508:
can be used over a null modem connection. The later versions of
1064: 821: 585: 564: 509: 65: 58: 784:
A virtual null modem is a communication method to connect two
556: 525: 207: 101: 73: 30: 769:
Wiring pinouts for DB-25 (left) and DE-9 (right) connectors
720:
Wiring pinouts for DB-25 (left) and DE-9 (right) connectors
678:
Wiring pinouts for DB-25 (left) and DE-9 (right) connectors
636:
Wiring pinouts for DB-25 (left) and DE-9 (right) connectors
581: 552: 120:
Originally, the RS-232 standard was developed and used for
825: 569: 516:
program. Both pieces of software allow the mapping of a
792:. Unlike a null modem cable, a virtual null modem is a 528:
computer, a null modem connection was a common way of
905:"RS232 serial null modem cable wiring and tutorial" 497:between computers, or remote operation. Under the 41:is a communication method to directly connect two 806:Virtually unlimited number of virtual connections 1077: 898: 896: 894: 892: 890: 888: 923: 921: 64:. The name stems from the historical use of 885: 608: 601:standard is that a null modem cable is a " 76:in order to communicate with one another; 918: 524:or a modem) is required for this. On the 1039:. berlios.de. 2005-07-15. Archived from 902: 831:Another common example consists of Unix 166: 158: 137: 29: 650: 14: 1078: 692: 591: 133: 992:"MS-DOS External commands - INTERLNK" 779: 27:Serial cable connecting two computers 741: 493:Null modems were commonly used for 104:. With a null modem connection the 24: 828:games to use virtual null modems. 154: 25: 1107: 1057: 1063: 971:"ADTPro - ADTPro Serial Cabling" 759: 750: 710: 701: 668: 659: 626: 617: 246: 243: 240: 952:. hardwarebook.info. 2006-12-27 835:(pty) which present a standard 484: 163:DB-25 null modem wiring diagram 1029: 1008: 984: 963: 942: 171:DE-9 null modem wiring diagram 13: 1: 973:. sourceforge.net. 2011-01-25 879: 874:Serial Line Internet Protocol 1091:Multiplayer null modem games 7: 931:. nullmodem.com. 2008-11-07 842: 10: 1112: 809:No need for a serial cable 174: 115: 549:interrupt service routine 530:playing multiplayer games 457: 454: 451: 448: 443: 422: 419: 416: 413: 204:Signal and abbreviations 203: 198: 193: 190: 812:The computer's physical 950:"Nullmodem (9-9) - HwB" 859:Direct cable connection 609:No hardware handshaking 506:direct cable connection 1096:Out-of-band management 532:between two machines. 522:network interface card 512:were shipped with the 172: 164: 143: 68:cables to connect two 35: 786:computer applications 170: 162: 141: 33: 1072:at Wikimedia Commons 651:Loopback handshaking 177:Serial port: Pinouts 85:, and is known as a 34:A null modem adapter 790:virtual serial port 693:Partial handshaking 592:Types of null modem 445:Data Terminal Ready 429:Data Carrier Detect 183:Data Carrier Detect 134:Cables and adapters 96:and the other is a 824:has allowed older 780:Virtual null modem 173: 165: 144: 142:A null modem cable 36: 1068:Media related to 1018:. sourceforge.net 788:directly using a 499:Microsoft Windows 482: 481: 386: 57:, etc.) using an 16:(Redirected from 1103: 1067: 1052: 1051: 1049: 1048: 1033: 1027: 1026: 1024: 1023: 1012: 1006: 1005: 1003: 1002: 988: 982: 981: 979: 978: 967: 961: 960: 958: 957: 946: 940: 939: 937: 936: 925: 916: 915: 913: 912: 907:. lammertbies.nl 900: 763: 754: 742:Full handshaking 714: 705: 672: 663: 630: 621: 502:operating system 384: 259:Transmitted Data 188: 187: 21: 1111: 1110: 1106: 1105: 1104: 1102: 1101: 1100: 1076: 1075: 1060: 1055: 1046: 1044: 1035: 1034: 1030: 1021: 1019: 1014: 1013: 1009: 1000: 998: 990: 989: 985: 976: 974: 969: 968: 964: 955: 953: 948: 947: 943: 934: 932: 927: 926: 919: 910: 908: 901: 886: 882: 849:Crossover cable 845: 833:pseudoterminals 782: 773: 772: 771: 770: 766: 765: 764: 756: 755: 744: 728:Request To Send 724: 723: 722: 721: 717: 716: 715: 707: 706: 695: 682: 681: 680: 679: 675: 674: 673: 665: 664: 653: 640: 639: 638: 637: 633: 632: 631: 623: 622: 611: 594: 547:buffers and an 487: 315:Request To Send 195: 179: 157: 155:Wiring diagrams 136: 118: 72:devices or two 28: 23: 22: 15: 12: 11: 5: 1109: 1099: 1098: 1093: 1088: 1074: 1073: 1059: 1058:External links 1056: 1054: 1053: 1028: 1007: 983: 962: 941: 917: 903:Lammert Bies. 883: 881: 878: 877: 876: 871: 869:Rollover cable 866: 861: 856: 851: 844: 841: 820:For instance, 818: 817: 810: 807: 804: 801: 781: 778: 768: 767: 758: 757: 749: 748: 747: 746: 745: 743: 740: 736:Carrier Detect 719: 718: 709: 708: 700: 699: 698: 697: 696: 694: 691: 677: 676: 667: 666: 658: 657: 656: 655: 654: 652: 649: 635: 634: 625: 624: 616: 615: 614: 613: 612: 610: 607: 603:rollover cable 593: 590: 486: 483: 480: 479: 476: 473: 469: 468: 465: 462: 459: 456: 453: 450: 447: 441: 440: 437: 434: 431: 425: 424: 421: 418: 415: 412: 409: 406: 403: 401:Data Set Ready 397: 396: 393: 390: 387: 382: 379: 376: 373: 367: 366: 363: 360: 357: 354: 351: 348: 345: 339: 338: 335: 332: 329: 326: 323: 320: 317: 311: 310: 307: 304: 301: 298: 295: 292: 289: 283: 282: 279: 276: 273: 270: 267: 264: 261: 255: 254: 251: 248: 245: 242: 239: 236: 233: 227: 226: 223: 220: 217: 211: 205: 201: 200: 197: 192: 185:(DCD) signal: 156: 153: 135: 132: 117: 114: 26: 9: 6: 4: 3: 2: 1108: 1097: 1094: 1092: 1089: 1087: 1084: 1083: 1081: 1071: 1066: 1062: 1061: 1043:on 2013-12-26 1042: 1038: 1032: 1017: 1011: 997: 993: 987: 972: 966: 951: 945: 930: 924: 922: 906: 899: 897: 895: 893: 891: 889: 884: 875: 872: 870: 867: 865: 864:LapLink cable 862: 860: 857: 855: 852: 850: 847: 846: 840: 838: 834: 829: 827: 823: 815: 811: 808: 805: 802: 799: 798: 797: 795: 791: 787: 777: 762: 753: 739: 737: 733: 732:Clear To Send 729: 713: 704: 690: 686: 671: 662: 648: 645: 629: 620: 606: 604: 600: 589: 587: 583: 579: 573: 571: 566: 562: 558: 554: 550: 546: 542: 538: 533: 531: 527: 523: 519: 515: 511: 507: 503: 500: 496: 495:file transfer 491: 477: 474: 471: 470: 466: 463: 460: 446: 442: 438: 435: 432: 430: 427: 426: 410: 407: 404: 402: 399: 398: 394: 391: 388: 383: 380: 377: 374: 372: 371:Signal Ground 369: 368: 364: 361: 358: 355: 352: 349: 346: 344: 343:Clear To Send 341: 340: 336: 333: 330: 327: 324: 321: 318: 316: 313: 312: 308: 305: 302: 299: 296: 293: 290: 288: 287:Received Data 285: 284: 280: 277: 274: 271: 268: 265: 262: 260: 257: 256: 252: 249: 237: 234: 232: 229: 228: 224: 221: 218: 215: 212: 209: 206: 202: 189: 186: 184: 178: 169: 161: 152: 150: 140: 131: 128: 123: 113: 111: 107: 103: 99: 95: 90: 88: 87:Printer Cable 84: 79: 75: 71: 67: 63: 60: 56: 52: 48: 44: 40: 32: 19: 1045:. Retrieved 1041:the original 1031: 1020:. Retrieved 1010: 999:. Retrieved 986: 975:. Retrieved 965: 954:. Retrieved 944: 933:. Retrieved 929:"Null Modem" 909:. Retrieved 830: 819: 814:serial ports 783: 774: 735: 731: 727: 725: 687: 683: 644:flow control 641: 595: 574: 565:WinDbg or KD 534: 492: 488: 485:Applications 231:Frame Ground 182: 180: 145: 126: 119: 91: 86: 77: 62:serial cable 38: 37: 1070:Null modems 816:remain free 199:Other side 122:teleprinter 70:teleprinter 1080:Categories 1047:2013-12-26 1022:2013-12-26 1001:2013-12-26 977:2013-12-26 956:2013-12-26 935:2013-12-26 911:2013-12-26 880:References 730:(RTS) and 559:, ddb for 222:DB-25 pin 196:direction 175:See also: 127:null modem 78:null modem 39:Null modem 18:Null-modem 996:Angelfire 854:Debugging 518:hard disk 219:DE-9 pin 191:One side 110:handshake 100:, e.g. a 843:See also 794:software 537:Ethernet 514:InterLnk 106:transmit 51:terminal 47:computer 433:DCD, CD 291:RxD, RD 263:TxD, TD 244:Common 225:Signal 149:adapter 116:Origins 55:printer 1086:Modems 822:DOSBox 586:Modbus 563:, and 541:kernel 510:MS-DOS 504:, the 385:Common 194:Signal 74:modems 66:RS-232 59:RS-232 557:Linux 526:Amiga 208:DB-25 102:modem 599:Yost 582:DNP3 578:RTUs 555:for 553:KGDB 545:FIFO 478:DSR 467:DCD 423:DTR 365:RTS 337:CTS 309:TxD 281:RxD 216:pin 214:DE-9 210:pin 43:DTEs 837:tty 826:DOS 570:GUI 561:BSD 551:). 449:DTR 405:DSR 395:SG 347:CTS 319:RTS 253:FG 98:DCE 94:DTE 83:DTE 1082:: 994:. 920:^ 887:^ 584:, 458:→ 455:4 452:20 439:1 420:20 414:← 411:6 381:5 375:SG 356:← 353:8 328:→ 325:7 300:← 297:2 272:→ 269:3 241:— 235:FG 89:. 53:, 49:, 1050:. 1025:. 1004:. 980:. 959:. 938:. 914:. 475:6 472:6 464:8 461:1 436:8 417:4 408:6 392:7 389:5 378:7 362:4 359:7 350:5 334:5 331:8 322:4 306:2 303:3 294:3 278:3 275:2 266:2 250:1 247:— 238:1 45:( 20:)

Index

Null-modem

DTEs
computer
terminal
printer
RS-232
serial cable
RS-232
teleprinter
modems
DTE
DTE
DCE
modem
transmit
handshake
teleprinter

adapter


Serial port: Pinouts
DB-25
DE-9
Frame Ground
Transmitted Data
Received Data
Request To Send
Clear To Send

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.