DSC Misterhouse PC5401 User manual

DSC Alarm PC54 01 Serial Module
User manual
Misterhouse
DSC Alarm PC5401 Serial Module
Version 1.4 2005-03-03

DSC Alarm PC54 01 Serial Module
http://misterhouse.net/
AUTHO
R
Gaétan Lord

/3
TABLE OF CONTENTS
Page
1INTRODUCTION...............................................................................................................................1
1.2 COMPATIBILITY.............................................................................................................................1
2HARDWARE INSTALLATION.......................................................................................................2
2.1 PC5401 SERIAL MODULE..............................................................................................................2
2.1.1 Baud Rate Selection..............................................................................................................2
2.1.2 Module connection................................................................................................................3
2.1.3 LEDs Indicator......................................................................................................................3
2.2 SERIAL CABLE...............................................................................................................................3
3MISTERHOUSE INTEGRATION...................................................................................................4
3.1 MH.PRIVATE.INI CONFIGURATION............................................................................................4
3.1.1 MH.PRIVATE.INI Configuration File Example ...................................................................5
3.2 DSC SERIAL MODULE PERL LIBRARY..........................................................................................6
3.2.1 Functions Values Access.......................................................................................................6
3.2.2 Variables Values Access .......................................................................................................8
3.2.3 Command List and Data Format..........................................................................................9
3.3 PERL PROGRAMMING ..................................................................................................................10
3.3.1 Basic Example.....................................................................................................................10
3.3.2 Putting All Together............................................................................................................11
3.4 WEB INTERFACE.........................................................................................................................14
3.4.1 Configuration......................................................................................................................14
3.4.2 DSC WEB Interface ............................................................................................................15
3.4.3 Modifying MH status line....................................................................................................16
3.5 LOGS............................................................................................................................................17
4DSC MESSAGES..............................................................................................................................18
4.1 ERROR MESSAGES.......................................................................................................................20
5RESTRICTIONS ..............................................................................................................................21

/4
TABLES
Table 1 - Baud Rate Selection.......................................................................................................................2
Table 2 - LEDs Indicator ..............................................................................................................................3
Table 3 - MH DSC functions........................................................................................................................7
Table 4 - MH DSC Variables........................................................................................................................9
Table 5 - Command List and Format..........................................................................................................10
Table 6 - DSC Messages Description and Format......................................................................................19
Table 7 - Errors Messages Description.......................................................................................................20
FIGURES
Figure 1 - PC5401 Board Component...........................................................................................................3
Figure 2 - Serial Cable..................................................................................................................................3
Figure 3 - DSC Web Page...........................................................................................................................15
Figure 4 - DSC Web log viewer..................................................................................................................16
Figure 5 - DSC Web Status line..................................................................................................................17

/5
CHANGE HISTORY
Change Description Date Version By
Manual creation 2005-01-15 1.0 Jocelyn B.
First general review and adding comments 2005-01-24 1.1 Gaetan L.
Formatting Gaetan comments and complete first release 2005-01-24 1.2 Jocelyn B.
Adding Compatibility information 2005-02-19 1.3 Jocelyn B.
Adding more commands information and making some corrections 2005-03-03 1.4 Jocelyn B.
Review and approval 2005-03-04 1.5 Gaetan L.
Text correction TBD 1.6 TBD
Document release with sample code TBD 2.0 TBD

DSC Alarm PC5401 Serial Module /1
1INTRODUCTION
That document present the integration between Misterhouse (MH) and DSC Alarm System via its
PC5401 serial module. This information and Perl code replace old code (code/public/dsc_pc5401.pl)
included in the MH release 2.97 posted on 01/23/2005.
Notes: Misterhouse can be reach at www.misterhouse.net and DSC Group can be
reach at www.dsc.com
Warnings: This document is our second release and some mistake can exist.
1.2 Compatibility
The PC5401 is compatible with the following PowerSeries control panels:
¾Power432™ PC580
¾Power632™ PC1555MX
¾Power832® PC5010/5015
¾Power864™ PC5020
® ™ - Certain product names mentioned herein may be trade names and/or registered trademarks of DSC and other companies.

DSC Alarm PC5401 Serial Module /2
2HARDWARE INSTALLATION
Warnings: Before installation of PC5401 Serial Module
¾Remove existing PC5400 Printer Module (With panel powered down)
¾Enable DSC Alarm Supervision (function 902)
¾Now install PC5401 Serial Module (With panel powered down)
¾Enable DSC Alarm Supervision (function 902)
2.1 PC5401 Serial Module
For all official specification read carefully DSC documentation. Remember by adding new composite in
your Alarm Panel require to calculate the Current Draw to calibrate de power requirement with panel
power supply. This board require: 35mA
Notes: Its recommended, that all DSC Alarm equipments installation must be done by an
authorize representative (Service Persons Only)
Warnings: Disconnect the AC power supply module and panel batteries before to install
the new card
2.1.1 Baud Rate Selection
¾BAUD selection can only be changed by cycling power to the module (Default: 9600 BAUD)
BAUD JP3 JP2 JP1
4800 ON ON Off
9600 Off Off Off
19200 ON Off ON
57600 ON Off Off
Table 1 - Baud Rate Selection

