skarg
7462d448a5
Added some fixes to router demo
2016-07-01 14:28:14 +00:00
skarg
70fe498015
fixing gateway demo for MS/TP
2016-04-14 02:01:57 +00:00
skarg
3ad8eaba9c
added Integer Value object example
2014-09-10 04:01:53 +00:00
skarg
fa1c457f2f
Fixed gateway demo build, and cleaned up prototype warnings. Thanks, Bryan Evenson!
2014-06-10 15:28:10 +00:00
skarg
717aaa9dfa
Moved the handler_cov_task() outside of 1-sec task to run every cycle since handler_cov_task() was modified to only to a single state/subscription per call (previously it did all subscriptions per call). This matches the non-gateway demo code.
2014-01-17 04:33:43 +00:00
skarg
827cd8aa66
updated makefile for gateway example.
...
Fixed compiler warnings in gateway main.c file.
2013-10-02 22:25:20 +00:00
skarg
e5dccc0fc0
cleaned up gateway build from Gnu Make by having it build the library again with its own defines, and removed the gateway defines in the various Makefile files.
2013-04-12 23:12:32 +00:00
skarg
4dd04a0489
Changed demo/gateway to support more than 256 virtual devices. Thanks, Stan!
2013-03-08 16:08:11 +00:00
skarg
41becc0a9a
CPPCheck found fixes.
2012-08-16 18:56:17 +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
d1f4e78cba
fixed svn EOL and MIME settings.
2012-04-06 23:24:43 +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
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
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
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
c1f148dc61
Quick fixes for BACNET_CHARACTER_STRING uses with routing. (Mostly just reverting to ANSI with this demo code.)
2011-08-22 19:55:05 +00:00
skarg
3e1cb1847f
Indented project.
2011-08-17 02:27:11 +00:00
skarg
05ddcf93c5
Corrected device function list NULL functions.
2011-05-25 21:34:19 +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
skarg
e095715cec
Moved include files for demo objects into demo/object, and updated makefiles to accommodate the move. This allows developers to create and maintain their own objects and the interfaces to them.
2011-03-22 20:53:13 +00:00
skarg
2a0bf4926a
Performed standard indent script indent.sh on project files.
2010-12-15 19:02:40 +00:00
skarg
f820697464
Converted C++ comments to ifdef for testing.
2010-12-15 18:59:03 +00:00
skarg
8f1e8d82cd
Changed Object Table from a global to a local variable and added a Device function to initialize it.
2010-12-13 03:41:55 +00:00
skarg
d5b8dee34e
Updated make to $(MAKE) as recommended best practice.
2010-12-12 05:42:13 +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
bacpack
6a523e4d23
First attempt to clean-up Makefiles.
...
1. Top (main) makefile defines build configuration variables and export them for sub-makes to use. BAC_ROUTING is defined here - is has been removed from config.h.
2. A new makefile has been added in demo subdirectory. It builds the demo applications. NOTE: the 'ports' target is not build.
2010-11-25 04:17:58 +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
38d307d780
Added in the full set of objects.
...
Fixed up snprintf to work with MSVC.
Fixed virtual object address initialisation so network and address are initialised.
2010-11-17 23:05:54 +00:00
bacpack
502cbcc2e6
1. In device.c, the Object_Table[] is now extern; it has to be defined by the user application (see demos); only the required BACnet objects have to be included.
...
2. Objects' .h files define macro to be used to initialize Object_Table[].
2010-11-13 19:57:29 +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
tbrennan3
e77f12d261
Yes, these should be deleted now that the code is moved into the regular library area.
2010-10-21 18:19:58 +00:00
tbrennan3
48411b8dbf
Routing functionality complete, and working. (Have not done extensive testing, though.)
...
For building, made it possible to include or exclude the routing functionality with simple changes in the main Makefile and enables in lib/Makefile and include/config.h
The Device object (device.c and .h) was extended to support the virtually routed Devices, with most of the new functions in new file gw_device.c to replace their simpler cousins in device.c.
2010-10-13 15:59:39 +00:00
skarg
e9249b5b5e
Added test for a decoding problem where the stack is unable to decode something, and retrofitted into WriteProperty for each of the demo objects by returning an Error, Out of Range.
2010-10-12 01:17:50 +00:00
tbrennan3
478d7aeb41
Working out the sending of Network Layer Messages; trying to refactor the actual sending routines to just one since the beginning, end, and error handling are the same for all types - just the payload is different.
...
For many, need to know what our managed downstream BACnet Network list is, so added that argument.
2010-10-07 21:00:46 +00:00
tbrennan3
cf0f01c5a1
Adding a gateway project to demonstrate routing to a virtual network.
...
The work is not complete yet; this is an interim checkin. Ultimately the device.c file will be merged with the regular one or the deltas will be separated into some other file.
2010-09-29 21:04:00 +00:00