Commit Graph

545 Commits

Author SHA1 Message Date
skarg 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +00:00
skarg b2368acc27 Fixed up EOL for subversion. 2010-05-04 21:04:26 +00:00
skarg 74be776295 Cleaned up C++ comments 2010-05-04 21:01:48 +00:00
skarg e261490f61 Corrected compiler warning. 2010-04-28 17:34:49 +00:00
brayra 37d048310c Added ability to set starting invoke id from environment variable BACNET_INVOKE_ID 2010-04-27 15:11:58 +00:00
tbrennan3 1c8a58f158 Final fixes (I believe, for now) for EPICS generation.
Now has proper support for State Text and Subordinate Annotations text arrays, even very large ones.
Now has 3 ways, of descending throughput, for all Objects and all their properties:
a) Get all object properties with RPM for ALL
b) Get individual properties with RP for Array_Index = ALL
c) Walk through a too-large array one index step at a time.
2010-04-26 20:09:41 +00:00
brayra 15c5375196 More corrections to return value 2010-04-26 19:39:24 +00:00
brayra d4797f99d7 Fixed return value when error detected 2010-04-26 13:54:13 +00:00
tbrennan3 040e6ed286 Make sure RPM handler aborts if Device_Read_Property() returns -2 (because the current property by itself won't fit in the APDU). 2010-04-23 18:40:09 +00:00
skarg 4163cac4cb Corrected statistics when used with a single MS/TP device. 2010-04-23 18:09:39 +00:00
tbrennan3 136c90f6c1 More simple doxygen tweaks. 2010-04-18 01:51:52 +00:00
tbrennan3 8dd671d5a1 Sorry about the missing header; adding it in here.
Some comment tweaks for Doxygen.
2010-04-17 15:39:20 +00:00
tbrennan3 fac19dff98 Made bacepics' output more correct for VTS3 EPICS parsing.
Put command line argument checking and usage printing into their own functions,
and added an optional argument to show values instead of '?' for properties like Present_Value.
Added screening of properties that should normally be replaced with '?' on output.
Added a few enums to bactext (Node_Type, Polarity).
2010-04-16 20:52:40 +00:00
tbrennan3 4d90a024c6 Extensively revised bacepics to produce a full list of objects, not just the required properties of just the Device object.
Added a state machine which tries to get all properties in one RPM call first, then falls back to getting all object properties and calling RP once for each property, except the Device Object List, which calls RP once for each ObjectID in the list.
Adding support for Structured Views but not complete yet.
2010-04-15 20:51:55 +00:00
tbrennan3 1dc93c3a28 Added function rp_ack_fully_decode_service_request() to parse and return the same structure as RPM (but the list has just one property). Convenient when you want to switch hit between RP and RPM.
Put it in the handler/h_rp_a.c file since I wasn't sure if we wanted it in the stack src itself.
2010-04-15 20:48:06 +00:00
tbrennan3 c5977b8933 Added some function documentation and a little more support for Structured Views. 2010-04-15 20:45:22 +00:00
petermcs d78ce26067 Added support for non contiguous object arrays to the device object. This allows, for example, a single table of objects to be used for configuration of the device with the objects of a given type not required to be in a contiguous block. 2010-03-29 21:41:39 +00:00
tbrennan3 026a489fc5 Answered my own questions, after some thought:
Made the epics pretty-printing generate shorter lines by only decoding 4 bits per line (hurts my byte-centered soul, but does look better).
Moved the big comment section out of demo/server/main.c out to a new header, server.h.
Provided doxygen links to the functions called in the server demo.
2010-03-23 12:32:46 +00:00
tbrennan3 5a99f0662c Commented the demo/server in a new module.
Embedded its PICS in the server documentation (hopefully a good idea).
Added a PrettyPrintPropertyValue() function to the epics program (hopefully OK format).
Added a function apdu_service_supported_to_index() to the apdu code to translate a SERVICE_SUPPORTED_ enum to its SERVICE_CONFIRMED_ or SERVICE_UNCONFIRMED_ index, and used it when PrettyPrinting services.
2010-03-23 04:55:11 +00:00
petermcs 6cc780e562 Changed int apdu_len to bool status in Device_Write_Property as the return value is a bool and the return value for the object write functions is also bool. 2010-03-17 15:03:54 +00:00
skarg 52518b9d57 Changed NPDU handler to check for BACnet version before attempting to decode. Thanks, Piotr! 2010-03-17 00:35:51 +00:00
tbrennan3 6a97eb5424 Added Doxygen Modules describing the Object Helper Functions (and how they're used) and the Handler-to-Objects interface functions of the Device Object.
Two small code corrections in device.c:
a) Fixed the return value of Device_Write_Property() so that a -1 value would also return False.
b) Fixed the string length checked when writing PROP_OBJECT_NAME for the Device object.
2010-03-14 04:34:52 +00:00
tbrennan3 47ff6200f1 Doxygenation of the main Alarm/Event and COV functions.
Also documented the main misc functions for handlers.
2010-03-12 03:30:31 +00:00
petermcs bfd3920698 Removed assumption that object instance and object index are one and the same. Added in missing Analog_Input_Instance_To_Index() function. 2010-03-11 16:57:55 +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
petermcs d639f48788 Fixed some errors in the handling of the status flags. 2010-03-04 14:27:47 +00:00
petermcs 51c3479240 Add in check for clients that send invalid start of epoch time with all 0s in the date. 2010-03-03 22:55:51 +00:00
petermcs 430cc119d5 Fixed up some issues which stopped code compiling on Linux. Not tested yet. 2010-03-03 21:28:40 +00:00
petermcs 174b8f39ef Moved defines and structures into header file to allow use in decoding of trendlog responses.
Fixed up numerous instances of the code assuming object instance and index into log info arrray were equivalent.
Added enable checking into the timer routine so date enable/disable works.
2010-03-03 21:27:18 +00:00
tbrennan3 6c799cb847 Documented the function pointer templates for object_functions, as used in device.c 2010-03-02 20:44:46 +00:00
skarg d4b39c6b59 Changed CC and AR in demo makefiles to make cross compiling the demo applications easier. 2010-03-01 19:01:40 +00:00
tbrennan3 9327994aef Two quick fixes for sending unicast I-Am - corrected name of handler, and added the destination copy. 2010-03-01 15:43:06 +00:00
tbrennan3 cd33aa18e9 Documentation for the Data Sharing BIBBs: RP, RPM, WP.
A start on ReadRange for Trending BIBB.
2010-02-28 03:44:06 +00:00
skarg 2a68202503 Updated GNU make Makefile for cross compile by changing CC=gcc to CC:=gcc. 2010-02-27 04:02:27 +00:00
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 8deecad15b Corrected compiler error. 2010-02-19 14:49:35 +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 0529106e73 Corrected Send_I_Am_Unicast. Removed the NULL src feature of sending broadcast for now. 2010-02-18 22:40:23 +00:00
skarg d5e49c7cc1 Removed the extra layer of dereference to device object in WP handler. 2010-02-18 22:11:28 +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
skarg b60af74651 Added optional 4th parameter to bacawf to control the number of bytes sent in each write of a file. 2010-02-16 22:47:13 +00:00
skarg 7f05571f43 Added debug info when zero length octet string is received. 2010-02-16 03:37:40 +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
skarg cba6197fe3 Fixed compiler warnings. 2010-02-15 20:11:13 +00:00
petermcs c8a9b22a53 Changed from using MAX_ANALOG_INPUTS to Analog_Input_Count() when updating inputs.
Removed RR_Info handler setup.
2010-02-15 11:52:13 +00:00
petermcs 8f421b9bf6 Added multistate input to object list.
Added RR_Info function pointer to Object Table.
Refactored some of the Object Table iteration code.
2010-02-15 11:46:35 +00:00
petermcs 966992abd4 Fixed up unresolved conflict which was breaking compile. 2010-02-15 11:43:16 +00:00