Page 1 of 1
K command in telnet not working
Posted:
Sat Feb 11, 2023 7:18 am
by mgchristensen
My Alarm Decoder, attached to an Ademco/Honeywell 21ip panel, is exhibiting inconsistent behavior with the "K" command. AD2PI variant.
This panel allows the attachment of 8 keypads at device addresses 16 to 23. I have Ademco 6160 keypads at addresses 16 to 19, Ademco 5839 wireless keypads at 20-22, and the AD2PI at 23. Keypad address 17 is assigned to partition 2, all others are assigned to partition 1.
While connected to AD via telnet:
Output of "V" command:
!VER:ffffffff,V2.2a.8.9b-306,TX;RX;SM;VZ;RF;ZX;RE;AU;3X;CG;DD;MF;L2;KE;M2;CB;DS;ER;CR
Output of "C" command:
!>
!CONFIG>MODE=A&CONFIGBITS=ff0f&ADDRESS=23&LRR=N&COM=N&EXP=NNNNN&REL=NNNN&MASK=ffffffff&DEDUPLICATE=N
The "K" command just does not work for the wired keypads, e.g. K18XXXX3\r will NOT arm partition 1, K18XXXX1\r will NOT disarm the partition. BUT!!! the telnet session will respond with
!KPE:18
!KPE:18
The "K" command partially works for the wireless keypads, e.g. K20XXXX3\r will arm partition 1, but K20XXXX*2 will NOT temporarily assign the keypad to partition 2. Response to K20XXXX*2:
!KPE:20
!KPE:23
Yes, that second KPE is not a typo.
The "K" command seems to fully work for the AD2PI at address 23, e.g. K23XXXX3\r will arm partition 1, K23XXXX*2 will temporarily assign the AD2PI to partition 2, and K23XXXX3\r will then arm partition 2. Response:
!KPE:23
!KPE:23
Ending the command with the ENTER key seems to work identically to ending the command with CTRL-M.
Any feedback greatly appreciated!
Re: K command in telnet not working
Posted:
Fri Feb 17, 2023 12:41 pm
by mathewss
Hmm. Could be a bug. I will have to review the firmware code but maybe the problem is in the breakout of the K mode. A CR or LF should break it out only but maybe the '*' is the problem. As for why the first test didn't work I would need to see debug output.
DO the same test but first enter debug @48 and then run the test and then @00 to disable debugging.
Also I see your KPM messages this would normally be disabled but are enabled with your config bits that is fine just that it is not required for K mode to work just a good way to see if it worked :c)
Best
SM
Re: K command in telnet not working
Posted:
Sat Feb 18, 2023 9:35 am
by mgchristensen
Here is the debug output. Note that I cannot see where the K command is echoed to the screen, as it would be with debug = 00
!>Diag. Flag (0) :>48
!DBG:<ff><ff><ff><ff><ff><ff><ff><ff><ff><ff><ff><ff>
!DBG:*fb*[fb][02][20][81][62](00)(24)(00)(dc)<ff><ff>
!DBG:*f7*[f7][02][00][fd][10][08][00][8c][08][02][00][00][31][20][20][41][52][4d][45][44]
!DBG:[20][53][54][41][59][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20]
!DBG:[20][20][20][c1][00][00][00]<ff>
!KPM:[00100001000000003A--],008,[f70200fd1008008c08020000000000],"1 ARMED STAY "
!DBG:<ff><ff>
!DBG:*fb*[fb][02][25][82][5c](00)(21)(03)(dc)<ff><ff><ff><ff><ff>
!DBG:*f7*[f7][00][00][02][00][08][00][8c][08][02][00][00][32][20][20][41][52][4d][45][44]
!DBG:[20][53][54][41][59][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20]
!DBG:[20][20][20][cd][00][00][00]
!KPM:[00100001000000003A--],008,[f70000020008008c08020000000000],"2 ARMED STAY "
!DBG:<ff><ff><ff><ff><ff><ff><ff>K<ff><ff><ff><ff><ff>1<ff>8<ff><ff>3<ff>5<ff>4<ff>7<ff><ff>1<ff>
!DBG:<ff><ff><ff><ff>
!DBG:*f7*[f7][02][00][fd][10][08][00][8c][08][02][00][00][31][20][20][41][52][4d][45][44]
!DBG:[20][53][54][41][59][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20]
!DBG:[20][20][20][c1][00][00][00]
!KPM:[00100001000000003A--],008,[f70200fd1008008c08020000000000],"1 ARMED STAY "
!DBG:<ff><ff>
!Sending.!DBG:(ff)(ff)(fb)<ff>
!DBG:*f6*[f6][12](80)(00)(0b)(56)(18)(78)(70)(c0)(ca)(ff)(ff)(fb)<ff>
!DBG:*f6*[f6][12](92)(01)(6d)[92]<ff><ff><ff><ff>
!DBG:*f7*[f7][00][00][02][00][08][00][8c][08][02][00][00][32][20][20][41][52][4d][45][44]
!DBG:[20][53][54][41][59][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20]
!DBG:[20][20][20][cd][00][00][00]<ff>.<ff>(ff)(ff)(fb)<ff>
!DBG:*f6*[f6][12](00)(00)(0b)(56)(18)(78)(70)(c0)(aa)[fa][01][40][25][f1][af](0c)(11)(e3)
!DBG:(ff)(ff)(fb)<ff>
!DBG:*f6*[f6][12](d2)(01)(2d)[d2]<ff><ff><ff><ff>.(ff)(ff)(fb)<ff>
!DBG:*f6*[f6][12](00)(00)(0b)(56)(18)(78)(70)(c0)(0a)(ff)(ff)(fb)<ff>
!DBG:*f6*[f6][12](12)(01)(ed)[12]<ff><ff><ff>
!DBG:*f9*[f9][03][00]<ff>
!DBG:*03*[03]<ff><ff>.(ff)(ff)(fb)<ff>
!DBG:*f6*[f6][12](12)(00)(1b)(56)(18)(78)(70)(c0)(6a)(ff)(ff)(fb)<ff>
!DBG:*f6*[f6][12]done
!KPM:[00100001000000003A--],008,[f70000020008008c08020000000000],"2 ARMED STAY "
!KPE:18
!DBG:(52)(01)(ad)
!KPE:18
!KPE:18
!DBG:[52]
!KPE:18
!KPE:18
!KPE:18
!KPE:18
!KPE:18
!DBG:<ff><ff><ff><ff><ff><ff><ff><ff><ff><ff><ff><ff>
!DBG:*f7*[f7][02][00][fd][10][08][00][8c][08][02][00][00][31][20][20][41][52][4d][45][44]
!DBG:[20][53][54][41][59][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20]
!DBG:[20][20][20][c1][00][00][00]<ff>
!KPM:[00100001000000003A--],008,[f70200fd1008008c08020000000000],"1 ARMED STAY "
!DBG:<ff><ff><ff><ff><ff><ff>
!DBG:*f7*[f7][00][00][02][00][08][00][8c][08][02][00][00][32][20][20][41][52][4d][45][44]
!DBG:[20][53][54][41][59][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20][20]
!DBG:[20][20][20][cd][00][00][00]
!KPM:[00100001000000003A--],008,[f70000020008008c08020000000000],"2 ARMED STAY "
!DBG:<ff><ff><ff><ff><ff><ff><ff><ff><ff><ff><ff>d<ff>e<ff>b<ff>u<ff><ff>g<ff><ff> <ff><ff><ff>
@!DBG:<ff><ff>00<ff><ff>
!>Diag. Flag (48) :>00
!KPM:[00100001000000003A--],008,[f70200fd1008008c08020000000000],"1 ARMED STAY "
!KPM:[00100001000000003A--],008,[f70000020008008c08020000000000],"2 ARMED STAY "
Re: K command in telnet not working
Posted:
Sat Feb 18, 2023 5:30 pm
by mgchristensen
Further info on my panel that may be helpful:
It is a VS21IPSIA date of man. 01-27-2009
Label on ROM (?) or uC chip on panel board reads WA21IPSIA-1.1 REV. 1.1
Re: K command in telnet not working
Posted:
Wed Feb 22, 2023 7:09 pm
by mathewss
Looking at the debug it looks a lot like we have two devices at 18. Can we confirm other keypad addresses.
I have seen many 21ip and other panels this issue is just configuration or conflict.
Best
Sean M.
Re: K command in telnet not working
Posted:
Sun Mar 12, 2023 7:07 am
by mgchristensen
Sean M., thank you for your reply.
I went to each of my four physical, wired keypads. On each, I pressed the "1" and "3" keys simultaneously, which gives the address of the keypad. They are assigned addresses 16, 17, 18, 19, no duplicates. I went to each of my three physical, wireless keypads. Pressing "1" and 3" brings up the setup menu. They are assigned the ECP addresses 04, 05, 06 and enrolled in the panel as 20, 21, 22, no duplicates.
Is there a guide how to read the debug output?
Thanks!
Michael C.
Re: K command in telnet not working
Posted:
Thu Apr 27, 2023 8:25 am
by mgchristensen
Forgot to add that the AlarmDecoder is assigned keypad address 23.