[Bacsharp-developers] Additions - Properties (- 2012?)
Brought to you by:
anders-agren,
skarg
From: Dennis V M. <d.m...@d2...> - 2018-10-04 19:47:37
|
Guys & Gals, Apologies if I've strayed from the original naming. But I thought you might like a copy of the following additional property types: // DBS: ADDED EVENT_MESSAGE_TEXTS_CONFIG = 352, EVENT_DETECTION_ENABLE = 353, EVENT_ALGORITHM_INHIBIT = 354, EVENT_ALGORITHM_INHIBIT_REF = 355, TIME_DELAY_NORMAL = 356, RELIABILITY_EVALUATION_INHIBIT = 357, FAULT_PARAMETERS = 358, FAULT_TYPE = 359, LOCAL_FORWARDING_ONLY = 360, PROCESS_IDENTIFIER_FILTER = 361, SUBSCRIBED_RECIPIENTS = 362, PORT_FILTER = 363, AUTHORIZATION_EXEMPTIONS = 364, ALLOW_GROUP_DELAY_INHIBIT = 365, CHANNEL_NUMBER = 366, CONTROL_GROUPS = 367, EXECUTION_DELAY = 368, LAST_PRIORITY = 369, WRITE_STATUS = 370, PROPERTY_LIST = 371, // Added in protocol revision 14 (?) // SERIAL_NUMBER = 372, BLINK_WARN_ENABLE = 373, DEFAULT_FADE_TIME = 374, DEFAULT_RAMP_RATE = 375, DEFAULT_STEP_INCREMENT = 376, EGRESS_TIME = 377, IN_PROGRESS = 378, INSTANTANEOUS_POWER = 379, // LIGHTING_COMMAND = 380, LIGHTING_COMMAND_DEFAULT_PRIORITY = 381, MAX_ACTUAL_VALUE = 382, MIN_ACTUAL_VALUE = 383, // POWER = 384, TRANSITION = 385, EGRESS_ACTIVE = 386 Also, if your IP address has multiple subnets (rather than just the one) - e.g. ends with something a value like 248, rather than 0, you might need to calculate the broadcast address, e.g.: https://blogs.msdn.microsoft.com/knom/2008/12/31/ip-address-calculations-with-c-subnetmasks-networks/ Maybe I'm wrong, but I think the 'SetObjectID' method might not be correct (?); what I believe to be correct with comment (- along with the old line of code commented-out): // Application-Tag & BACnet 'Object-Identifier' // (- VTS: 'Device Identifier' / app-tag & Bn-Obj-Id - e.g. "device,257" == 'C4 02 00 01 01') public static uint /*APDU*/ SetObjectID(ref byte[] bytes, uint pos, BACnetEnums.BACNET_OBJECT_TYPE bnObjType, uint objInstNum) { // Assemble Object ID portion of APDU uint value = 0u; //PEP Context Specific Tag number could differ // DVM: Bug-fix (?); was not placing the 'Tag Number' in the right // place (or with the right value), and was not setting the 'Class' // (toapplication-tag/'0' - defaulted here), and was not setting // the 'Length' (to the object-id length/'4'). The 'Tag Number' // might have been a typo - "0x0C" << 4 == '0xC0' (?). bytes[pos++] = (0x0C << 4) | 4; // Tag number (BACnet Object ID) // bytes[pos++] = 0x0C; // Tag number (BACnet Object ID) // <-- original [http://dev.d2i.co/d2i-email-signature/wlogo.png] Dennis McEnaney Technical Lead DDI 020 3102 4100<tel:02031024100> [http://dev.d2i.co/d2i-email-signature/wdot.png] TEL 020 3817 7839<tel:02038177839> [http://dev.d2i.co/d2i-email-signature/wdot.png] WEB d2i.co<http://d2i.co/> Portsoken House, 155-157 Minories, London, EC3N 1LJ [http://dev.d2i.co/d2i-email-signature/wico-linkedin.png]<https://www.linkedin.com/company/d2-interactive-uk>[http://dev.d2i.co/d2i-email-signature/wico-facebook.png]<https://www.facebook.com/d2iglobal>[http://dev.d2i.co/d2i-email-signature/wico-twitter.png]<https://twitter.com/d2interactive>[http://dev.d2i.co/d2i-email-signature/wico-instagram.png]<https://www.instagram.com/d2interactive/>[http://dev.d2i.co/d2i-email-signature/wico-google.png]<https://plus.google.com/116460778442548453069/posts> D2 Interactive Limited, Company Reg No. 7116878, VAT No. 984-4271-88, Registered Office: Portsoken House, 155-157 Minories, London, EC3N 1LJ. This email may be private and confidential, and contain legally privileged information. If you are not the addressee you should not disclose, copy, circulate or in any other way use the information contained in this transmission. Such unauthorised use is prohibited and may be unlawful. If you are not the intended recipient, please contact us immediately. P Save a tree - we only print the emails we really need. |