LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-12-2013, 04:02 PM   #1
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Rep: Reputation: Disabled
Could please tell me the pin numbers of d'sub-9 and d'sub-25 adapter.


Could you please tell me the d'sub-9 and d'sub-25
adapter's wire numbers as all the 8 wires (red,
orange, white, black, green, blue,yellow, brown)
come out from two rows (inside an adapter body)so
I can't determine which wire should match the
corresponding wire at the adapter's rj45 plug end.


The connectors are marked with numbers written
beside their holes but wires are not marked.

I want to make null modem cable with rj45(cat5)
and db9/db25 modular adapter. I know the first
pin to last pin position at the rj45 plug end
of an adapter(1st pin position at rj45 plug-hole
must be on my left if I hold the adapter keeping
its clip-lock portion downwards) but I can't
determine the corresponding wires that come
out of the adapter as, at the rj45 plug end,
the pins are set in a single row(Pin 1 -->Pin 8)
but inside the adapter, the wires are set in
two rows so which row and what side a wire should
match the first pin position at the adapter's rj45
plug end?


I if I knew which wire of an adapter represents the
first pin position of the rj45 plug end then all
the other pin positions can be determined easily.

I've made it a bit lengthy. I'm sorry.
 
Old 02-12-2013, 04:15 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,247

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
I do not understand everything you wrote, but here is nice compendium of pinouts including DB9 and DB25. These connectors as I known hasn't standardised wires colors. Also look main page for more.

Last edited by eSelix; 02-12-2013 at 04:17 PM.
 
Old 02-12-2013, 04:48 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,361

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
AFAIK RJ-45 to DB-9 is not a standardized pinout. It is often used in Cisco equipment to connect a console. In this case you should look up the manufacturer's documentation as to which pin on the RJ-45 should connect to which pin on the DB-9.

To get the pinout right on male an female DB-9/25 connectors, the pin numbers are written next to the pins or the sockets. In 1pt numbers or so, look carefully.

jlinkels
 
1 members found this post helpful.
Old 02-12-2013, 05:08 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,476

Rep: Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885
I believe the OP is asking about the pin pattern (back side) of the adapters RJ45 jack. A quick google showed no standard i.e it could be either the top or bottom depending on the plug manufacture.

http://kinsun168.en.made-in-china.co...RJ45-Plug.html

Hopefully the following is a standard for DB9/25 - RJ45 adapters so you can visually determine by wire color which is pin 1. An ohm meter if available would tell you which one too.

http://www.networktechinc.com/serial-rj45-adapters.html

Last edited by michaelk; 02-12-2013 at 05:14 PM.
 
1 members found this post helpful.
Old 02-12-2013, 05:49 PM   #5
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,522

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
An ohm meter is going to be the fastest and most foolproof way of matching up individual wires to the pins they're attached to. No fumbling about with conflicting pinout charts or non-standard wire colors, etc.
 
1 members found this post helpful.
Old 02-13-2013, 06:11 AM   #6
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Thank you for your reply and the links you
sent me. Although I visited many but I think
I need to look http://www.networktechinc.com/serial-rj45-adapters.html.

I think, as the wires inside of an adapter are set
in two rows(as the rows of hole or pin we see on
a db9/db25 connector)the first pin is likely to be
the one which comes out from extreme left of the top
row(when I hold an adapter keeping its but block insertion
part downwards). Wires inside an adapter are set in two rows,
1 to 4 and 5 to 8. And, at the back(outside) of the rj45 plug-end, the cat5 wires are to inserted into the single row
of pins, 1 to 8. It's my best guess.



|...............|
| 1 2 3 4 |
| 5 6 7 8 |
|...............|
|---..........--|
|12345678|
....|--------|

Last edited by vectrum; 02-13-2013 at 06:18 AM.
 
Old 02-13-2013, 06:16 AM   #7
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,361

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
As it seems according to that page you mention there is some common way to do it. Very good.

But ... all the information you need is in that drawings. What information are you still lacking? You should look very carefully from which side (front, back) the connectors are depicted.

jlinkels
 
