SOLVED: Serial port - female DCE to male DTE?
Posted: Wed May 15, 2013 10:54 pm
I have another thread about building my own TTL-RS232 converter, but at this point my pre-made converter has arrived before my Maxim parts have.
I got the pre-made board hooked up and verified that it worked by logging in via the serial console.
I then modified the cmdline.txt and inittab files to disable the serial console and, using minicom on the RPi and TeraTerm and PuTTY on my desktop, verified that regular 9600-8-N-1 serial communication works.
Now I need to get my 9600-8-N-1 equipment to talk to the RPi. I guess that my PC serial port is DTE and my equipment is DCE and they communicate just fine.
I guess the port given by the MAX3232 board is also DCE(?).
The connection situation, as of now, is as follows:
- PC has male DB9 (DTE)
- RPi has female DB9 (DCE?)
- My equipment has female DB9 (DCE)
- I have a couple of male DB9 connectors and some cables that I want to use to connect the female DB9 on the RPi to the female DB9 on my equipment so that I can use the RPi to log the data coming from my equipment.

(forum shrinks images - full size at http://i44.tinypic.com/xdw1lz.jpg)
I suppose that, if what's in my head is correct, to change the gender of the RPi connector and change from DCE to DTE (thus giving me basically what I have on my original PC) I would create this mystical cable as follows:
DB9M-1 Pin 5 --to-- DB9M-2 Pin 5
DB9M-1 Pin 2 --to-- DB9M-2 Pin 3
DB9M-1 Pin 3 --to-- DB9M-2 Pin 2
Is this correct, or is there more to it? I've tried cabling it up but I get nada on the minicom screen on the RPi.
I got the pre-made board hooked up and verified that it worked by logging in via the serial console.
I then modified the cmdline.txt and inittab files to disable the serial console and, using minicom on the RPi and TeraTerm and PuTTY on my desktop, verified that regular 9600-8-N-1 serial communication works.
Now I need to get my 9600-8-N-1 equipment to talk to the RPi. I guess that my PC serial port is DTE and my equipment is DCE and they communicate just fine.
I guess the port given by the MAX3232 board is also DCE(?).
The connection situation, as of now, is as follows:
- PC has male DB9 (DTE)
- RPi has female DB9 (DCE?)
- My equipment has female DB9 (DCE)
- I have a couple of male DB9 connectors and some cables that I want to use to connect the female DB9 on the RPi to the female DB9 on my equipment so that I can use the RPi to log the data coming from my equipment.

(forum shrinks images - full size at http://i44.tinypic.com/xdw1lz.jpg)
I suppose that, if what's in my head is correct, to change the gender of the RPi connector and change from DCE to DTE (thus giving me basically what I have on my original PC) I would create this mystical cable as follows:
DB9M-1 Pin 5 --to-- DB9M-2 Pin 5
DB9M-1 Pin 2 --to-- DB9M-2 Pin 3
DB9M-1 Pin 3 --to-- DB9M-2 Pin 2
Is this correct, or is there more to it? I've tried cabling it up but I get nada on the minicom screen on the RPi.