3525f6b9ec
Tamp down a warning that appears on 64-bit builds by defining BACNET_ARRAY_ALL as 32 bits' worth of 1s, which is appropriate for its use with all uint32_t fields for propertyArrayIndex, which we now have across the body of code.
tbrennan3
2011-10-20 15:36:02 +00:00
85e232ce0d
It was necessary to include trivial implementations of the device write functions to avoid pulling in the device.c module from libbacnet.a for the handler_write_property() support, which resulted in hard-to-trace device duplicate function errors. Turned up when I turned on BAC_ROUTING but not before that, due to dependencies introduced by gw_device.c in libbacnet.a.
tbrennan3
2011-10-20 15:21:03 +00:00
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.
tbrennan3
2011-10-19 18:48:24 +00:00
4a779febca
Added some volatile keywords to make it interrupt safe.
skarg
2011-10-18 02:24:44 +00:00
78fb95bb63
Created EPICS for BACnet Development Kit
skarg
2011-10-06 15:24:56 +00:00
dda49e2824
Added Relinquish-Default to Enumerated special property cases.
skarg
2011-10-06 15:24:30 +00:00
551637d6af
Undefined error print since this case is very common for the client applications.
skarg
2011-10-05 14:31:09 +00:00
3641e7b40c
Updated some Device_Init functions.
skarg
2011-10-04 15:57:40 +00:00
9c1f651458
Moved Device object dependency to the demo handlers.
skarg
2011-10-03 22:24:57 +00:00
0d5c57b149
Moved the DCC of the COV handler into the handler.
skarg
2011-10-03 21:49:10 +00:00
2b0fac263c
Added Added more explicit error checking on WritePropertyMultiple decoding (untested).
skarg
2011-10-03 19:18:27 +00:00
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.
skarg
2011-10-03 18:54:14 +00:00
3bd72dc18d
Removed fix for Revision 2094, as this broke the ability to bind to MAC addresses, and the NPDU is the source for the SNET in the address.
skarg
2011-10-03 14:12:53 +00:00
2356384497
Corrected function prototypes.
skarg
2011-10-03 14:00:59 +00:00
2ffdc9bc53
Added missing return result to fix compiler warning.
skarg
2011-10-03 14:00:25 +00:00
b8dcdee79a
Added some include files for the typedefs in the file.
skarg
2011-10-03 13:51:19 +00:00
043b840d82
Removed extra word to fix compiler error.
skarg
2011-10-03 13:50:26 +00:00
fe7af042b9
Array index is now unsigned so > 0 test will not work. Use explicit check for BACNET_ARRAY_ALL instead.
petermcs
2011-10-02 20:19:07 +00:00
7eb2109dc4
Added the ability to ask for the BVLC Function Code in the lower layers; particular need was to recognize bcasts and not respond with Reject-Message-to-Network.
tbrennan3
2011-09-30 20:00:48 +00:00
a25a7a238d
Made code conditional to avoid error when building with MSVC++
petermcs
2011-09-20 19:11:41 +00:00
3c9f0c9298
Had an issue where Original_Broadcast requests were not responded to with Original_Broadcast packets; this is a fix for that.
tbrennan3
2011-09-19 15:20:26 +00:00
24bea2eb82
Handle the case where Device ID is BACNET_MAX_INSTANCE: for RP and RPM, put the real device ID in the response.
tbrennan3
2011-09-19 13:06:55 +00:00
7b3a6b3465
Missed a NAK case; got it now!
tbrennan3
2011-09-18 19:49:14 +00:00
9d9c1eedaf
More compliant DCC Disable or Disable_Initiation: if no time argument is given, take it as indefinite (a large number) rather than 0.
tbrennan3
2011-09-18 17:13:04 +00:00
120c2734ee
Added ascii-hex conversion in the octet-string library to allow ascii-hex to be parsed correctly from demo applications.
skarg
2011-09-17 04:21:32 +00:00
f444929570
Updated the man page a little.
skarg
2011-09-17 04:19:56 +00:00
725af0f1a0
Created man page for bacwp demo application.
skarg
2011-09-17 04:04:47 +00:00
cb5c3c102a
Updated copy of the project web page.
skarg
2011-09-16 14:59:04 +00:00
e9142bfc54
Added Added SubscribeCOV demo application (bacscov) for testing (and fixed subversion mess up that I did by copying a directory).
skarg
2011-09-14 20:47:00 +00:00
4ee99355cd
Corrected GCC version check.
skarg
2011-09-12 21:27:13 +00:00
ce7e651156
Provided a feedback path, so we can find out if our foreign device registration has been NAK'd.
tbrennan3
2011-09-12 21:21:39 +00:00
364293b075
Added NAK functionality for BBMD commands when not supported. Also record any BVLL Result returned to us (eg, for foreign device registration).
tbrennan3
2011-09-12 20:52:42 +00:00
630ed4640b
Improved the bacepics program to include header and footer, so it can generate a full (and compliant) EPICS file for VTS3.
tbrennan3
2011-09-12 18:07:25 +00:00
8488d65a9c
Fixed the spelling of BBMD_ENABLED, and define it off (0) by default.
tbrennan3
2011-09-12 18:04:26 +00:00
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.
tbrennan3
2011-09-12 11:54:42 +00:00
a41c8fcc99
Fixed a few problems with ptransfer in linux builds, but then relagated it to Win32 only builds (left the errors for M$-only functions like _kbhit) Added a makefile for it.
tbrennan3
2011-09-12 11:50:05 +00:00
cd8946c62d
Cleaned up comment.
skarg
2011-09-11 13:35:46 +00:00
afa68ab788
Made this similar to another device.c.
skarg
2011-09-09 04:51:03 +00:00
432145b766
Updated device.c files of ports stm32f10x and at91sam7s to fix some problems and make them more similar.
skarg
2011-09-09 04:47:46 +00:00
548beac851
Updated device files in some ports to be more similar and correct.
skarg
2011-09-09 04:31:31 +00:00
9f0dfeed1c
Fixed Linux datalink call to Master Node FSM which was not doing immediate transitions, and could lose whole messages. Thank you, Nikola Jelic!
skarg
2011-09-02 14:35:16 +00:00
8e253e8545
Changed ReadPropertyMultiple demo example to be able to request multiple properties from the same object. Also removed the array-index parameter (the quad) in favor of bracketing the array index if an array index is desired: 76[0] is the object-list property array index 0. Multiple properties are sent using a comma separating the properties. Updated the --help to show examples of the new forms.
skarg
2011-09-02 00:57:08 +00:00
47094241a8
Added Subversion workflow details in README.subversion Added script to ease branch releases.
skarg
2011-08-31 17:23:29 +00:00
6a807dbf0d
Updated demo port for BDK to use MAC as device ID until configured with WriteProperty.
skarg
2011-08-26 18:48:01 +00:00
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.
tbrennan3
2011-08-26 15:28:15 +00:00
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.
tbrennan3
2011-08-25 21:20:14 +00:00
3c3d0b2e4c
Renamed getter and setters for better namespace use.
tbrennan3
2011-08-25 02:55:25 +00:00
3e134011a1
Splinted the code, and fixed the errors.
skarg
2011-08-24 23:29:53 +00:00
58691c16d6
Changed the Treply_delay wait to be smaller when the next message in the queue is does not match.
skarg
2011-08-24 12:48:33 +00:00
26b5fdd3d0
Returned Tusage_delay to the MS/TP state machines to fix excessive Reply-Posponed messages when received packet is decoupled from immediate handling. Some BACnet routers do not handle Reply-Postponed correctly and drop the subsequent valid reply. Added Slave Node FSM to linux/win32 MS/TP layer. Added PDU queue to Linux MS/TP datalink layer.
skarg
2011-08-24 12:33:20 +00:00
8b9c531b9f
Fixed Line End characters.
skarg
2011-08-23 20:34:12 +00:00
45915f2d22
Fixed IAR compiler warnings.
skarg
2011-08-23 20:29:15 +00:00
6c89924df7
Converted all the BACnet-array-index variables from int32 to uint32 as they were intended.
skarg
2011-08-23 20:19:44 +00:00
f19f2c29d9
Converted all the BACnet-array-index variables from int32 to uint32 as they were intended.
skarg
2011-08-23 20:11:42 +00:00
e0b5b5b164
Corrected check for Device Name function.
skarg
2011-08-23 17:04:01 +00:00
c1f148dc61
Quick fixes for BACNET_CHARACTER_STRING uses with routing. (Mostly just reverting to ANSI with this demo code.)
tbrennan3
2011-08-22 19:55:05 +00:00
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.
tbrennan3
2011-08-22 19:52:36 +00:00
59831e8eaa
Fixed up Device_Object_Name_Copy(). Revised Routed_Device_Name() and Add_Routed_Device() to use BACNET_CHARACTER_STRING.
tbrennan3
2011-08-22 19:49:25 +00:00
a92160f73d
Revised BBMD registration functions to return something approximating a goodness value. (Still too happy for invalid BBMDs, but it's a start.) Fixed handling of bacapp_decode_context_data() for some of the more unusual (empty, etc) cases I've seen.
tbrennan3
2011-08-22 19:45:41 +00:00
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.)
tbrennan3
2011-08-22 19:42:07 +00:00
e7365ecaa5
Fixed up Device_Object_Name_Copy() for these ports.
tbrennan3
2011-08-22 19:40:08 +00:00
2f008a9a2b
No need for sched_yield in master_fsm_task due to select in getting the byte. No need for Timer_Mutex since only one task ever uses timer functions. Thank you, Nikola Jelic!
skarg
2011-08-19 18:05:45 +00:00
be0e538ce5
updated release script to include readme.txt file.
skarg
2011-08-19 17:40:56 +00:00
8d9b987064
Corrected unit tests for iam, event, ai, and bacdevobjpropref. Removed device from unit test since it needs reworked for unit testing due to object dependencies. Noted that lc object fails test and needs fixed.
skarg
2011-08-17 03:47:43 +00:00
7ccbb406b4
WritePropertyMultiple: if an attempt is made to write to a commandable property without specifying the priority then the writing is at the lowest priority (number 16).
k001a
2011-08-15 09:35:14 +00:00
08028dd819
Fixed headers when built without Intrinsic Reporting.
k001a
2011-08-15 08:16:41 +00:00
c2282c5aad
Fixed headers when built without Intrinsic Reporting.
k001a
2011-08-11 20:21:18 +00:00
5f952312a8
'Last Received Object Identifier' for GetEventInformation service.
k001a
2011-08-11 19:17:27 +00:00
75d3927d67
Added in reliability to list of optional properties
petermcs
2011-08-10 05:50:13 +00:00
da7fffaa9a
Fixed AI header when built without Intrinsic Reporting.
skarg
2011-08-10 03:58:25 +00:00
ef80e662b3
Cleaned up compile on Win32 for MS/TP datalink. Still not reliable yet.
skarg
2011-07-26 22:11:20 +00:00
813f3f0f1b
Ran the fixup script on the file.
skarg
2011-07-26 04:25:35 +00:00
c14837ae73
Added Renesas RX62N port of Ethernet datalink from Renesas Rulz contest.
skarg
2011-07-26 04:23:09 +00:00
3c9c235d28
Using timeGetTime to get the elapsed milliseconds after a baseline GetSystemTimeAsFileTime to emulate the Unix gettimeofday function at millisecond resolution on Windows.
skarg
2011-07-25 22:12:28 +00:00
059a9e8471
Fixed compile error in module.
skarg
2011-07-25 03:27:26 +00:00
aac4bb5dd4
Changed gettimeofday unix function for win32 to use a higher resolution timer.
skarg
2011-07-25 02:47:25 +00:00
c37aa9ea90
After acknowledgment an alarm is sent AckNotification.
k001a
2011-07-23 17:18:25 +00:00
c1d7633a8d
Attempting to get better timestamp resolution on Win32. Added some functional tests for determining accuracy. The existing gettimeofday emulations only give 15ms to 16ms of resolution, so that needs fixed.
skarg
2011-07-22 22:36:12 +00:00
dc209f7ffb
Enhanced the statistics and usage reporting of mstpcap utility. Now counts each frame type emitted by a node, calculates Npoll, checks for tokens sent to self, and still all the existing timing statistics.
skarg
2011-07-22 22:34:23 +00:00
8199008092
Acknowledge Alarm for Analog-Input and Analog-Value objects. Moved initialization of handlers to GetEventInformations to specific init object.
k001a
2011-07-21 20:44:57 +00:00