Please login or register.

Login with username, password and session length

Author Topic: Cable for CM12U  (Read 4163 times)

balanga

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 18
Cable for CM12U
« on: August 17, 2018, 06:04:03 AM »

The connection cable for my CM12U has broken, but after stripping the end of the cable I see four wires - red, black, green and yellow. I thought of connecting them up to a USB-TTL adapter such as

https://www.amazon.co.uk/HiLetgo-CP2102-Serial-Converter-Module/dp/B00LODGRV8/ref=sr_1_7?s=industrial&ie=UTF8&qid=1534499608&sr=1-7&keywords=usb+ttl

or a Bus Pirate

https://www.amazon.co.uk/Seeed-Studios-Bus-Pirate-BPv3-6/dp/B00PUOVO3S/ref=sr_1_cc_2?s=aps&ie=UTF8&qid=1534499746&sr=1-2-catcorr&keywords=bus+pirate

Which pins do the wires connect to?  I presume black is GND, green and yellow are RXD and TXD, and red will be power...
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13295
Re: Cable for CM12U
« Reply #1 on: August 17, 2018, 07:05:14 AM »

More information needed.
Exactly what cable is this? Serial or USB.
How does TTL come into play? TTL is not a serial or USB protocol.
We can't give you the connections just from the colors. You are going to need to test them with a meter and exactly what pin they are connected to on the good end.

The cable that plugs into the CM12U. Is the DB9 to RJ11 phone style cable. It is a serial protocol and is not TTL.
« Last Edit: August 17, 2018, 02:17:13 PM by Brian H »
Logged

JeffVolp

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 122
  • Posts: 2299
    • XTB Home Page
Re: Cable for CM12U
« Reply #2 on: August 17, 2018, 10:14:54 AM »

From the CM11A protocol document:

        http://jvde.us/info/cm11a_protocol.txt

2.1 Cable connections:

        Signal  DB9 Connector   RJ11 Connector
        SIN      Pin 2                Pin 1
        SOUT   Pin 3                Pin 3
        GND     Pin 5                Pin 4
        RI        Pin 9                Pin 2

where:  SIN      Serial input to PC (output from the interface)
           SOUT   Serial output from PC (input to the interface)
           GND     Signal ground
           RI        Ring signal (input to PC)

Jeff
Logged
X-10 automation since the BSR days

balanga

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 18
Re: Cable for CM12U
« Reply #3 on: August 18, 2018, 03:11:20 AM »

More information needed.
Exactly what cable is this? Serial or USB.
How does TTL come into play? TTL is not a serial or USB protocol.
We can't give you the connections just from the colors. You are going to need to test them with a meter and exactly what pin they are connected to on the good end.

The cable that plugs into the CM12U. Is the DB9 to RJ11 phone style cable. It is a serial protocol and is not TTL.

The cable in question is the DB9 to RJ11. I have one which is intact as well as the one which is broken. I'm being told on another forum that heyu is not working on FreeBSD because I'm using the wrong USB-DB9 adapter

I have two.

One like this:-

https://www.amazon.co.uk/USB-RS232-Converter-Cable/dp/B00077DJIQ/ref=pd_sbs_23_6?_encoding=UTF8&pd_rd_i=B00077DJIQ&pd_rd_r=9347c5b3-a2b3-11e8-baaa-695f757b40ed&pd_rd_w=wmpeQ&pd_rd_wg=CW6aj&pf_rd_i=desktop-dp-sims&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_p=85d62760-2a0e-407d-aa36-f3c03afc01c3&pf_rd_r=Y1HB7Q88SQ0FAD97SH7N&pf_rd_s=desktop-dp-sims&pf_rd_t=40701&psc=1&refRID=Y1HB7Q88SQ0FAD97SH7N

And one like this:-

https://www.amazon.co.uk/CSL-serial-RS232-adapter-Black/dp/B01MFBN67D/ref=sr_1_7?s=computers&ie=UTF8&qid=1534575484&sr=1-7&keywords=usb+rs232+adapter

Apparently I need something that has the FTDI chipset.

Here is some info about using a Bus Pirate as an FTDI cable:-

https://blog.zencoffee.org/2011/07/bus-pirate-as-ftdi-cable/

so I'm trying figure how to connect my CM12U cable to a Bus Pirate. The cable has the RJ11 connector at one end and four wires at the other.
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13295
Re: Cable for CM12U
« Reply #4 on: August 18, 2018, 06:54:20 AM »

From a web search.
The Buss Pirate is an open source board and be used to program things like an Arduno Board. The signals on the ten pin header are the ones needed to program an Arduno.

It does not have RS232 Serial protocol signals on it. That are needed to use it with a CM12U.

Can you get a USB to Serial Port adapter and we can tell you what wires to connect to a DB9 connector. So it can interface with your CM12U with the needed signals.
 
One thing the CM12U uses the RI (Ring Indicate) signal. So you have to make sure the RI signal is on the DB9 connector of the adapter. I found a small FTDI Inc. USB to RS232 board but it did not include the needed RI signal. I will let you know if I find anything more.
« Last Edit: August 18, 2018, 09:03:02 AM by Brian H »
Logged

balanga

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 18
Re: Cable for CM12U
« Reply #5 on: August 18, 2018, 11:29:58 AM »

From a web search.
The Buss Pirate is an open source board and be used to program things like an Arduno Board. The signals on the ten pin header are the ones needed to program an Arduno.

It does not have RS232 Serial protocol signals on it. That are needed to use it with a CM12U.

