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
skarg
10b6e58f2c
Improved FIFO_Available by allowing the last byte to be available.
2012-01-06 18:52:44 +00:00
skarg
7d87b88d47
Corrected compiler warnings.
2011-12-20 15:39:30 +00:00
gri6507
fd4a0ebb62
* Updated the perl bindings to work with the new style extract API and removed vestigial code
...
* Updated the perl bindings readme.txt
* Fixed a small bug in the new bacapp_print_value() function which incorrectly interpreted the return status from the snprintf function.
2011-12-15 00:03:04 +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
tbrennan3
cbc62dd6c0
Extended the test for supported services for routed devices to the device's PROP_PROTOCOL_SERVICES_SUPPORTED.
...
Support calling of Routed_Device_Service_Approval() with a NULL buffer if just testing for support.
2011-10-27 20:34:45 +00:00
tbrennan3
0291493fd2
Fixes a build error when BACAPP_PRINT_ENABLED=1 but PRINT_ENABLED isn't.
2011-10-20 19:25:20 +00:00
tbrennan3
416eee50fe
Per the BTL test cases for 14.1.7, 14.1.x1, and 14.1.8, the device should respond back with an original-broadcast-npdu for a Forward-NPDU and an Original-Broadcast-NPDU; this makes this so for BACnet/IP.
...
Minor fixes for build errors and warnings.
2011-10-19 18:48:24 +00:00
skarg
4a779febca
Added some volatile keywords to make it interrupt safe.
2011-10-18 02:24:44 +00:00
skarg
dda49e2824
Added Relinquish-Default to Enumerated special property cases.
2011-10-06 15:24:30 +00:00
skarg
551637d6af
Undefined error print since this case is very common for the client applications.
2011-10-05 14:31:09 +00:00
skarg
9c1f651458
Moved Device object dependency to the demo handlers.
2011-10-03 22:24:57 +00:00
skarg
ed4a72ed0a
Fixed print-enabled define checking.
2011-10-03 22:05:39 +00:00
skarg
2b0fac263c
Added Added more explicit error checking on WritePropertyMultiple decoding (untested).
2011-10-03 19:18:27 +00:00
skarg
3bd72dc18d
Removed fix for Revision 2094, as this broke the ability to bind to MAC addresses, and the NPDU is the source for the SNET in the address.
2011-10-03 14:12:53 +00:00