skarg
3d80d1a272
Corrected Multi-State Input and Output object Present_Value and number of states handling after being reminded at the BACnet Plugfest that "The Present_Value property shall always have a value greater than zero."
2010-11-17 08:13:33 +00:00
tbrennan3
6319e1a7d9
Good IDE tools can be sooo helpful.
2010-11-16 13:12:23 +00:00
bacpack
502cbcc2e6
1. In device.c, the Object_Table[] is now extern; it has to be defined by the user application (see demos); only the required BACnet objects have to be included.
...
2. Objects' .h files define macro to be used to initialize Object_Table[].
2010-11-13 19:57:29 +00:00
tbrennan3
a5f24fa19f
Tweaked the comments for better Doxygen output.
2010-10-13 19:00:57 +00:00
tbrennan3
48411b8dbf
Routing functionality complete, and working. (Have not done extensive testing, though.)
...
For building, made it possible to include or exclude the routing functionality with simple changes in the main Makefile and enables in lib/Makefile and include/config.h
The Device object (device.c and .h) was extended to support the virtually routed Devices, with most of the new functions in new file gw_device.c to replace their simpler cousins in device.c.
2010-10-13 15:59:39 +00:00
skarg
e9249b5b5e
Added test for a decoding problem where the stack is unable to decode something, and retrofitted into WriteProperty for each of the demo objects by returning an Error, Out of Range.
2010-10-12 01:17:50 +00:00
tbrennan3
5e5f38cb06
My gcc complained about a conflict with the function of the same name as the array, Binary_Output_Out_Of_Service. This fix lets it build.
2010-09-22 02:16:22 +00:00
skarg
9569f2c536
Fixed EOL and performed standard indentation.
2010-09-16 22:00:47 +00:00
skarg
b769dcbe1d
Indented.
2010-08-18 00:11:35 +00:00
skarg
bc0de6b71f
Cleaning up code by adding prototypes or include files where required.
2010-08-17 13:51:56 +00:00
skarg
6c9ef7211d
Fixed indent script, and indented files.
2010-07-19 23:19:54 +00:00
skarg
8a96963e8b
Removed deprecated property.
2010-06-26 03:53:17 +00:00
petermcs
702da8e212
Fixed up comparison size issue in write property handling for PROP_LOG_DEVICE_OBJECT_PROPERTY. Was only checking first 4 bytes instead of the full structure.
2010-06-13 10:35:12 +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
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
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
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
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
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
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
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
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
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
cba6197fe3
Fixed compiler warnings.
2010-02-15 20:11: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
petermcs
ecb1f2064f
Folded error class and code into BACNET_READ_RANGE_DATA structure.
2010-02-15 11:41:23 +00:00
skarg
5c439da7f2
Converted ports/at91sam7s to use demo handlers. Added RPM, WhoHas/I-Have.
2010-02-13 16:15:30 +00:00
skarg
6c1b5b7e68
Decoupled the demo handler from the demo object for ReinitializeDevice service.
2010-02-13 13:38:00 +00:00
skarg
c8d959b3e3
Corrected some compiler warnings.
2010-02-12 22:31:09 +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
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
3964f7973d
Fixed compiler warning.
2010-02-11 04:26:58 +00:00
skarg
e4080f41da
Corrected some warnings generated from Borland compile.
2010-02-10 17:43:11 +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
a7de276acc
Removed old code from Device_Set_System_Status() so status is only set when valid.
2010-02-08 09:56:17 +00:00
petermcs
634237cf43
Simplified write property code using new validation helper functions in h_wp.c.
2010-02-04 16:22:12 +00:00
petermcs
818ddefae5
Simplified write property code using new validation helper functions in h_wp.c.
...
Buffered date portion when writing to start time property so that failure in time portion wouldn't leave partially written date/time.
Flagged missing code in write property for shed levels and placed error response there.
2010-02-04 13:42:56 +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
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
petermcs
ea5c45b911
Updated time code changes to compile with Visual Studio Express 2008.
2010-01-22 15:07:21 +00:00
skarg
d36c29ff08
"timezone" from time.h may be updated when localtime() is called, and therefore, the timezone value should only be used after the call to localtime() which is called in our Update_Current_Time() function. Thanks, Piotr!
2010-01-15 17:15:30 +00:00