Commit Graph

2039 Commits

Author SHA1 Message Date
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
skarg ad74c6d4ac Corrected missing packet initialization in DLMSTP for several ports that may result in unusual REPLY-POSTPONED frames emitted for a DATA-EXPECTING-REPLY frame. 2011-12-29 03:37:38 +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
skarg 7d87b88d47 Corrected compiler warnings. 2011-12-20 15:39:30 +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 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 fcf2c4a8ba Corrected BACnet Name in BDK port to use EEPROM instead of SEEPROM (it was overwritten by BO data). 2011-12-07 03:40:20 +00:00
skarg 4c78ada0ed Changes from r2160 broke microcontroller ports compiles. Reverting until fixed. 2011-12-07 03:16:57 +00:00
skarg 0f54598505 Corrected bug in BACnet Name that prevented names longer than 6 characters from being written or read. Thanks for the bug report, Randall! 2011-12-03 16:02:29 +00:00
gri6507 a5f6a1d77b Adding the perl bindings example. 2011-11-28 18:40:12 +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
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 d3d2e9d030 Updated the developer doc. 2011-11-22 22:46:38 +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 35d8eba692 Enabled compile for GCC AVR 4.3.3 2011-11-17 03:05:06 +00:00
skarg 59059c4a97 Updated the makefile for ICE. 2011-11-17 03:04:19 +00:00
skarg 109bfed70d Updated makefile for mstpsnap. 2011-11-17 03:03:33 +00:00
skarg 81a3ec52e5 Updated file to correct compiler errors and warnings. 2011-11-17 03:02:51 +00:00
skarg b35279fb6e Added an item in the To-Do list. 2011-11-02 22:31:09 +00:00
skarg 4841262b03 Added ReadRange into function handling list. 2011-11-02 21:46:21 +00:00
skarg 2fe50e3980 indent changes. 2011-11-02 21:45:34 +00:00
skarg 16ef8818ee Moved optional properties to optional section. 2011-11-02 21:45:11 +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
skarg 6eb2aef654 Fixed compiler error (copy/paste from last fix). 2011-10-28 14:15:10 +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 1eeaeda585 Little scripts to build or rebuild under MinGW (with complaints about unknown command "rem") 2011-10-21 20:19:12 +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 0291493fd2 Fixes a build error when BACAPP_PRINT_ENABLED=1 but PRINT_ENABLED isn't. 2011-10-20 19:25:20 +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
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 4a779febca Added some volatile keywords to make it interrupt safe. 2011-10-18 02:24:44 +00:00
skarg 78fb95bb63 Created EPICS for BACnet Development Kit 2011-10-06 15:24:56 +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 3641e7b40c Updated some Device_Init functions. 2011-10-04 15:57:40 +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 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
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
skarg 2356384497 Corrected function prototypes. 2011-10-03 14:00:59 +00:00