Commit Graph

307 Commits

Author SHA1 Message Date
tbrennan3 5aaf89c64d Prototypes for BBMD getters and setters, and revised registration functions to return something approximating a goodness value. (Still too happy for invalid BBMDs, but it's a start.) 2011-08-22 19:42:07 +00:00
skarg 9da1ab453a Added some encoding functions for WPM. Thank you, Nikola Jelic! 2011-08-19 17:21:39 +00:00
skarg bcd1c2c101 Incremented version to 0.7.0 for next phase of development. 2011-08-17 19:09:10 +00:00
skarg 3e1cb1847f Indented project. 2011-08-17 02:27:11 +00:00
k001a 08028dd819 Fixed headers when built without Intrinsic Reporting. 2011-08-15 08:16:41 +00:00
k001a 5f952312a8 'Last Received Object Identifier' for GetEventInformation service. 2011-08-11 19:17:27 +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
skarg ff393a665a Fixing DOS/Unix/MAC EOL and line endings using fixup.sh script. 2011-07-09 17:25:42 +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
skarg 75bfee00d4 Moved demo configuration option to Makefile. 2011-07-05 20:00:23 +00:00
k001a 19a77ba46e Created descriptor for analog-value objects,
- writable Relinquish_Default and Units
- added properties required for intrinsic reporting.

Intrinsic reporting for analog-value. First commit. 
Not everything finished (inter alia Time_Delay, Event_Time_Stamps, ACK_Required doesn't work now).

Initialize all objects in Device_Init function.
Added function to read current time.
Defined enum BACNET_LIMIT_ENABLE.
Started cache address.
2011-07-05 19:44:36 +00:00
k001a ccf1335979 Added Notification Class object. I will use it to intrinsic reporting.
Notification Class objects can be disabled when define INTRINSIC_REPORTING (bacdef.h) will be removed.
2011-06-17 16:23:47 +00:00
k001a 52c745cd06 Removed encode_tagged_enumerated function, because it was identical like encode_application_enumerated (I didn't see this before). 2011-06-14 21:25:32 +00:00
k001a a16a8f041b - Added handling to WritePropertyMultiple.
- Added encode_tagged_enumerated function.
2011-06-08 21:51:15 +00:00
skarg 8ed45a0f6f Corrected compiler warning for silence timer function. 2011-05-28 03:11:27 +00:00
skarg 7b1f8c7f5e Updated the example File object to have the same Object_Name API. Moved the File object header file to the demo/object directory with the rest of the demo object header files. 2011-04-01 22:25:26 +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 75d88abf77 Moved lso back to its rightful place in include. 2011-03-24 16:49:59 +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 4021eccb7e Added UTF8 character type enumeration. 2011-03-11 11:11:47 +00:00
skarg db95a8d1dc Added test in MS/TP datalink for MAC Address in the Master Node range (0-127). 2011-03-01 23:06:24 +00:00
skarg fca0e87ca7 Changed version to 0.5.9 for a stable release. 2011-02-25 15:19:30 +00:00
skarg 5293f63da0 Incremented version to 0.6.0 on 20101215 after release. 2010-12-15 20:18:54 +00:00
skarg 2a0bf4926a Performed standard indent script indent.sh on project files. 2010-12-15 19:02:40 +00:00
skarg 706e0221b6 Changed the client functions to be defined only when BBMD_CLIENT_ENABLED=1, which cleaned up the warnings. 2010-12-15 18:51: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
petermcs 6cec4b3cdb Adding in missing extern "c" so it works when called from C++ 2010-12-11 15:09:35 +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
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
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
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
petermcs c69ffaa4a5 Default BAC_ROUTING to 0 if not currently defined to maintain non routing behaviour. 2010-11-18 22:20:32 +00:00
petermcs 4a137eb8df Added Get_Routed_Device_Address prototype 2010-11-17 23:12:54 +00:00
bacpack 9413ec4da2 Small reediting. 2010-11-13 20:31:37 +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 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
tbrennan3 a5f24fa19f Tweaked the comments for better Doxygen output. 2010-10-13 19:00:57 +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 f934f8add8 Changed bacapp data len function to just decode the len without regard to the storage ability of the internal data structures. 2010-10-13 02:29:55 +00:00
tbrennan3 9058fc7f3a Finished up the Network Layer Message handling (I hope).
Simplified the Router Table encoding (just based on DNETs).
2010-10-08 02:50:14 +00:00
tbrennan3 9efd3465cf Adding more support for Network Layer Message handling. 2010-10-07 20:56:09 +00:00
tbrennan3 9f4b8e5f19 Adding a handler for routed NPDUs (ie, Network Layer Message handling).
The work is not complete yet; this is an interim checkin.
2010-09-29 20:52:51 +00:00
tbrennan3 d39d4fded3 More function documentation.
Defined a default Hop Count value, and used 15 instead of 255.
2010-09-29 20:29:12 +00:00
tbrennan3 44b7e02721 Tweaked the debug building and printing a little - I hope this works OK for everyone. Let me know if not.
Tamped down a few warnings.
For the demo/server Makefile, made an either/or choice between executable size optimization (normal) or gdb debug info and no optimization.
2010-09-27 20:27:29 +00:00
skarg b1c9870989 Refactoring some BDK code. Updating Skip Data state for AT91 port. 2010-09-22 01:13:42 +00:00
skarg 9569f2c536 Fixed EOL and performed standard indentation. 2010-09-16 22:00:47 +00:00
skarg 7e7b83a6be Added export for MS/TP Sole Master. 2010-09-13 18:44:42 +00:00
skarg bb0c98a9c1 added MS/TP state skip data to MS/TP capture tool, and removed Lurking. 2010-09-12 16:08:31 +00:00