Events

Request events.

Type: Events

Copy
http://192.168.1.2/PRT_CTRL_DIN_ISAPI.dll?Request&Type=Events&SubType=<SubType>

SubTypes

SubType

Description

Update

All events since last request

Latest

Last 20 events

Previous

Previous 20 events from last request

Next

Next 20 events from last request

ExportCSV

Export events to a CSV file. For details see ExportCSV below.

Success Response

A successful response contains the ampersand separated list of events.

Copy
Event0=Mon 02/01/2006 11:44:18 System Power Up &Event1=Mon 02/01/2006 11:44:18 Module RD001 Registered (C25399CA)&Event2=Mon 02/01/2006 11:44:18 Trouble Input Bell Siren 1 Tamper / Cut Opened &Event3=Mon 02/01/2006 11:44:26 Time Work Hours Schedule Valid &Event4=Mon 02/01/2006 11:44:26 Trouble Input System Restarted Opened &Event5=Mon 02/01/2006 11:44:26 Trouble Input System Restarted Closed &Event6=Mon 02/01/2006 11:44:28 Area System Area Force Arming Started By SYSTEM USER Using AR241 &Event7=Mon 02/01/2006 11:44:28 Area System Area 24Hr Enabled By SYSTEM USER &Event8=Mon 02/01/2006 11:44:28 Report In System Area Trouble Input Bell Siren 1 Tamper / Cut [FF] [TP]&Event9=Mon 02/01/2006 11:44:28 Area System Area Alarm Activated &Event10=Mon 02/01/2006 11:44:28 Area Area 1 24Hr Enabled By SYSTEM USER &Event11=Mon 02/01/2006 11:44:28 Area System Area Force Armed By SYSTEM USER &Event12=Mon 02/01/2006 11:44:28 Report In System Area Area SYSTEM USER [REMOTE+SYSTEM] [AR+RES]&Event13=Mon 02/01/2006 11:44:29 Module RD001 Online &EventCodes0=2964377922,0,0,0,0,0,0,0,0,0,0,0,0,0&EventCodes1=2964377922,2304,1044,4,1045,0,1070,194,0,83,1070,153,0,202&EventCodes2=2964377922,1281,1035,198,0,0,0,0,0,0,0,0,0,0&EventCodes3=2964377922,1792,1018,0,0,0,0,0,0,0,0,0,0,0&EventCodes4=2964377922,1281,1035,217,0,0,0,0,0,0,0,0,0,0&EventCodes5=2964377922,1280,1035,217,0,0,0,0,0,0,0,0,0,0&EventCodes6=2964377922,2122,1014,0,1016,4294967294,0,0,0,2147483632,0,0,0,0&EventCodes7=2964377922,2211,1014,0,1016,4294967294,0,0,0,2147483632,0,0,0,0&EventCodes8=2964377922,40961,1014,0,1035,198,0,0,1108,255,0,0,1061,1&EventCodes9=2964377922,2111,1014,0,0,0,0,0,0,0,0,0,0,0&EventCodes10=2964377922,2211,1014,16,1016,4294967294,0,0,0,2147483632,0,0,0,0&EventCodes11=2964377922,2089,1014,0,1016,4294967294,0,0,0,2147483632,0,0,0,0&EventCodes12=2964377922,40962,1014,0,1016,4294967294,0,4294967295,1062,87,0,0,1061,11&EventCodes13=2964377922,2305,1044,4,1045,0,0,0,0,0,0,0,0,0

Any valid request that contains no events will return the following.

Copy
<no response>

The maximum length of each event description is 1024 characters. Longer event descriptions will be truncated.

Response Parameters

The first part is the event descriptions with keys Event<Event ID>. The second part provides additional event data, including the event timestamp and event code. It has the keys EventCodes<Event ID>.

ClosedAdditional Event Data

Errors

Copy
Request Failed (2) Did not get a response from the main app.
Copy
Request Failed (3) Did not recognise the response from the main app.
Copy
Request Failed (128) Event Request type not recognised.

ExportCSV

Export events to CSV file, using the optional StartDate and EndDate parameters.

Copy
http://192.168.1.2/PRT_CTRL_DIN_ISAPI.dll?Request&Type=Events&SubType=ExportCSV&StartDate=01-01-2017T00:00:00&EndDate=31-12-2017T23:59:00

Request Parameters

Parameter

Example

Description

StartDate

01-01-2017T00:00:00

Optional. ISO 8601 format date.

EndDate

31-12-2017T23:59:59

Optional. ISO 8601 format date.

Success Response

Successful response will return the CSV file with the requested events. If no events are found the file will contain only the CSV header.

CSV file name that is returned:

Copy
Event report <Controller Serial Number>.csv

Export Errors

Copy
Request Failed (1) Could not open the Events request file.
Copy
Request Failed (2) The file length was either 0 or too large.
Copy
Request Failed (3) Could not allocate enough memory to process this.
Copy
Request Failed (4) Could not read from NandFlash.
Copy
Request Failed (11) Invalid dates were specified.
Copy
Request Failed (14) Could not allocate memory to format the file.
Copy
Request Failed (15) Could not create the file on NandFlash.
Copy
Request Failed (16) Internal error - pointer corruption.
Copy
Request Failed (20) Did not get a response from the main app.
Copy
Request Failed (21) Got a response from the app but it was not for this command.