Can you get a USB to Serial Port adapter and we can tell you what wires to connect to a DB9 connector. So it can interface with your CM12U with the needed signals.
 
One thing the CM12U uses the RI (Ring Indicate) signal. So you have to make sure the RI signal is on the DB9 connector of the adapter. I found a small FTDI Inc. USB to RS232 board but it did not include the needed RI signal. I will let you know if I find anything more.

Thanks for the info on the Bus Pirate. I will abandon my attempts to make use of that in this instance.

By USB to Serial Port adapter do you mean one of these, because there seem to be many different type

https://www.ebay.co.uk/itm/USB-To-RS232-TTL-UART-PL2303HX-Converter-USB-to-COM-Module-Serial-Cable-Adapter/253574390218?hash=item3b0a3621ca:g:ynoAAOSwsaZa2n8y

I also have two USB to serial adapters which have DB9 plugs on them.

I also have
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13295
Re: Cable for CM12U
« Reply #6 on: August 18, 2018, 12:55:26 PM »

The adapter you linked to is a USB to TTL and does not have the needed RI signal on it.
You have a USB to serial adapter with the DB9 connector now?
Is the problem the cable to the CM12U has a broken DB9 plug on it so you cut it off and now have the four wires?
Basically you need to get the adapters you now have to the modified cable for the CM12A.
Logged

balanga

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 18
Re: Cable for CM12U
« Reply #7 on: August 18, 2018, 02:17:53 PM »

The adapter you linked to is a USB to TTL and does not have the needed RI signal on it.
You have a USB to serial adapter with the DB9 connector now?
Is the problem the cable to the CM12U has a broken DB9 plug on it so you cut it off and now have the four wires?
Basically you need to get the adapters you now have to the modified cable for the CM12A.

No, the problem is that I am unable to use Heyu on FreeBSD with the two USB-serial adapters I have.

I have a complete cable and one with just an RJ11 connector. The two adapters work fine when I use Heyu on Linux, but apparently the driver which FreeBSD uses does not work with that chipset. I'm told I need an adapter which uses an FTDI chip. This is all way over my head, but I thought I might be able to hook up my broken cable to a 6 pin adapter, but it seems far more complicated than I imagined.

I notice on this adapter there is an RI indicator

https://www.ebay.co.uk/itm/5V-3-3V-FTDI-FT232RL-USB-to-TTL-Serial-Converter-Adapter-Module-For-Arduino-TR/153119409114?_trkparms=aid%3D555018%26algo%3DPL.SIM%26ao%3D2%26asc%3D52945%26meid%3D236e20e7e83849c7bb2afd9187240cdd%26pid%3D100005%26rk%3D4%26rkt%3D12%26sd%3D222727769676%26itm%3D153119409114&_trksid=p2047675.c100005.m1851

Would that be any good?
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13295
Re: Cable for CM12U
« Reply #8 on: August 18, 2018, 06:44:14 PM »

Thanks for the information.
The two USB to Serial adapters you have don't work with FreeBSD.
I will see what I can find out.
No the board will not work. It is USB to TTL signal levels 5 volts and 0.
RS232 are a minus voltage to positive voltage swing. -3 to +3 minimum to -25 to +25 maximum.
If the adapter board had the FTDI chip connected to an RS232 chip. It probably would work.
Logged

balanga

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 18
Re: Cable for CM12U
« Reply #9 on: August 19, 2018, 02:08:49 AM »

Thanks for the information.
The two USB to Serial adapters you have don't work with FreeBSD.
I will see what I can find out.
No the board will not work. It is USB to TTL signal levels 5 volts and 0.
RS232 are a minus voltage to positive voltage swing. -3 to +3 minimum to -25 to +25 maximum.
If the adapter board had the FTDI chip connected to an RS232 chip. It probably would work.

Many thanks for taking a look.

To the untrained eye all these connectors look the same.

Here's one which includes FTDI - would it be OK?

https://www.ebay.co.uk/itm/FTDI-FT232RL-USB-to-Serial-adapt-module-USB-TO-TTL-RS232-Arduino-Cable-6Pin-JH/123180953204?hash=item1cae282e74:g:0aEAAOSwv-NWYE0M
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13295
Re: Cable for CM12U
« Reply #10 on: August 19, 2018, 08:15:41 AM »

No. The clue is USB to TTL in the description.
You need USB to RS232.
Logged

balanga

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 18
Re: Cable for CM12U
« Reply #11 on: August 29, 2018, 10:40:31 AM »

No. The clue is USB to TTL in the description.
You need USB to RS232.

I have a Bus Pirate which I've just connected up to my FreeBSD PC and it is identified as

<FTDI FT232R USB UART>

uftdi0: <FT232R USB UART>

I'm going attempt to connect it to the DB9 plug of the CM12U cable via a DB9 connector which four pins on it labelled GND RXD TXD VCC to the Bus Pirate once I've figured which pins to use and then maybe it will work.... (or maybe not)...
Logged

Brian H

  • Community Organizer
  • Hero Member
  • ***
  • Helpful Post Rating: 305
  • Posts: 13295
Re: Cable for CM12U
« Reply #12 on: August 29, 2018, 11:03:18 AM »

post #2 here. Gives you the pin out.

There is no power on the CM12U cable. SIN, SOUT, GND and RI.

You also need RS232 level signals. All I see on the Buss Pirate schematic is TTL.
« Last Edit: August 29, 2018, 11:41:54 AM by Brian H »
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.