Commit Graph

356 Commits

Author SHA1 Message Date
skarg 550cfb3fb9 Changed datetime add minutes to allow adding or subtracting minutes. Corrected it to not zero the seconds upon conversion. 2012-08-30 01:42:03 +00:00
netp 609c24b741 changed formatting and comments to remove '//' sequences where possible 2012-08-11 17:44:22 +00:00
skarg 2f21b3e352 refactored send-read-property to allow the request using a BACnet-Address. 2012-08-02 20:25:43 +00:00
skarg d22c3882ed Added Serial_Number property from Addendum 135-2010ak. 2012-07-27 16:56:23 +00:00
skarg 7514150f7d cleaned up compiler warnings 2012-07-08 15:26:10 +00:00
skarg 8482b18ffa Only changing the all array to unsigned. Others are used with signed. 2012-05-22 20:56:37 +00:00
skarg 99396c4f78 Changed constants to unsigned to clean up splint warnings. 2012-05-22 19:29:35 +00:00
skarg 5111b9fb4e Modified code to clean up some compiler warnings. 2012-05-18 23:34:45 +00:00
skarg bd70c94128 Incremented version to 0.8.0 for new features. 2012-05-17 05:27:56 +00:00
skarg 931e73ccf8 Incremented version to 0.8.0 for new features. 2012-05-17 05:26:32 +00:00
skarg 48e2c60ce2 indented to standard from script 2012-05-13 15:07:12 +00:00
skarg 54c4ce342c Exposed utf8_valid as a public function to reduce duplicity. Allow utf-8 string length of 0 to be valid. 2012-05-11 15:03:35 +00:00
skarg 23d03cb280 Added missing define to config.h to allow demo applications to compile. 2012-05-01 18:23:50 +00:00
petermcs 056f371f7f Tweaked config.h to reduce chances of breaking other peoples builds and explain the options better. 2012-04-30 10:19:51 +00:00
petermcs 2e51778790 Add facility to adjust the services and and other features supported via config.h. This is to reduce code size in embedded builds where the compiler does not do a great job in removing functions that are never called. This is particularly useful for simple server only applications where decoding of response packets and encoding of requests are not required for example.
Also added possibility for RMP of encoding large items in-line in the response packet so that the object RP handlers know how much space they really have without the need for a full APDU buffer being maintained.
2012-04-30 10:14:18 +00:00
petermcs 8017610632 removed BACTEXT_PRINT_ENABLED wrapper around declarations as there are reasons to call some of these routines for non debug printing related purposes. 2012-04-30 08:26:58 +00:00
petermcs 9a86e51e46 Added BACNET_OK return status definition 2012-04-30 08:08:03 +00:00
skarg f6096f6a4d Unified the licenses on header files since we don't have any inline functions or macros with substantial bodies. Per RMS: "Our view is that just using structure definitions, typedefs, enumeration constants, macros with simple bodies, etc., is NOT enough to make a derivative work. It would take a substantial amount of code (coming from inline functions or macros with substantial bodies) to do that." 2012-04-18 16:15:59 +00:00
skarg a7a67a76fd Added more object properties to the property list module - it now more than EPICS demo used from existing demo objects. 2012-04-16 14:52:27 +00:00
skarg f6c6a9cb8b added property list library to return all required and optional properties of an object. Not finished with all object properties yet, but functional in the EPICs demo. Updated property enumerations and text names based on 135-2010 standard. 2012-04-15 21:00:43 +00:00
skarg d1f4e78cba fixed svn EOL and MIME settings. 2012-04-06 23:24:43 +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
skarg 9e8c2b0927 Added explicit datalink_cleanup to all demo applications.
Moved bip_cleanup() to port specific files.
This works better for bacnet-stack DLLs.
2012-02-10 22:12:15 +00:00
skarg 2e6a060b26 Added volatile qualifier to ringbuffer library to be interrupt safe. 2012-02-10 22:10:17 +00:00
skarg 6c5fe45769 Changed buffer from volatile pointers to non-volatile data, to pointers to volatile variables. 2012-01-25 19:03:54 +00:00
skarg 6fefac808f Added FIFO Pull function to remove one or more bytes from the FIFO. Added unit tests for FIFO Pull. 2012-01-13 17:56:55 +00:00
skarg 12d0d9f204 Created Rowley Crossworks AVR project for BDK port to ATmega644p. 2012-01-12 23:09:14 +00:00
skarg 10b6e58f2c Improved FIFO_Available by allowing the last byte to be available. 2012-01-06 18:52:44 +00:00
petermcs ef40b6e180 Removed superfluous ',' at end of last entry in enum definition which trips up some compilers 2011-12-22 10:41:33 +00:00
gri6507 6e82afde79 Another attempt to refactor the bacapp_print_value function into a print() and
an extract() function. The original implementation used calloc() inside the
extract() routine which forced all clients, including embedded builds, to have a
heap. This was very heavy handed. The new solution is must more flexible. 
* If the client want to use the print() functionality, they will have to support
  calloc and string safe variable argument length function similar to snprintf.
  This seems reasonable because if you can print, then you can typically support
  these complex capabilities. 
