Commit Graph

393 Commits

Author SHA1 Message Date
skarg cf882642a8 Changed Ringbuf API: Ringbuf_Pop_Front is now Ringbuf_Pop, and now it copies the buffer into parameter and returns boolean. Original method was not safe since it returned a pointer to the element but freed the buffer element. Changed Ringbuf_Get_Front to Ringbuf_Peek with no change in functionality, to make names more consistent.
Updated all the MS/TP datalink layer implementations that use Ringbuf library.
2013-01-08 20:48:34 +00:00
skarg 634ac556df removed static variables to enable multithreading. 2012-12-15 21:55:40 +00:00
skarg a12e106643 Updated the objects, services, and properties for the 135-2012 version of the BACnet standard. 2012-12-07 22:00:57 +00:00
skarg 271f2e0b46 Corrected spelling of functions ending in apdu. [note API change for BACnet clients] Thank you, Nikola Jelić! 2012-11-01 14:13:49 +00:00
skarg eb9bfca4a3 Corrected spelling of functions ending in apdu. [note API change for BACnet clients] Thank you, Nikola Jelić! 2012-11-01 14:09:36 +00:00
skarg fa12f4bcdf Added BVLC Read-Broadcast-Distribution-Table demo (doesn't print table yet). 2012-10-24 22:09:43 +00:00
skarg f8450f40bb In WAIT_FOR_REPLY state of MS/TP, changed next state of frame type TEST_RESPONSE to be DONE_WITH_TOKEN to match standard. Thank you, Eric Xu! 2012-10-17 22:33:01 +00:00
skarg 31833ed6f7 Added zero padding when doing an ANSI string copy, similar to string initialization. 2012-09-27 19:54:56 +00:00
skarg c28f55d3df Added parenthesis to provide clarity and make it obvious to anyone maintaining the code. 2012-09-27 19:26:11 +00:00
skarg d09657474c fixed whois demo to be compatible with address_cache ability which parses the text of the whois output. 2012-09-27 19:25:24 +00:00
skarg 5aa78916ae Fixed Nikola Jelic's name in comments, originally written in Cyrillic script. 2012-09-27 19:24:50 +00:00
vasyl-tkhir 2f73bcae44 BACnet router added. 2012-09-27 14:36:11 +00:00
skarg 7e6c886941 renamed network-access-security-policies to match BACnet 135-2010 standard 2012-09-26 01:16:48 +00:00
skarg 9db24ea90a Cleaned up compiler warnings. 2012-09-21 12:10:46 +00:00
skarg 6a2d467fc2 DADR is only valid when DNET is specified (i.e. net is non-zero). 2012-09-19 21:27:00 +00:00
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
netp 834975356e changed local type for compiler warning 2012-08-10 09:57:45 +00:00
netp 974f651c18 modified address same routine to only use remote address (net & adr) only when present & mac on local addresses only 2012-08-08 01:37:17 +00:00
netp d72bf470f1 changed loop type match argument 2012-08-08 00:25:42 +00:00
vasyl-tkhir 296c8c5bb0 fixed read past end of array by defining mac[MAX_MAC_LEN] instead of mac[6] 2012-08-07 10:01:27 +00:00
netp 6a8fdcca74 added checks to allow broadcast to network or if mac address is not specified 2012-08-07 03:43:19 +00:00
skarg f8d5ad0dfe Added required and optional properties for file object to the property list module. 2012-07-27 18:13:20 +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 95839d06c7 Added safe characterstring encode. 2012-05-30 18:41:35 +00:00
skarg f47c1df1b4 converted any C++ comments to C comments using script. 2012-05-13 15:08:17 +00:00
skarg 48e2c60ce2 indented to standard from script 2012-05-13 15:07:12 +00:00
skarg 173e9fb9a9 Corrected PrivateTransfer unit tests.
Fixed hex-ascii conversion for zero length string. Fixed Octet-string unit test in BACnet application. Bug found by unit test.
2012-05-13 15:02:40 +00:00
skarg c0f2af65e0 Corrected octet string decoding in BACapp module for string length of zero. Added zeroes at the end of an octet string when initialized. Bug found by ptransfer unit test. 2012-05-12 15:39:16 +00:00
skarg d0038e6456 Changed infinite DeviceCommunicationControl timeout value back to zero. Bug found by unit test. 2012-05-12 14:42:57 +00:00
skarg 287fce78be Corrected wildcard time and date parsing. Bug found by unit test. 2012-05-12 14:17:00 +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
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
skarg bc8d262add Added scanf bit-width modifiers due to ccpcheck warnings. 2012-04-16 22:00:53 +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 4932dd1e79 Corrected edge case of parsing application for empty list. 2012-04-07 21:15:09 +00:00
skarg d1f4e78cba fixed svn EOL and MIME settings. 2012-04-06 23:24:43 +00:00
skarg 400fa8e3c3 Used cast to fix compiler warning. 2012-03-22 18:39:59 +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 285c09641a Fixed comment. 2012-03-10 20:19:11 +00:00
skarg acfcdfbef4 Corrected minor typo. Thanks, Duane! 2012-02-28 16:18:29 +00:00
skarg 48c756bc11 Removed checks for previous BVLC messages since that is not correct behavior for BIP, especially when a WhoIs, I-Am, ReadProperty sequence occurs. This was causing messages to be sent as broadcast instead of unicast. 2012-02-21 21:53:37 +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 e3e706ffa9 Increased number of cycles for testing FIFO. 2012-01-12 23:07:28 +00:00
skarg 1006b642e7 I was thinking that this might need to be done to separate the head from tail in case head is incremented by ISR while this is called. 2012-01-09 23:16:53 +00:00