beautypg.com

Satel ETHM-1 User Manual

Page 8

background image

SATEL 2014-04-02

0x8B clear trouble mem.

+ 8 bytes - user code - see example for 0x80
If function is accepted, function result can be checked by observe the system state

0x8C read event

+ 3 bytes - last event index. Start reading events with these 3 bytes equal:

0xFF, 0xFF, 0xFF -the last event from standard events log will be returned. Test if bit Z is 0 to

check if it is 'end of events' record (see table below)

0x00, 0xFF, 0xFF - the last event from Grade2/3 events log will be returned. Test if 1st byte is 0 to

check if it is 'end of events' record (see table below)

To read previous event (if this one is not 'end of events' record), call this function with event index
returned by this function. Check if returned record is 'end of events' testing Z or 1st byte, depending on
how events reading was started (0xFF, 0xFF, 0xFF = standard log, 0x00, 0xFF, 0xFF = Grade2/3 log).
Function result - 15 bytes:

1 byte

- 0x8C

8 bytes - event record - see the table below
3 bytes - event index
3 bytes - event index used to call the function

Bit: .7

.6

.5

.4

.3

.2

.1

.0

1st byte Y

Y

Z

E

S2

S2

S1

S1

2nd byte K

K

K

D

D

D

D

D

3rd byte M

M

M

M

T

T

T

T

4th byte

t

t

t

t

t

t

t

t

5th byte P

P

P

P

P

R

C

C

6th byte

c

c

c

c

c

c

c

c

7th byte

n

n

n

n

n

n

n

n

8th byte S

S

S

u

u

u

u

u

YY

- year marker (i.e. YEAR mod 4, e.g. 2013 mod 4 = 1, 2014 mod 4 = 2)

Z

- 1 = record not empty

E

- 1 = event present (normally ZE should be both 00 or 11)

S1, S2

- status of monitoring to station 1 and 2, respectively:

00 - new event, not processed by monitoring service
01 - event sent
10 - should not occur
11 - event not monitored

KKK

- event class:

000 - zone and tamper alarms

001 - partition and expander alarms

010 - arming, disarming, alarm clearing
011 - zone bypasses and unbypasses
100 - access control
101 - troubles
110 - user functions
111 - system events

DDDDD

- day of the month (1..31)

MMMM

- month (1..12)

TTTTtttttttt

- time in minutes (e.g. 17:53 = 17*60+53 = 1073)

PPPPP

- partition number

R

- 1 = restore

CCcccccccc - event code - use command 0x8F to convert to text (or see Appendix 1 for event list)
nnnnnnnn

- source number (e.g. zone number, user number) (see Appendix 1)

SSS

- object number (0..7)

uuuuu

- user control number - this number is increased everytime the user is created (i.e. it will be
changed after erase and create the user). This number is important only in those events
which have the user in its description (e.g. arming by user; but e.g. zone alarm - not)

0x8D enter 1st code

+ 8 bytes - user code - see example for 0x80
+ 4 bytes - partition list - see example for 0x80
+ 2 bytes - 1st code validity period (low,high) in seconds
+ 1 byte - action:

0 - enter 1st code for arm
1 - enter 1st code for disarm
2 - cancel 1st code (validity period inessential)

If function is accepted, function result can be checked by observe the system state

0x8E set RTC clock

+ 8 bytes - user code - see example for 0x80
+ 14 bytes - time and date to set (14 ASCII chars: yyyymmddhhmmss)

- 8 -