CCITT V24 / EIA RS232-C / DB25S, & CENTRONICS CABLES & ETHERNET This file: public_html/standards/rs232.v24 See Also: public_html/standards/phone (though not on web) ~jhs/tech/odds/cables http://ww.physiol.ox.ac.uk/~trp/pinouts.html:$ Intel PC Standard Configs: Serial/Mouse: 25 (or 9) pin male DTE Parallel/Printer 25 pin female. Game: 15 pin female. DCE Female: Zilog System 8000, Symmetric 375, My PC532 ------------------------------------------------------------------------------- 25 PIN REFERENCE EIA-RS232-C (as on breakout box) / CCITT V24 PIN NAME DTE<>DCE FUNCTION EIA CCITT 1 FG(PG) --- Frame (Protective) Ground AA 101 2 TD --> Transmit Data BA 103 3 RD <-- Receive Data BB 104 4 RTS --> Request To Send CA 105 5 CTS <-- Clear To Send CB 106 6 DSR <-- Data Set Ready CC 107 7 SG --- Signal Ground AB 102 8 CD <-- Carrier Detect CF 109 9 - Reserved - - 10 - Reserved - - 11 - Unassigned - - 12 (S)CD <-- Secondary Carrier Detect SCF 122 13 (S)CTS <-- Secondary Clear To Send SCB 121 14 (S)TD --> Secondary Transmit Data SBA 118 15 TC <-- Transmitter Clock DB 114 16 (S)RD <-- Secondary Receive Data SBB 119 17 RC <-- Receive Clock DD 115 18 - Unassigned - - 19 (S)RTS --> Secondary Request To Send SCA 120 20 DTR --> Data Terminal Ready CD 108.2 21 SQ <-- Signal Quality Detector CG 110 22 RI <-- Ring Indicator CE 125 23* - --> Data Rate Selector CH 111 23* - <-- Data Rate Selector CI 112 24 (E)TC --> External Transmitter Clock DA 113 25 - Unassigned - - +------------------------------------------------------+ Male \ 01 02 03 04 05 06 07 08 09 10 11 12 13 / \ 14 15 16 17 18 19 20 21 22 23 24 25 / +------------------------------------------------+ +------------------------------------------------------+ Female \ 13 12 11 10 09 08 07 06 05 04 03 02 01 / \ 25 24 23 22 21 20 19 18 17 16 15 14 / +------------------------------------------------+ As seen from front, with cable going further away. ------------------------------------------------------------------------------- 9 PIN SERIAL - TO - 25 PIN SERIAL 9 PIN RS232 25 PIN DTE<>DCE - FG 1 9:1 DCD 25:8 <-- 9:2 RD 25:3 <-- 9:3 TD 25:2 --> 9:4 DTR 25:20 --> 9:5 SG 25:7 - 9:6 DSR 25:6 <-- 9:7 RTS 25:4 --> 9:8 CTS 25:5 <-- 9:9 RI 25:22 <-- ------------------------------------------------------------------------------- 9 PIN REFERENCE (from Toshiba T1100+ Laptop) - DTE Male +---------------+ Male +---------------+ Female \ 1 2 3 4 5 / \ 5 4 3 2 1 / \ 6 7 8 9 / \ 9 8 7 6 / +---------+ +---------+ As seen from front, with cable going further away. PIN Name DTE<>DCE 9:1 DCD <-- 9:2 RD <-- 9:3 SD --> 9:4 DTR --> 9:5 GND - 9:6 DSR <-- 9:7 RTS --> 9:8 CTS <-- 9:9 RI <-- ------------------------------------------------------------------------------- PC to SmartUPS (not for BackUPS) From bobp@newcorridor._ERASE_.com PC 9 pin APC 9:2 RxD 9:2 9:3 TxD 9:1 9:5 GND 9:9 ------------------------------------------------------------------------------- 9 Pin Serial Control - PC-FreeBSD to APC Smart UPS 2000 by JHS Same as http://www.exploits.org/nut/library/940-0024C.jpg Domain fails http://us1.networkupstools.org/cables/940-0024C.jpg Directory fails cables http://eu1.networkupstools.org/cables/ URL works 2006.01 Referred to by /usr/local/share/doc/nut/FAQ as a clone of APC's 940-0024C black cable for PowerChute. Works OK with FreeBSD-4.1 ports/sysutils/upsd & sysutils/nut/. UPS M Male plug on cable connects to Female on UPS. PC F Female socket on cable connects to Male on PC. PC-9-F UPS-9-M 9:1 DCD < 4 DTR - PC Loop to ease port opening. 9:2 RD < 2 Serial to PC 9:3 SD > 1 Serial to UPS 9:5 GND 9:9 Cable screen/shroud 9:6 DSR 9:- N/C 9:7 RTS > 8 CTS 9:- PC Loop to ease port opening. 9:9 9:- N/C - 9:3 N/C - 9:4 Signal Ground - 9:5 N/C - 9:6 N/C - 9:7 N/C - 9:8 N/C ( I initially had an extra link between PC4 - PC6, but removed it to conform to www.exploits, finding it un-necessary). ------------------------------------------------------------------------------- There's some APC cable known as an 940-0095B Dual Mode. ------------------------------------------------------------------------------- 9 Pin DC Control - PC to APC Smart UPS 2000 for bkpupsd Designed by jhs@, but Untested & Unbuilt. Maybe this is something like APC's grey cable that just does basic control, but no advanced functions. PC-9 UPS-9 9:1 DCD < - N/C on UPS 9:2 RD < 9:2 Serial to PC 9:3 SD > - N/C on UPS 9:4 DTR > 9:6 DSR - N/C on UPS. PC Loop to ease port opening. 9:5 GND = 9:4 Signal Ground 9:7 RTS > 9:1 Shut Down If High 4.5 sec 9:8 CTS < 9:5 Low = Battery Fail 9:9 RI < 9:2 or 6 High = Mains Line Failure - 9:9 Cable screen/shroud - 9:3 N/C on UPS - 9:5 N/C on UPS - 9:7 N/C on UPS - 9:8 >= 1K ohm pull ups to UPS-5 & UPS-6 ------------------------------------------------------------------------------- 9 Pin PC Signal notes from FreeBSD-3.4/usr/ports/sysutils/bkpupsd/ man bkpupsd 9:4 DTR -> If high, enables shuts down when RNG goes high, upsd keeps it raised. 9:5 GND -- Signal Ground 9:6 DSR <- 9:7 RTS -> Upsd keeps it lowered. after 5 mins power fail upsd make ups sleep by raising. 9:8 CTS <- UPS lowers this if battery also fails 9:9 RI <- UPS raises this if mains power fails if upsd ses this drop, runs bkpups.failed, after 5 mins power fail upsd runs bkpups.shudown ------------------------------------------------------------------------------- APC UPS (Model: Smart UPS 2000) - 9 PIN Female - Interface Spec. From APC Manual 9:1 Input RS232 Shut Down Input = Hi 4.5 s The UPS will shut down when a HI RS-232 level, sustained for 4.5 s, is applied to Pin 1. The UPS responds to this signal, following a delay, only during mains failures (load is operating from the UPS's internal power source). 9:2 Output RS232 Line Fail Output The output at Pin 2 will generate a LO to HI RS-232 level upon transfer of the output load to power derived from the UPS's battery. The pin is normally at a LO RS-232 level. 9:3 OC Output Normally Open Line Fail Signal 9:4 Output Signal Common (also connected to 9) 9:5 OC Output Normally Open Low Battery Signal 9:6 OC Output Normally Closed Line Fail Signal 9:7 Undocumented 9:8 Output Unregulated +24V DC 40 mA max. 9:9 Output Connected to Chassis OC: Pins 3, 5 and 6 are open collector outputs which must be pulled up to a common referenced supply no greater than +40 Vdc. The transistors are capable of a maximum non-inductive load of 25 mAdc. Use only Pin 4 as the common. ------------------------------------------------------------------------------- 9 PIN Black PLUG TO White SOCKET Joy's white cable mouse extender: 2,3,4,5,7 ------------------------------------------------------------------------------- 9 PIN PLUG TO PS/2 PLUG (MOUSE TO PC) CONVERTER As measured by a meter on a short white welded cable, so maybe the possibility of a mistake, I JHS have no idea how to number pins on PS/2, hence A-F 9-Pin PS2 Gnd Gnd 9:1 D As seen looking into plugs. 9:2 O/C 9:3 E 1 2 3 4 5 9:4 B 6 7 8 9 9:5 E 9:6 F 9:7 B ..C.D 9:8 O/C B..X..E 9:9 B .A.X.F A=0/C ------------------------------------------------------------------------------- 25 to PS/2 derived from above 25-Pin PS/2 ? Gnd Gnd TD 25:2 E RD 25:3 O/C RTS 25:4 B CTS 25:5 O/C DSR 25:6 F SG 25:7 E DCD 25:8 D DTR 25:20 B RI 25:22 B ------------------------------------------------------------------------------- Logitech (NCD X-Term) Mouse (after taking mouse apart) 9-Pin 6Pin Internal IDC Stakes 9:1 6:A 9:5 6:B 9:7 6:C White E F Brown 9:8 6:C Green C D Yellow 9:4 6:D PCB Gnd Braid A B Pink 9:6 6:D 9:2 6:E 9:3 6:F 9:9 O/C ------------------------------------------------------------------------------- Logitech Mouse 25 pin equivalent - deduced from above. 25-Pin 6Pin Internal IDC Stakes TD 25:2 6:F RD 25:3 6:E RTS 25:4 6:C CTS 25:5 6:C DSR 25:6 6:D SG 25:7 6:B DCD 25:8 6:A DTR 25:20 6:D ------------------------------------------------------------------------------- CONRAD DCF77 RADIO CLOCK - TO - SERIAL (untried yet) Conrad Part 641960 As seen looking at back of clock. DCF Modul Serielle A +------------+ | | | 1 2 3 4 | | ------ | +------------+ 9 Pin 4:1 Gnd (TxD) 3 4:2 Data (DCD) 1 4:3 VDD (RTS) 7 4:4 Clock (DTR) 4 ------------------------------------------------------------------------------- iPC 10 PIN IDC (Insulation Displacement Connector) - TO - PC 9 PIN D DTE Male ( Flat Grey Manufactured ribbon, PC Flange Bracket ) Pins route direct, 1-2, 2-2 etc. +---------------+ Male, As Seen on back of PC \ 1 2 3 4 5 / \ 6 7 8 9 / +---------+ 10_IDE Stakes On PC Mainboard, seen from above +-----------+ | 2 4 6 8 . | | 1 3 5 7 9 | +----+ +----+ +-+ ------------------------------------------------------------------------------- PC532 10 PIN IDC (Insulation Displacement Connector) & 9 PIN D Type. Warning: The PC532 10 pin IDC may possibly have a different layout than the Intel PC 10 pin IDC ? 10-IDC IC NAME ICsigDir 9-DTE 9-DCE 25-DTE 25-DCE-jhs 25-Gary.o NewIDC New25 1 DCD In 1 {4 8 {20 8 Brown 20 2 DSR *Unused 6 {4 6 {20 3 Red Open 3 RD In 2 3 3 2 2 Orange 2 4 RTS Out 7 8 4 5 20 Yellow 5 5 TD Out 3 2 2 3 7 Green 3 6 CTS In 8 7 5 4 6 Blue 4 7 DTR Out 4 {1+2} 20 {6+(8)} 4 Purple 8+6 8 RI Unused 9 - 22 - 5 Grey Open 9 SG - 5 5 7 7 22 White 7 10 Unused Unused - - - - - "*" = "Would be In". "sigDir" = "Signal Direction Re. Chip" How ribbon cable presents a PC532 10 pin IDC connector as a 9 pin D DTE (PC style): _________ 1 2 3 4 5 \__9 D__/ | 6 | 7 | 8 | 9 | | / | / | / | / | ________ | 2 | 4 | 6 | 8 | 10 |_10 IDC_| 1 3 5 7 9 ------------------------------------------------------------------------------- PC (TOSHIBA) - TO - BROTHER LPR (OR PIXY PLOTTER) PC V24 printer female on cable male plug on cable 1 fg 1 2 3 3 2 4 5 6 20 7 sg 7 Brother must be set to ^s ^q flow working with dip 1-7 to left (off) msdos: mode com1:9600,n,8,2 mode lpt1:=com1 ------------------------------------------------------------------------------- Symmetric SERIAL - TO - BROTHER LPR PC V24 Printer 1 fg 1 2 2 3 3 4 20 7 sg 7 - Symmetric must also be set to dc flow working with /usr/p/src/local/lps_on.c - brother must also be set to dc flow working with dip 1-7 to right (on) ------------------------------------------------------------------------------- CONVERTER FreeBSD PC GETTY on TTYD[0-9] TO PC-DOS-KERMIT (25 pin Gray cable #25) (9:PC) 25:PC 25:PC (9:PC) (9:0) 25:1 25:1 (9:0) Not (9:3) 25:2 25:3 (9:2) On (9:2) 25:3 25:2 (9:3) On (9:7) 25:4 25:5 (9:8) On (9:8) 25:5 25:4 (9:7) On (9:5) 25:7 sg 25:7 (9:5) On (9:1) 25:8 25:20 (9:4) Not (9:4) 25:20 25:8 (9:1) Not Note I tried 25:6-25:20 & it didnt work. ------------------------------------------------------------------------------- 2 CONVERTER WHITE CABLES 25 PIN FEMALE TO 9 FEMALE from schiller 25:PC (9:PC) 25:1 (9:0) 25:2 TD (9:2) RD 25:3 RD (9:3) TD 25:4 RTS (9:8) CTS 25:5 CTS (9:7) RTS 25:7 SG (9:5) SG 25:8 DCD (9:1) DCD 25:20 DTR (9:6) DSR 9 pin to 9 pin equivalent would be 9:6-9:4 Not = not on commercial 25/9 white cable & white plugs On = on commercial 25/9 white cable & white plugs ------------------------------------------------------------------------------- 9 PIN SERIAL - TO - 25 PIN SERIAL 9 PIN RS232 25 PIN DTE<>DCE - FG 1 9:1 DCD 25:8 <-- 9:2 RD 25:3 <-- 9:3 TD 25:2 --> 9:4 DTR 25:20 --> 9:5 SG 25:7 - 9:6 DSR 25:6 <-- 9:7 RTS 25:4 --> 9:8 CTS 25:5 <-- 9:9 RI 25:22 <-- ------------------------------------------------------------------------------- CONVERTER: 2 PCs USING 2x25 Pin & TRANSFER PROGRAM (9 pin equiv in ()) (9) 25:PC 25:PC (9) (9:0) 25:1 25:1 (9:0) (9:3) 25:2 25:3 (9:2) (9:2) 25:3 25:2 (9:3) (9:7-8) 25:4-5 25:4-5 (9:7-8) (9:6-4) 25:6-20 25:20-6 (9:4-6) (9:5) 25:7 sg 25:7 (9:5) ------------------------------------------------------------------------------- CONVERTER: 2 PCs USING 2x9&2x25 Pin & MS-Windows 95 Female Welded Blue Juki, Toshiba --> HP3P, NEC --> HP3P) Wiring also used by 486 to HP3P cable, here wire 30 (white with bits of black) should be checked at 25 pin end) PC signal centronics 20 way ribbon no 25 pin male 36 pin Ribbon wire # & Colour 1 strobe 1 2 white 2 data 1 2 6 green 3 data 2 3 7 yellow 4 data 3 4 8 orange 5 data 4 5 9 red 6 data 5 6 10 brown 7 data 6 7 11 black 8 data 7 8 12 white 9 data 8 9 13 grey 10 ack 10 4 purple 11 busy 11 15 blue 12 pe 12 16 green 13 -slctin 36 17 yellow 14 auto feed 14 18 orange auto line feed 15 -fault 32 20 brown 16 -iprime 31 19 red 17 - - not documented by 'siemens PC doc.' 18-25 gnd 16,17,33 1 black, 3 grey, 5 blue, 14 purple - gnd 19-29 cable screen. - -ipret 30 Undocumented by 'brother' - +5 V. 18 - 34 - - 13 5V 4K7 ohm - 35 5V 4K7 ohm - 15 Not used by 'brother' Siemens PC 25 pin end does not have 0v & gnd but just gnd. Centronics have both 0V & gnd seperate. -------------------------------------------------------------------------------- IEEE-1284 bi-directional to also work scanner. From Brother laser HL-P2500 CDROM Pin Signal Direct Pin Signal Direction 1 !DATA_STROBE In 19 0V (S.G.) - 2 DATA 1 In 20 0V (S.G.) - 3 DATA 2 In 21 0V (S.G.) - 4 DATA 3 In 22 0V (S.G.) - 5 DATA 4 In 23 0V (S.G.) - 6 DATA 5 In 24 0V (S.G.) - 7 DATA 6 In 25 0V (S.G.) - 8 DATA 7 In 26 0V (S.G.) - 9 DATA 8 In 27 0V (S.G.) - 10 !ACKNLG Out 28 0V (S.G.) - 11 BUSY Out 29 0V (S.G.) - 12 PE Out 30 0V (S.G.) - 13 SLCT Out 31 !INPUT_PRIME In 14 !AUTO_FEED In 32 !FAULT Out 15 N.C. - 33 N.C. - 16 0V (S.G.) - 34 N.C. - 17 0V (S.G.) - 35 N.C. - 18 +5V - 36 !SLCT_IN In -------------------------------------------------------------------------------- From FreeBSD-2.2.8 /sys/i386/isa/lpt.c Connect the two computers using a Laplink parallel cable to use this feature: +----------------------------------------+ |A-name A-End B-End Descr. Port/Bit | +----------------------------------------+ |DATA0 2 15 Data 0/0x01 | |-ERROR 15 2 1/0x08 | +----------------------------------------+ |DATA1 3 13 Data 0/0x02 | |+SLCT 13 3 1/0x10 | +----------------------------------------+ |DATA2 4 12 Data 0/0x04 | |+PE 12 4 1/0x20 | +----------------------------------------+ |DATA3 5 10 Strobe 0/0x08 | |-ACK 10 5 1/0x40 | +----------------------------------------+ |DATA4 6 11 Data 0/0x10 | |BUSY 11 6 1/~0x80 | +----------------------------------------+ |GND 18-25 18-25 GND - | +----------------------------------------+ -------------------------------------------------------------------------------- CONVERTER: 2 PCs USING 2x25 Pin & MS-Windows 95 Paralel Male Welded Grey | +---------------/ +------------+ I found 2 pre made cables with 3 contact. COLLAR TIP Short Grey cable. Mauve plug, White Black 9.8 Kilo Ohm Long Black cable. Black plug, Red Yellow 0 Ohm ----------------------------------------------------------------------------- Cable on my yellow/orange GPS transducer. (no idea if its serial even) Looking into plug, with cable further away: +----+ +---------+ +--------+ | Red Black Green White | +-----------------------+ Cable with sockets ready to connect to GPS after I learn correct pin out. Looking along cable toward socket Cable Cable Socket Black -----------------+----------- Black Red -----------------+-+--------- Red Yellow -----------------+-+-+------- Green Blue -----------------+-+-+-+----- Yellow | | | | | | | | Non Cable Socket | | | | | | | +----- Yellow | | +------- Green | +--------- Red +----------- Black -----------------------------------------------------------------------------