On Monday 07 December 2009 21:47:50 sergio.sorrenti wrote:
> > I'm doing another cable, but I am unsure which pin is pin-1 on the
> > RJ45.
I was bit skeptical about my own understanding on the wiring. My first
interrogation was about the RJ45 wiring: is TX on the RJ45 to be
interpreted as "TX from sim.one", or "connect to TX on PC side". Yeah,
the question sounds stupid, and I may pass for a noob, but I found the
answer neither on the schematics, nor on the wiki (maybe I missed it
somehow).
My second interrogation was wether all of the DTR/CTS/RTS/... stuff was
realy required. In my (humble) experience, I always used only a three-wire
serial cable, and all was always OK.
So, I made my cable (took a bit of a time, I am a bit clumsy), and wanted
to print it black-on-white, so others will find the answer. So:
- TX on the Sim.One side means "TX from Sim.One" and we need a so-called
NULL-modem cable, not a straight one
- only TX/RX and GND are required
- I used a standard 8-wire Cat5e cable
- I used a different wire for each of the GND signals on the RJ45, this is
supposed to offer better noise isolation (but at 57600, who cares?)
- those two wires got tied together to the single GND signal on the DB9
- I used a DB9 with a cover and a 'blocker' to relieve the soldering from
any strain (traction & bending) applied to the cable
RJ45, Sim.One side
Pin# Signal name Cable colour
1 RTS brown
2 DTR brown/white
3 TX green
4 GND green/white
5 GND blue
6 RX blue/white
7 DSR orange
8 CTS orange/white
DB9, PC side
Pin# Signal name Cable colour
1 DCD N/C
2 RX green
3 TX blue/white
4 DTR N/C
5 GND green/white + blue
6 DSR N/C
7 RTS N/C
8 CTS N/C
9 RI N/C
Briefly, it is:
RJ45 DB9
3 <---> 2
6 <---> 3
4 <---> 5
5 <---> 5
The signals are N/C (not connected) on the DB9 side, as it is much easier
to solder/de-solder on the DB9, than it is to add/remove a wire in an RJ45!
Of course, change the colours accordingly to how you fit the wires in your
RJ45 connector! :-)
Hope this will be helpfull to anyone.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
`------------------------------^-------^------------------^--------------------'