Commit Graph

202 Commits

Author SHA1 Message Date
tbrennan3 49b4c6cd35 Added comments to create Doxygen sub-Module for DM-DOB BIBB (Who-Has). 2010-02-23 03:26:47 +00:00
tbrennan3 60247fa55f Added comments to create Doxygen Modules for some of the DM BIBBs (DCC, Who-Is, RD) so far. 2010-02-23 02:43:16 +00:00
skarg d98194636c Changed default WhoIs to be Broadcast after seeing problems of unicast I-Am through some BACnet routers. Split out WhoIs into 2 handlers - one for unicast I-Am and one for Broadcast I-Am. Developer can choose which one to use for their default handler. 2010-02-19 14:45:32 +00:00
skarg f5bc326061 Merged duplicate and different BACnet Renitialized Device State enumerations. 2010-02-18 17:25:58 +00:00
petermcs 9c9e4b9603 Changed RR handler to call Device_Objects_RR_Info directly.
Removed handler_rr_object_set and associated info. 
Simplified parameter passing to rr info functions by passing ptr to BACnet_Read_Range_Data.
2010-02-18 11:12:38 +00:00
skarg 1f9c13d37b Got rid of the handler-set functions for RP,RPM,WP,RD. Just referencing the device object functions directly. 2010-02-18 03:06:03 +00:00
tbrennan3 4c99467009 Added Send_I_Am_Unicast() and used it in inhandler_who_is(). Sends directly back to the source address instead of a broadcast, per Addendum 135-2008q-1. 2010-02-15 20:47:20 +00:00
petermcs ecb1f2064f Folded error class and code into BACNET_READ_RANGE_DATA structure. 2010-02-15 11:41:23 +00:00
tbrennan3 4cc1ce9c62 Added @file description to bacnet.h and lib/main.cpp
Fixed a build issue for the linux+MS/TP combination in trendlog.h
Setup library build to define BIP_DEBUG if it is a Debug build and if it is a BIP build.
2010-02-14 05:53:09 +00:00
skarg 6c1b5b7e68 Decoupled the demo handler from the demo object for ReinitializeDevice service. 2010-02-13 13:38:00 +00:00
skarg 6b1cc84249 Added WhoHas/I-Have services.
Simplified the BO writes from main.
2010-02-12 21:46:11 +00:00
skarg eeaaf3caa1 Changed BO set/get to use instance number. 2010-02-12 05:18:45 +00:00
skarg d7ec61eb21 Moved constants defining the number of each object back into the source files for the demo objects since the header files are currently common to all. 2010-02-11 23:14:53 +00:00
skarg 70b5d45ce2 Updated ports/bdk-atxx4-mstp to use demo handlers for RP,RPM,WP. 2010-02-11 04:31:43 +00:00
skarg bf0a6ab43d Changed device object functions list to terminate with normal unsigned value so that embedded compilers that convert enums to unsigned will work correctly. 2010-02-11 04:28:33 +00:00
skarg 1b4640c192 Changed default state of PRINT_ENABLED to zero for embedded ports. 2010-02-10 18:47:31 +00:00
skarg f0863c0238 Refactored RP, WP, RPM to reduce coupling with objects for Linux and Win32 ports. 2010-02-10 16:27:31 +00:00
petermcs a076bca5dc Device_Set_System_Status() now does some range checking (also has local flag to allow internal and external sources have different levels of control.
Simplified write property code using new validation helper functions in h_wp.c. Added location, description and model name to the writable properties.
2010-02-03 22:45:07 +00:00
petermcs 9b19207fd1 Added some argument validation helper functions to simplify write property code in the objects. 2010-02-03 22:37:43 +00:00
petermcs f3806bb158 Fixed error class for NO_SPACE_TO_WRITE_PROPERTY when changing device name so it is for class RESOURCES.
Changed Database Revision to uint32_t and now increment it when device name or ID is written (will need to look at other objects to see if they have writable ID's or names).
2010-02-01 13:19:32 +00:00
petermcs bfa8936bf5 Changed a bunch of debug and information printfs so that they have a better chance of working on systems where int is smaller than 32 bits also fixed the signed/unsigned type of some to match the type of the arguments. 2010-01-26 21:30:38 +00:00
skarg dc2a432a65 Added alloc to ringbuf module. 2009-12-18 04:20:44 +00:00
petermcs 7c13ab6904 First version of Trend Log which will actually log real data. 2009-12-11 14:54:56 +00:00
petermcs 989ab7ffe7 Implemented ReadRange By Time for Trend Logs. 2009-12-07 12:15:15 +00:00
petermcs d63618d599 Implemented Trend Log ReadRange for "By Position" and "All" options.
Fixed some issues in the rest of the Trend Log code and the general ReadRange code..
2009-11-29 19:32:47 +00:00
skarg 52294d1dce Added fixes for Alarms and Events. Thank you Sebastien! 2009-11-29 18:47:05 +00:00
petermcs 35ec69c307 Updates to the Trend Log object:
1. Added more of the required logic to the Trend Log write property handler.
2. Fixed some mistakes in the read property handler
3. TrendLog_Init now sets up data to allow for testing.
4. Enabled write property handling in main.c
2009-11-25 10:23:23 +00:00
petermcs 916067ec59 Added skeleton Trend Log object. Currently allows properties to be read and written but has little of the required logic for trending implemented yet. 2009-11-23 08:27:09 +00:00
petermcs 5b746d3016 Corrected: PROP_LOG_DEVICE_OBJECT should be PROP_LOG_DEVICE_OBJECT_PROPERTY to match the spec terminology 2009-11-17 10:42:23 +00:00
petermcs 628f90b0ca Corrected: Property type 173 was called last-notify-time it should be last-notify-record.
Added: Enums for BACnet Log Status
2009-11-16 23:37:43 +00:00
petermcs b8251f314f Implemented ReadRange functionality for the device "Device Address Binding" property and modified the ReadRange test app to use this real property for its target.
Implemented a framework for allowing the ReadRange handler determine which properties support ReadRange and which varients of ReadRange they support.
2009-11-10 15:37:11 +00:00
skarg e98424b9aa incremented version number 2009-10-24 19:10:05 +00:00
skarg c04e69da8c Fixed EOL, indent. 2009-10-24 17:02:59 +00:00
skarg 2917c9abf0 Converted C++ comments to C comments 2009-10-24 15:49:00 +00:00
skarg d8b6557641 Added UnconfirmedPrivateTransfer client send function. 2009-10-20 21:48:38 +00:00
skarg af30d31a6c Added UnconfirmedPrivateTransfer encoding and demo handler. 2009-10-20 17:26:06 +00:00
skarg 8bb5ccd804 Corrected BACnet/IP MAX APDU to have only a max of 1497 bytes. 2009-10-20 17:23:48 +00:00
petermcs 694abdeb4e Second phase of address cache refactoring:
1. Added time to live functionality
2. Added option of partial cache init on reset to reduce traffic for controllers that can preserve RAM over power cycle/reset.
3. Can now put new entries in the cache even if it is full - entry nearest to expiry is dropped to make room.
2009-10-16 19:27:35 +00:00
skarg a7c598306b Changed the object type print to be as defined in EPICS.
Changed property names to show "proprietary #" when in proprietary range.
2009-10-15 04:06:19 +00:00
skarg f82a844952 Changed the GetEventInfo handler somewhat to make it easier on data storage. 2009-10-12 05:27:08 +00:00
skarg a790c053d2 Added GetEventInformation service, handler, unit test. 2009-10-12 04:44:25 +00:00
skarg b7f9f83667 Added reverse lookup for Binary Present Value. 2009-10-11 00:35:46 +00:00
skarg 5b60c94fad Refactored timestamp for use in Alarm properties in objects. 2009-10-10 21:48:13 +00:00
skarg 3895863bba Updated version number - preparation for release. 2009-10-07 16:36:45 +00:00
petermcs 17e2d7fc8d Started on refactoring of address caching.
1. Added support for building address binding list for device object
2. Changed table traversal code to use pointers instead of array indexes as this produces much more efficient code on many smaller processors where multiplication is expensive
3. fixed issue where binding requests can be overwritten by first I AM that comes along.
4. Converted multiple state variables in cache entries to single flag bitmap.
2009-10-01 08:14:28 +00:00
skarg 8d0e5d28f9 Added method to reverse lookup property name index. 2009-09-28 15:40:49 +00:00
petermcs e8d91faaac Added encoding and decoding for ReadRange service, associated handlers and test application. 2009-09-25 21:56:49 +00:00
skarg bc01893af4 Added enumerations and text for notification class object support. 2009-09-14 10:58:19 +00:00
skarg c4e56abcea Added send for ConfirmedEventNotification. 2009-09-12 18:00:42 +00:00
skarg ce2d1a7a0d Changed multi-state input module name to not conflict with Windows Installer msi.h file. 2009-09-10 21:03:15 +00:00