WIN-PAK SEPE Communication Server API

89
WIN-PAK SE/PE API COMMUNICATION SERVER API Public Interface Document

Transcript of WIN-PAK SEPE Communication Server API

Page 1: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE API

COMMUNICATION SERVER API

Public Interface Document

Page 2: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 2 © 2012 Honeywell International

Page 3: WIN-PAK SEPE Communication Server API

Release 6.2 iii © 2012 Honeywell International

Notices and Trademarks Copyright 2012 by Honeywell International Inc.

Release 6.2- July 2012

While this information is presented in good faith and believed to be accurate, Honeywell disclaims the implied warranties of merchantability and fitness for a particular purpose and makes no express warranties except as may be stated in its written agreement with and for its customers. In no event is Honeywell liable to anyone for any indirect, special or consequential damages. The information and specifications in this document are subject to change without notice. WIN-PAK SE/PE™ is a registered trademark of Honeywell International Inc. Other brand or product names are trademarks of their respective owners.

© 2012 Honeywell Access Systems. All rights reserved.

Honeywell Access Systems 135 West Forest Hill Avenue Oak Creek, WI 53154 U.S.A OFFICE HOURS: 8 AM to 5 PM (CST) PHONE: 414-766-1700 FAX: 414-766-1798 URL: http://www.honeywellaccess.com

Page 4: WIN-PAK SEPE Communication Server API

Release 6.2 iv © 2012 Honeywell International

Modification History

Version Date Author Description

1.0 March 15th, 2012 Sathish Guru Initial Draft for WIN- PAK SE/PE Communication Server API

1.1 May 9th 2012 Sathish Guru Added the new functions and the document navigation

1.2 May 17th 2012 Sathish Guru Added the review comments

1.3 July 10th 2012 Sathish Guru Added the review comments and NetAXS IO Board statuses corrected

1.4 July 30th 2012 Sathish Guru Updated the Bookmarks and Page references

Page 5: WIN-PAK SEPE Communication Server API

Release 6.2 v © 2012 Honeywell International

Table of Contents ABOUT THIS DOCUMENT ........................................................................................................................... VIII

INTRODUCTION............................................................................................................................................. 10

OVERVIEW ................................................................................................................................................... 10 COMPONENT MODEL DIAGRAM ........................................................................................................................ 11 SUPPORTED OPERATING SYSTEMS ...................................................................................................................... 11 INSTALLING THE COMMUNICATION SERVER APIS ................................................................................................... 12

Prerequisites for Installing the CommunicationAPIServer ....................................................................... 12 To Install the CommunicationAPIServer .............................................................................................................. 12

Prerequisites for Installing the CommunicationAPIClient ........................................................................ 16 To Install the CommunicationAPIClient............................................................................................................... 16

CONNECTING THE API CLIENT AND THE API SERVER ............................................................................................... 21 Before you start .................................................................................................................................... 21

COMMUNICATION SERVER APIS ................................................................................................................... 23

OVERVIEW ................................................................................................................................................... 23 DATA STRUCTURES ......................................................................................................................................... 24

Device Structure .................................................................................................................................... 24 Enumeration Types ................................................................................................................................ 24

wpviewTYPE ...................................................................................................................................................... 24 HIDType ............................................................................................................................................................ 25 HIDSubType1 ..................................................................................................................................................... 25 panelInitTask ..................................................................................................................................................... 26

OBJECT SPECIFICATIONS ............................................................................................................................... 27

OVERVIEW ................................................................................................................................................... 27 NETAXSDOORINFO ........................................................................................................................................ 27

Properties ............................................................................................................................................. 28 DisableDoorTimezone(get)................................................................................................................................. 28 DisableDoorTimezone(put) ................................................................................................................................ 28 LockdownReaderTimezone(get) ......................................................................................................................... 29 LockdownReaderTimezone(put) ......................................................................................................................... 29 CardOnlyTimezone(get) ..................................................................................................................................... 30 CardOnlyTimezone(put) ..................................................................................................................................... 30 PINOnlyTimezone(get) ....................................................................................................................................... 31 PINOnlyTimezone(put) ....................................................................................................................................... 31 CardOrPINTimezone(get) ................................................................................................................................... 32 CardOrPINTimezone(put) ................................................................................................................................... 32 CardAndPINTimezone(get) ................................................................................................................................. 33 CardAndPINTimezone(put) ................................................................................................................................ 33 CardOnlyPriority(get) ......................................................................................................................................... 33 CardOnlyPriority(put) ........................................................................................................................................ 34 PINOnlyPriority(get)........................................................................................................................................... 34 PINOnlyPriority(put) .......................................................................................................................................... 35 CardAndPINPriority(get) .................................................................................................................................... 35 CardAndPINPriority(put) .................................................................................................................................... 36 CardOrPINPriority(get) ....................................................................................................................................... 36 CardOrPINPriority(put) ...................................................................................................................................... 37

COMMUNICATION SERVER API FUNCTIONALITIES ........................................................................................ 38

Page 6: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 vi © 2012 Honeywell International

InitServer .......................................................................................................................................................... 38 DoneServer ....................................................................................................................................................... 39 AckAlarm ........................................................................................................................................................... 40 ClrAlarm ............................................................................................................................................................ 40 AddNote ............................................................................................................................................................ 41 GetDetailsByID .................................................................................................................................................. 42 EntryPointLockByID ........................................................................................................................................... 42 EntryPointUnLockByID ....................................................................................................................................... 43 AlarmShuntByHID .............................................................................................................................................. 43 AlarmUnShuntByHID.......................................................................................................................................... 44 PulseByHID ........................................................................................................................................................ 44 TimedPulseByHID .............................................................................................................................................. 44 RestoreTZByHID................................................................................................................................................. 45 BufferByHID ...................................................................................................................................................... 46 UnBufferByHID .................................................................................................................................................. 47 DoorModeByHID ............................................................................................................................................... 48 ListConnectedDevices ........................................................................................................................................ 48 Energize ............................................................................................................................................................ 49 DeEnergize ........................................................................................................................................................ 49 AddFilterHID ...................................................................................................................................................... 50 RemoveFilterHID ............................................................................................................................................... 50 GetFilterHIDs ..................................................................................................................................................... 51 AddFilterCommServerID .................................................................................................................................... 51 RemoveCommServerID ...................................................................................................................................... 52 GetFilterCommServerIDs ................................................................................................................................... 52 PanelInitialize .................................................................................................................................................... 53 PanelCancelInitialize .......................................................................................................................................... 53 GetDefaultACRMode ......................................................................................................................................... 54 IsConnected ...................................................................................................................................................... 54 ExecuteDoorSchedule ........................................................................................................................................ 55 GetNetAXSDoorModeByHID .............................................................................................................................. 56 SetNetAXSDoorModeByHID ............................................................................................................................... 56 GetStatus .......................................................................................................................................................... 58

ABSTRACT DEVICES STATUS DEFINITIONS ............................................................................................................. 59 EVENT CODE LIST ........................................................................................................................................... 61

GetDoorStatus2 ................................................................................................................................................. 66

COMMUNICATION SERVER CALLBACK PROTOCOL ........................................................................................ 68

OVERVIEW ................................................................................................................................................... 68 PROTOCOL PROCESS ....................................................................................................................................... 69

Process Flow Diagram ........................................................................................................................... 69 NOTIFICATION MESSAGE TAGS .......................................................................................................................... 70

Tag Descriptions .................................................................................................................................... 70 Sample Code to Extract Information from the Notification Messages .................................................................. 73

Examples of Panel Notification Messages .............................................................................................. 75 Reader and Output Events ................................................................................................................................. 75 Reader and Output Alarms ................................................................................................................................. 77 Input Event ........................................................................................................................................................ 78 Input Alarm ....................................................................................................................................................... 79 Panel Event ....................................................................................................................................................... 81 Device Status ..................................................................................................................................................... 82

Examples of WIN-PAK SE/PE Notification Messages ............................................................................... 83 Communication Server Lost Connection ............................................................................................................. 83 Communication Server Regained Connection ..................................................................................................... 84 Database Server Lost Connection ....................................................................................................................... 84 Database Server Regained Connection ............................................................................................................... 84

GLOSSARY ..................................................................................................................................................... 85

Page 7: WIN-PAK SEPE Communication Server API

Table of Contents

Release 6.2 vii © 2012 Honeywell International

INDEX ............................................................................................................................................................ 86

Page 8: WIN-PAK SEPE Communication Server API

Release 6.2 viii © 2012 Honeywell International

About This Document

Scope

This document exposes the APIs of the WIN-PAK SE/PE communication server to develop the Communication Server API Client application.

Intended Audience

This document is intended for the developers of the Communication Server API Client application.

Document Structure

The following table lists the contents in each chapter.

Chapter Contents

Introduction Gives an overview of the Communication Server APIs, explains the component model diagram, and lists the procedure to install the Communication Server APIs.

Communication Server APIs Provides information about data structures and functions of the Communication Server API.

Communication Server Callback Protocol

Explains the callback protocol process. In addition, this chapter explains the notification message tags and provides examples of the notification messages.

Acronyms

The following table lists the acronyms used in this guide.

Acronyms Descriptions

APB AntiPassBack

API Application Programming Interface

COM Component Object Model

DCOM Distributed Component Object Model

MTS Microsoft Transaction Server

Page 9: WIN-PAK SEPE Communication Server API

About This Document

Release 6.2 ix © 2012 Honeywell International

