Commit Graph

46 Commits

Author SHA1 Message Date
skarg 56b65e9694 indented using indent.sh script. 2013-10-29 01:55:49 +00:00
skarg 02007f5f3c Modified COV handler to use separate pool of destination addresses, so the pool can be smaller (less unique clients subscribing) and the subscriptions can be larger, using much less memory. 2013-10-11 14:51:35 +00:00
skarg 670af1c84d Added a check in COV Subscribe handling to also ensure that an existing subscription matches the SRC address. Without the check, funny things happen when there are subscribers with different addresses for the same object and process ID (there are lost subscriptions). Thank you, Nikola Jelic! 2013-10-11 14:08:23 +00:00
skarg ba3242aafd indented using indent.sh script to get uniform looking code for release 2013-03-13 22:17:13 +00:00
skarg cc5c1f714f Fixed bug reported: Canceling Expired or Non-Existing Subsciptions does not return specified result.[bugs:#21]. Thank you, lo pe! 2013-01-02 17:43:29 +00:00
skarg 39bfb0c92a Added some debug print to demo COV handler. 2012-05-23 13:28:02 +00:00
skarg 48e2c60ce2 indented to standard from script 2012-05-13 15:07:12 +00:00
skarg 4870fb1953 Corrected demo COV handler for indefinite lifetime. 2012-03-13 16:05:45 +00:00
skarg 26681f7f39 Changed demo COV handler to reduce memory footprint, and to minimize the task cycle time. Also fixed COV clear race condition. 2011-11-23 18:52:53 +00:00
skarg 0d5c57b149 Moved the DCC of the COV handler into the handler. 2011-10-03 21:49:10 +00:00
skarg dd93e8cf1b Removed the object-table function macros from each demo object header file since it was very difficult to maintain when new functions are added. Added device-client.c file which is a small device object just for simple clients. Updated most Makefiles of client demo applications to utilize device-client.c file.
Added two device object table functions for COV support.
Corrected demo COV handler interaction with TSM, COV flags, and multiple subscriptions for the same object.
2011-10-03 18:54:14 +00:00
skarg 3e1cb1847f Indented project. 2011-08-17 02:27:11 +00:00
skarg 8da85f6c79 Moved COV object handling into Device object.
Fixed COV for multiple subscriptions to same object.
2011-05-25 20:18:56 +00:00
skarg d8416ce927 Updated error codes based on BACnet Add-135-2008h. 2011-04-29 13:16:08 +00:00
skarg 2371f4ea53 Added ifdef to allow outside configuration of MAX COV SUBSCRIPTIONS. 2011-03-12 12:08:46 +00:00
skarg 2a0bf4926a Performed standard indent script indent.sh on project files. 2010-12-15 19:02:40 +00:00
tbrennan3 a595bdb4b5 Resolved more code where we didn't need to define separate BAC_ROUTING functionality, since the npdu_encode_pdu() will do the right thing if our source address is for the gateway (root device), because src->net and/or src->len will be 0.
For the important Device_Object_Instance_Number(), will redirect to the Routed_Device_Object_Instance_Number() function if this is a routing build.
This leaves only the Who-Is and Who-Has handlers to be dealt with.
2010-11-24 22:04:02 +00:00
tbrennan3 22c14fccad Followed Steve's good recommendation, and made routed_get_my_address() be a variant of datalink_get_my_address() just when routing is in use. Haven't done anything about the sending functions yet.
Renamed Lookup_Routed_Device_Address() as Routed_Device_Address_Lookup(), and replaced it in the routed npdu handler with a function that finds the "next" gateway or routed device, as per the destination address.  (Less tied to the specifics of the gw_device.c implementation.)
Fixed a few build warnings (eg, %zu for size_t arguments).
Until we improve the makefile system, I've enabled BAC_ROUTING in config.h
2010-11-24 20:44:32 +00:00
petermcs dbb8997b4d Added routing support for virtual network to more of the handlers and fixed up a couple of typos from the previous changes.
Added ReadRange service handler so that trendlogs can be read.
2010-11-18 21:29:11 +00:00
petermcs 3bb228edf2 Added routing support for virtual network so that source addresses are transmitted when required and the correct object ID is used. 2010-11-17 23:16:24 +00:00
skarg 9569f2c536 Fixed EOL and performed standard indentation. 2010-09-16 22:00:47 +00:00
skarg 9e13bd0ebb converted COV to use new error, reject, abort method. 2010-09-11 19:24:20 +00:00
skarg b769dcbe1d Indented. 2010-08-18 00:11:35 +00:00
skarg 3c9c3c2d56 Updated prototypes and include as required and found by compile with extra checking. Thanks to Nigel Jones for his "setting a bad example" article. 2010-08-17 19:43:59 +00:00
skarg 6c9ef7211d Fixed indent script, and indented files. 2010-07-19 23:19:54 +00:00
skarg 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +00:00
tbrennan3 776bf54278 Added partial documentation of DS-COV.
Dropped the Latex output from default doxyfile.
Added a convenience starting point for HTML output, the only format that has worked well for this project on doxygen.
2010-03-07 05:42:19 +00:00
tbrennan3 a911eea98f The beginning of doxygenation:
As a first step, added an @file description for each file.
2010-02-14 05:41:45 +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 c04e69da8c Fixed EOL, indent. 2009-10-24 17:02:59 +00:00
skarg d1a1c1c8a6 Indented. 2008-11-24 12:48:09 +00:00
skarg 335c07c367 Added check for valid object instance in COV demo. 2008-11-04 20:23:31 +00:00
skarg 241e877d23 indented. 2008-07-20 13:22:15 +00:00
skarg 82ff127ff3 Corrected the COV Subscription demo handler - every new subscription was getting index number 0
and overwriting the previous one.  Thank you Janusz K.!
2008-07-14 14:18:11 +00:00
skarg cf9d15631a Indented using indent script. Corrected any C++ comments using the comment script. 2008-03-10 21:00:48 +00:00
skarg cff20d7669 Cleaned up compiler warnings for Borland 5.5 compile. 2008-03-08 15:09:14 +00:00
skarg a413b92afd Added COV subscription list to Device object. Untested. 2008-01-16 21:35:26 +00:00
skarg 50ecdd1241 Corrected error for subscribeCOV cancelation. 2008-01-15 14:27:08 +00:00
skarg 85d58bd688 Correcting COV subscribe - almost working... 2008-01-14 23:26:20 +00:00
skarg b698ba0cdd Corrected the COV lifetime to be seconds, not milliseconds. 2008-01-14 22:03:15 +00:00
skarg bfc5a52a6f Adding SubscribeCOV to demo/server for testing. 2008-01-14 21:27:22 +00:00
skarg 89432a85c3 Applied standard indentation to files. 2008-01-08 23:13:51 +00:00
skarg 9ab6d4165f Adding COV support. 2007-12-28 19:53:34 +00:00
skarg e1df93557f Adding COV support (in progress). 2007-12-08 16:21:47 +00:00
skarg 32457a68c0 Indented. 2007-12-07 20:15:56 +00:00
skarg 23905f3436 Added WriteProperty support to Binary Inputs, as well as adding out-of-service. Prepping for COV. 2007-12-05 22:55:45 +00:00