Commit Graph

279 Commits

Author SHA1 Message Date
skarg bebb97b469 Added Added SubscribeCOV demo application (bacscov) for testing. 2011-09-14 20:40:26 +00:00
skarg 50f0fe2866 Corrected Bugs item #3409624. Removed extra parenthesis. 2011-09-14 20:06:50 +00:00
tbrennan3 ce7e651156 Provided a feedback path, so we can find out if our foreign device registration has been NAK'd. 2011-09-12 21:21:39 +00:00
tbrennan3 46d7daf405 Arranged the BBMD functions so that BBMD_ENABLE shrouds all the code used just by implementations which serve as a BBMD device.
Left the few for registering as a foreign device in the common code body (no #ifdef around them), and moved them to one area toward the end of the file.  (Seemed like too few to justify having their own source code file.) Allow foreign device registration function without requiring BBMD_ENABLE.
2011-09-12 11:54:42 +00:00
tbrennan3 696b215c53 Added a check to (try to) prevent nuisance Reject-Message-to-Network messages when we receive a broadcast to an unreachable-to-us DNET. 2011-08-26 15:28:15 +00:00
tbrennan3 a2a0434ef9 Forgot the header update for BBMD getter and setters.
Revised gateway demo to use the new device_init(NULL) way.
Eliminated triplicate I-Am responses and deprecated the offending routed_ I-Am and I-Have senders (don't see any other usages; scheduled for deletion in 2/2012).
Fixed I-Am sender to not always zero out dest->net, because if a src->net was given in Who-Is, need to have it or else global bcast in the I-Am  response.
2011-08-25 21:20:14 +00:00
tbrennan3 3c3d0b2e4c Renamed getter and setters for better namespace use. 2011-08-25 02:55:25 +00:00
skarg bd7011fda1 Adjusted ifdef for MS/TP datalink layer build. 2011-08-24 12:26:16 +00:00
skarg 273cc883f8 Added and corrected debugging messages. 2011-08-24 12:24:54 +00:00
k001a c40b355694 Handling of GetAlarmSummary service. 2011-08-23 21:22:06 +00:00
skarg 45915f2d22 Fixed IAR compiler warnings. 2011-08-23 20:29:15 +00:00
skarg f19f2c29d9 Converted all the BACnet-array-index variables from int32 to uint32 as they were intended. 2011-08-23 20:11:42 +00:00
tbrennan3 1e3b14802f Fixed rpm_ack_decode_service_request() to handle empty structures without returning an error.
Added BBMD getters and setters, and revised registration functions to return something approximating a goodness value.
2011-08-22 19:52:36 +00:00
skarg 3e1cb1847f Indented project. 2011-08-17 02:27:11 +00:00
k001a 5f952312a8 'Last Received Object Identifier' for GetEventInformation service. 2011-08-11 19:17:27 +00:00
skarg 813f3f0f1b Ran the fixup script on the file. 2011-07-26 04:25:35 +00:00
k001a 8199008092 Acknowledge Alarm for Analog-Input and Analog-Value objects.
Moved initialization of handlers to GetEventInformations to specific init object.
2011-07-21 20:44:57 +00:00
k001a e5496d3d11 GetEventInformations returns messages whose maximum length does not exceed max_resp.
More_Events for GetEventInformations works fine.
2011-07-18 20:00:53 +00:00
k001a c61c096dc7 Intrinsic reporting for analog-input objects.
Print on output details of WritePropertyMultiple.
2011-07-11 21:29:51 +00:00
k001a 7f291e3041 Cosmetic changes to comments.
Print on output every change of Event_State for analog-value objects.
Added write_property_function for analog-input objects.
Created descriptor for analog-input objects.
Possible to write Present_Value for analog-inputs when Out_Of_Service is true.
2011-07-11 19:48:21 +00:00
skarg ff393a665a Fixing DOS/Unix/MAC EOL and line endings using fixup.sh script. 2011-07-09 17:25:42 +00:00
skarg 51c6134e15 Converted comments to C style using convert.sh script. 2011-07-09 17:23:41 +00:00
skarg ad27b84949 Changed Hop Count default to 255. BTL NPDU tests expect Hop Count to start at 255. Added ability of Hop Count default to be overridden in Makefile or project file if you need to make it smaller in your implementation. 2011-07-07 16:43:43 +00:00
k001a ad22144fab Missing file h_wpm.c. 2011-06-08 21:53:35 +00:00
skarg 6a14f8f93a Corrected compile warning. 2011-06-04 18:51:14 +00:00
skarg 92586d6c5f Removed unused header file includes. 2011-05-25 21:34:58 +00:00
skarg 8da85f6c79 Moved COV object handling into Device object.
Fixed COV for multiple subscriptions to same object.
2011-05-25 20:18:56 +00:00
skarg 297bba14fa Removed unnecessary header file includes. 2011-05-25 20:17:08 +00:00
skarg d8416ce927 Updated error codes based on BACnet Add-135-2008h. 2011-04-29 13:16:08 +00:00
skarg 7bb2149ea0 Refactored the example BACnet File object and file handler. Corrected bacfile_name compiler error. 2011-04-07 17:21:09 +00:00
skarg deab12a5e1 Changed WhoHas and I-Have to use CharacterString instead of forcing ANSI X34 and C Strings. Affected all demos and ports object name, so I changed the object name function name to make sure it was noticed. 2011-03-24 16:53:02 +00:00
petermcs e48aab8ebb When reporting abort for apdu exceeding the maximum the requester can accomodate we need to set the error code up as read property processing may have overwritten the default by then. 2011-03-14 11:11:09 +00:00
skarg 2371f4ea53 Added ifdef to allow outside configuration of MAX COV SUBSCRIPTIONS. 2011-03-12 12:08:46 +00:00
skarg 59823dde09 Corrected Abort or Reject code that is generated during ReadPropertyMultiple (seen during reading Object_List). 2011-02-24 18:07:38 +00:00
skarg 624de45fc8 Cleaned up compiler warnings when compiled with Win32 MS/TP datalink. 2011-01-14 15:23:03 +00:00
skarg 46cdade038 Corrected error response service type. Thank you, Martin! 2011-01-12 19:51:52 +00:00
skarg aa045effaa Corrected RPM Handler for max APDU size. 2010-12-23 05:59:09 +00:00
skarg 2a0bf4926a Performed standard indent script indent.sh on project files. 2010-12-15 19:02:40 +00:00
tbrennan3 2f424e038d Touched up some of the Doxygen tags. 2010-12-03 07:25:34 +00:00
tbrennan3 31f440e070 Implemented separate Who-Is and Who-Has handlers for the routed case, where we loop through all the Devices looking for matches.
Tested and improved the routing code.
Gateway demo now sends I-Am as each Device is added.
Added test for valid Network number when routing, and only send Reject message if this fails (and not if we just can't find a Device match).
Test the hop_count and discard the packet if would reach 0 and a destination Network is called for.
2010-12-02 20:33:43 +00:00
skarg e850469da8 Added character string helper to test for printable. Added to WP checks. 2010-12-02 19:33:22 +00:00
skarg 01d1d5bd77 Changed %zu back to %d since Borland C++ doesn't understand %zu. 2010-11-30 06:08:48 +00:00
bacpack 47ecaeabaa To build the Routing demo define BAC_ROUTING in the top Makefile. The value is not important - the symbol has to be defined. 2010-11-25 05:10:01 +00:00
tbrennan3 a595bdb4b5 Resolved more code where we didn't need to define separate BAC_ROUTING functionality, since the npdu_encode_pdu() will do the right thing if our source address is for the gateway (root device), because src->net and/or src->len will be 0.
For the important Device_Object_Instance_Number(), will redirect to the Routed_Device_Object_Instance_Number() function if this is a routing build.
This leaves only the Who-Is and Who-Has handlers to be dealt with.
2010-11-24 22:04:02 +00:00
tbrennan3 22c14fccad Followed Steve's good recommendation, and made routed_get_my_address() be a variant of datalink_get_my_address() just when routing is in use. Haven't done anything about the sending functions yet.
Renamed Lookup_Routed_Device_Address() as Routed_Device_Address_Lookup(), and replaced it in the routed npdu handler with a function that finds the "next" gateway or routed device, as per the destination address.  (Less tied to the specifics of the gw_device.c implementation.)
Fixed a few build warnings (eg, %zu for size_t arguments).
Until we improve the makefile system, I've enabled BAC_ROUTING in config.h
2010-11-24 20:44:32 +00:00
bacpack db5dea31e7 Compiler fails - missing declaration of Get_Routed_Device_Address(). 2010-11-21 17:03:04 +00:00
petermcs dbb8997b4d Added routing support for virtual network to more of the handlers and fixed up a couple of typos from the previous changes.
Added ReadRange service handler so that trendlogs can be read.
2010-11-18 21:29:11 +00:00
petermcs 3bb228edf2 Added routing support for virtual network so that source addresses are transmitted when required and the correct object ID is used. 2010-11-17 23:16:24 +00:00
bacpack d50eb7fef7 In bvlc.c, IP address and port number are always in the network byte order (including FD_Table[] and BBMD_Table[]).
The only left hton and ntoh functions are in debug_printf() and test functions.
2010-11-05 19:30:20 +00:00
bacpack a639864cc8 In bip.c getter and setter functions of IP address and Port number expect and return values in the network byte order. All ntoh and hton were eliminated from bip.c.
All other modules changed to be consistent.
arm7 port left unchanged.
2010-11-04 13:30:26 +00:00