Commit Graph

332 Commits

Author SHA1 Message Date
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
skarg 9da1ab453a Added some encoding functions for WPM. Thank you, Nikola Jelic! 2011-08-19 17:21:39 +00:00
skarg bcd1c2c101 Incremented version to 0.7.0 for next phase of development. 2011-08-17 19:09:10 +00:00
skarg 3e1cb1847f Indented project. 2011-08-17 02:27:11 +00:00
k001a 08028dd819 Fixed headers when built without Intrinsic Reporting. 2011-08-15 08:16:41 +00:00
k001a 5f952312a8 'Last Received Object Identifier' for GetEventInformation service. 2011-08-11 19:17:27 +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
skarg ff393a665a Fixing DOS/Unix/MAC EOL and line endings using fixup.sh script. 2011-07-09 17:25:42 +00:00
skarg ad27b84949 Changed Hop Count default to 255. BTL NPDU tests expect Hop Count to start at 255. Added ability of Hop Count default to be overridden in Makefile or project file if you need to make it smaller in your implementation. 2011-07-07 16:43:43 +00:00
skarg 75bfee00d4 Moved demo configuration option to Makefile. 2011-07-05 20:00:23 +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
k001a ccf1335979 Added Notification Class object. I will use it to intrinsic reporting.
Notification Class objects can be disabled when define INTRINSIC_REPORTING (bacdef.h) will be removed.
2011-06-17 16:23:47 +00:00
k001a 52c745cd06 Removed encode_tagged_enumerated function, because it was identical like encode_application_enumerated (I didn't see this before). 2011-06-14 21:25:32 +00:00
k001a a16a8f041b - Added handling to WritePropertyMultiple.
- Added encode_tagged_enumerated function.
2011-06-08 21:51:15 +00:00
skarg 8ed45a0f6f Corrected compiler warning for silence timer function. 2011-05-28 03:11:27 +00:00
skarg 7b1f8c7f5e Updated the example File object to have the same Object_Name API. Moved the File object header file to the demo/object directory with the rest of the demo object header files. 2011-04-01 22:25:26 +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 75d88abf77 Moved lso back to its rightful place in include. 2011-03-24 16:49:59 +00:00
skarg e095715cec Moved include files for demo objects into demo/object, and updated makefiles to accommodate the move. This allows developers to create and maintain their own objects and the interfaces to them. 2011-03-22 20:53:13 +00:00
skarg 4021eccb7e Added UTF8 character type enumeration. 2011-03-11 11:11:47 +00:00
skarg db95a8d1dc Added test in MS/TP datalink for MAC Address in the Master Node range (0-127). 2011-03-01 23:06:24 +00:00
skarg fca0e87ca7 Changed version to 0.5.9 for a stable release. 2011-02-25 15:19:30 +00:00
skarg 5293f63da0 Incremented version to 0.6.0 on 20101215 after release. 2010-12-15 20:18:54 +00:00
skarg 2a0bf4926a Performed standard indent script indent.sh on project files. 2010-12-15 19:02:40 +00:00
skarg 706e0221b6 Changed the client functions to be defined only when BBMD_CLIENT_ENABLED=1, which cleaned up the warnings. 2010-12-15 18:51:03 +00:00