Old 02-13-2013, 06:34 AM   #8
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
I have checked as you said. I have made a null modem cable with rs232 (db9 to db25) to run vt terminal. It's working and, now I want to extend the connection with cat5 cable as rs232 cable is a bit costly(you know :-) ). Connecting db9 to
db25 null modem connection is easy but here I have to deal with another set of wires, cat5. In serial connection we need 10 wires but here, total number of wire is 8 so one signal is missing. Pin 1(signal ground) or Pin5/Pin7 (frame ground) can be omitted.

Regards to you.

Last edited by vectrum; 02-13-2013 at 06:35 AM.
 
Old 02-13-2013, 06:44 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,476

Rep: Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885
I would of guessed that the pattern would either be
Code:
1357 
2468
or
2468
1357
Does your drawing match the adapter website?

What is the make/model of your VT terminal. Does it really use 10 wires?

Last edited by michaelk; 02-13-2013 at 06:52 AM.
 
Old 02-13-2013, 07:41 AM   #10
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,361

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
No, you need less than 10 wires.

If you look at that web page you sent me, you see that there are 2 types of adapters, RJ-45 <-> DB9 and RJ-45 <-> DB25. Just create 2 of those adapters and wire them according to the tables. Or connect the UTP directly to the DB9/DB25 also using those tables.

For a VT-100 you basically only need TX, RX and GND, but you have to set the dip switches at the terminal to ignore DSR, DTR, CTS and RTS and/or you must tie (DSR+DCD)-DTR and CTS-RTS together.

The latter is a science at its own and without a breakout box with jumper cables and LEDS it is gonna be tedious. Just connect the UTP according to the tables in the top row of that web page. If you did cross RX and TX and CTS en RTS in you null modem cable, do so now as well.

jlinkels
 
Old 02-13-2013, 09:35 AM   #11
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Hi,

No, my drawing doesn't match the drawings of that site 'cause
I tried to draw the all the wire positions of an adapter which is yet to be connected.

I am running VT520 terminal. I've made my null cable with 9 wires, not 10. Sorry.

DB9_Pin_No.--(wire no.)----DB25_Pin_No.
3(TD)----------1st-------------------3(RD)
2(RD)----------2nd-------------------2(TD)

7(RTS)---------3rd-------------------5(CTS)
8(CTS)---------4th-------------------4(RTS)

5(SG)----------5th-------------------7(SG)

6(DSR)---------6th------|______20(DTR)
1(DCD)---------7th------|

4(DTR)_______|-8th---------------6(DSR)
..........................|-9th---------------8(DCD)

jlinkels - thanks again. I carefully
looked inside an adapter again and discovered
another feature. The two rows are not evenly
placed or stacked. One row is one place
away from the other row as, we see the hole or pin
positions on a db9 or db25 connector.
 
Old 02-13-2013, 10:28 AM   #12
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,361

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
While you still have that DB9-DB25 cable, try to tie DSR to DCD:

Code:
4(DTR)_______|-8th---------------6(DSR)
             |-9th---------------8(DCD)
Now you need only 8 wires. On the other side this is also done:
Code:
6(DSR)---------6th------|______20(DTR)
1(DCD)---------7th------|
If it doesn't work, it doesn't work. You won't break anything.

BTW the maximum length for RS232 is 15 meters by specification. 20 meters will also work, but realize that beyond a certain distance you have to lower your bitrate.

jlinkels
 
Old 02-13-2013, 11:39 AM   #13
vectrum
Member
 
Registered: Jul 2011
Posts: 59

Original Poster
Rep: Reputation: Disabled
Thanks. I had already done what you have said
_6
4 <
_8

but couldn't keep the formatting so I've had to fill the left most columns with dots(.).
Quote:
..........................|-9th---------------8(DCD)
I tied db25's dsr and dcd to db9's dtr (exactly as said).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Print numbers and associated text belonging to an interval of numbers Trd300 Linux - Newbie 27 03-11-2012 05:58 AM
[SOLVED] find the total of numbers that are higher than x in a text file with numbers (using awk??) Mike_V Programming 12 11-24-2010 09:51 AM
my PSU socket & connector have different pin numbers newbiesforever General 2 06-28-2008 12:14 AM
CPU 12-V power supply: 4-pin or 8-pin? michapma Linux - Hardware 3 07-23-2007 10:13 AM
sequence of numbers, how to extract which numbers are missing jonlake Programming 13 06-26-2006 03:28 AM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration