markkimsal / homesecurity

VISTA ICM replacement: Adruino firmware for Honeywell / Ademco Vista series security panels
https://alarmtool.com/
51 stars 24 forks source link

Missing codes #5

Open jp0550 opened 6 years ago

jp0550 commented 6 years ago

I've used your project as a base for my own for the safewatch 3000en which is a modified vp20 for adt. I'm unsure how similar it is for yours but I reversed engineered the missing bytes for the f7 messages below if you'd like to add them to yours.

int const BIT_MASK_BYTE1_CANCELLED = 0x20; //alarm has gone off and been dismissed. But one more dismiss is required to rearm int const BIT_MASK_BYTE1_BEEP = 0x03; // 0 - no beeps, 1 - single beep (door opening or closing). 3 - 3 beeps as when arming the system, 4 - panic beep for a trouble code or last few seconds or arming, 5 - steady beep for away arming

int const BIT_MASK_BYTE2_ARMED_HOME = 0x80; int const BIT_MASK_BYTE2_LOW_BAT = 0x40; int const BIT_MASK_BYTE2_FIRE = 0x20; //fire led icon. Shows when sounding or when trouble bit is set int const BIT_MASK_BYTE2_READY = 0x10;

int const BIT_MASK_BYTE2_DISPLAY_MASK = 0x0C; //used to tell the keypad which digits of the zone to show on screen. Convert the result to binary and 1 indicates show the digit 0 to hide. b11 hide both digits, b00 show both digits. Discovered using programming mode int const BIT_MASK_BYTE2_TROUBLE = 0x02; // triggered by removing a smoke detector from the system or possibly a short in the sensor or alarms, but was only able to trigger with smoke int const BIT_MASK_BYTE2_FIRE_ALARM = 0x01; //fire alarm sounding.

int const BIT_MASK_BYTE3_NO_DELAY = 0x80; //instant int const BIT_MASK_BYTE3_PROGRAMMING_MODE = 0x40; int const BIT_MASK_BYTE3_CHIME_MODE = 0x20; int const BIT_MASK_BYTE3_BYPASS = 0x10;

int const BIT_MASK_BYTE3_AC_POWER = 0x08; int const BIT_MASK_BYTE3_ARMED_AWAY = 0x04; int const BIT_MASK_BYTE3_FAULT = 0x02; int const BIT_MASK_BYTE3_MAIN_ALARM = 0x01; //break-in alarm sounding