skarg
c2db7ee7c4
Added m option to mstpcrc demo to pass a line of bytes which get encoded into Wireshark pcap file for viewing in Wireshark. Useful when someone sends you a string of bytes from an MS/TP capture and you want to quickly decoding them using Wireshark.
2012-04-09 00:43:27 +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
1c42bcfb92
Added function pointers (nulls) for ReadRangeInfo and Iterator for Binary Value objects.
2012-03-19 19:28:21 +00:00
skarg
6b544c0ec4
Changed service error ERROR_CODE_UNSUPPORTED_OBJECT_TYPE to ERROR_CODE_UNKNOWN_OBJECT to since ERROR_CODE_UNSUPPORTED_OBJECT_TYPE seems to only be acceptable to return from CreateObject service.
2012-03-16 20:09:20 +00:00
skarg
ae0008d569
Changed SubscribeCOV demo application to wait for APDU Timeout * Retries until the target device is found. After the target device is found, the demo application can wait the duration of the longest COV lifetime, if there is one. Thanks for the suggestion, Duane King!
2012-03-13 19:06:26 +00:00
skarg
eb649fe3c6
Added missing demo applications to default Borland Makefile. Cleaned up the makefile.
...
Added missing ReadRange demo Makefile for Borland.
2012-03-13 18:55:43 +00:00
skarg
f9911e8273
Corrected SubscribeCOV demo to allow missing lifetime parameter (meaning indefinite).
2012-03-13 16:06:05 +00:00
skarg
4870fb1953
Corrected demo COV handler for indefinite lifetime.
2012-03-13 16:05:45 +00:00
skarg
d189f72abd
Notification Class had wrong array indexes when assigning priorities. Thank you, Dmitry Korobkov! Bug ID 3495994.
2012-03-07 22:04:01 +00:00
skarg
eaf6c9cee6
Removed unused parameter to clean up compiler warning.
2012-02-29 20:56:08 +00:00
skarg
4d02e66634
Updated Code::Blocks projects to compile correctly.
2012-02-23 22:15:49 +00:00
skarg
8920f0df62
Removed accidental paste in Borland makefile.b32 that was causing DCC demo to fail.
2012-02-23 16:47:38 +00:00
skarg
0478d87d53
Added Append feature required by BACnet spec when File Offset is -1. Thank you Robert Bouwens!
2012-02-21 23:58:35 +00:00
skarg
b05fbf196c
Fixed file name in doxygen comment.
2012-02-21 22:10:05 +00:00
skarg
1c19bf7d09
Added checks in Error, Abort, Reject, and Acks for matching address and invoke ID so that out-of-order messages would not foul up the state machine and only the reply matching the request would be honored.
...
Changed request so that an error message of segmentation-not-supported would trigger the read-property fallback mechanism.
2012-02-21 21:56:18 +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
9226159c5d
Added MS/TP crc calculating demo application to use when writing articles that include example MS/TP code.
2012-02-07 23:54:15 +00:00
petermcs
bae2321abc
Fixed off by 1 error when checking length of string in WPValidateString()
2012-01-21 10:30:23 +00:00
petermcs
52ea59f446
Removed MS C specific gettimeofday function from mstpcap.c as there is one in the timer.c in the Win32 port.
...
Changed the conditional compilation in the Win32 timer.cto allow gettimeofday compile with MS C
2012-01-17 07:46:53 +00:00
petermcs
e0cf05f74a
Added in 76800 baud rate as it works on Win 7 with the B&B Electronics USOPTL4 USB adaptor that I have, YMMV.
...
Added gettimeofday() function to allow me build with VS2008 C++ Express Edition
2012-01-14 12:28:44 +00:00
skarg
12d0d9f204
Created Rowley Crossworks AVR project for BDK port to ATmega644p.
2012-01-12 23:09:14 +00:00
skarg
bf4cd368b0
Reverted r2140 as this breaks MS/TP and non-BACnet/IP builds. If this functionality is indeed required, then we will need to change the APDU dispatcher to include information with the service so that this can be discerned.
2012-01-09 22:52:59 +00:00
skarg
513663727f
Added function prototypes to support COV.
2012-01-06 18:52:22 +00:00
petermcs
954d2b0079
Moved check for wild card Device Id to before call to rpm_ack_encode_apdu_object_begin so that the real Device ID is encoded in the response.
2011-12-31 08:05:29 +00:00
petermcs
a5f6477364
Moved check for wild card Device Id to before call to rp_ack_encode_apdu_init so that the real Device ID is encoded in the response.
2011-12-31 07:58:13 +00:00
gri6507
cb620a9432
Made the perl bindings ReadProperty example more generic
2011-12-16 23:25:56 +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
a5f6a1d77b
Adding the perl bindings example.
2011-11-28 18:40:12 +00:00
gri6507
d875b3fb8e
improved error handling to correctly process requestID and device address. Fixed
...
a copy/paste bug where the ACK handler was for a READ_FILE instead of a
WRITE_FILE
2011-11-26 19:46:51 +00:00
skarg
087584e85e
Corrected baud rate setting for mstpcap demo utility. Thank you, Michael D!
2011-11-26 16:32:17 +00:00
gri6507
d009a1a15e
Pulled in the changes from SVN commit 2145 (Makefiles default BACNET_PORT to
...
linux only if that ENV VAR has not yet been specified) into the trunk.
2011-11-25 23:30:11 +00:00
skarg
26681f7f39
Changed demo COV handler to reduce memory footprint, and to minimize the task cycle time. Also fixed COV clear race condition.
2011-11-23 18:52:53 +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
7de5f43478
Fixed error response for SubscribeCOV demo.
2011-11-21 22:01:27 +00:00
skarg
48e6a77f5e
Refactored the subscribe COV demo client.
2011-11-21 20:05:13 +00:00
skarg
4841262b03
Added ReadRange into function handling list.
2011-11-02 21:46:21 +00:00
tbrennan3
ff3c0590f2
Extend handler_who_is_unicast() to broadcast I-Am anyway if the Who-Is request was an Original-Broadcast or Forwarded-NPDU.
2011-10-28 14:43:06 +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
710ac3d34c
Added checking in with each device (in the BAC_ROUTING case) to see whether it supports RD or DCC.
...
Sends a Reject message if not supported. Added to the respective handlers.
2011-10-21 17:02:11 +00:00
tbrennan3
85e232ce0d
It was necessary to include trivial implementations of the device write functions to avoid pulling in the device.c module from libbacnet.a for the handler_write_property() support, which resulted in hard-to-trace device duplicate function errors.
...
Turned up when I turned on BAC_ROUTING but not before that, due to dependencies introduced by gw_device.c in libbacnet.a.
2011-10-20 15:21:03 +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
9c1f651458
Moved Device object dependency to the demo handlers.
2011-10-03 22:24:57 +00:00
skarg
0d5c57b149
Moved the DCC of the COV handler into the handler.
2011-10-03 21:49:10 +00:00
skarg
2b0fac263c
Added Added more explicit error checking on WritePropertyMultiple decoding (untested).
2011-10-03 19:18:27 +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
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
a9e752d64d
Fixed error print message.
2011-09-17 04:20:28 +00:00
skarg
e9142bfc54
Added Added SubscribeCOV demo application (bacscov) for testing (and fixed subversion mess up that I did by copying a directory).
2011-09-14 20:47:00 +00:00
skarg
bebb97b469
Added Added SubscribeCOV demo application (bacscov) for testing.
2011-09-14 20:40:26 +00:00