DB9 tool hint:
A RJ45-to-DB9 adapters have a specific tool to help insert and extract pins
out of the DB9 connector. These are simple and cheap tools but they are
invaluable when trying to remove pins.
DB9 tool hints
To extract pins out of the DB9 connetor w/o ripping off the wire itself,
insert the white side of the tool into the DB9 connector until you feel the
tool push beyond the pin and into the DB9 connector's hole itself. Now twist
the tool about 180 degrees in either direction so you get a spiral twist of
wire wrapped around the tool's metal shaft. Pinch your thumb over this twist
of wire to keep the inner-pin from moving. Now gently pull the tool out with
the pinched wire in one movement. If it doesn't come very easily, it sometimes
takes some minor force but DON'T force it. If it still doesn't come, remove the
tool, change it's insersion point 45 degreess either direction and try all of
this again.
I personally think this side really isn't needed. If you use your fingers
carefully, you can made adapters much faster without the tool.
Cyclades ACS TS to Netscreen DB9 console (cat5)
Assumptions: using a standard Ethernet Cat5 cable
The RJ45 adapter should be wired as follows:
** Looking INTO the RJ-45 cover from the the DB9 side (wires sicking out towards you **
1 2 3 4 5 6 7 8
+-----------------+
| | | | | | | | | |
| | | | | | | | | |
| +-+
| |
+------+ +--------+
| |
+---+
RJ45 | DB9 |
----------------------+---------------+
pin 1 - blue - RTS | pin 7 - RTS |
pin 2 - orange - DTR | pin 4 - DTR |
pin 3 - black - Tx | pin 3 - Tx |
pin 4 - red - SGnd | pin 5 - SGnd |
pin 5 - green - SGnd | n/c - SGnd |
pin 6 - yellow - Rx | pin 2 - Rx |
pin 7 - brown - DCD | pin 6 - DSR |
pin 8 - white - CTS | pin 8 - CTS |
n/c | pin 1 - DCD |
----------------------+---------------+
Cyclades ACS TS to M/T-series or standard PC DB9 console (cat5)
Assumptions: using a standard Ethernet Cat5 cable
The RJ45 adapter should be wired as follows to connect to:
- M or T-series console
- standard PC serial ports
** Looking INTO the RJ-45 cover from the the DB9 side (wires sicking out towards you **
1 2 3 4 5 6 7 8
+-----------------+
| | | | | | | | | |
| | | | | | | | | |
| +-+
| |
+------+ +--------+
| |
+---+
RJ45 | DB9 |
----------------------+---------------+
pin 1 - blue - RTS | pin 8 - CTS |
pin 2 - orange - DTR | pin 1 - DCD |
pin 3 - black - Tx | pin 2 - Rx |
pin 4 - red - SGnd | pin 5 - SGnd |
pin 5 - green - SGnd | n/c |
pin 6 - yellow - Rx | pin 3 - Tx |
pin 7 - brown - DCD | pin 4 - DTR |
pin 8 - white - CTS | pin 7 - CTS |
n/c | pin 6 - n/c |
n/c | pin 9 - n/c |
----------------------+---------------+
Cyclades ACS TS to M/T-series or standard PC DB9 console (satin)
Assumptions: using a SATIN cable (180 degree rollover cable)
The RJ45 adapter should be wired as follows to connect to:
- M or T-series console
- standard PC serial ports
** Looking INTO the RJ-45 cover from the the DB9 side (wires sicking out towards you **
1 2 3 4 5 6 7 8
+-----------------+
| | | | | | | | | |
| | | | | | | | | |
| +-+
| |
+------+ +--------+
| |
+---+
This is the CORRECT layout This is the WRONG Layout
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+---------------------------------------- ---------------------------------------
| RJ45 | DB9 | RJ45 | DB9 |
+-----------------------+---------------+ ----------------------+---------------+
| pin 1 - blue - RTS | pin 7 - CTS | pin 1 - white - CTS | pin 8 - CTS |
| pin 2 - orange - DTR | pin 4 - DCD | pin 2 - brown - DCD | pin 1 - DCD |
| pin 3 - black - Tx | pin 3 - Rx | pin 3 - yellow - Rx | pin 2 - Rx |
| pin 4 - red - SGnd | pin 5 - SGnd | pin 4 - red - SGnd | pin 5 - SGnd |
| pin 5 - green - Sgnd | pin 7 - n/c | pin 5 - blue - RTS | pin 7 - RTS |
| pin 6 - yellow - Rx | pin 2 - Tx | pin 6 - black - Tx | pin 3 - Tx |
| pin 7 - brown - DCD | pin 1 - DTR | pin 7 - orange - DTR | pin 4 - DTR |
| pin 8 - white - CTS | pin 8 - RTS | n/c | pin 9 - RI |
| n/c | pin 6 - n/c | n/c | pin 6 - DSR |
| n/c | pin 9 - n/c | | |
+-----------------------+---------------+ ----------------------+---------------+
Cyclades ACS TS to Hp switch DB9 console (satin)
Assumptions: using a statin cable (180 roll over)
The RJ45 adapter should be wired as follows:
** Looking INTO the RJ-45 cover from the the DB9 side (wires sicking out towards you **
1 2 3 4 5 6 7 8
+-----------------+
| | | | | | | | | |
| | | | | | | | | |
| +-+
| |
+------+ +--------+
| |
+---+
*** Need to verify with proper RJ45 coloring ***
RJ45 | DB9
------------------------------
pin 1 - orange | pin 4 - DTR
pin 2 - blue | pin 7 - RTS
pin 3 - red | pin 5 - SGnd
pin 4 - black | pin 3 - Tx
pin 5 - yellow | pin 2 - Rx
pin 6 - green | n/c - SGnd
pin 7 - white | pin 8 - RTS
pin 8 - brown | pin 1 - DCD
Cisco 2511 TS to Netscreen DB9 console (octopus)
Assumptions: using a standard 2511 octopus cable
NOTE: This also applies to Lantronix terminal servers as well
The RJ45 adapter should be wired as follows to connect to:
** Looking INTO the RJ-45 cover from the the DB9 side (wires sicking out towards you **
1 2 3 4 5 6 7 8
+-----------------+
| | | | | | | | | |
| | | | | | | | | |
| +-+
| |
+------+ +--------+
| |
+---+
Mode
RJ45 | DB9 DTE | DCE
----------------------+---------------+------------
pin 1 - blue - RTS | pin 8 - CTS | In | Out
pin 2 - orange - DTR | pin 6 - DSR | In | Out
pin 3 - black - Tx | pin 2 - Rx | In | Out
pin 4 - red - SGnd | pin 5 - SGnd | n/a | n/a
pin 5 - green - SGnd | n/c - SGnd | n/a | n/a
pin 6 - yellow - Rx | pin 3 - Tx | Out | Out
pin 7 - brown - DCD | pin 4 - DTR | Out | Out
pin 8 - white - CTS | pin 7 - RTS | Out | Out
n/c | pin 1 - DCD | In | In
----------------------+---------------+------------
Cyclades ACS TS to Netscreen or J-series RJ45 console (satin)
You can connect a Cyclades ACS terminal server directly to:
- a J-series router
- a Netscreen device using RJ45 console ports
Assumptions: using a SATIN cable (180 degree rollover cable)
1 2 3 4 5 6 7 8
----------------------
| | | | | | | |
| | | | | | | |
| | | | | | | |
----------------------
8 7 6 5 4 3 2 1
RJ45 Signal
----------- ------
1 - blue RTS
2 - orange DTR
3 - black Tx
4 - red SGnd
5 - green n/c
6 - yellow Rx
7 - brown DSR
8 - white CTS
PC to PC (DTE) null-modem serial
DB9 to DB9 connectors
---------------------
DB9 (female) DB9 (female)
D-Sub 1 D-Sub 2
---------------------------------------+------------------------------------
Pin 2 - Rx - Receive Data | Pin 3 - Tx - Transmit Data
Pin 3 - Tx - Transmit Data | Pin 2 - Rx - Receive Data
Pin 4 - DTR - Data Terminal Ready | Pin 6+1 - DSR+CD - Data Set Ready +
| Carrier Detect
Pin 5 - SGnd - Ground | Pin 5 - SGnd - Ground
Pin 6+1 - DSR+CD - Data Set Ready + | Pin 4 - DTR - Data Terminal Ready
Carrier Detect |
Pin 7 - RTS - Request to Send | Pin 8 - CTS - Clear to Send
Pin 8 - CTS - Clear to Send | Pin 7 - RTS - Ready to Send
DB9 to DB25 connectors
----------------------
DB9 (female) DB25 (female)
D-Sub 1 D-Sub 2
---------------------------------------+------------------------------------
Pin 2 - Rx - Receive Data | Pin 3 - Tx - Transmit Data
Pin 3 - Tx - Transmit Data | Pin 2 - Rx - Receive Data
Pin 4 - DTR - Data Terminal Ready | Pin 6 - DSR - Data Set Ready
Pin 5 - SGnd - Ground | Pin 7 - SGnd - Ground
Pin 6 - DSR - Data Set Ready | Pin 20 - DTR - Data Terminal Ready
Pin 7 - RTS - Ready to Send | Pin 5 - CTS - Clear to Send
Pin 8 - CTS - Clear to Send | Pin 4 - RTS - Ready to Send
DB25 to DB25 connectors
-----------------------
DB25 (female) DB25 (female)
D-Sub 1 D-Sub 2
---------------------------------------+------------------------------------
Pin 2 - Rx - Receive Data | Pin 3 - Tx - Transmit Data
Pin 3 - Tx - Transmit Data | Pin 2 - Rx - Receive Data
Pin 4 - RTS - Request to Send | Pin 5 - CTS - Clear to Send
Pin 5 - CTS - Clear to Send | Pin 4 - RTS - Request to Send
Pin 6+1 - DSR+CD - Data Set Ready + | Pin 20 - DTR - Data Terminal Ready
Carrier Detect |
Pin 7 - SGnd - Ground | Pin 7 - SGnd - Ground
Pin 20 - DTR - Data Terminal Ready | Pin 6 - DSR - Data Set Ready
PC to PC (DTE) null-modem parallel
db9 to db9 connectors
---------------------
D-Sub 1 | D-sub 2
(male connector) | (male connector)
--------------------+----------------------
pin 1 - ? | N/C
pin 2 - ? | pin 15 - ?
pin 3 - ? | pin 13 - ?
pin 4 - ? | pin 12 - ?
pin 5 - ? | pin 10 - ?
pin 6 - ? | pin 11 - ?
pin 7 - ? | N/C
pin 8 - ? | N/C
pin 9 - ? | N/C
pin 10 - ? | pin 5 - ?
pin 11 - ? | pin 6 - ?
pin 12 - ? | pin 4 - ?
pin 13 - ? | pin 3 - ?
pin 14 - ? | N/C
pin 15 - ? | pin 2 - ?
pin 16 - ? | N/C
pin 17 - ? | N/C
pin 18 - ? | N/C
pin 19 - ? | N/C
pin 20 - ? | N/C
pin 21 - ? | N/C
pin 22 - ? | N/C
pin 23 - ? | N/C
pin 24 - ? | N/C
pin 25 - ? | pin 25 - ?
100Mb/s Ethernet - Workstation to Hub/Switch
NOTE: To maintain CAT5 specs, you need to keep the twisted pairing CORRECT
NOTE #2: Wire color really doesn't matter but these are according to the
EIA-568 spec.
/-----------------/
/ / +---+
+-1-2-3-4-5-6-7-8-+ | |
| | | | | | | | | | +------+ +------+
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
| | +-----------------+
\\ \\ 1 2 3 4 5 6 7 8
Wire Color
Solid / Striped
Color color Polarity RJ-45 RJ-45
--------------- -------- ------------ -----------
White/Orange + 1 (pair #1) 1 (pair #1)
Orange/White - 2 (pair #1) 2 (pair #1)
White/Green + 3 (pair #2) 3 (pair #2)
Blue/White - 4 (pair #3) 4 (pair #3)
White/Blue + 5 (pair #3) 5 (pair #3)
Green/White - 6 (pair #2) 6 (pair #2)
White/Brown + 7 (pair #4) 7 (pair #4)
Brown/White - 8 (pair #4) 8 (pair #4)
100Mb/s Ethernet - Workstation to Workstation (Cross-Over)h
NOTE: To maintain CAT5 specs, you need to keep the twisted pairing CORRECT
NOTE #2: Wire color really doesn't matter but these are according to the
EIA-568 spec.
Wire Color
Solid / Striped
Color color Polarity RJ-45 RJ-45
------------------- -------- ----------- -----------
White/Orange + 1 (pair #1) 3 (pair #1)
Orange/White - 2 (pair #1) 6 (pair #1)
White/Green + 3 (pair #2) 1 (pair #2)
Blue/White - 4 (pair #3) 4 (pair #3)
White/Blue + 5 (pair #3) 5 (pair #3)
Green/White - 6 (pair #2) 2 (pair #2)
White/Brown + 7 (pair #4) 7 (pair #4)
Brown/White - 8 (pair #4) 8 (pair #4)
T1 cable - T1 port to Telco
Looking at the RJ45 connector, connectors pointing up and facing you
(strain relief tab pointing away from you:
/-----------------/ Looking at the connector
/ / +---+
+-1-2-3-4-5-6-7-8-+ | |
| | | | | | | | | | +------+ +------+
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
| | +-----------------+
\\ \\ 1 2 3 4 5 6 7 8
Conductor Polarity RJ-45 #1 RJ-45 #2
--------- -------- --------- -------
orange/white 1 1
orange 2 2
blue 4 4
blue/white 5 5
pins 3,7,8 not used
T1 cross-over cable - T1 port to T1 port
Looking at the RJ45 connector, connectors pointing up and facing you
(strain relief tab pointing away from you:
/-----------------/ Looking at the connector
/ / +---+
+-1-2-3-4-5-6-7-8-+ | |
| | | | | | | | | | +------+ +------+
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
| | +-----------------+
\\ \\ 1 2 3 4 5 6 7 8
Conductor Polarity RJ-45 #1 RJ-45 #2
--------- -------- --------- -------
orange/white 1 4
orange 2 5
blue 4 1
blue/white 5 2
pins 3,7,8 not used
Troubleshooting RS-232 serial signals with a breakout box
When the PC (DTE wiring) first turns on [non-initialized] -
NOTE: This stage is where only ONE PC's serial device is connected
to the breakout box. The other side of the serial connection should
be disconnected. You should see:
TD - low
RTS - low
DTR - low
When the serial port is configured to respond to requests on the given serial
port [initialized by loading minicom, hyperterminal, whatever)] - (Again, the
PC's serial device should be ONLY connected to the breakout box, the other side
of the serial cable should be disconnected), you should see:
TD - low
RTS - high
DTR - high
When the PC (DTE wiring) is first turned on, [non-initialized] - (Now the
serial device should be connected to the breakout box and then to another
serial device like a modem or another PC via a Null modem cable), you should
see:
TD - low
RD - low
RTS - low
CTS - low
DSR - low
DTR - low
When the port is configured to respond on the serial port [initialized] (router
connected to the breakout box and then the modem), you should see:
When the serial port is configured to respond to requests on the given serial
port [initialized by loading minicom, hyperterminal, whatever)] - (the PC's
serial port should be connected to the breakout box and then to another serial
device like a modem or another PC via a Null modem cable), you should see:
TD - low
RD - low
RTS - high
CTS - low
DSR - low
DTR - high
Finally, when the serial devices are properly communicating with another
serial device, you should see:
TD - low
RD - low
RTS - high
CTS - high
DSR - high
DTR - high
RS-232 RJ45 and DB9 standards and additional referencies
DB-9
DB-25
Signal
Function
Adapter
RJ-45
8
5
CTS
Clear To Send
Blue
1
1
8
DCD
Data Carrier Detect
Orange
2
2
3
RD
Received Data
Black
3
5
7
SG
Signal Ground
Red
4
5
7
SG
Signal Ground
Green
5
3
2
TD
Transmitted Data
Yellow
6
4
20
DTR
Data Terminal Ready
Brown
7
7
4
RTS
Request To Send
White
8
6
6
DSR
Data Set Ready
-
-
9
22
RI
Ring Indicator
-
-
The Green and Red wires in the RJ-45 adapter must be soldered or crimped together.
Some DTE devices require the DSR (Data Set Ready) signal. This signal is
usually provided by the DCE device. If you have a DTE device (such as a
terminal) that requires the DSR signal, wire pins 20 and 6 (4 and 6 on a DB-9
connector) together. This way, the DTE device will receive the DSR signal from
itself when it asserts the DTR signal.
DB-9
DB-25
Signal
Function
Adapter
RJ-45
8
5
CTS
Clear To Send
White
8
1
8
DCD
Data Carrier Detect
Brown
7
2
3
RD
Received Data
Yellow
6
5
7
SG
Signal Ground
Green
5
5
7
SG
Signal Ground
Red
4
3
2
TD
Transmitted Data
Black
3
4
20
DTR
Data Terminal Ready
Orange
2
7
4
RTS
Request To Send
Blue
1
6
6
DSR
Data Set Ready
-
-
9
22
RI
Ring Indicator
-
-
The Green and Red wires in the RJ-45 adapter must be soldered or crimped together.
On some printers, pin 7 of the RJ-45 adapter (the brown wire) should be
connected to the Data Set Ready (DSR) line (pin 6 on both DB-25 and DB-9).
Read your printer documentation to find out if it provides useful handshaking
signals on DSR instead of DCD.