From: Matthew W. <mat...@us...> - 2006-07-12 21:05:42
|
Troy Carpenter wrote: > No, I'm right :) Once the VerboseArmingControl is turned on, the DSC5401 > sends the extra parameter which indicates the mode: > > Before the VerboseArmingControl is turned on: > 07/11/06 02:07:00 PM DSC5401:check_for_data DscString=652 1 CE > > After the VerboseArmingContol is turned on: > 07/11/06 03:28:20 PM DSC5401:check_for_data DscString=652 10 FE > > Notice that the second log shows "10" after the message type, which means > partition 1, away mode. The first log only has "1" after the message type, > which is interpreted by the perl code as the partition. > Well, actually I'm right! :-) The line in the code is this: my $Mode = ( length($data) == 2 ) ? substr( $data, 1, 1 ) : 5; If the verbose parameter is present, then the extra digit is used to determine the type of arming. If the verbose parameter isn't present, then the type of arming defaults to "5" whose ModeTxt is "armed". __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |