Commit Graph

239 Commits

Author SHA1 Message Date
skarg 0a468dbb5a Added recurring foreign device registration for server demo. 2010-07-02 12:20:51 +00:00
tbrennan3 79436d1ae0 Eliminate the build error in bacepics when PRINT_ENABLED = 0.
Still lots of warnings in bacepics, but I don't see an issue with that, for an application whose whole point is to print output.
2010-06-18 20:40:43 +00:00
skarg 987e28d515 Modified the ReadProperty, ReadPropertyMultiple, and WriteProperty demo applications to check source address and invoke ID on the returning acknowledge to prevent printing responses not intended for this client. 2010-06-15 14:58:27 +00:00
petermcs 7b77fe776a Refactored rpm decoding to return proper reject/abort status for malformed requests.
Note: the test code in rpm.c has been changed to accommodate the changes made to the decoding functions but I have not tested the test code as I have not run the test suite.
2010-06-10 11:31:53 +00:00
petermcs 61bb34d726 2nd pass at changing the error/reject/abort status reporting to improve BTL test compliance. ReadProperty fully done for core and demo objects. Will tackle other services next. 2010-06-07 15:52:33 +00:00
skarg ea250f422d Added some dynamic-ism to some properties of the demo Binary Input object. 2010-06-03 19:12:25 +00:00
skarg f4a7b19d91 Incremented BACnet Revision number to 10 due to the inclusion of the 2008 Addendum W objects. 2010-06-03 14:03:51 +00:00
tbrennan3 5c21bc2192 Added function bacapp_encode_datetime(), needed for new DateTime object's Present_Value. 2010-06-02 17:43:13 +00:00
tbrennan3 15f8e6741d Corrected the Object Names for 37 and 38 (and friendlier text now).
In bacepics, now counts errors and displays error count at the end (if any).
Always prints out the Device Address Binding as a '?' if it is Null.
2010-06-01 21:21:20 +00:00
tbrennan3 5964f49880 Added new ObjectTypes and Properties from Addendum 2008-w. 2010-05-27 18:33:48 +00:00
skarg adee8fd74c Changed default state of PRINT_ENABLED to zero for embedded ports. 2010-05-22 12:47:34 +00:00
skarg db2e31b17b Added missing function prototype in device.h. Changed file license to MIT as it should have been. (per Bug #3004966). Thanks, Jim Bell! 2010-05-20 23:33:17 +00:00
skarg 0263f9dce8 Corrected const char for WhoHas/I-Have (bug ID: 3002190). Thank you, Jim Bell! 2010-05-15 22:16:59 +00:00
petermcs 04e99f3671 Changes to reduce the number of warnings with Visual C++2008 warning level 4 to a minimum. 2010-05-14 14:21:48 +00:00
skarg b1eb3fb9a0 New version number 0.5.6 2010-05-04 21:12:19 +00:00
skarg 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +00:00
skarg 74be776295 Cleaned up C++ comments 2010-05-04 21:01:48 +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 136c90f6c1 More simple doxygen tweaks. 2010-04-18 01:51:52 +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 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
tbrennan3 f9d900fdca Added structure for BACnetDeviceObjectReference, and ability to encode/decode it. 2010-04-08 19:26:27 +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 f92316649b Started a Doxygen module for DataLink layer, for the default DataLink templates and for BACnet/IP. 2010-03-24 03:41:39 +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
skarg 35f0a52d51 Exposed some useful functions in FIFO library. Updated Ringbuffer library to my latest. 2010-03-22 21:36:27 +00:00
petermcs d3207bf5e5 Added MAX_UNITS to help with range checking code. 2010-03-17 15:05:41 +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
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
skarg ea7c74dad2 Changed header defines for Units to be uint16_t since the maximum value allowed by BACnet is 65535. Thanks, Piotr! 2010-03-05 17:14:42 +00:00
petermcs 8fdc3b113a Oops didn't mean to commit this with print enabled set to 1 2010-03-03 21:45:11 +00:00
petermcs 1b5348ced7 Moved defines and structures into header file to allow use in decoding of trendlog responses.
.
2010-03-03 21:30:27 +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
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
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