Cyberax's Blog

dsc

So I've recently set up my alarm system to work with my home automation and with my security company. It works really well, and I'm delighted by the results.

Here's one problem, though. I like in-garage deliveries from Amazon, and I'd like to automatically disarm the garage partition when the delivery driver operates the garage door opener. And then re-arm the partition once the delivery driver leaves (of course, if the main partition is still armed).

Planning

First, I looked at doing everything using software only. I have an Envisalink card connected to my DSC alarm, so writing a HomeAssistant automation is fairly straightforward. I just

Ratgdo wiring

Assembling the synchronizer

Placing everything on a panel

Terminal blocks

Optocouplers

Power

Arduino programming

Testing

#dsc #homesetup

Discuss...

It's time to set up my new alarm system, after moving everything to a location downstairs and wiring up everything using Ethernet (see structured wiring for DSC). I have a DSC PC-1864 alarm, and here are some notes about setting it up. And it turned out to be not at all scary, once I found the right software!

First, I needed to ensure that the alarm is back in the factory configuration, this is easily done by shorting the PGM1 output with Zone 1 input (while the alarm unpowered) and then connecting the board to power for 10 seconds. After the reset, you can check that everything is working by getting into the installer mode using the default password (5555): "*8 5555". Now it's ready for the zone setup.

There is a nice blog from Chris Schuld detailing the alarm setup for his home. I did something similar before, but it's completely unintuitive and error-prone. But it turns out that DSC produces (a somewhat crappy) Windows-based software that can be used to set up their alarms using a visual UI.

It's called DLS-5, and it's a free download that is normally locked on the installer-only section of their website. Fortunately, it can be bought for $40 from https://www.credexalarmsystems.eu/en/dsc-software-dls5.html The panels are region-specific, so I made sure to get the North America (NA) version.

I also bought a PC-Link cable, CredexAlarmSystems sells them, but I found one much cheaper on eBay. I also bought one of the “PC-Link Adapter” cables from eBay for around $25, after failing to make the DLS work: PC-Link Adapter

Ultimately, both cables worked fine, after I found (by accident) the correct way to connect them, see below for the details.

These cables are simple pass-through serial cables, so you should be able to just connect any other USB-serial adapter, but I had no luck connecting my RaspberryPi adapter with female ferrule-style pins.

Connecting the DLS

System setup

Setting up the zones

Setting up partitions

Envisalink

#dsc #homesetup

Discuss...

DSC alarm panels are usually a veritable rats' nest of wires and strange connectors, so I decided to try and clean up my panel by using structured wiring. This makes a lot of sense, standard Ethernet wiring is good enough for 2 amps for a single pair, which provides more enough power for the DSC panel and alarms.

My house uses a Legrand On-Q enclosure, so I used an AC1015 Network Interface Module to terminate the wires from sensors in individual zones. At this point, I spent some time deciding on the way to map the wiring from the DSC standard to the T-568A Ethernet pinout.

Security alarms typically use cables with 4 wires: Black, Red, Green and Yellow. Sometimes cables might have Blue wires instead of Green ones.

This is the Ethernet wiring mapping that I came up with:

T-568A 4-wire Meaning
WhiteGreen
Green
WhiteOrange Black 12V(–)
Blue Red 12V(+)
WhiteBlue Green (Blue) KEYBUS
Orange Yellow KEYBUS
WhiteBrown
Brown

DSC uses the Black and Red wires for 12V DC power supply, so it's important to make sure that they are not connected to the same Ethernet pair (for example, do NOT connect them to blue and white-blue). This way, if you accidentally plug in a regular Ethernet device into a DSC plug, there won't be any magic smoke emitted.

Additionally, I used RJ11 phone jacks with 4-wire cable instead of the regular CAT6 cable for the zone-to-alarm wiring. It saves a bit of space and makes sure they are visibly distinct from Ethernet jacks. RJ11 jacks are perfectly compatible with the regular CAT6 Ethernet sockets.

Wiring the zones to a patch panel

The first step in organizing the mess was to terminate the wires from zone sensors in the network interface module. This turned out to be pretty easy, I just lined up the wires according to the mapping above and punched them in using a Keystone Punch Down Tool. It can be done with a thin screwdriver, but a proper punch down tool saves a lot of effort.

My alarm wiring shorts the Black wires with Green, and Red wires with Yellow at the door/window sensors. Then the sensor in turn shorts these two 2-wire bundles all together when it's closed. So all four wires end up shorted.

It means that if I connect all these zones to the alarm panel according to the wiring above, I'll end up with shorted +12V and -12V power lines. I have basically two ways to deal with it: I can leave the Black and Red wires (coming up from the sensors) disconnected inside the Network Interface Module, or I can use patch cables that don't have Black and Red wires to connect the door/window sensors to the alarm terminals.

Leaving the wires disconnected inside the Network Interface Module will make any future upgrade from passive sensors to powered motion sensors harder, but it's completely safe. Fortunately, it turned out that shorting the +12V and -12V is not a big deal for the DSC alarm panels, they simply shut down as a result and come back up once the fault is removed. So I decided to just use appropriate patch cables.

Here's how the alarm zone panel looks:

Using extender for zones

Another thing is that I wanted to move my alarm panel into the basement, out of my living room. This is mainly to get rid of an ugly metal cabinet in my food pantry, and also because my wiring cabinet was getting congested.

I added several conduits leading from the basement up into my living room, so there was plenty of space to just run the wires to the panel downstairs. But then I had an idea, I could use a zone expander and just run one wire from it to the control panel!

It worked well, I was able to use just one Ethernet cable to connect the zone expander with the main panel downstairs. Here's how the living room panel looks, and it also holds an Envisalink 4 board that exposes the DSC alarm state for my HomeAssistant: \ Expander And this is the main alarm panel:

Super-tidy!

For comparison, this was the initial look. Expander

Expander wiring

Zone expanders for the DSC alarm systems use the same KEYBUS standard for 4-wire cables. But we need two more modifications: 1. I also need to send the bell (siren) signal up from the main alarm panel. 2. I'd like to have some headroom for power. I have 3 keypads and 1 security camera powered by 12V from the expander, and this is just a bit too close to the maximum rated amperage for the CAT5 cable pairs. So I used up the remaining twisted pair for an additional power line.

This is the updated mapping for the expander-main connection:

T-568A Expander Meaning
WhiteGreen Additional Red MORE POWER
Green Bell (–) Siren
WhiteOrange Black 12V(–)
Blue Red 12V(+)
WhiteBlue Green (Blue) KEYBUS
Orange Yellow KEYBUS
WhiteBrown Additional Black MORE POWER
Brown Bell (+) Siren

As a note for myself, here's the zone mapping between locations and zones, they go in the descending order, from upstairs to downstairs:

Location Expander Zone Global Zone
4th floor door 8 16
3rd floor: balcony door and living room PIR 7 15
2nd floor balcony door 6 14
2nd floor bedroom PIR 5 13
2nd floor entry hallway PIR 4 12
2nd floor entry door 3 11
1st floor bedroom door and window 2 10
1st floor elevator door 1 9
garage PIR Main Panel 8

PIR stands for Passive InfraRed, in other words, motion detectors.

#dsc #homesetup

Discuss...