-
Notifications
You must be signed in to change notification settings - Fork 143
Event buffer - logs requested to improve Keybus decoding #175
Description
Continuing discussion from PR #155 for event buffer decoding thanks to the work by @BriceDet.
This issue is to decode the event buffer messages with logs of KeybusReader while accessing the DSC *6 event buffer with an LCD keyboard, noting any KeybusReader messages that are different than the DSC keypad display.
Panel commands 0xAA and 0xEC display event buffer messages, and seem to correspond to 0xA5 and 0xEB with an additional byte for an event index number.
Current 0xAA decoding - byte 3 bit 6-7 may be partition number but needs confirmation:
* 0xAA: Event buffer
* CRC: yes
* Structure decoding: *incomplete
* Content decoding: *incomplete
*
* Byte 2 bit 0-3: Year digit 2
* Byte 2 bit 4-7: Year digit 1
* Byte 3 bit 0-1: Day digit part 1
* Byte 3 bit 2-5: Month
* Byte 3 bit 6-7: Unknown (partition?)
* Byte 4 bit 0-4: Hour
* Byte 4 bit 5-7: Day digit part 2
* Byte 5 bit 0-1: Selects set of status commands
* Byte 5 bit 2-7: Minute
* Byte 6: Status, printPanelStatus0...printPanelStatus3
* Byte 7: Event number
* Byte 8: CRC
*
* YYY1YYY2 MMMMDD DDDHHHHH MMMMMM
* 10101010 0 00100001 01000110 00001000 00100100 00011100 11111111 01011000 [0xAA] Event: 255 | 2021.01.16 08:09 | Zone alarm: 20
* 10101010 0 00100000 01100110 10001101 00111000 10011001 00001000 10010110 [0xAA] Event: 008 | 2020.09.20 13:14 | Armed by user code 1
Current 0xEC decoding, byte 4 bit 6-7 may be partition but also needs to be checked:
* 0xEC: Event buffer - partitions 1-8
* CRC: yes
* Structure decoding: *incomplete
* Content decoding: *incomplete
*
* Byte 2: Partition
* Byte 3 bit 0-3: Year digit 2
* Byte 3 bit 4-7: Year digit 1
* Byte 4 bit 0-1: Day digit part 1
* Byte 4 bit 2-5: Month
* Byte 4 bit 6-7: Unknown (partition?)
* Byte 5 bit 0-4: Hour
* Byte 5 bit 5-7: Day digit part 2
* Byte 6 bit 0-1: Unknown
* Byte 6 bit 2-7: Minute
* Byte 7: Selects set of status commands
* Byte 8: Status, printPanelStatus0...printPanelStatus14
* Byte 9: Event number
* Byte 10: CRC
*
* YYY1YYY2 MMMMDD DDDHHHHH MMMMMM
* 11101100 0 00000000 00100000 00101101 01100011 10111100 00000001 10101100 00001011 00010000 [0xEC] Event: 011 | 2020.11.11 03:47 | Exit *8 programming
These commands seem to be mostly decoding other than the two mentioned bits - additional logs and feedback on this decoding would be useful to make sure it's being decoded correctly.