* For clients that don't want to print, but still want to parse the bacpp value
  into a string, they can use the new extract() method, which only requires
  supports for snprintf. This would require a compile time definition of
  BACAPP_SNPRINTF_ENABLED.
* For clients which don't want the overhead of these heavy handed methods, it is
  possible to set compile time flags to not inherit either the print() or the
  extract() functions.
2011-12-12 16:22:04 +00:00
skarg 4c78ada0ed Changes from r2160 broke microcontroller ports compiles. Reverting until fixed. 2011-12-07 03:16:57 +00:00
gri6507 2b433d72a7 Added the ability to parse the OBJECT_PROPERTY_VALUE into a string (bacapp_extract_value) in addition to outputting it to a stream (bacapp_print_value). 2011-11-28 15:33:58 +00:00
skarg abc8135eff Added ability of the SubscribeCOV demo to subscribe to multiple objects in the device. 2011-11-22 22:47:22 +00:00
skarg 2fe50e3980 indent changes. 2011-11-02 21:45:34 +00:00
tbrennan3 3525f6b9ec Tamp down a warning that appears on 64-bit builds by defining BACNET_ARRAY_ALL as 32 bits' worth of 1s, which is appropriate for its use with all uint32_t fields for propertyArrayIndex, which we now have across the body of code. 2011-10-20 15:36:02 +00:00
skarg 4a779febca Added some volatile keywords to make it interrupt safe. 2011-10-18 02:24:44 +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 2356384497 Corrected function prototypes. 2011-10-03 14:00:59 +00:00
skarg b8dcdee79a Added some include files for the typedefs in the file. 2011-10-03 13:51:19 +00:00
tbrennan3 7eb2109dc4 Added the ability to ask for the BVLC Function Code in the lower layers; particular need was to recognize bcasts and not respond with Reject-Message-to-Network. 2011-09-30 20:00:48 +00:00
skarg 120c2734ee Added ascii-hex conversion in the octet-string library to allow ascii-hex to be parsed correctly from demo applications. 2011-09-17 04:21:32 +00:00
skarg bebb97b469 Added Added SubscribeCOV demo application (bacscov) for testing. 2011-09-14 20:40:26 +00:00
tbrennan3 ce7e651156 Provided a feedback path, so we can find out if our foreign device registration has been NAK'd. 2011-09-12 21:21:39 +00:00
tbrennan3 364293b075 Added NAK functionality for BBMD commands when not supported.
Also record any BVLL Result returned to us (eg, for foreign device registration).
2011-09-12 20:52:42 +00:00
skarg cd8946c62d Cleaned up comment. 2011-09-11 13:35:46 +00:00
tbrennan3 a2a0434ef9 Forgot the header update for BBMD getter and setters.
Revised gateway demo to use the new device_init(NULL) way.
Eliminated triplicate I-Am responses and deprecated the offending routed_ I-Am and I-Have senders (don't see any other usages; scheduled for deletion in 2/2012).
Fixed I-Am sender to not always zero out dest->net, because if a src->net was given in Who-Is, need to have it or else global bcast in the I-Am  response.
2011-08-25 21:20:14 +00:00
skarg 26b5fdd3d0 Returned Tusage_delay to the MS/TP state machines to fix excessive Reply-Posponed messages when received packet is decoupled from immediate handling. Some BACnet routers do not handle Reply-Postponed correctly and drop the subsequent valid reply.
Added Slave Node FSM to linux/win32 MS/TP layer.
Added PDU queue to Linux MS/TP datalink layer.
2011-08-24 12:33:20 +00:00
k001a c40b355694 Handling of GetAlarmSummary service. 2011-08-23 21:22:06 +00:00
skarg f19f2c29d9 Converted all the BACnet-array-index variables from int32 to uint32 as they were intended. 2011-08-23 20:11:42 +00:00
tbrennan3 5aaf89c64d Prototypes for BBMD getters and setters, and revised registration functions to return something approximating a goodness value. (Still too happy for invalid BBMDs, but it's a start.) 2011-08-22 19:42:07 +00:00