RJ12 cable question

I'm trying to connect an Arduino or ESP32 to a Renology Wanderer 30A solar charge controller's RJ12 port, which uses the RS232 protocol.

Ultimately I'm trying to read the battery's voltage and array current. I picked up a phone cable at the thriftshop and spliced it and alas it only has 4 connectors, the middle 4:

I found this diagram of RJ12 here:

image

That tells me I have the RX, TX, CTX, RTS pins, but not ground. Any theory on whether I can just use ground from the charge controller's battery or array pins? I checked and it is a common ground between those two pins.

Also, any theory on whether a (3.3v) ESP32 will work (without level shifters), or will I need an Arduino?

Thanks for any help.

As long as you are checking, what is the voltage on the devices TX pin? Most likely will kill your ARduino. Plus RS-232 is positive and negative and the negative will definitely kill your Arduino.

You need an adapter between your Arduino and the device port. Look for an RS-232 to TTL adapter board.

As long as you are checking, what is the voltage on the devices TX pin?

Nothing significant, I'm getting about 12 millivolts. I'm getting significant voltage on CTS though, around 64 volts... This is assuming pinout diagram above is correct.

You need an adapter between your Arduino and the device port. Look for an RS-232 to TTL adapter board.

Thanks for that. How's this look?

https://www.amazon.com/Module-Mutual-Conversion-Arduino-communicates/dp/B091TN2ZPY

Do you have the DVM black wire on one of the connector grounds and the red wire on the pin you are testing? Both voltages you gave are very wrong.

The module you linked to look like they will work for you.

Incorrect cables (and particularly ones with ground missing or in the wrong place) will frequently work due to common earth grounds or internal grounds elsewhere (USB.)
But they can also result in really mysterious and wrong behavior.
It shouldn't be that hard to hunt down a real 6-pin cable (or make one.)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.