Acronyms Descriptions

PIN Personal Identification Number

UI User Interface

WIN-PAK SE/PE WIN-PAK Standard Edition/Professional Edition

Document Conventions

The following table lists the conventions used in this document.

Convention Use Bold Text Indicates UI elements.

Navy Blue Text Indicates programming codes.

Green Text Indicates comments for the programming codes.

Blue Text

Indicates a Note.

Grey Text

Indicates an Example.

Contact Information

Honeywell Access Systems

135 West Forest Hill Avenue

Oak Creek, WI 53154

U.S.A

OFFICE HOURS: 8 AM to 5 PM (CST)

PHONE: 414-766-1700

FAX: 414-766-1798

URL: http://www.honeywellaccess.com

Page 10: WIN-PAK SEPE Communication Server API

Release 6.2 10 © 2012 Honeywell International

Chapter 1

INTRODUCTION

Overview

The Communication Server is a component of the WIN-PAK SE/PE application. The WIN-PAK SE/PE is an access control system that authenticates employee access at security areas. The Communication Server serves as a concentrator for communications with the access control hardware located at the customer locations. The WIN-PAK SE/PE provides a UI for the operator to monitor and track the access control activities of the end-users at the customer locations. Using the Communication Server APIs, a customized Windows client application can be created to monitor and act on the events/alarms as a WIN-PAK SE/PE UI.

Multiple Communication Server modules can be active in a client application. The customized Communication Server can be used to perform the following tasks.

♦ Forward the event/alarm transactions to the client application.

♦ Track the status of the alarms from the client application.

The Communication Server API is intended for N-tier Windows applications and is based on the Microsoft Windows DNA technologies using COM, DCOM, MTS and COM+ components of ActiveX.

The following sections explain the component model diagram of the Communication Server and the procedure to install the Communication Server.

In this Chapter Page Number

Component Model Diagram 11

Supported Operating Systems 11

Installing the Communication Server APIs 12

Connecting the API Client and the API Server 21

Page 11: WIN-PAK SEPE Communication Server API

Introduction

Release 6.2 11 © 2012 Honeywell International

Component Model Diagram

The Communication Server serves as a concentrator for communication with the access control hardware located at the customer locations.

The Accw.dll acts as a remote DCOM server that communicates with the client and the WIN-PAK SE/PE communication server. The Accw.dll contains the business component, IMTSCBServer and the IWPAVCallback interface. The

IMTSCBServer is an interface that contains the various API calls for WINPAK SE/PE Communication server functionalities. The client is informed about the events and alarms using the COM/DCOM callback mechanism and a tag based protocol.

The Communication Server API client is a Windows client application that monitors the events/alarms of the hardware devices at the customer locations.

Supported Operating Systems

The WIN-PAK SE/PE Communication Server API is supported on the following operating systems.

♦ Microsoft Windows Server 2008

1

2

3

Page 12: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 12 © 2012 Honeywell International

♦ Microsoft Windows Server 2008 R2(32/64 Bit)

♦ Microsoft Windows 7(32/64 Bit)

Installing the Communication Server APIs

The following modules of the WIN-PAK SE/PE Communication Server API must be installed.

♦ CommunicationAPIServer

♦ CommunicationAPIClient

Prerequisites for Installing the CommunicationAPIServer

Before installing the CommunicationAPIServer, ensure that the WIN-PAK SE/PE is installed on the computer.

To Install the CommunicationAPIServer

1. Double-click WIN-PAK SEPE API.exe on the CD. The Welcome to the InstallShield

Wizard for WIN-PAK SE/PE API screen appears.

2. Click Next. The License Agreement screen appears.

Page 13: WIN-PAK SEPE Communication Server API

Introduction

Release 6.2 13 © 2012 Honeywell International

3. Read the license agreement and select Accept and then click Next. The Custom Setup

screen appears.

Page 14: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 14 © 2012 Honeywell International

4. Select “WIN-PAK Communication Server API”. To change the destination folder, click

Change and select the destination folder. Click Next. The Ready to install the program

screen appears.

5. Click Install to start the installation. The Setup Status screen appears showing the

installation progress. The InstallShield Wizard completed screen appears.

Page 15: WIN-PAK SEPE Communication Server API

Introduction

Release 6.2 15 © 2012 Honeywell International

6. Click Finish to close the InstallShield wizard. You must restart your computer to

complete the installation.

Page 16: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 16 © 2012 Honeywell International

Prerequisites for Installing the CommunicationAPIClient

Before installing the CommunicationAPIClient ensure that the following requirements are met.

♦ Make a note of the IP address or machine name of the server computer on which the WIN-PAK SE/PE communication server API is installed.

♦ The CommunicationAPIClient must be installed in the same domain/workgroup as the CommunicationAPIServer.

To Install the CommunicationAPIClient

1. Double-click WIN-PAK SEPE API.exe on the CD. The Welcome to the InstallShield

Wizard for WIN-PAK SE/PE API screen appears.

Page 17: WIN-PAK SEPE Communication Server API

Introduction

Release 6.2 17 © 2012 Honeywell International

2. Click Next. The License Agreement screen appears.

Page 18: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 18 © 2012 Honeywell International

3. Read the license agreement and select Accept and then click on Next. The Custom

Setup screen appears.

4. Select “WIN-PAK Communication Client API”. To change the destination folder, click

Change and select the destination folder..

5. Click Next. The Communication Server Details screen appears.

6. Type the computer name or IP address or the Machine name of the computer on which

the Communication Server APIs are installed and then, click Next.

Page 19: WIN-PAK SEPE Communication Server API

Introduction

Release 6.2 19 © 2012 Honeywell International

7. The Ready to install the program screen appears. Click Install to start the installation.

Page 20: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 20 © 2012 Honeywell International

8. The Setup Status screen appears showing the installation progress. The InstallShield

Wizard completed screen appears.

9. Click Finish to close the InstallShield wizard. You must restart your computer to

complete the installation.

Page 21: WIN-PAK SEPE Communication Server API

Introduction

Release 6.2 21 © 2012 Honeywell International

Connecting the API Client and the API Server

The WIN-PAK SE/PE client must be connected to the WIN-PAK SE/PE API server to send and receive any notification messages about the events and alarms.

Before you start

To establish connection between the API Client and the API Server, ensure that the following conditions are met.

♦ The API Client and the API Server must be installed on different computers.

♦ The computers on which the API Client and the API Server are installed must be in the same domain or workgroup.

♦ The API Client and the API Server must be logged on with the same user name and password.

♦ The COM+ Access must be configured if the CommunicationAPIs are installed on the Windows Operation System.

♦ The ICF firewall must be disabled for the CommunicationAPIs installed on Windows 2003 Server.

Page 22: WIN-PAK SEPE Communication Server API

Release 6.2 22 © 2012 Honeywell International

Page 23: WIN-PAK SEPE Communication Server API

Release 6.2 23 © 2012 Honeywell International

Chapter 2

COMMUNICATION SERVER APIS

Overview

The developers of the WIN-PAK SE/PE API application have exposed some data structures and API functions to allow you to develop a customized client application. Using the WIN-PAK SE/PE API, the client application can monitor the events/alarms and control the access control panels at the customer location.

The following sections explain the exposed data structures and API functions.

In this Chapter Page Number

Data Structures 24

Communication Server API Functionalities 26

Abstract Device Status Definitions 59

Event Code List 61

Page 24: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 24 © 2012 Honeywell International

Data Structures

The following special data structures are used to implement the functionality of the communication client component in the WIN-PAK SE/PE Communication Server.

Device Structure

Description

This structure contains information about the device name, device ID, and device type.

Definition

struct Device{ [helpstring(“Contains the Device Name”)] BSTR sDeviceName; [helpstring(“Contains the HID”)] long lDeviceID; [helpstring(“Contains the Device Type”)] long lDeviceType; } Device;

Enumeration Types

The Communication client component provides the following enumeration types to declare the types of views and the hardware dependent constants.

♦ wpviewTYPE

♦ HIDType

♦ HIDSubType1

wpviewTYPE

Description

Defines the following types of views.

♦ Alarm

♦ Event

♦ Alarm and Event

Definition

enum wpviewTYPE { [helpstring("AlarmView")]wpviewAlarm= 0x0001, [helpstring("EventView")]wpviewEvent= 0x0002,

Page 25: WIN-PAK SEPE Communication Server API

Communication Server APIs

Release 6.2 25 © 2012 Honeywell International

[helpstring("AlarmEventView")]wpviewAlarmEvent= 0x0003 } wpviewTYPE;

HIDType

Description

Defines the types of hardware devices.

Definition

enum HIDType { HID_SERVER = 1 END_HID_SERVER = 10 HID_LOOP = 12 HID_PANEL = 22 HID_INPUT = 30 HID_OUTPUT = 40 HID_ENTRANCE = 50 HID_CCTV = 60 HID_MODEM_POOL = 80 END_HID_MODEM_POOL = 83 HID_EXTERNAL_SYSTEM_LINK = 90 END_HID_EXTERNAL_SYSTEM_LINK = 94 HID_PW5000_SIO = 95 } HIDType;

HIDSubType1

Description

Defines the sub types of the hardware devices.

Definition

