Commit Graph

58 Commits

Author SHA1 Message Date
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 9c1f651458 Moved Device object dependency to the demo handlers. 2011-10-03 22:24:57 +00:00
skarg 273cc883f8 Added and corrected debugging messages. 2011-08-24 12:24:54 +00:00
skarg 3e1cb1847f Indented project. 2011-08-17 02:27:11 +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
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 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
skarg 9569f2c536 Fixed EOL and performed standard indentation. 2010-09-16 22:00:47 +00:00
skarg 914a063681 removed kludge by adding initializer 2010-09-11 19:23:08 +00:00
skarg 4105d22b4b Fixing compiler warnings (compiled with IAR and configured for no printing) 2010-09-07 16:16:15 +00:00
skarg 3c9c3c2d56 Updated prototypes and include as required and found by compile with extra checking. Thanks to Nigel Jones for his "setting a bad example" article. 2010-08-17 19:43:59 +00:00
skarg 6c9ef7211d Fixed indent script, and indented files. 2010-07-19 23:19:54 +00:00
petermcs 61bb34d726 2nd pass at changing the error/reject/abort status reporting to improve BTL test compliance. ReadProperty fully done for core and demo objects. Will tackle other services next. 2010-06-07 15:52:33 +00:00
petermcs f32e7bf1c0 Changes to error checking to report invalid requests via proper reject codes and not the blanket abort which was in place (will need to look at other service request decoders as well...) Should address question raised by Jérémy Delhomme. 2010-06-03 11:20:37 +00:00
skarg 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +00:00
tbrennan3 cd33aa18e9 Documentation for the Data Sharing BIBBs: RP, RPM, WP.
A start on ReadRange for Trending BIBB.
2010-02-28 03:44:06 +00:00
skarg 1f9c13d37b Got rid of the handler-set functions for RP,RPM,WP,RD. Just referencing the device object functions directly. 2010-02-18 03:06:03 +00:00
tbrennan3 a911eea98f The beginning of doxygenation:
As a first step, added an @file description for each file.
2010-02-14 05:41:45 +00:00
skarg f0863c0238 Refactored RP, WP, RPM to reduce coupling with objects for Linux and Win32 ports. 2010-02-10 16:27:31 +00:00
petermcs 45c631b133 Fixed up error return so that we report not having a particular instance of an object differently to not supporting that object type at all. 2010-01-21 21:51:20 +00:00
skarg e42abbf74b Corrected RPM and RP in ports projects to handle MAX APDU Accepted. 2010-01-11 04:39:22 +00:00
skarg 9aa653c83e Change RP and RPM demos to send an Abort if the APDU length is longer than max-APDU-length-accepted. Thank you, Carlos! 2010-01-08 22:37:24 +00:00
petermcs 7c13ab6904 First version of Trend Log which will actually log real data. 2009-12-11 14:54:56 +00:00
skarg c04e69da8c Fixed EOL, indent. 2009-10-24 17:02:59 +00:00
skarg a28760bf56 Added init functions to object header files. Finished refactoring the demo read and write property handlers to use function tables. 2009-08-23 03:26:30 +00:00
skarg 3dc3da5735 Changing handlers to register objects so that handlers can remain unchanged. In Progress! 2009-08-22 19:27:18 +00:00
skarg 1477603af6 indented. 2007-11-29 16:39:48 +00:00
skarg 411d6c1b24 Indented. 2007-11-29 15:56:53 +00:00
skarg d9c4429fd0 Corrected bug in demo RP handler for Analog Outputs. Thank you to Paul Bremer! 2007-11-08 16:45:35 +00:00
skarg 65b7dea8bf Reducing the memory required by ATmega168 port. 2007-10-14 02:01:18 +00:00
skarg 0c527b8162 Cleaned up Borland compile. 2007-09-07 18:00:42 +00:00
skarg 880adb383f Fixed inconsistency in demo ReadProperty handler. 2007-09-05 23:46:25 +00:00
skarg cc4c46b84d Corrected bug in all confirmed handlers: if a segmented message was received, the handler tried to decode it instead of immediately sending an abort. This caused lockup with WriteProperty. 2007-08-18 00:06:48 +00:00
skarg f4f83d2d49 Refactored ReadPropertyMultiple handler. 2007-07-20 18:46:02 +00:00
skarg 9069c939da Fixing indent oops which removed the contents of all these files. 2007-06-14 05:33:15 +00:00
skarg ea4863ca25 Indented. 2007-06-14 05:14:26 +00:00
skarg 71d59fbb8b Standardized the comments and indentation using the comment.sh and indent.sh scripts. 2007-02-02 02:25:15 +00:00
skarg 42985437e5 Added demo for PIC18F6720 with MS/TP datalink layer. Untested. 2007-02-01 21:37:53 +00:00
skarg c27c5002d5 integrated the load control object into the demos. 2007-01-26 12:47:46 +00:00
skarg 5dd8c6da91 Converted to standard indent style. 2006-10-07 14:13:34 +00:00
skarg f45d694a51 Corrected the server bit in the abort PDU which was missing for the abort messages. 2006-10-05 22:46:59 +00:00
skarg 4ddeb3dcad Corrected ReadProperty reply when data is too big to fit into APDU. It is required to be an Abort messaage, not an Error message. 2006-10-05 12:47:23 +00:00
skarg f54c97a657 corrected apdu encoding for error production for demo read property handler. 2006-09-24 03:03:52 +00:00
skarg 337bc5ab4e Corrected the NPDU encoding for the demo handlers. 2006-09-23 22:02:04 +00:00
skarg 07a1077b2d correcting the npdu encoding for handlers. 2006-09-22 21:16:20 +00:00
skarg a30d497669 indented. 2006-08-13 00:57:17 +00:00
skarg 5bb205dc03 Changed the API to pass the NPDU data down through the datalink layer in order to make the dlmstp work since it needs data-expecting-reply information. Of course, this affected all the demos, all the unit tests, and most of the demo handlers. Corrected some TSM leaks in confirmed messages. Refactored the AtomicReadFile and AtomicWriteFile demos by moving the Send_ functions to the demo/handlers directory and using the s_whois common handler. Added some common defines for the BACnet version and revision since several modules were using the info. Hopefully I didn't break too many things. 2006-08-13 00:54:05 +00:00
skarg 8681e12031 Added a PRINT_ENABLED define to allow small embedded devices without print capability to use some functions in this module. 2006-08-10 19:37:57 +00:00
skarg eb2bb41aca Indented and cleaned up build. Added Multi-state Output to unit test script. 2006-08-05 22:00:27 +00:00
skarg 4d19c82f59 Created a demo Multi-state Output object, and added it to the demo applications. 2006-08-05 19:36:55 +00:00