Skip to content

DSC5401 PC interface

ggodart edited this page Jan 4, 2021 · 3 revisions

Introduction

This document presents the integration between Misterhouse (MH) and the DSC Alarm System via its PC5401 serial module.

Compatibility

The PC5401 is compatible with the following PowerSeries control panels:

  • Power432™ PC580
  • Power632™ PC1555MX
  • Power832® PC5010/5015
  • Power864™ PC5020

Hardware Installation

  • Remove the existing PC5400 printer module (with the main panel powered down)
  • Enable DSC Alarm Supervision (function 902)
  • Now install PC5401 Serial Module (With the main panel powered down)
  • Enable DSC Alarm Supervision (function 902)

DSC5401 Serial Module

Carefully read the DSC documentation for all official specifications. Adding the PC5401 to your Alarm Panel requires that you re-calculate the total panel current draw to ensure that the power requirement does not exceed the current available on the panel power supply. The PC5401 requires 35mA

Baud Rate Selection

BAUD selection can only be changed by cycling power to the module (Default: 9600 BAUD)

Baud rate selection table:

Baud JP3 JP2 JP1
4800 ON ON OFF
9600 OFF OFF OFF
19200 ON OFF ON
57600 ON OFF OFF

Module connection

image:MH_DSC_PC5401_4.png

  • Connect the module to the KEYBUS,with panel powered down
  • Select the desired BAUD using JP1-3
  • Default is 9600 Baud
  • Connect an RS-232 cable to the application
  • Power up the system

LEDs Indicator

LED Description Normal Operation Notes
Key KEYBUS Link Active GREEN Solid
Pwr Module Status RED Flashing (2 seconds)
RX Serial Communication Activity Flashing when Receiving and transmitting data
Tx Serial Communication Activity Flashing when Receiving and transmitting data

Serial Cable

|| || image:MH_DSC_PC5401_5.png || ||

|| 2 Red (TX) || || 1-6-4 Jump (DCD, DSR et DTR) || || 3 Black (RX) || || 7-8 Jump ensemble (CTS et RTS) || || 5 Yellow (SG) || || 9 NC (RI) || || 1-4-6-7-8-9 NC || || 2 Red (RX) || || || || 3 Black (TX) || || || || 5 Yellow (SG) ||

MisterHouse Integration

The MH.PRIVATE.INI file must be configured properly to integrate the PC5401 into MisterHouse. You may also begin your personal code with the following examples.

There are two sets of example files in mh/code/examples/DSC5401. You can choose either of these sets as templates to copy into your personal code directory.

  • DSC5401-2nd_approach.pl: This is a monolithic file that shows different ways to interface with the DSC5401 library including writing log files to an SQL interface.
  • DSC5401startup.pl, DSCmotion.pl, DSC_Clock.pl, DSC_Alert_Controls.pl: This set of examples shows how you can split the DSC5401 functionality into multiple files.

The key to using the DSC5401 library is to include the following line somewhere in your user code:

{{$DSC=new DSC5401;}}

Also included is this release:

  • DSC5401_web.pl, DSC5401_status.pl, DSC5401_web_content.pl: These provide a web interface with zone Status, etc. that rely on the fact that you created a DSC5401 object called $DSC. You can access the web interface at http://servername:port/bin/DSC5401_web.pl

Some entries in in the code are needed to trigger specific events, like thermostat broadcast etc. The card mainly allows passive events (no user intervention), so it listen to the serial port for information provided by the card. The module will change state in response to the information received

MH.PRIVATE.INI Configuration

Look at mh/bin/mh.ini for a list of the valid parameters. They all start with DSC_5401. Here is a list of some of them and a quick explanation.

  • DSC_5401_module=DSC5401

Required. Tells mh that we have a DSC5401.

  • DSC_5401_serial_port=/dev/dsc

Required. Tells mh where to find the DSC5401. Most likely set to "COM1:" or "/dev/ttySx".

  • DSC_5401_baudrate=57600

Required. Baudrate of the serial connection. Set it to match the hardware setting as explained above in DSC5401 PC interface#BaudRate

  • DSC_5401_verbose_arming=1

Optional, recommended. Activates a more verbose form of arming notification that allows mh to differentiate between the different types of arming (e.g. Armed Stay vs Armed Away)

  • DSC_5401_time_log=1

Optional. Tells MisterHouse to log time broadcast events.

  • DSC_5401_ring_log=1

Optional. Tells MisterHouse to log telephone ringing events.

  • DSC_5401_temp_log=1

Optional. Tells MisterHouse to log temperature readings, if you have the required hardware installed in the DSC5401.

  • DSC_5401_part_log=1

Optional. Tells MisterHouse to log changes to partition status.

  • DSC_5401_zone_log=1

Optional. Tells MisterHouse to log changes to zone status. This will create A LOT of messages.

  • DSC_5401_user_0001=User1
  • DSC_5401_user_0002=User2

Optional, recommended. Lets MisterHouse use user names instead of user numbers when reporting who arms/disarms the system.

  • DSC_5401_part_1=Partition1
  • DSC_5401_part_2=Partition2

Optional, recommended. Lets MisterHouse use partition names instead of partition numbers when reporting partition status.

  • DSC_5401_zone_001=Front Door
  • DSC_5401_zone_002=Garage Door

Optional, recommended. Lets MisterHouse use zone names instead of zone numbers when reporting zone status.

Clone this wiki locally