enum HIDSubType1 { HID_SERVER_COMM = 2 HID_SERVER_SCHEDULER = 3 HID_SERVER_GUARD_TOUR = 4 HID_SEQUENCED_CHK_PT = 5 HID_UNSEQUENCED_CHK_PT = 6 HID_SERVER_CAMERA_TOUR = 7 HID_SERVER_CMD_FILE = 8 HID_SERVER_MUSTER = 9 HID_LOOP_N1000 = 13 HID_LOOP_N1000_C100 = 14 HID_LOOP_N1000_485 = 15

Page 26: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 26 © 2012 Honeywell International

HID_LOOP_N1000_485_ACKNAK = 16 END_HID_LOOP_N1000 = 17 HID_LOOP_N750 = 18 HID_LOOP_SYMPHONY = 19 HID_LOOP_SYMPHONY_LEGACY = 20 HID_LOOP_PW5000 = 21 HID_PANEL_N1000 = 23 HID_PANEL_N1000_II OR HID_PANEL_PW2000 (X) 24 HID_PANEL_N1000_III OR HID_PANEL_PW2000-3 (X) 25 HID_PANEL_N1000_IV OR HID_PANEL_PW2000-4 (X) 26 HID_PANEL_N750 = 27 HID_PANEL_SYMPHONY = 28 HID_PANEL_PW5000 = 29 HID_PANEL_PW5000_DIALUP = 130 HID_INPUT_STD = 31 HID_INPUT_SUPERVISED = 32 HID_INPUT_PW5000_STD = 33 HID_INPUT_PW5000_SUPER = 34 HID_OUTPUT_STD = 41 HID_GROUP_STD = 42 HID_OUTPUT_PW5000 = 43 HID_ENTRANCE_DOOR = 51 HID_ENTRANCE_READER = 52 HID_ENTRANCE_PW5000_DOOR = 53 HID_CCTV_SWITCHER = 61 END_HID_CCTV_SWITCHER = 71 HID_CCTV_CAMERA = 72 HID_CCTV_MONITOR = 75 HID_MODEM_POOL_C100 = 81 HID_MODEM_POOL_PCI = 82 HID_MODEM_POOL_PW5000 = 84 HID_JCI_MNI = 91 HID_LANDIS_STAEFA_S600 = 92 HID_RS_232_LINK = 93 } HIDSubType1;

panelInitTask

Description

Defines the constituent steps needed for the Panel initialization task.

Definition

enum panelInitTask { taskINIT = 0, taskTIMEDATE = 1, taskCARD = 2,

Page 27: WIN-PAK SEPE Communication Server API

Object Specifications

Release 6.2 27 © 2012 Honeywell International

taskCMDFILE = 3, taskHOLIDAY = 4, taskTIMEZONE = 5 , taskINPUT = 6, taskOUTPUT = 7, taskGROUP = 8, taskMCBCONFIG = 9, taskINPUTSCAN = 10, taskCARDFORMAT = 11, taskSIOBOARD = 12, taskACCESSLEVELS = 13, taskTRIGGERS = 14, taskPROCEDURES = 15, taskMPGROUPS = 16, taskACCESSAREAS = 17, taskREADERLED = 18, taskTZREFRESH = 19 }panelInitTask;

OBJECT SPECIFICATIONS

Overview

The developers of the WIN-PAK SE/PE application have developed the COM object for encapsulating the various fields that constitute the Door Mode of the NetAXS Panel. This object enables the client applications to access the current Door Modes of the NetAXS Readers and also to set new Door Modes to the NetAXS Readers configured in the WIN-PAK SE/PE. This Interface and the associated class is compiled inside the Accw.dll The list of COM objects in NCIHelper.dll are as follows:

♦ Accw.NetAXSDoorInfo

NetAXSDoorInfo

The NetAXSDoorInfo object is used to access the WIN-PAK SE/PE Door Mode information of the NetAXS readers. In addition, this object is used to assign the Door Mode to a NetAXS reader.

Page 28: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 28 © 2012 Honeywell International

Properties

The following methods help you to get and set the NetAXSDoorMode properties in the WIN-PAK SE/PE.

♦ DisableDoorTimezone ♦ LockdownReaderTimezone ♦ CardOnlyTimezone ♦ PINOnlyTimezone ♦ CardOrPINTimezone ♦ CardAndPINTimezone ♦ CardOnlyPriority ♦ PINOnlyPriority ♦ CardAndPINPriority ♦ CardOrPINPriority

The following section explains the Card properties.

DisableDoorTimezone(get)

Description

Gets the timezone ID of the Disable Door Timezone.

Visual C++ Signature

