Commit Graph

2451 Commits

Author SHA1 Message Date
skarg 07bf4eba3b Deprecated Ringbuf_Alloc, and replaced with Ringbuf_Data_Peek() and Ringbuf_Data_Put() functions. Ringbuf_Alloc() was not interrupt or thread safe. 2015-09-09 14:54:02 +00:00
ekh a36ac1ec45 Modified conflicting line endings in ../xplained/bacnet.c which were confusing some tools. 2015-09-08 22:52:56 +00:00
skarg 458d563aaf Improved AtomicReadFile and AtomicWriteFile error detection. Eliminated redundancy in the octetstring_init function. 2015-09-01 22:24:34 +00:00
skarg 80b628453d Fixed AUTHENTICATION_STATUS Property name. Thank you, F. Chaxel. 2015-09-01 14:10:33 +00:00
skarg 04c4becb8b Fixed AUTHENTICATION_STATUS Property name. Thank you, F. Chaxel! 2015-08-18 16:19:18 +00:00
skarg 0a18592bc8 Fixed when pending events are not displayed in the getEventInformation demo. 2015-08-10 15:55:06 +00:00
skarg 9d595fd00d Fixed Wireshark extcap command line parameter interface to mstpcap utility on Windows (Thank you Roland!).
Tested with Wireshark 1.99.7 on Windows.
To use extcap, run Wireshark and go to the About-dialog.  Find a tab located there named "Folders". Locate the extcap search path. Copy the mstpcap.exe to that folder, which may not exist.
Restart Wireshark, and look for "BACnet MS/TP on COMx" interfaces.
Configure the interface to change baud rate.
Start or stop the capture directly from the interface.
2015-07-27 18:56:06 +00:00
skarg 0255d4b665 Updated Wireshark extcap command line parameter interface to mstpcap utility in the mstpcap.txt file. 2015-07-14 20:32:38 +00:00
skarg b4ad2c2729 Added Wireshark extcap command line parameter interface to mstpcap utility.
Tested with Wireshark on Windows (mostly working).
To use extcap, run Wireshark and go to the About-dialog.  Find a tab located there named "Folders". Locate the extcap search path. Copy the mstpcap.exe to that folder, which may not exist.
Restart Wireshark, and look for "BACnet MS/TP on COMx" interfaces.
Configure the interface to change baud rate.
Capture directly from the interface.
2015-07-14 20:31:32 +00:00
skarg edcf8404d7 Added Arduino Uno port for W5100 Ethernet shield. Note: requires an Arduino library that is included with the Arduino board, but not included here. Thank you, Miguel Fernandes! 2015-07-07 15:02:04 +00:00
skarg c3eddc2f1c Cleaned up compile warnings 2015-06-29 15:16:03 +00:00
skarg 89bbfbb2ab Fixed compile warning in GetEvent demo. 2015-06-28 20:49:48 +00:00
skarg 8c17721dcd Fixed compile warnings in datetime library. 2015-06-28 20:40:40 +00:00
skarg fad91ca9ce Merged revision(s) 2826 from branches/releases/bacnet-stack-0-8-0:
Expose some datetime internal functions in the API.
........
2015-06-28 13:14:48 +00:00
skarg bd7da666d9 Fixed segmentation fault in demo/router. [bugs:#34] Thank you, F. Chaxel! 2015-06-28 12:52:25 +00:00
skarg b0bd3d6e07 added readme to PiFace demo 2015-06-25 18:45:56 +00:00
skarg 3751c1bd23 Updated mime-type for some files. 2015-06-15 15:38:31 +00:00
skarg e14e8ffc14 Added STM32 design challenge RS-485 daughter board schematic and BOM. 2015-06-15 14:43:49 +00:00
skarg 1d4a51bc5a Removed the "-lgcc" from the SYSTEM_LIB parameter in the BSD section of ./demo/Makefile. Nate verified that with this change and BACNET_PORT=bsd, it builds correctly on FreeBSD, OpenBSD, and OS X 10.10 using the default compiler (clang). This tweak shouldn't affect builds on other platforms. Thanks, Nate! 2015-06-03 18:43:07 +00:00
skarg 8cae75b5d2 Fixed DCC, ARF, RD, and AWF demo applications to use address_cache if available. 2015-05-29 01:46:54 +00:00
skarg d052578777 Added readme.txt to Atmel XPLAINED port. 2015-05-26 19:55:44 +00:00
skarg 4b525b0615 Added RS-485 shield daughter board for ports/xplained project. 2015-04-16 15:13:23 +00:00
skarg fe8e60dd3d Added example MS/TP port to ATxmega XPLAINED A3BU evaluation board. 2015-04-16 13:23:29 +00:00
bow2 086840a763 get event information demo 2015-03-23 12:28:46 +00:00
skarg 672f499f54 Fixed comment. 2015-03-20 19:50:08 +00:00
skarg 9631b65fc5 Fixed I-Am-Router-To-Network handling in cases of a malformed packet. The packet seen in the field was a I-Am-Router-To-Network but there was an extra "Data" byte of 0x55 at the end. Thank you, Ettore. 2015-03-20 19:47:57 +00:00
skarg e98f74424d Fixed address_cache handling of hex DADR addresses for MS/TP or ARCNET devices. Thank you, Marshal! 2015-03-06 21:55:58 +00:00
skarg e5384a416c Made the example Binary Input consistent, and made the Polarity property functional. 2015-02-25 12:28:44 +00:00
skarg 6cb014ee64 Changed the Linux BACnet/IP init to use NetMask.
The function was modified to calculate the broadcast address from IP and netmask instead of using SIOCGIFBRDADDR. In some cases it is possible that the ioctl is successful, but the returned address is 0 (e.g. search for Bcast: 0.0.0.0). For some reason in Linux the local loopback device answers from 0.0.0.0 address. So messages broadcast to that address are received from 127.0.0.1 which can possibly create a broadcast loop. This has nothing to do with NAT, but makes the stack more robust. Thank you, Sami Pietikäinen, for the contribution!
2015-02-24 21:55:31 +00:00
skarg 98207470f4 Adds network address translation (NAT) handling to BVLC when the device is BBMD.
When the device is behind a NAT enabled IP router, the local subnet is not accessible from the WAN side. This means that the device's local IP address cannot be used by other devices to communicate with it. The router can port forward BACnet packets to one device in the local network, but to do so other devices need to use the global IP for communication. The considerations and limitations for NAT usage are specified in BACnet standard Annex J.7.8. Thank you, Sami Pietikäinen, for the contribution!
2015-02-24 21:54:19 +00:00
skarg efdb70b7f9 Added simple local interface to manage entries in the broadcast distribution table. Using this interface, the BDT can be supplied by local means, e.g. device's local user interface as stated in Annex J.4.4. Thank you, Sami Pietikäinen, for the contribution! 2015-02-24 20:01:18 +00:00
petermcs 0b5e336b0c Simplified code for PROP_LOG_DEVICE_OBJECT_PROPERTY Write Property service by using existing bacapp_decode_device_obj_property_ref() routine instead of long winded code which didn't handle optional fields correctly anyway.
Added test in case non zero sub 1 second interval is set as this would otherwise result in 0 being stored as we truncate to 1 second resolution.
2015-02-16 10:58:31 +00:00
petermcs d7b40e0d8b Added explicit values for denoting optional device id not present
Modified bacapp_decode_device_obj_property_ref() and bacapp_decode_device_obj_ref() to use above values.
2015-02-16 10:49:50 +00:00
petermcs 1d9eb5318c silenced warning about unused variable when not using intrinsic reporting 2015-02-16 10:46:52 +00:00
petermcs ce68dc5147 Silenced type conversion warning 2015-02-16 10:45:39 +00:00
skarg 1814ae1d89 Fixed MSTP data expecting reply compare, as this port uses raw buffer. Thank you Will. 2015-02-03 22:39:08 +00:00
skarg 3865a13993 Fixed the at91sam7s makefile to include new files and functions to build with latest library. 2015-01-30 20:58:16 +00:00
skarg dd271af2ed Fix volatile variable access in at91sam7s port example. 2015-01-30 20:54:48 +00:00
skarg c2533b6ead Fix excessive ReplyPostponed frames in PIC MS/TP port. 2015-01-30 20:39:02 +00:00
skarg 3a3c3c24be Fixed encoding of NPDU in router demo. Thank you F. Chaxel. 2014-12-26 17:01:10 +00:00
skarg 27e7c4752c clean up compiler warning 2014-11-17 04:00:24 +00:00
skarg 781da0b53b Fixed MSTP dropped packets on Linux by fixing usage of ptheads condition variable. Turns out that condition variables cannot be used on their own. They need to be paired with a shared state such as a flag variable protected by a mutex. 2014-11-15 22:03:17 +00:00
skarg aa124bc091 updated mstpsnap utility 2014-11-15 17:27:27 +00:00
skarg 3be7029f40 Some MS/TP fixes to the AT91SAM7S port (untested). 2014-11-12 18:11:20 +00:00
skarg ef664ab273 Terminate the value list linked lists for the COV example object Analog Inputs. Thanks, Ed! 2014-11-11 16:56:45 +00:00
skarg d53551558a Merged revision(s) 2782 from branches/releases/bacnet-stack-0-8-0:
Added initial names and descriptions to example multi-state value and multi-state input objects.
........
2014-11-11 16:54:35 +00:00
skarg 5e476c3ffc Improved test in BDK port. 2014-11-11 16:50:17 +00:00
ekh 4415df61f9 Fixups for an issue found during testing COVs 2014-11-10 18:29:22 +00:00
skarg b2097a2acc Added command line option for setting the Device Name in the demo server project. 2014-11-06 16:16:48 +00:00
skarg 66f52e438f added some more debug to RS485 on Linux 2014-11-02 05:29:42 +00:00