How to wire a 9 pin serial connector into a RJ11 4pin connector

pinoutserial

I am working on a project, the door control system I am using is a bit old, and it works through a serial connector on a 4 pin RJ11 line. I am currently trying to wire an old serial wire into its RJ11 wire, so I can get my raspberry pi to work with it. (I am using a USB to serial connector on the pi)

However, the problem is I don't know which wire goes into what. The door controller is one I got was from a friend's deconstruction project. Its a Stanley Access Technologies MC521 controller.

The RJ11 has 4 colors on it, black, red, green, and yellow from order left to right. And has the text RS232 near it. A signal was detected on the red wire when it boots on.

any ideas?

Best Answer

You may be able to trace the connections out on the board. If it goes to a standard RS-232 interface chip such as a MAX232 or MC1488/9 then you have at least part of the answer.

If it's a 3-wire interface (pretty common) there will be only three wires required- ground, which you should be able to trace out easily. Data input which will go somewhere on the board (other than ground) and won't measure much, if any, voltage when the unit is powered, and Data output, which should measure significant voltage (mark state/idle voltage on RS-232 is usually -9 to -15V).

That's assuming it's RS232. If it's some other serial protocol, you're not going to have much luck figuring it out, I fear. Also, if it can affect security there will probably some protection against spoofing the signals, cryptographic or otherwise, for obvious reasons.