HRESULT DisableDoorTimezone([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved Timezone ID set for the Disable Door Time zone

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

DisableDoorTimezone(put)

Description

Sets the timezone ID of the Disable Door Timezone.

Visual C++ Signature

Page 29: WIN-PAK SEPE Communication Server API

Object Specifications

Release 6.2 29 © 2012 Honeywell International

HRESULT DisableDoorTimezone([in] long newVal);

Parameters

Parameters Description

newVal The new Timezone ID to be set as the Disable Door Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

LockdownReaderTimezone(get)

Description

Gets the timezone ID of the Lockdown Reader Timezone.

Visual C++ Signature

HRESULT LockdownReaderTimezone ([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved Timezone ID set for the Lockdown Reader Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

LockdownReaderTimezone(put)

Description

Sets the timezone ID of the Lockdown Reader Timezone.

Visual C++ Signature

HRESULT LockdownReaderTimezone ([in] long newVal);

Parameters

Parameters Description

Page 30: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 30 © 2012 Honeywell International

Parameters Description

newVal The new Timezone ID to be set as the Lockdown Reader Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes:

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardOnlyTimezone(get)

Description

Gets the timezone ID of the Card Only Timezone.

Visual C++ Signature

HRESULT CardOnlyTimezone([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved Timezone ID set for the Card Only Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardOnlyTimezone(put)

Description

Sets the timezone ID of the Card Only Timezone.

Visual C++ Signature

HRESULT CardOnlyTimezone([in] long newVal);

Parameters

Parameters Description

newVal The new Timezone ID to be set as the Card Only Timezone.

Page 31: WIN-PAK SEPE Communication Server API

Object Specifications

Release 6.2 31 © 2012 Honeywell International

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

PINOnlyTimezone(get)

Description

Gets the timezone ID of the PIN Only Timezone.

Visual C++ Signature

HRESULT PINOnlyTimezone([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved Timezone ID set for the PIN Only Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

PINOnlyTimezone(put)

Description

Sets the timezone ID of the PIN Only Timezone.

Visual C++ Signature

HRESULT PINOnlyTimezone([in] long newVal);

Parameters

Parameters Description

newVal The new Timezone ID to be set as the Disable PIN Only Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

Page 32: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 32 © 2012 Honeywell International

S_OK For a successful operation, the value zero is returned.

CardOrPINTimezone(get)

Description

Gets the timezone ID of the Card or PIN Timezone.

Visual C++ Signature

HRESULT CardOrPINTimezone([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved Timezone ID set for the Card Or PIN Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardOrPINTimezone(put)

Description

Sets the timezone ID of the Card or PIN Timezone.

Visual C++ Signature

HRESULT CardOrPINTimezone([in] long newVal);

Parameters

Parameters Description

newVal The new Timezone ID to be set as the Card Or PIN Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Page 33: WIN-PAK SEPE Communication Server API

Object Specifications

Release 6.2 33 © 2012 Honeywell International

CardAndPINTimezone(get)

Description

Gets the timezone ID of the Disable Door Timezone.

Visual C++ Signature

HRESULT CardAndPINTimezone([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved Timezone ID set for the Card And PIN Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardAndPINTimezone(put)

Description

Sets the timezone ID of the Card and PIN Timezone.

Visual C++ Signature

HRESULT CardAndPINTimezone([in] long newVal);

Parameters

Parameters Description

newVal The new Timezone ID to be set as the Card and PIN Timezone.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardOnlyPriority(get)

Description

Gets the value of the Card Only Priority.

Page 34: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 34 © 2012 Honeywell International

Visual C++ Signature

HRESULT CardOnlyPriority([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved value set for the Card Only Priority.

Return Type

The HRESULT value is returned. The following table displays the return codes:

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardOnlyPriority(put)

Description

Sets the value of the Card Only Priority.

Visual C++ Signature

HRESULT CardOnlyPriority([in] long newVal);

Parameters

Parameters Description

newVal The new value to be set as the Card Only Priority

Return Type

The HRESULT value is returned. The following table displays the return codes:

Return Code Description

S_OK For a successful operation, the value zero is returned.

PINOnlyPriority(get)

Description

Gets the value of the PIN Only Priority.

Visual C++ Signature

HRESULT PINOnlyPriority([out, retval] long *pVal);

Parameters

Page 35: WIN-PAK SEPE Communication Server API

Object Specifications

Release 6.2 35 © 2012 Honeywell International

Parameters Description

pVal The retrieved value set for the PIN Only Priority.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

PINOnlyPriority(put)

Description

Sets the value of the PIN Only Priority.

Visual C++ Signature

HRESULT PINOnlyPriority([in] long newVal);

Parameters

Parameters Description

newVal The new value to be set as the PIN Only Priority.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardAndPINPriority(get)

Description

Gets the value of the Card And PIN Priority.

Visual C++ Signature

HRESULT CardAndPINPriority([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved value set for the Disable Door Timezone.

Page 36: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 36 © 2012 Honeywell International

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardAndPINPriority(put)

Description

Sets the value of the Card And PIN Priority.

Visual C++ Signature

HRESULT CardAndPINPriority ([in] long newVal);

Parameters

Parameters Description

newVal The new value to be set as the Card And PIN Priority.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

CardOrPINPriority(get)

Description

Gets the value of the Card Or PIN Priority.

Visual C++ Signature

HRESULT CardOrPINPriority([out, retval] long *pVal);

Parameters

Parameters Description

pVal The retrieved value set for the Card Or PIN Priority.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

Page 37: WIN-PAK SEPE Communication Server API

Object Specifications

Release 6.2 37 © 2012 Honeywell International

S_OK For a successful operation, the value zero is returned.

CardOrPINPriority(put)

Description

Sets the value of the Card Or PIN Priority.

Visual C++ Signature

HRESULT CardOrPINPriority([in] long newVal);

Parameters

Parameters Description

newVal The new value to be set as the Card Or PIN Priority.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Page 38: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 38 © 2012 Honeywell International

COMMUNICATION SERVER API FUNCTIONALITIES

The communication server APIs are complied into the dynamic linked library, ACCW.dll. This dll uses the ActiveX components to provide the communication server functionalities. The Accw.dll acts as a remote DCOM server by using the DLLHost.exe as the surrogate process.

The name, description, VC++ signature, parameters, return type, and remarks of each of the Communication Server APIs are as follows:

InitServer

Description

Registers the client computer in the Communication Server API computer.

Visual C++ Signature

HRESULT InitServer( [in] IDispatch* Caller, [in] long enumViewType, [in] BSTR sUserName, [in] BSTR sPassword, [in] long lUserid, [out, retval] VARIANT_BOOL *pbResult );

Page 39: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 39 © 2012 Honeywell International

Parameters

Parameters Description

Caller A reference to the client callback interface.

enumViewType Defines the type of view.

For more information on the different types of view, see wpviewTYPE.

sUserName A valid WIN-PAK user name.

sPassword The password of a WIN-PAK user.

lUserID A valid WIN-PAK ID of the user.

pbResult A Boolean value that indicates if the operation is successful.

Note The Boolean values are as follows: TRUE – Operation is successful.

FALSE – Operation is not successful.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Remarks

This method must be called before you access the Communication Server functionalities.

DoneServer

Description

Disconnects the client computer from the Communication Server API computer.

Visual C++ Signature

HRESULT DoneServer( [in] IDispatch* Caller, [out, retval] VARIANT_BOOL* );

Parameters

Page 40: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 40 © 2012 Honeywell International

Parameters Description

Caller A reference to the client callback interface.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Remarks

This method must be called after you complete all transactions with the Communication Server.

AckAlarm

Description

Acknowledges the alarm identified by the hardware device ID and the point ID.

Visual C++ Signature

HRESULT AckAlarm( [in] long lHID, [in] long lPoint);

Parameters

Parameters Description

lHID The hardware device ID.

lPoint The Point ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

ClrAlarm

Description

Clears the alarm identified by the hardware device ID and the point ID.

Visual C++ Signature

Page 41: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 41 © 2012 Honeywell International

HRESULT ClrAlarm( [in] long lHID, [in] long lPoint);

Parameters

Parameters Description

lHID The hardware device ID.

lPoint The Point ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

AddNote

Description

Adds an operator note to the alarm identified by the hardware device ID and the point ID.

Visual C++ Signature

HRESULT AddNote( [in] long lHID, [in] long lPoint, [in] BSTR Note);

Parameters

Parameters Description

lHID The hardware device ID.

lPoint The Point ID.

Note The text attached to the transaction in history.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Page 42: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 42 © 2012 Honeywell International

GetDetailsByID

Description

Obtains the transaction details for the specified hardware device ID and the point ID.

Visual C++ Signature

HRESULT GetDetailsByID ( [in] long lHID, [in] long lPoint, [out] BSTR* pbstrTransactionDetails);

Parameters

Parameters Description

lHID The hardware device ID.

lPoint The Point ID.

pbstrTransactionDetails The complete description of the transaction to be retrieved.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

EntryPointLockByID

Description

Locks the entrance or entry point.

Visual C++ Signature

HRESULT EntryPointLockByID([in] long lHID);

Parameters

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Page 43: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 43 © 2012 Honeywell International

Return Code Description

S_OK For a successful operation, the value zero is returned.

EntryPointUnLockByID

Description

Unlocks the entrance or entry point.

Visual C++ Signature

HRESULT EntryPointUnLockByID([in] long lHID);

Parameters

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

AlarmShuntByHID

Description

Shunts the alarm of the specified hardware device.

Visual C++ Signature

HRESULT AlarmShuntByHID([in] long lHID);

Parameters

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Page 44: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 44 © 2012 Honeywell International

AlarmUnShuntByHID

Description

Unshunt the alarm of the specified hardware device.

Visual C++ Signature

HRESULT AlarmUnShuntByHID([in] long lHID);

Parameters

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

PulseByHID

Description

Pulses the hardware device.

Visual C++ Signature

HRESULT PulseByHID([in] long lHID);

Parameters

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

TimedPulseByHID

Description

Pulses a hardware device for a specified time period.

Page 45: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 45 © 2012 Honeywell International

Note Various types of Panels have different maximum for the Pulse Time that can be given to

the Timed Pulse command.

N1000/NS2/NS2+ : 63 seconds or 63 minutes or 63 hours

P-Series(PRO2200/PW5000) : 9 hours

NetAXS(NetAXS 4/NetAXS 123) : 1 hour and 45 minutes

Visual C++ Signature

HRESULT TimedPulseByHID( [in] long lHID, [in] long lUnits, [in] long lVal);

Parameters

Parameters Description

lHID The hardware device ID.

lUnits The value for the unit of time.

Note The values for the unit of time are as follows:

0 – Seconds

1 – Minutes

2 - Hours

lVal The pulse time value.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

RestoreTZByHID

Description

Restores the time zone control in a hardware device.

Page 46: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 46 © 2012 Honeywell International

Note The P-Series Input and Readers will work with have the

RestoreTZByHID(). Use GetDefaultACRMode() and use the

returned value in the SetDoorModeByHID() to refresh the

Timezone for the P-Series Readers

Visual C++ Signature

HRESULT RestoreTZByHID([in] long lHID);

Parameters

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

BufferByHID

Description

Buffers the transactions of the device specified by the hardware device ID. These device transactions are stored and not transmitted, so the unbuffer operation is pending.

Visual C++ Signature

HRESULT BufferByHID( [in] long lHID, [in] long lVal);

Parameters

Parameters Description

lHID The hardware device ID.

lVal The buffer mode values.

Page 47: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 47 © 2012 Honeywell International

Parameters Description

Note The modes of the buffer are indicated by the following values.

0 – Hard mode

1 – Soft mode

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

UnBufferByHID

Description

Unbuffer the transactions of the device specified by the hardware device ID. The stored device transactions are transmitted.

Visual C++ Signature

HRESULT BufferByHID( long* lHID, long* lVal);

Parameters

Parameters Description

lHID The hardware device ID.

lVal The buffer mode values.

Note The modes of the buffer are indicated by the following values.

0 – Hard mode

1 – Soft mode

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Page 48: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 48 © 2012 Honeywell International

DoorModeByHID

Description

Sets up the door mode for the specified hardware device.

Visual C++ Signature

HRESULT DoorModeByHID ( [in] long lHID, [in] long lVal);

Parameters

Parameters Description

lHID The hardware device ID.

lVal The door mode values.

Note The door mode values are as follows:

1 – Disable the door

2 – Unlock (limited access)

3 – Locked (no access)

4 – Site code only

5 – Card only

6 – PIN only

7 – Card and PIN

8 – Card or PIN

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

ListConnectedDevices

Description

Returns the list of abstract devices (ADVs) connected to the communication server. In addition, the device name, hardware device identification number, and the device type of the abstract devices are returned in the form of a structure.

Visual C++ Signature

Page 49: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 49 © 2012 Honeywell International

HRESULT ListConnectedDevices([out, retval] VARIANT *pvDevices);

Parameters

Parameters Description

pvDevices A pointer to the variant containing the list of abstract devices.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Energize

Description

Energizes or charges the output device/relay for the specified device ID.

Visual C++ Signature

HRESULT Energize([in] long lHID);

Parameters

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

DeEnergize

Description

De-energizes or stops charging the output device/relay for the specified device ID.

Visual C++ Signature

HRESULT DeEnergize([in] long lHID);

Parameters

Page 50: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 50 © 2012 Honeywell International

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

AddFilterHID

Description

Sets the Alarm Filter such that the Alarms are meant to be reported only from the particular HID

Visual C++ Signature

HRESULT AddFilterHID([in] long lHID );

Parameters

Parameters Description

lHID The HID of a Device

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

RemoveFilterHID

Description

Remove the Alarm filter for the particular HID

Visual C++ Signature

HRESULT RemoveFilterHID([in] long lHID );

Parameters

Parameters Description

lStatus The output parameter that have the status of the API connection with

Page 51: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 51 © 2012 Honeywell International

Parameters Description the server

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

GetFilterHIDs

Description

Get all the Alarm HID filters.

Visual C++ Signature

HRESULT GetFilterHIDs([out] BSTR* bstrHIDs );

Parameters

Parameters Description

lStatus The output parameter that have the status of the API connection with the server

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

AddFilterCommServerID

Description

Sets the Alarm Filter such that the Alarms are meant to be reported only from the particular Communication Server

Visual C++ Signature

HRESULT AddFilterCommServerID([in] long lCommServerID );

Parameters

Parameters Description

lCommServerID The HID of a Communication Server

Page 52: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 52 © 2012 Honeywell International

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

RemoveCommServerID

Description

Remove the Alarm filter for the particular Communication Sever

Visual C++ Signature

HRESULT RemoveFilterCommServerID([in] long lCommServerID );

Parameters

Parameters Description

lCommServerID The HID of a Communication Server

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

GetFilterCommServerIDs

Description

Get all the Alarm Communication Server filters

Visual C++ Signature

HRESULT GetFilterCommServerIDs([out] BSTR* bstrCommServerIDs );

Parameters

Parameters Description

bstrCommServerIDs

The retrieved list of Communication Server ID that currently configured in the Alarm Filter

Return Type

The HRESULT value is returned. The following table displays the return codes.

Page 53: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 53 © 2012 Honeywell International

Return Code Description

S_OK For a successful operation, the value zero is returned.

PanelInitialize

Description

Starts the Initialization of the Panels with the steps mentioned.

Visual C++ Signature

RESULT PanelInitialize( [in]long lHID, [in]long lHIDtype, [in]VARIANT vTasks);

Parameters

Parameters Description

lHID The hardware device ID of the Panel.

lHIDType The HIDType of the Panel.

vTasks The input parameter, which is an array of integers indicates whether the initialization step is executed or not.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Remarks

If the client needs to initialize a N1000 Panel of HID 12, with the initialization steps of Cards and Timezones only, the initialization code will be as follows:

int arrTasks[20]; arrTasks[(int)panelInitTask.taskCARD] = TRUE; arrTasks[(int)panelInitTask.taskTIMEZONE] = TRUE; . . .

PanelCancelInitialize

Description

Page 54: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 54 © 2012 Honeywell International

Cancels the ongoing initialization of the Panel.

Visual C++ Signature

HRESULT PanelCancelInitialize([in]long lHID);

Parameters

Parameters Description

lHID The hardware device ID.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

GetDefaultACRMode

Description

Returns the default/configured door mode of a Reader of the P-Series panel

Visual C++ Signature

HRESULT GetDefaultACRMode( [in] long lHID, [out]int *nMode);

Parameters

Parameters Description

lHID The hardware device ID of the P-Series Reader.

pDoorInfo The retrieved default Door Mode of the P-Series Reader

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

IsConnected

Description

Page 55: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 55 © 2012 Honeywell International

Checks the connected status of the API Component with the Communication Server.

Visual C++ Signature

HRESULT IsConnected([out] BOOL* bStatus);

Parameters

Parameters Description

lStatus The output parameter that have the status of the API connection with the server

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

ExecuteDoorSchedule

Description

Executes a Door Schedule at the Direct Point of a Door.

Visual C++ Signature

HRESULT ExecuteDoorSchedule( [in]long lPanelHID, [in]long lPanelType, [in]long lEntranceID, [in]long lEntrancePointID, [in]long lTZID);

Parameters

Parameters Description

lPanelHID The hardware device ID of the Panel.

lPanelType The HIDType of the Panel.

lEntranceID The HID of the Reader/Entrance configured in the Panel.

lEntrancePointID The point ID of the Reader that actually the ordinal of the Reader.

lTZID The ID of the Timezone of the Door Schedule.

Return Type

Page 56: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 56 © 2012 Honeywell International

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

GetNetAXSDoorModeByHID

Description

Returns the current Door mode configuration of the NetAXS Reader.

Note For NetAXS 123 Panels, the GetNetAXSDoorModeByHID() on Reader B will get only the timezones, not the Priorities. As the Reader B has no priorities, the Priorities of the Reader A will be returned.

Visual C++ Signature

HRESULT GetNetAXSDoorModeByHID( [in] long lHID, [out] VARIANT* pDoorInfo);

Parameters

Parameters Description

lHID The hardware device ID of the NetAXS Reader.

pDoorInfo The output parameter that contains the current Door Mode configuration of the Reader encapsulated in the interface INetAXSDoorInfo.

For more information on the card details, see the NetAXSDoorInfo Properties.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

SetNetAXSDoorModeByHID

Description

Sets the Door mode of the NetAXS Reader to the supplied value.

Page 57: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 57 © 2012 Honeywell International

Note For NetAXS 123 Panels, the SetNetAXSDoorModeByHID() on Reader B will set only the timezones, not the Priorities. All the priorities passed are truncated and the corresponding Reader A’s priorities are taken.

Visual C++ Signature

HRESULT SetNetAXSDoorModeByHID ( [in] long lHID, [in] INetAXSDoorInfo* pDoorInfo, [out] long *plStatus);

Parameters

Parameters Description

lHID The hardware device ID of the NetAXS Reader.

pDoorInfo The input parameter that contains the Door Mode configuration need to be set up for the Reader encapsulated in the interface INetAXSDoorInfo.

For more information on the card details, see the NetAXSDoorInfoProperties.

plStatus The SetNetAXSDoorMode status value.

Note The SetNetAXSDoorModeByHID status values are as follows:

0 – setting the Door mode for the NetAXS

Reader Succeeded

1 – setting the Door mode failed

2 – Invalid HID for the Reader

3 – The DoorInfo Object passed in the

pDoorInfo was empty

4 – Invalid Disable Door Timezone

5 – Invalid Lockdown Reader Timezone

6 – Invalid Card Only Timezone

7 – Invalid PIN Only Timezone

8 – Invalid Card and PIN Timezone

9 – Invalid Card or PIN Timezone

10 – Invalid Card Only Priority

11 – Invalid PIN Only Priority

Page 58: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 58 © 2012 Honeywell International

Parameters Description 12 – Invalid Card and PIN Priority

13 – Invalid Card or PIN Priority

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

GetStatus

Description

Returns the status for the specified device ID and the device type.

For more information on the device status, see Abstract Devices Status Definitions.

Visual C++ Signature

HRESULT GetStatus ( [in] long lHID, [in] long lDeviceType, [out, retval]long* lStatusID);

Parameters

Parameters Description

lHID The hardware device ID.

lDeviceType The type of hardware device.

lStatusID The output parameter that contains the status ID of the device.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Page 59: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 59 © 2012 Honeywell International

Remarks

If the client calls the GetStatus function by passing the parameters HID and DeviceType, the StatusID and other additional information is sent to the client. The following code is a sample of the information sent to the client.

<NLZ> <ADV_Status>StatusID</ADV_Status> <ADV_HID>HID2</ADV_HID> <ADV_DeviceType>DeviceType</ADV_DeviceType> <ADV_DeviceName>DeviceName</ADV_DeviceName> </NLZ>

Abstract Devices Status Definitions

The GetStatus() function returns the status ID of the specified type of hardware device. The following table lists the different status IDs and their descriptions.

Status ID Description

300 Null String

301 Entrance Unknown

302 Entrance Alarm

303 Entrance OK

304 Entrance Trouble

35* Shunted

401 Input Unknown

402 Input Alarm

403 Door Ajar

404 Input Normal

405 Input Trouble

406 Entry in Progress

408 Exit in Progress

409 Input Trouble Cut

405 Input Trouble Short

45* Shunted

Page 60: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 60 © 2012 Honeywell International

Status ID Description

501 Output Unknown

502 Output Deenergized

503 Output Energized

504 Output Trouble

801 Server Unknown

802 Server Trouble

803 Server OK

901 Panel Unknown

902 Panel Alarms

91* Panel Communication

92* AUX Port

93* Primary Power

94* Panel Tamper

95* Ground Fault

96* Low Voltage

97* Ext 5V

98* Poll Response

99* Remote

903 Panel OK

601 Loop Unknown

602 Loop Alarm

603 Loop OK

1001 NetAXS IO or P-Series SIO Board Unknown

1002 NetAXS IO or P-Series SIO Board OK

1003 NetAXS IO or P-Series SIO Board Trouble

Page 61: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 61 © 2012 Honeywell International

Status ID Description

701 Device Unknown

702 Device Alarm

703 Device OK

Note The * in the status ID field indicates that it can hold any number.

EXAMPLE The status sent from the API is 452. However, the status ID 452 does not exist. This status ID can be interpreted as follows:

45*= Shunted and 402 = Input Alarm Hence the status description for the StatusID 452 is Shunted Input Alarm.

Event Code List

The event code is an event ID to identify the status of events/alarms generated from the panels. The following table lists the different event IDs and their descriptions.

Event ID Description

101 Server OK

102 Server Trouble

103 Check Point: Out of Sequence

104 Check Point: Missed

105 Check Point: Early Arrival

106 Check Point: Late Arrival

107 Check Point: Checked

201 Loop OK

202 Loop Alarm

203 Loop Remote Dial-Up Successful

Page 62: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 62 © 2012 Honeywell International

Event ID Description

204 Loop Remote Dial-Up Failed

301 Modem Pool OK

302 Modem Pool Trouble

401 Panel Communication Alarm

402 Panel Communication Normal

403 Auxiliary Port Alarm

404 Auxiliary Port Normal

405 Primary Power Failure

406 Primary Power Normal

407 Poll Response Alarm

408 Poll Response Normal

409 Tamper Switch Alarm

410 Tamper Switch Normal

411 Ground Fault Alarm

412 Ground Fault Normal

413 Low Voltage Alarm

414 Low Voltage Normal

415 External 5 Volt Alarm

416 External 5 Volt Normal

417 Panel Reset

418 Panel configuration error

419 Incorrect Password

420 Panel Remote Dial-Up Failed

421 Panel Remote Dial-Up Successful

422 Unsupported Panel version

Page 63: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 63 © 2012 Honeywell International

Event ID Description

423 Unsupported SIO Board Version

424 Panel Restarted

425 Panel DB Updated

426 Panel DB Deleted

427 Panel Common DB Updated

428 Panel Common DB Deleted

429 Panel Time Changed

430 Panel switched to Hybrid Mode

431 Panel Process Watcher restated

501 Input Alarm

502 Input Normal

503 Input Trouble

504 Input Trouble Cut

505 Input Trouble Short

506 Ajar State

507 Input Exit Delay

508 Input Entry Delay

601 Output De-energized

602 Output Energized

603 Output Trouble

701 Valid Card

702 Trace Card

703 Door Unlocked

704 Site code verified, door not used

705 Site code verified, door used

Page 64: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 64 © 2012 Honeywell International

Event ID Description

706 APB violation, door not used

707 APB violation, door used

708 Duress, door not used

709 Duress, door used

710 Valid Card, door not used

711 Valid Card, door used

712 Host Grant, Door unlocked

713 Host Grant, Card downloaded

714 Invalid Time Zone

715 Card Not Found

716 Invalid PIN

717 Invalid Site Code

718 Anti-Passback Violation

719 Door Normal

720 Door Forced Open

721 Door Ajar

722 Door Trouble

723 Invalid Format

724 Invalid Format, reverse read

725 Door locked

726 Issue code

727 Duress request denied

728 Never allowed at this door

729 No second card presented

730 Floor Called

Page 65: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 65 © 2012 Honeywell International

Event ID Description

731 Floor Selected

732 Floor Select Timeout

733 Free Egress, door not verified

734 Free Egress, door not used

735 Free Egress, door used

736 Hard Anti-passback Violation

737 Soft Anti-passback Violation

738 Site Code Violation

739 Duress PIN Entered

740 Card Expired

741 VIP Card Found

742 Supervisor Card Found

743 Supervisor Mode not Enabled

744 Supervisor card required

745 Supervisor Authenticated

746 Soft Piggy-bagging

747 Hard Piggy-bagging

748 Supervisor mode Enabled

749 Supervisor mode disabled

750 Temporary card expired by usage limit

751 Temporary card expired by Date

1001 Basic Panel Initialization ended

1002 Time Date sending ended

1003 Sending cards ended

1004 Sending Command Files Ended

Page 66: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 66 © 2012 Honeywell International

Event ID Description

1005 Sending Holidays ended

1006 Sending Timezones ended

1007 Sending Inputs ended

1008 Sending Outputs ended

1009 Sending Groups ended

1101 NetAXS I/O Board Power Alarm

1102 NetAXS I/O Board Power Normal

1103 NetAXS I/O Board Tamper Alarm

1104 NetAXS I/O Board Tamper Normal

1105 NetAXS I/O Board Poll Response Alarm

1106 NetAXS I/O Board Poll Response Normal

GetDoorStatus2

Description

Returns the physical status for the specified Door whether is it open or not.

Visual C++ Signature

HRESULT GetStatus ( [in] long lReaderHID, [out] BOOL* bDoorStatus);

Note The status of the Door in the interlock with a Group of Output as the Direct Point will be shown “Door Opened” always

Parameters

Parameters Description

lHID The device ID of the door

Page 67: WIN-PAK SEPE Communication Server API

Communication Server API Functionalities

Release 6.2 67 © 2012 Honeywell International

Parameters Description

bDoorStatus The output Boolean parameter that contains the status of the Door.

Return Type

The HRESULT value is returned. The following table displays the return codes.

Return Code Description

S_OK For a successful operation, the value zero is returned.

Remarks

If the client calls the GetDoorStatus2 function by passing the parameters HID, the bDoorStatus is sent to the client and also the client is subscribed to the door status change notifications through the callback protocol. The following code is a sample of the information sent to the client.

<NLZ> <Door_IsOpen>DoorOpenStatus</Door_IsOpen> <Door_IsShunted>DoorShuntStatus</Door_IsShunted> <Door_ForcedOpen>DoorForcedOpenStatus</Door_ForcedOpen> <Door_Ajar>DoorAjarStatus</Door_Ajar> <ADV_Hid>ADVHID</ADV_Hid> <ADV_DeviceName>DeviceName</ADV_DeviceName> </NLZ>

Page 68: WIN-PAK SEPE Communication Server API

Release 6.2 68 © 2012 Honeywell International

Chapter 3

COMMUNICATION SERVER CALLBACK

PROTOCOL

Overview

The Communication Server API uses the asynchronous callback protocol mechanism provided by COM, COM+, and DCOM components of ActiveX controls. The callback mechanism allows the client application to pass an interface to the server. Using this interface, the server notifies the client about the events/alarms generated by the hardware devices.

The following sections explain the callback protocol process and the notification messages.

In this Chapter Page Number

Protocol Process 69

Notification Message Tags 70

Page 69: WIN-PAK SEPE Communication Server API

Communication Server Callback Protocol

Release 6.2 69 © 2012 Honeywell International

Protocol Process

The client application initiates the connection to the WIN-PAK SE/PE by passing a reference using the InitServer(IDispatch* Caller,… ) method. The server responds to the call using the GotMessage(sMessage) method to notify the client of any events. In addition, the server notifies the client about errors in the server using the method ServerErrors(sErrorMessage).

Process Flow Diagram

The procedural steps for comuunication between the ActiveX enabled client application and the server are as follows:

The client derives the IWPAVCallBack interface and implements its methods; the GotMessage() and ServerError() methods. The client calls the ACCW.MTSCBServer::InitServer method and passes the reference of the class that implements the IWPAVCallBack interface.

The communication server wrapper ACCW.dll contains the compiled WIN-PAK SE/PE communication server APIs. These APIs act as the interface between the client and the communication server. The communication server collects the information about the events generated in the hardware panels.

The ACCW.dll sends information about any events as a parameter in the GotMessage() method.

2

3

1

Page 70: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 70 © 2012 Honeywell International

Notification Message Tags

The WIN-PAK SE/PE communication server informs the client about the events generated in the hardware panels through the notification messages. The information about the events/alarms is in different tags of the notification message.

The information about events/alarms is sent as the sMessage parameter of the GotMessage method. The following is an example of the sMessage parameter.

<NLZ> <AckStatus>1</AckStatus> <Idx>1</Idx> <TranID>1</TranID> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>4</DeviceID> <HID>23</HID> <Prio>1</Prio> <Date>2/16/07</Date> <Time>18:46:00</Time> <Cnt>1</Cnt> <Note>An operator note</Note> <SS>1</SS> <Status>Valid Card</Status> <EventID>701</EventID> <HIDSubType1>51</HIDSubType1> <Point>1008</Point> <Site>NCI</Site> <Account>NCI</Account> <CardNumber>1234</CardNumber> <FullName>Bunny Bugs</FullName> <RP>Panel 1 - Read 1</RP> </NLZ>

Tag Descriptions

The notification message tags, and the information each tag contains is listed in the following table.

Tags Description

<NLZ> Indicates the beginning of the message.

</NLZ> Indicates the end of the message.

Page 71: WIN-PAK SEPE Communication Server API

Communication Server Callback Protocol

Release 6.2 71 © 2012 Honeywell International

Tags Description

<AckStatus>,</AckStatus> The status of the alarm.

• 0 indicates alarm is cleared.

• 1 indicates a new alarm.

• 2 indicates an acknowledged alarm.

<Idx>,</Idx> Indicates if the message is an alarm or event.

• A value greater than 0 indicates an alarm.

• -1 indicates an event.

<TranID>,</TranID> For internal use.

<CommSrvID>,</CommSrvID> The identification number of the communication server that routes the alarm.

If the user interface is configured to multiple communication servers, this tag identifies the communication server that has sent the alarm.

<DeviceID>,</DeviceID> The device ID can be a PanelID or a LoopID.

<HID>,</HID> The hardware device ID.

HID is the unique identifier for the devices configured in the WIN-PAK SE/PE suite of products. The HID tag in the notification message helps to identify the origin of the event.

<Point>,</Point> The point ID.

Point is the ID of device locations for multipoint devices such as a panel.

Note For a panel, the point ID is based on the panel type.

<Prio>,</Prio> The event priority.

Priorities are assigned to events and alarms.

The WIN-PAK SE/PE acknowledges alarms, clears alarms, and performs many other functions based on the priority of the events.

<Date>,</Date> The date of the alarm/event.

<Time>,</Time> The time of the alarm/event.

Page 72: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 72 © 2012 Honeywell International

Tags Description

<Cnt>,</Cnt> The number of occurrences of the same type of alarm or event.

<Oper>,</Oper> The WIN-PAK SE/PE operator.

The operator is the person who acknowledges or clears the alarm/event.

<TranType>,</TranType> The transaction type.

The transaction type can be any of the following:

• Operator Note

• Alarm Ack

• Alarm Clr

Note A new alarm does not have this tag in the notification message.

<Note>,</Note> Additional information added by an operator.

<Status>,</Status> The status of the alarm.

The alarm status displays the reason for triggering of the alarm.

EXAMPLE <Status>PrimaryPowerFailure</Status>

<EventID>,</EventID> The ID of the event/alarm generated from the panel.

The following is an example of an event that indicates Primary Power Failure.

EXAMPLE < EventID >405</ EventID >

For more information on EventIDs, see Event Code List.

<Site>,</Site> The site to which the device belongs.

The WIN-PAK SE/PE operator logically groups the devices for easy monitoring/operating. These logical groups are called sites.

Page 73: WIN-PAK SEPE Communication Server API

Communication Server Callback Protocol

Release 6.2 73 © 2012 Honeywell International

Tags Description

<Account>,</Account> The name of the account.

WIN-PAK SE/PE supports multiple accounts where the card and card holder information is partitioned.

<CardNumber>,</CardNumber> The card number.

<FullName>,</FullName> The full name of the card holder.

<RP>,</RP> The reader/point is the source of the alarm.

<HIDSubType1>, </HIDSubType1> The sub device type ID.

<SS>,</SS> The field value is used for displaying alarms in the alarm window.

TRUE (any value other than 0) indicates the alarm must be replaced with an existing alarm

FALSE (a zero) indicates the alarm must not be replaced and must be appended to the UI

<ADV_Status>, </ADV_Status> The status ID of the device.

<ADV_HID>,</ADV_HID> The device HID.

<ADV_DeviceType>,</ADV_DeviceType> The type of device.

<ADV_DeviceName>,</ADV_DeviceName> The name of the device.

Sample Code to Extract Information from the Notification Messages

An example of the message that the server sends to a simple parser is as follows:

While (sInput <> "") sStr = GetStringFromTran(sInput) //Add sStr to Alarm/Event View using GetFieldFromTran(see GetStringFromTran) //... sInput = Mid(sInput, Len(sStr) + 1) lCntr = lCntr + 1 If lCntr > cMaxLoopCnt Then 'TODO... 'Error? '//Call MessageBox(0, "Internal Error: lCntr > cMaxLoopCnt. ", "", 0) End If Wend

where the GetStringFromTran function is as follows:

Page 74: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 74 © 2012 Honeywell International

Public Function GetStringFromTran(sInTran As String) As String Dim lTmpB As Long Dim lTmpE As Long Dim sTmp As String On Error Resume Next GetStringFromTran = "" lTmpB = InStr(sInTran, "<NLZ>") If lTmpB > 0 Then sTmp = Mid(sInTran, lTmpB) lTmpB = InStr(sTmp, "<NLZ>") lTmpE = InStr(sTmp, "</NLZ>") If lTmpE > 0 And (lTmpB < lTmpE) Then GetStringFromTran = "<NLZ>" + Mid(sTmp, lTmpB + Len("<NLZ>"), lTmpE - (lTmpB

+ Len("<NLZ>"))) + "</NLZ>" End If End If End Function

To get multiple parameters from the message string, you can use the following function.

Public Function GetFieldFromTran(sInTran As String, sFieldName As String) As String Dim lTmpB As Long Dim lTmpE As Long Dim sTmp As String On Error Resume Next GetFieldFromTran = "" lTmpB = InStr(sInTran, "<" + sFieldName + ">") If lTmpB > 0 Then sTmp = Mid(sInTran, lTmpB) lTmpB = InStr(sTmp, "<" + sFieldName + ">") lTmpE = InStr(sTmp, "</" + sFieldName + ">") If lTmpE > 0 And (lTmpB < lTmpE) Then GetFieldFromTran = Mid(sTmp, lTmpB + Len("<" + sFieldName + ">"), lTmpE -

(lTmpB + Len("<" + sFieldName + ">"))) End If End If End Function

Page 75: WIN-PAK SEPE Communication Server API

Communication Server Callback Protocol

Release 6.2 75 © 2012 Honeywell International

Examples of Panel Notification Messages

A few examples of different types of alarm/event panel notification messages are listed in the following tables.

Reader and Output Events

Message String Inference Example 1: <NLZ> <AckStatus>2</AckStatus> <Idx>-1</Idx> <CommSrvID>3</CommSrvID> <Account>Test</Account> <DeviceID>4</DeviceID> <HID>74</HID> <Prio>20</Prio> <Date>11/22/2007</Date> <Time>16:28:26</Time> <Cnt>2</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>Door Ajar</Status> <EventID>721</EventID> <Point>1</Point> <Site>Pro-2200</Site> <RP>Pro-2200 - Reader 2</RP> </NLZ>

The source of the event is Pro-2200 Reader 2.

Page 76: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 76 © 2012 Honeywell International

Example 2: <NLZ> <AckStatus>2</AckStatus> <Idx>-1</Idx> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>3</DeviceID> <HID>31</HID> <Prio>20</Prio> <Date>2/16/2007</Date> <Time>14:47:02</Time> <Cnt>2</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>Door Ajar</Status> <EventID>721</EventID> <Point>1</Point> <Site>PW-5000 2200</Site> <RP>Loop 2 Panel 1 R2-Output</RP> </NLZ>

The source of the event is Loop 2 Panel 1 R2-Output.

Page 77: WIN-PAK SEPE Communication Server API

Communication Server Callback Protocol

Release 6.2 77 © 2012 Honeywell International

Reader and Output Alarms

Message String Inference Example 3: <NLZ> <AckStatus>1</AckStatus> <Idx>2</Idx> <TranID>1</TranID> <CommSrvID>3</CommSrvID> <Account>Test</Account> <DeviceID>4</DeviceID> <HID>74</HID> <Prio>20</Prio> <Date>2/16/2007</Date> <Time>14:43:10</Time> <Cnt>1</Cnt> <Note></Note> <SS>1</SS> <Status>Door Normal</Status> <EventID>719</EventID> <HIDSubType1>53</HIDSubType1> <Point>1</Point> <Site>Pro-2200</Site> <RP>Pro-2200 - Reader 2</RP> </NLZ>

The source of the alarm is Pro-2200 Reader 2 and the device sub type is HID_ENTRANCE_PW5000_DOOR.

Example 4: <NLZ> <AckStatus>2</AckStatus> <Idx>1</Idx> <TranID>1</TranID> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>3</DeviceID> <HID>31</HID> <Prio>20</Prio> <Date>2/16/2007</Date> <Time>14:47:02</Time> <Cnt>2</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>Door Ajar</Status> <EventID>721</EventID> <HIDSubType1>43</HIDSubType1> <Point>1</Point>

The source of the alarm is Loop 2 Panel 1 R2-Output and the device sub type is HID_OUTPUT_PW5000.

Page 78: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 78 © 2012 Honeywell International

Message String Inference <Site>PW-5000 2200</Site> <RP>Loop 2 Panel 1 R2-Output</RP> </NLZ>

Note Using the Idx tag you can differentiate an alarm or an event notification message. A positive value in the Idx tag indicates an alarm. However, a -1 in the Idx tag indicates an event.

Input Event

Message String Inference Example 5: <NLZ> <AckStatus>2</AckStatus> <Idx>-1</Idx> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>3</DeviceID> <HID>39</HID> <Prio>20</Prio> <Date>2/16/2007</Date> <Time>14:48:01</Time> <Cnt>1</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>Input Alarm</Status> <EventID>501</EventID> <Point>4</Point> <Site>PW-5000</Site> <RP>N1000 – In4</RP> </NLZ>

The source of the event is from Input 4 of the N1000 panel.

Page 79: WIN-PAK SEPE Communication Server API

Communication Server Callback Protocol

Release 6.2 79 © 2012 Honeywell International

Message String Inference Example 6: <NLZ> <AckStatus>2</AckStatus> <Idx>-1</Idx> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>4</DeviceID> <HID>52</HID> <Prio>20</Prio> <Date>2/16/2007</Date> <Time>14:48:01</Time> <Cnt>1</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>Input Alarm</Status> <EventID>501</EventID> <Point>4</Point> <Site>PW-5000</Site> <RP>N1000 – In4</RP> </NLZ>

The source of the event is from Input 4 of the N1000 panel.

Input Alarm

Message String Inference Example 7: <NLZ> <AckStatus>2</AckStatus> <Idx>1</Idx> <TransID>1</TransID> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>3</DeviceID> <HID>39</HID> <Prio>20</Prio> <Date>2/16/2007</Date> <Time>22:48:01</Time> <Cnt>1</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>Input Alarm</Status> <EventID>501</EventID> <HIDSubType1>34</HIDSubType1> <Point>4</Point>

The source of the alarm is from Input 4 of the N1000 panel and the device sub type is HID_INPUT_PW5000_SUPER.

Page 80: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 80 © 2012 Honeywell International

Message String Inference <Site>PW-5000</Site> <RP>N1000 – In4</RP> </NLZ>

Example 8: <NLZ> <AckStatus>2</AckStatus> <Idx>1</Idx> <TransID>1</TransID> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>4</DeviceID> <HID>52</HID> <Prio>20</Prio> <Date>2/16/2007</Date> <Time>22:48:01</Time> <Cnt>1</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>Input Alarm</Status> <EventID>501</EventID> <HIDSubType1>34</HIDSubType1> <Point>4</Point> <Site>PW-5000</Site> <RP>N1000 – In4</RP> </NLZ>

The source of the alarm is from Input 4 of the N1000 panel and the device sub type is HID_INPUT_PW5000_SUPER.

Page 81: WIN-PAK SEPE Communication Server API

Communication Server Callback Protocol

Release 6.2 81 © 2012 Honeywell International

Panel Event

Message String Inference Example 9: <NLZ> <AckStatus>2</AckStatus> <Idx>-1</Idx> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>3</DeviceID> <HID>38</HID> <Prio>10</Prio> <Date>2/16/2007</Date> <Time>22:47:07</Time> <Cnt>1</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>PollResponseNormal</Status> <EventID>408</EventID> <Point>0</Point> <Site>PW-5000</Site> <RP>PW-5000</RP> </NLZ>

The source of the event is from the PW-5000 panel.

Page 82: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 82 © 2012 Honeywell International

Panel Alarm Message String Inference Example 10: <NLZ> <AckStatus>2</AckStatus> <Idx>1</Idx> <TransID>1</TransID> <CommSrvID>1</CommSrvID> <Account>Test</Account> <DeviceID>3</DeviceID> <HID>38</HID> <Prio>10</Prio> <Date>2/16/2007</Date> <Time>22:47:07</Time> <Cnt>1</Cnt> <Oper>Admin</Oper> <TranType>Ack</TranType> <Note></Note> <Status>PollResponseNormal</Status> <EventID>408</EventID> <HIDSubType1>29</HIDSubType1> <Point>0</Point> <Site>PW-5000</Site> <RP>PW-5000</RP> </NLZ>

The source of the alarm is from the PW-5000 panel.

Note The zero value in the Point tag indicates that the panel is the source of the alarm/event.

Device Status

Message String Inference Example 11: <NLZ> <ADV_Status>603</ADV_Status> <ADV_Hid>20</ADV_Hid> <ADV_DeviceType>16</ADV_DeviceType> <ADV_DeviceName>Loop</ADV_DeviceName> </NLZ>

The status of the abstract device is Loop OK.

Page 83: WIN-PAK SEPE Communication Server API

Communication Server Callback Protocol

Release 6.2 83 © 2012 Honeywell International

Schedule Server Status Message String Inference Example 12: <NLZ> <ADV_Status>803</ADV_Status> <ADV_Hid>43</ADV_Hid> <ADV_DeviceType>3</ADV_DeviceType> <ADV_DeviceName>SchServer</ADV_DeviceName> </NLZ>

The status of the abstract device is Loop OK.

Examples of WIN-PAK SE/PE Notification Messages

A few examples of different types WIN-PAK SE/PE notification messages are listed in the following tables.

Communication Server Lost Connection

Message String Inference Example 1: <NLZ> <Message>LOST_CONNECTION <CommSrvID>1</CommSrvID> <CommSrvName>CommServer</CommSrvName> <SrvMachineName>199.63.39.58</SrvMachineName> <Date>07/20/2007</Date> <Time>16:47:21</Time> </Message> </NLZ>

The Communication Server 1 lost connection.

Page 84: WIN-PAK SEPE Communication Server API

WIN-PAK SE/PE Communication Server API Public Interface Document

Release 6.2 84 © 2012 Honeywell International

Communication Server Regained Connection

Message String Inference Example 2: <NLZ> <Message>REGAINED_CONNECTION <CommSrvID>1</CommSrvID> <CommSrvName>CommServer</CommSrvName> <SrvMachineName>199.63.39.58</SrvMachineName> <Date>07/20/2007</Date> <Time>16:47:21</Time> </Message> </NLZ>

The Communication Server 1 regained the lost connection.

Database Server Lost Connection

Message String Inference Example 3: <NLZ> <Message>LOST_CONNECTION <DatabaseSrvID>1</DatabaseSrvID> <DatabaseSrvName>CommServer</DataSrvName> <SrvMachineName></SrvMachineName> <Date>07/20/2007</Date> <Time>16:47:21</Time> </Message> </NLZ>

The Database Server 1 lost connection.

Database Server Regained Connection

Message String Inference Example 4: <NLZ> <Message>REGAINED_CONNECTION <DatabaseSrvID>1</DatabaseSrvID> <DatabaseSrvName>CommServer</DataSrvName> <SrvMachineName></SrvMachineName> <Date>07/20/2007</Date> <Time>16:47:21</Time> </Message> </NLZ>

The Database Server 1 regained the lost connection.

Page 85: WIN-PAK SEPE Communication Server API

Release 6.2 85 © 2012 Honeywell International

Glossary

Abstract Device

A logical representation of a physical device. The ADVs can be associated with any hardware device, including communication interfaces, panels, alarm points and entrances.

Concentrator A functional unit that permits a common path to handle more data sources than the channels currently available within the path. A concentrator usually provides communication capability between many low-speed, usually asynchronous channels and one or more high-speed, usually synchronous channels. Usually different speeds, codes, and protocols can be accommodated on the low-speed side. The low-speed channels usually operate in contention and require buffering.

Point The location of the peripheral device connected to the control panel.

Pulse The pulse time is the amount of time the output point is energized when triggered.

Reader A peripheral device connected to the control panel that reads and sends the card information to the control panel.

Shunt and UnShunt

Input points or Alarm points have software states of UNSHUNTED (active) and SHUNTED (not active). When an input is unshunted, all physical changes of state (openings and closures) are recognized. When an input is shunted, physical changes of state are not recognized.

Page 86: WIN-PAK SEPE Communication Server API

Release 6.2 86 © 2012 Honeywell International

Index

A Abstract Devices Status Definitions ................. 59 ACCW.dll .................................................. 38, 69 AckAlarm ........................................................ 40 AddNote ......................................................... 41 AlarmShuntByHID ........................................... 43 AlarmUnShuntByHID ...................................... 44

B BufferByHID ................................................... 46

C CallBack Protocol ............................................ 68 Card Properties .............................................. 28

CardNumber(get) .. 28, 29, 30, 31, 32, 33, 34, 35, 36 CardNumber(put) 28, 29, 30, 31, 32, 33, 34, 35, 36,

37 ClrAlarm ......................................................... 40 Communication Server API Functionalities ..... 38 Component Model Diagram ............................ 11 Connecting API Client and Server .................... 21

D Data Structures............................................... 24

Device ............................................................... 24 Enumeration Types ............................................ 24

DeEnergize ...................49, 50, 51, 52, 53, 54, 55 DoneServer .................................................... 39 DoorModeByHID ............................................ 48

E Energize ......................................................... 49 EntryPointLockByID ........................................ 42 EntryPointUnLockByID .................................... 43 Enumeration Types

HIDSubType1 ............................................... 25, 26 HIDType............................................................. 25 wpviewTYPE ...................................................... 24

Event Code List ............................................... 61 Event ID

Description ........................................................ 61 Examples of Notification Messages ................. 75

Device Status ..................................................... 82 Input Alarm ....................................................... 79 Input Event ........................................................ 78

Panel Alarm ...................................................... 82 Panel Event ....................................................... 81 Reader and Output Alarms ................................ 77 Reader and Output Events ................................. 75 Schedule Server Status ...................................... 83

Examples of WIN-PAK CS Notification Messages .................................................................. 83 Communication Server Lost Connection ............. 83 Communication Server Regained Connection ..... 84 Database Server Lost Connection ....................... 84 Database Server Regained Connection ............... 84

G GetDetailsByID ............................................... 42 GetStatus ...................................... 54, 56, 58, 66 GotMessage .............................................. 69, 70

I InitServer .................................................. 38, 69 Installing ........................................................ 12

CommunicationAPIClient ................................... 16 CommunicationAPIServer .................................. 12

IWPAVCallBack .............................................. 69

L ListConnectedDevices .................................... 48

N Notification Message

Tag Descriptions ................................................ 70 Tags .................................................................. 70

O Object Specifications ...................................... 27

P PulseByHID .................................................... 44

R RestoreTZByHID ............................................. 45

S ServerErrors ................................................... 69

Page 87: WIN-PAK SEPE Communication Server API

Index

Release 6.2 87 © 2012 Honeywell International

Status ID Descriptions....................................................... 59

Supported Operating Systems ........................ 11

T Tag Descriptions ............................................. 70

<Account> ......................................................... 73 <AckStatus> ....................................................... 71 <ADV_DeviceName> .......................................... 73 <ADV_DeviceType> ............................................ 73 <ADV_HID> ........................................................ 73 <ADV_Status> .................................................... 73 <CardNumber> .................................................. 73 <Cnt> ................................................................ 72 <CommSrvID> .................................................... 71 <Date> .............................................................. 71 <DeviceID> ........................................................ 71 <EventID> .......................................................... 72 <FullName> ....................................................... 73 <HID> ................................................................ 71

<HIDSubType1> ................................................. 73 <Idx> ................................................................. 71 <NLZ> ............................................................... 70 <Note> .............................................................. 72 <Oper>.............................................................. 72 <Point> ............................................................. 71 <Prio> ............................................................... 71 <RP> ................................................................. 73 <Site>................................................................ 72 <SS> .................................................................. 73 <Status> ............................................................ 72 <Time> .............................................................. 71 <TranID> ........................................................... 71 <TranType> ....................................................... 72

TimedPulseByHID ........................................... 44

U UnBufferByHID .............................................. 47

Page 88: WIN-PAK SEPE Communication Server API
Page 89: WIN-PAK SEPE Communication Server API

Honeywell Access Systems 135 West Forest Hill Avenue Oak Creek, WI 53154 U.S.A Tel: 800-323-4576 Fax: 414-766-1798

Honeywell Access Systems Charles Avenue, Burgess Hill West Sussex, RH15 9UF U.K Tel: +44 (0)1444 251180 Fax: +44 (0)1444 871074

Office Hours: 7 AM to 7 PM (CST) E-mail: [email protected] URL: http://www.honeywellaccess.com

Specifications subject to change without notice. © 2012 Honeywell International. All rights reserved.