Commit Graph

54 Commits

Author SHA1 Message Date
skarg 7578b4ef06 Added check in each example object WriteProperty handler to pass test:
9.22.2.1 Writing Non-Array Properties with an Array Index
Thank you Kamalathas!
2012-07-09 19:49:27 +00:00
skarg d43146c7e3 fixed bug: Writing of property NotifyType in AnalogValue - ID: 3541355 2012-07-08 15:27:15 +00:00
skarg 48e2c60ce2 indented to standard from script 2012-05-13 15:07:12 +00:00
skarg a8280dda95 Added CharacterString Value object example and unit tests, and added to demo/server example application.
Added Multi-state Value object example and unit tests, and added to demo/server example application.
Fixed Analog Input object, Analog Output object, Analog Value object, Device object, Multi-state Input object, Multi-state Output object examples to return correct error codes for WriteProperty service (per BACnet 135.1-2009-9.22.2.6).
Fixed top level ReadProperty and WriteProperty handlers in Device object to return correct error codes (per BACnet 135.1-2009-9.22.2.5)
2012-03-22 18:22:42 +00:00
k001a c40b355694 Handling of GetAlarmSummary service. 2011-08-23 21:22:06 +00:00
skarg 3e1cb1847f Indented project. 2011-08-17 02:27:11 +00:00
k001a c2282c5aad Fixed headers when built without Intrinsic Reporting. 2011-08-11 20:21:18 +00:00
k001a c37aa9ea90 After acknowledgment an alarm is sent AckNotification. 2011-07-23 17:18:25 +00:00
k001a 8199008092 Acknowledge Alarm for Analog-Input and Analog-Value objects.
Moved initialization of handlers to GetEventInformations to specific init object.
2011-07-21 20:44:57 +00:00
k001a acbfe10349 Acked_Transitions for Analog-Input and Analog-Value objects. 2011-07-19 20:40:25 +00:00
k001a 2364561f19 Event_Priorities in Get_Event_Information is read form associated notification-class object. 2011-07-13 21:14:52 +00:00
k001a 536438d23e Get_Event_Informations returns analog-input and analog-value objects when Event_stane is not equal to NORMAL. 2011-07-13 20:36:21 +00:00
k001a c61c096dc7 Intrinsic reporting for analog-input objects.
Print on output details of WritePropertyMultiple.
2011-07-11 21:29:51 +00:00
k001a 7f291e3041 Cosmetic changes to comments.
Print on output every change of Event_State for analog-value objects.
Added write_property_function for analog-input objects.
Created descriptor for analog-input objects.
Possible to write Present_Value for analog-inputs when Out_Of_Service is true.
2011-07-11 19:48:21 +00:00
skarg 51c6134e15 Converted comments to C style using convert.sh script. 2011-07-09 17:23:41 +00:00
k001a 774ef7a564 Status_Flags for analog-value object changes after Out_Of_Service or Event_State property change. 2011-07-08 20:37:58 +00:00
k001a 90fcf9706d Ability to compile the project without INTRINSIC_REPORTING. 2011-07-07 20:06:43 +00:00
k001a ea05c15ce2 Implemented Time_Delay and Event_Time_Stamp for analog-value object. 2011-07-06 20:55:45 +00:00
k001a 19a77ba46e Created descriptor for analog-value objects,
- writable Relinquish_Default and Units
- added properties required for intrinsic reporting.

Intrinsic reporting for analog-value. First commit. 
Not everything finished (inter alia Time_Delay, Event_Time_Stamps, ACK_Required doesn't work now).

Initialize all objects in Device_Init function.
Added function to read current time.
Defined enum BACNET_LIMIT_ENABLE.
Started cache address.
2011-07-05 19:44:36 +00:00
skarg deab12a5e1 Changed WhoHas and I-Have to use CharacterString instead of forcing ANSI X34 and C Strings. Affected all demos and ports object name, so I changed the object name function name to make sure it was noticed. 2011-03-24 16:53:02 +00:00
skarg 2f5d6fbaa1 Updated unit tests for objects and services, and corrected some portability problems. Thanks, Sergei! Didn't fix mstp or load control unit test results. 2010-12-27 00:04:38 +00:00
skarg 2a0bf4926a Performed standard indent script indent.sh on project files. 2010-12-15 19:02:40 +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
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 6c9ef7211d Fixed indent script, and indented files. 2010-07-19 23:19:54 +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 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +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 f0863c0238 Refactored RP, WP, RPM to reduce coupling with objects for Linux and Win32 ports. 2010-02-10 16:27:31 +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 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 edc7c6c577 Added test for array options on RP and RPM to all object properties that are not arrays. 2009-11-05 15:39:46 +00:00
skarg db61a1122f Ran indent script. 2009-07-29 18:06:33 +00:00
skarg 2a7197f93d Corrected present_value set call parameter order. Thank you, Peter! 2009-07-15 18:44:55 +00:00
skarg 6903310da9 Added set function for AV Present Value (similar to ao.c). 2009-06-05 19:33:31 +00:00
skarg fb453ae1aa Corrected bug in ATmega168 demo in the RS-485 driver. Also updated the IAR project for Embedded workbench 5.10. Stats:
IAR Atmel AVR C/C++ Compiler V5.10A/W32 
10191 bytes of CODE memory (+36 range fill) 
  775 bytes of DATA memory (+24 absolute) 

avr-gcc (GCC) 4.2.2 (WinAVR 20071221rc1)
Program:   12052 bytes (73.6% Full)
Data:        481 bytes (47.0% Full)
2008-03-19 20:21:44 +00:00
skarg 1477603af6 indented. 2007-11-29 16:39:48 +00:00
skarg 411d6c1b24 Indented. 2007-11-29 15:56:53 +00:00
skarg 3d6158443c Changed API: encode_tagged is now encode_application since we are encoding an application tag. 2007-10-13 12:26:16 +00:00
skarg 30c186d730 Corrected ReadPropertyMultiple handler. Tested using VTS with demo/server running under linux. 2007-07-19 18:27:03 +00:00
skarg 5b07b5b920 Integrated ReadPropertyMultiple with the demo/server application. Compiles, but untested. 2007-07-19 00:21:38 +00:00
skarg 9069c939da Fixing indent oops which removed the contents of all these files. 2007-06-14 05:33:15 +00:00
skarg ea4863ca25 Indented. 2007-06-14 05:14:26 +00:00
skarg befc997533 Reverted change of sprintf %u to %lu since gcc defines uint32_t as unsigned int rather than long unsigned int like the pic. I will just add a note to the readme or demo projects for the PIC. 2007-03-27 13:44:48 +00:00
skarg b68f1a0f8e Changed sprintf from %u or %d to %lu to fix problem in PIC ports. 2007-03-27 11:20:39 +00:00
skarg bfc82bd07d Changed array element 0 to be more clear in the code. 2007-02-08 21:57:47 +00:00
skarg 71d59fbb8b Standardized the comments and indentation using the comment.sh and indent.sh scripts. 2007-02-02 02:25:15 +00:00
skarg c9e1382044 Modified WriteProperty handler to handle context-specific, application, and constructed data. Fixed up all the demos to use new API. 2007-01-18 21:22:40 +00:00
skarg b36225149c Corrected index offset for priority array when read one index at a time. 2007-01-15 16:10:12 +00:00