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
skarg
80185c6a63
Changed lines marked with "dangerous cast" to use memcpy.
2010-11-06 01:27:11 +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
skarg
437112cc52
Reverted the BIG_ENDIAN additions as they are not needed since bacint is converting integers in an endian neutral manner.
2010-10-31 19:13:10 +00:00
petermcs
d6cee12acb
added ms-input.c and trendlog.c to project file
2010-10-30 16:16:05 +00:00
bacpack
73415f4a5d
Modified to store and use IP addresses and the IP port number in the network byte order.
2010-10-29 17:29:01 +00:00
bacpack
79b86d3a8c
Corrected for ENDIANNESS.
2010-10-27 19:15:10 +00:00
bacpack
76260a994d
Fix receive BVLL Forwarded-NPDU message: the received source address is in network data format and it has to be stored in the same format.
...
Note: the encode_ and decode_ functions are broken; they ignore host's endianness.
2010-10-27 14:50:52 +00:00
skarg
feb44efb87
Corrected missing REAL len decoding. Thank you, Julien!
2010-10-25 11:44:08 +00:00
skarg
0953c8ada6
Per the datasheet, "Beware that if doing a Read-Modify-Write on ADCSRA, a pending interrupt can be disabled." I don't know a good way to do this, but using ADIE seems to not be reliable.
2010-10-22 17:12:30 +00:00
skarg
bfaec69757
2010-10-22 14:58:28 +00:00
skarg
3b49fb0271
Change global interrupt disable to timer specific interrupt disable for data protection. Added interrupt disabled around ADC API.
2010-10-22 00:11:25 +00:00
skarg
2cac9ba528
Corrected printing of array properties.
2010-10-21 20:14:07 +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
skarg
df5197b89c
added comments
2010-10-19 13:22:32 +00:00
skarg
57781b40cb
Changed Tturnaround time in MS/TP modules to be a minimum of 2ms, or use a dummy transmit of 4 bytes while the transceiver is disabled. 1ms delay will always give smaller than 1ms of delay due to silence timer tick.
2010-10-18 20:42: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
skarg
2c3e03256d
Added missing initialization for PFM count.
2010-10-13 00:06:07 +00:00
skarg
86dbaf409b
Added handling for bacapp decode value returning error codes.
2010-10-12 03:02:05 +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
skarg
df2a5ca695
Updated to-do list.
2010-10-08 18:20:38 +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
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
9efd3465cf
Adding more support for Network Layer Message handling.
2010-10-07 20:56:09 +00:00
skarg
8d2560225d
Updated builds for ports/atmega168 (IAR) and for ports/bdk-atxx4-mstp (AVR Studio)
2010-10-07 15:56:35 +00:00
skarg
b54218939e
Added extra sub-state for MS/TP from Addendum 135-2008v. Tested with ports/bdk-atxx4-mstp/ code on the BACnet Development Kit. Clean compile on src/mstp.c, ports/at91sam7s and ports/atmega168, but untested. All other changes were not compiled or tested.
2010-10-07 15:52:45 +00:00
skarg
23eecbc100
Added more informative error message.
2010-10-06 18:49:52 +00:00
skarg
8165d5bb09
Corrected clock frequency to 18.432MHz to correct baud rate at 115200.
2010-10-04 23:26:25 +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
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
e5f5dce995
Added some javadoc-type function comments.
...
Reduced the default hop count from way-big 255 to 15.
2010-09-28 21:05:38 +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
d5822ac53a
Add clear of MCU status registers at initialization.
2010-09-24 19:38:32 +00:00
skarg
6826688777
Fixed merge problem.
2010-09-24 19:37:43 +00:00
skarg
6dd635cdee
Added clearing of MCUSR per GCC-AVR FAQ.
2010-09-23 22:35:45 +00:00
skarg
0e59eeee32
Converted project to not use external makefile for debugging.
2010-09-23 14:27:21 +00:00
skarg
0a9728ae54
Increased CStack size, and reduced APDU size since CStack was getting exceeded.
2010-09-23 14:26:11 +00:00
skarg
d84243914b
Added ifndef to allow overriding of default defines.
2010-09-23 14:25:23 +00:00
skarg
8098100483
removed timeout code
2010-09-23 00:52:41 +00:00
skarg
6cb6200f39
Reverted seeprom timeout for now. Lowered APDU size in Makefile. Changed stack based text to static buffer.
2010-09-23 00:34:26 +00:00
skarg
80c27fd0b5
Added timeout to SEEPROM wait for transmit.
2010-09-22 18:33:18 +00:00
skarg
430f068305
Updated makefile for v2 hardware.
2010-09-22 18:32:53 +00:00
skarg
ea3e9db07d
Fixed compiler warnings.
2010-09-22 18:31:57 +00:00
skarg
4f464820eb
Added baud rate set/view to serial terminal.
2010-09-22 18:31:24 +00:00
tbrennan3
5e5f38cb06
My gcc complained about a conflict with the function of the same name as the array, Binary_Output_Out_Of_Service. This fix lets it build.
2010-09-22 02:16:22 +00:00
skarg
b1c9870989
Refactoring some BDK code. Updating Skip Data state for AT91 port.
2010-09-22 01:13:42 +00:00