Commit Graph

52 Commits

Author SHA1 Message Date
skarg 48e2c60ce2 indented to standard from script 2012-05-13 15:07:12 +00:00
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
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
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 aa045effaa Corrected RPM Handler for max APDU size. 2010-12-23 05:59: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 c8f4aac1b7 Cleaning up some code to make it more robust. 2010-09-16 14:49:33 +00:00
skarg 914a063681 removed kludge by adding initializer 2010-09-11 19:23:08 +00:00
skarg 7928d7cb6c Fixed compiler error (after adding a change for IAR compile). 2010-09-07 18:18:30 +00:00
skarg 4105d22b4b Fixing compiler warnings (compiled with IAR and configured for no printing) 2010-09-07 16:16:15 +00:00
skarg 6c9ef7211d Fixed indent script, and indented files. 2010-07-19 23:19:54 +00:00
skarg e5481b4bb5 Fixed error code when array option is passed to special properties ALL, OPTIONAL, REQUIRED. 2010-07-16 14:48:52 +00:00
skarg 7852309f7e Added error code when array option is passed to special properties ALL, OPTIONAL, REQUIRED. 2010-07-16 14:34:15 +00:00
petermcs 404eaa01d0 Removed spurious #define TEST and fixed up a couple of printfs. 2010-06-10 21:20:47 +00:00
petermcs 7b77fe776a Refactored rpm decoding to return proper reject/abort status for malformed requests.
Note: the test code in rpm.c has been changed to accommodate the changes made to the decoding functions but I have not tested the test code as I have not run the test suite.
2010-06-10 11:31:53 +00:00
petermcs 04e99f3671 Changes to reduce the number of warnings with Visual C++2008 warning level 4 to a minimum. 2010-05-14 14:21:48 +00:00
skarg 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +00:00
tbrennan3 040e6ed286 Make sure RPM handler aborts if Device_Read_Property() returns -2 (because the current property by itself won't fit in the APDU). 2010-04-23 18:40:09 +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 c8d959b3e3 Corrected some compiler warnings. 2010-02-12 22:31:09 +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 0b76dd08c9 Changed debug print to properly identify service as RPM and not RP 2010-01-25 10:36:37 +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
skarg 55d96cdfad made the RPM encoder static since it uses a static local buffer, and was a problem if RPM tries to encode a group object using this RPM encoder. 2009-11-02 12:16:03 +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 6e6cdf2bc0 Added the call to Multistate_Output_Property_Lists() into the switch statement in RPM_Property_List(). It was noticed because the Scada Engine BOWS chokes on this when it tries to do an RPM "all" and stops using RPM for all the other objects on the device as well. Thank you, Peter! 2009-06-17 23:24:32 +00:00
skarg fa3607d948 Corrected ReadPropertyMultiple for some objects. Added catch for case where malformed RPM-Ack is received. 2009-05-12 20:23:01 +00:00
skarg b85c4355d0 Indented according to standard indent rules for this project. 2009-04-18 20:50:04 +00:00
skarg dff62808bd Corrected APDU overrun problem in RPM handler. Thank you to Jérémy for reporting and Tomás for confirming! 2009-03-19 15:23:20 +00:00
skarg d45d566c94 Corrected context decoding bug in ReadPropertyMultiple client. Corrected ReadPropertyMultiple handling of objects that aren't supported. Added the context to application tags for the Load Control object. 2009-02-21 19:12:31 +00:00
skarg d1a1c1c8a6 Indented. 2008-11-24 12:48:09 +00:00
skarg 7921d2f811 added ReadPropertyMultiple client demo application, bacrpm. 2008-11-23 22:25:08 +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 d664287176 Corrected the offset when an Error is returned in ReadPropertyMultiple. Thanks Paul B.! 2007-10-26 13:50:33 +00:00
skarg 0c527b8162 Cleaned up Borland compile. 2007-09-07 18:00:42 +00:00
skarg 46ab0030c8 Fiddling with the MAX_MDPU and datalink stuff. 2007-09-01 00:42:12 +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 f25766c185 Cleaned up device object and server demo for MS/TP properties and compiler warnings. 2007-07-20 00:42:49 +00:00
skarg 30c186d730 Corrected ReadPropertyMultiple handler. Tested using VTS with demo/server running under linux. 2007-07-19 18:27:03 +00:00
skarg 5b07b5b920 Integrated ReadPropertyMultiple with the demo/server application. Compiles, but untested. 2007-07-19 00:21:38 +00:00