DSC Alarm PC5401 Serial Module /3
2.1.2 Module connection
DSC PC5401
Serial
DB9
KEYRXTXPWR
JP1
JP3
JP2
RED BLK YEL GRN
DSC Key Bus
Figure 1 - PC5401 Board Component
¾Connect module to the KEYBUS
−With panel powered down
¾Select desired BAUD using JP1-3
−Default is 9600 Baud
¾Connect an RS-232 cable to the application
¾Power up the system
2.1.3 LEDs Indicator
LED Description Normal Operation Notes
KEY KEYBUS Link Active GREEN Solid
PWR Module Status RED Flashing (2 seconds) Solid RED: The module is NOT operating properly
RX
TX Serial Communication Activity Flashing when Receive
and transmit data
Table 2 - LEDs Indicator
2.2 Serial Cable
¾DSC PC5401 Side
−2 Red (TX)
−3 Black (RX)
−5 Yellow (SG)
−1-4-6-7-8-9 NC
¾PC (x86) Side
−1-6-4 Jump (DCD, DSR et DTR)
−7-8 Jump ensemble (CTS et RTS)
−9 NC (RI)
−2 Red (RX)
−3 Black (TX)
−5 Yellow (SG)
(NC = No Connect)
SG -PIN
DCD -1
RX -2
TX - 3
DTR -4
SG -5
DSR -6
RTS -7
CTS -8
RI-9
PIN -SG
1 -DCD
2 - RX
3 - TX
4 - DTR
5 - SG
6 - DSR
7 - RTS
8 - CTS
9 - RI
PC5401
DB9 - Male PC (x86)
DB9 - Male
Figure 2 - Serial Cable

DSC Alarm PC5401 Serial Module /4
3MISTERHOUSE INTEGRATION
To integrate PC5401 into Misterhouse (MH), first configure properly MH.PRIVATE.INI and begin your
personal code with the following example files.
Copy both in your personal MH code directory (ex.: /mh/code/mycode).
¾DSC5401.pm: This module is heart of all functions between the DSC Alarm panel and MH, this will
provide DSC status and manage communications.
¾DSC5401_example.pl: This one his example for your personal code, this had 2 sections.
−The 1st section present example code.
−The second example section is web-based event.
¾DSC5401_web.pl: This will provide a web interface with zone Status, etc. We explain later how to
install this file. For the moment you can copy this file in MH->Web->Bin directory (ex.:
/mh/web/bin)
Some of them are needed to trigger specific event, like thermostat broadcast etc. The card allow mainly
passive event (no user intervention), so it listen to the serial port for information provided by the card.
The module will change state regarding the information receive
3.1 MH.PRIVATE.INI Configuration
There is much information in the mh.private.ini file. These allow getting a better way to display events
information, every zone and user partition.
The mh.private.ini configuration specifications are:
¾User number need 4 digit to define them "9999"
¾Zone number need 3 digit "999"
¾Partition number need 1 digit "9"
¾3 parameters are required to tell interface specification configuration and module start-up name
¾And 5 parameters to tell which information you want to put in the log file.
Description Syntax Option
Module start-up name DSC_5401_module=DSC5401 None
Define which serial port for interfacing PC5401 in MH. DSC_5401_serial_port=/dev/ttyM5
Specify the communication speed. DSC_5401_baudrate=XXXX

DSC Alarm PC5401 Serial Module /5
If you enable it, DSC alarm broadcast his time every 4 minutes,
see command table (056) and message table for (550) events.
¾Note: this Option must be activate, by default is Off DSC_5401_time_log=X On/Off (1,0)
If you have the escort module, it will write in the log when a
phone ring is detected, see message table for (560) event. DSC_5401_ring_log=X On/Off (1,0)
If you enable it, DSC Thermostat broadcast his temperature
every 1 minutes
¾Note: this Option must be activate, by default is Off DSC_5401_temp_log=X On/Off (1,0)
DSC_5401_part_log=1 If you want to see partition status (even
when alarm is no on)
DSC_5401_part_log=X On/Off (1,0)
DSC_5401_zone_log=1 if you want to see zone status
DSC_5401_zone_log=X On/Off (1,0)
3.1.1 MH.PRIVATE.INI Configuration File Example
Section MH.PRIVATE.INI Parameters
DSC_5401_module=DSC5401
DSC_5401_serial_port=/dev/ttyM5
Setup
DSC_5401_baudrate=9600
DSC_5401_time_log=1
DSC_5401_ring_log=1
DSC_5401_temp_log=1
DSC_5401_part_log=1
Options
DSC_5401_zone_log=1
DSC_5401_part_1=Home
Partitions
Definition DSC_5401_part_2=Garage
DSC_5401_user_0001=Mary
DSC_5401_user_0003=Tom
Users
Definition DSC_5401_user_0040=MisterHouse
DSC_5401_zone_001=Front Door Contact
DSC_5401_zone_002=Side Door Contact
DSC_5401_zone_003=Upstair Motion Detector
DSC_5401_zone_004= Basement Motion Detector
Zones
Definition
DSC_5401_zone_005=First Floor Motion Detector
Other manuals for Misterhouse PC5401
1
Table of contents
Other DSC Control Unit manuals
Popular Control Unit manuals by other brands

Festo
Festo Compact Performance CP-FB6-E Brief description

Elo TouchSystems
Elo TouchSystems DMS-SA19P-EXTME Quick installation guide

JS Automation
JS Automation MPC3034A user manual

JAUDT
JAUDT SW GII 6406 Series Translation of the original operating instructions

Spektrum
Spektrum Air Module System manual

BOC Edwards
BOC Edwards Q Series instruction manual

KHADAS
KHADAS BT Magic quick start

Etherma
Etherma eNEXHO-IL Assembly and operating instructions

PMFoundations
PMFoundations Attenuverter Assembly guide

GEA
GEA VARIVENT Operating instruction

Walther Systemtechnik
Walther Systemtechnik VMS-05 Assembly instructions

Altronix
Altronix LINQ8PD Installation and programming manual





























