Commit Graph

187 Commits

Author SHA1 Message Date
skarg a790c053d2 Added GetEventInformation service, handler, unit test. 2009-10-12 04:44:25 +00:00
skarg b7f9f83667 Added reverse lookup for Binary Present Value. 2009-10-11 00:35:46 +00:00
skarg 5b60c94fad Refactored timestamp for use in Alarm properties in objects. 2009-10-10 21:48:13 +00:00
petermcs 17e2d7fc8d Started on refactoring of address caching.
1. Added support for building address binding list for device object
2. Changed table traversal code to use pointers instead of array indexes as this produces much more efficient code on many smaller processors where multiplication is expensive
3. fixed issue where binding requests can be overwritten by first I AM that comes along.
4. Converted multiple state variables in cache entries to single flag bitmap.
2009-10-01 08:14:28 +00:00
skarg cd2c001d66 Corrected BLVC for BDT Ack. 2009-09-29 13:21:19 +00:00
skarg d0dd6127a2 Changed BDT create to correct host/network order of bytes. 2009-09-28 22:52:28 +00:00
skarg b9367b7bde Corrected FDT Ack. 2009-09-28 22:34:11 +00:00
skarg 8d0e5d28f9 Added method to reverse lookup property name index. 2009-09-28 15:40:49 +00:00
petermcs e8d91faaac Added encoding and decoding for ReadRange service, associated handlers and test application. 2009-09-25 21:56:49 +00:00
skarg 69fad0502a Changed MS/TP idle state: when no-token timeout occurs, clear the receive frame flags in case a message was received and timeout occurred, which may cause MS/TP to stop working in optimized dlmstp loops which don't check for new events when either of those flags are set. Thank you, Jason! 2009-09-17 03:38:20 +00:00
skarg bc01893af4 Added enumerations and text for notification class object support. 2009-09-14 10:58:19 +00:00
petermcs 10b5854d75 corrected assignment within conditional error in Private Transfer error handling changes 2009-09-06 07:37:52 +00:00
petermcs 8d80d25322 Added sample Confirmed Private Transfer implementation files and demo for same. 2009-09-04 11:25:47 +00:00
skarg 270ee2aec2 Added new method for getting index from text for units. 2009-09-03 15:23:26 +00:00
minack 260438935b Changes to remove restrictions on context tags being less than or equal to 14. 2009-09-03 01:25:28 +00:00
skarg 8934371821 Added function declarations for functions inside (stricmp) and added object name reverse lookup. 2009-08-25 04:11:29 +00:00
skarg 2417a843d2 updated comment in init. 2009-08-19 20:29:23 +00:00
kingdl802 fae41b3524 Use shifts and masking to place the length in the MSTP header. Add comments for the length and for the CRC16 to make the byte order clear. 2009-08-19 14:17:23 +00:00
minack a854000370 Clean up comments for bac_str init functions. 2009-08-10 23:02:31 +00:00
minack a944510441 Fixed up bug with encode_application_double function.
Added new bacapp_decode_application_data_safe function and other *_safe functions that aim to prevent buffer overruns if encoded application message is malformed.
Note: bacstr unit tests currently have one failure.
2009-08-10 00:06:56 +00:00
minack d088e19ed2 Added bitstring_same function to compare two bit strings. 2009-08-09 23:37:46 +00:00
minack d5b455c742 Move the string type max length definition into the config header so that the user can set them independently of MAX_APDU.
Also, added new define MAX_OCTET_STRING_BYTES.
2009-08-06 07:11:31 +00:00
skarg db61a1122f Ran indent script. 2009-07-29 18:06:33 +00:00
skarg f85519c9e1 Corrected unit test for src/event.c. 2009-07-24 20:49:05 +00:00
skarg 5e62b7627a Corrected splint warning. 2009-07-24 16:16:54 +00:00
skarg d9fea88227 Removed the unused state of MSTP_RECEIVE_STATE_HEADER_CRC. Hopefully this doesn't break too many implementations! 2009-07-17 15:41:37 +00:00
skarg a32af783cb Moved the MS/TP defines into mstpdef.h file. 2009-07-17 15:15:46 +00:00
minack 88f3aab51d Code cleanup to get rid of some warnings during compilation. 2009-07-08 22:25:54 +00:00
skarg 8dc12fcd98 Corrected a minor issue in the bacapp.c file on the PC side when printing strings with garbage characters with the 8th bit set. The code passed a signed char to the isprint() function which gets sign extended to an int and then caused an assert in the Microsoft library code (Visual C++ Express 2008). Thank you, Peter! 2009-06-17 23:22:48 +00:00
skarg 7032168ff5 Ran the fixup, indent, and comment scripts to standardize the source code. 2009-05-24 01:49:21 +00:00
minack 8e670ef3f9 Changes:
Added codecs/demo handler/demo client for Alarm Ack service.
Updated relevant global header files client.h and handlers.h
Fixed up incorrect return val for lso handler.
2009-05-23 03:16:28 +00:00
skarg 0c4edb33d9 Fixed up file indent, comments, and eol-type. 2009-05-13 03:46:02 +00:00
skarg 83392d0a4d Corrected SourceForge.net bug ID: 2783175. Changed the way that Time and Date unspecified values were printed in bacapp. Thank you piotrek ( bacpack )! 2009-05-03 11:34:50 +00:00
skarg b85c4355d0 Indented according to standard indent rules for this project. 2009-04-18 20:50:04 +00:00
skarg b3fab21603 Changed C++ comments to C comments. 2009-04-18 20:48:48 +00:00
skarg 6656304d37 Fixed up dos eol and svn eol type. 2009-04-18 20:48:08 +00:00
skarg ebdf8f9e22 Corrected bug introduced when splinting. 2009-04-18 20:46:59 +00:00
skarg c17962107c Corrected warnings found by splint. 2009-04-18 17:54:39 +00:00
skarg 9051a80e30 Corrected warnings found in splint review. Cleaned up previous use of datalink in core files. 2009-04-18 15:29:47 +00:00
skarg 4530915459 Moved send_uevent to demo/handler/s_uevent.c. Cleaned up event.c after splint review. 2009-04-18 15:28:35 +00:00
skarg 51845ed4fd Corrected warnings generated from splint. 2009-04-18 13:48:15 +00:00
skarg 9722e4f7db Added makefile for event notification unit tests. Cleaned up compile warnings for event notification files. 2009-04-18 13:47:23 +00:00
skarg b3f87e54f2 Cleaned up headers and copyright text. 2009-04-18 12:31:59 +00:00
skarg fe3e5e0e18 Added unit test makefile for Life Safety Operation, and cleaned up file for GCC compilation. 2009-04-18 12:30:48 +00:00
skarg 32f08d9386 Fixed test for PrivateTransfer service to be more accurate, and added Octet String to bacapp supplementary functions. 2009-03-27 18:18:53 +00:00
skarg 134bbade5d Removed extra debug printf in MS/TP module. 2009-02-27 22:36:49 +00:00
skarg d45d566c94 Corrected context decoding bug in ReadPropertyMultiple client. Corrected ReadPropertyMultiple handling of objects that aren't supported. Added the context to application tags for the Load Control object. 2009-02-21 19:12:31 +00:00
skarg 1f3bce1b56 Changed BACnet enumerations API to use uint32_t rather than int. 2009-01-25 22:56:47 +00:00
skarg 9c8d94206a Added Confirmed Private Transfer encoding, decoding, and unit testing. 2009-01-25 22:54:36 +00:00
minack 89fc2810f3 Added code to handle Life Safety Operation service. 2009-01-23 00:34:55 +00:00