Commit Graph

  • 0f82748413 Added abort to error code conversion. Added unit test. (#20) Steve Karg 2020-01-15 14:50:16 -06:00
  • 6e0ebb99f4 Fix UNKNOWN_PROPERTY on Mac_Address of Network Port demo object. (#24) Geert Linders 2020-01-15 21:49:16 +01:00
  • a24845ba51 bypass lint check until passing initially (#25) Steve Karg 2020-01-15 08:39:56 -06:00
  • 63899e6606 Fix gateway app build (#22) Steve Karg 2020-01-15 08:02:15 -06:00
  • d3014c87fa build: improve cmake, add github actions (#16) Carlos Gomes Martinho 2020-01-15 06:25:41 +01:00
  • 0a414b88f6 Units fixes (#13) Roger Light 2020-01-15 05:20:16 +00:00
  • 284f009a05 Resolve AV_Descr naming conflict for Analog Value and OctetString Value. (#12) Geert Linders 2020-01-15 06:19:33 +01:00
  • 5a7049557b apps - allow text strings for object-type and property arguments. (#8) Roger Light 2020-01-15 05:18:30 +00:00
  • ed3f0982a3 Bug #61: add strict decoding for TimeSynchronization Steve Karg 2020-01-07 08:19:02 -06:00
  • 35a8c47213 Added protocol-revion 20 support Steve Karg 2020-01-04 12:41:31 -06:00
  • 6c52e5ce2e Added ability to disable UTF8 validation for character strings. Steve Karg 2020-01-04 12:15:44 -06:00
  • f721350b3f Bug #61: add strict decoding for AtomicReadFile, AtomicWriteFile, and DeviceCommunicationControl Steve Karg 2020-01-04 12:06:28 -06:00
  • 20735f0162 Fixing STM32F10x port paths and includes according to changes in directory structure Martin Kudláček 2020-01-03 22:58:35 +01:00
  • 4ba3b72142 Merge /u/mkudlacek/bacnet/ branch master into master Steve Karg 2020-01-03 20:35:41 +00:00
  • 08140ac937 Merge branch 'master' of github.com:bacnet-stack/bacnet-stack Steve Karg 2020-01-03 14:24:11 -06:00
  • 038b9a4fe2 Fixing ATMEGA168 port paths and includes according to changes in directory structure Martin Kudláček 2020-01-03 20:50:59 +01:00
  • 52cdb5e365 Fixing paths and includes according to changes in directory structure Martin Kudláček 2020-01-03 20:29:12 +01:00
  • 221ff7fa3e build: install cmake config files to enable cmake find_package (#11) Carlos Gomes Martinho 2019-12-31 19:59:29 +01:00
  • ac491d4d39 CI: use cmake --build command to build a project (#9) Yegor Yefremov 2019-12-31 19:57:06 +01:00
  • b22f745c79 Match property name to name used in specification. (#7) Roger Light 2019-12-20 04:12:54 +00:00
  • 830ab2d788 cleaned clang compile warnings Steve Karg 2019-12-18 21:14:05 -06:00
  • efea4a1a59 build: add basic cmake support (#6) Carlos Gomes Martinho 2019-12-19 02:48:50 +01:00
  • 956acac299 removed unmaintainable project files from IDE Steve Karg 2019-12-17 17:24:22 -06:00
  • bc612221b6 Bug #68: added fix for compiler warning. Thank you, Michael Francis! Steve Karg 2019-12-17 15:56:04 -06:00
  • d50c190957 Issue 2 move folders and use deep path include file names to prevent collisions (#4) Steve Karg 2019-12-13 15:19:10 -06:00
  • 8a38dbe2cf Merge pull request #3 from bacnet-stack/issue-1-Indent_and_style_for_source_code Steve Karg 2019-10-24 16:46:46 -05:00
  • 710173d6e0 added clang format C and H files. Steve Karg 2019-10-24 16:23:10 -05:00
  • da91a11454 added clang-format file and make pretty. Removed previous indent tools. Steve Karg 2019-10-24 16:22:16 -05:00
  • 1879d4c76f fix EOL in .s files Steve Karg 2019-10-23 14:55:14 -05:00
  • f4dac4acb2 adjusting EOL for specific files Steve Karg 2019-10-20 13:46:21 -05:00
  • 846bfb7c21 fix EOL on specific file types Steve Karg 2019-10-20 13:45:01 -05:00
  • 798091f51b add gcc and clang to test Steve Karg 2019-10-20 13:44:41 -05:00
  • 870f2960cb add travis C project compiler test Steve Karg 2019-10-19 20:25:44 -05:00
  • 1abc4d93b8 Fix make test. Undo CI change for parallel. Steve Karg 2019-10-19 15:27:12 -05:00
  • 6bb702f488 Attempt to parallel CI jobs Steve Karg 2019-10-19 15:17:43 -05:00
  • 4c132011fb Move lint to end of CI. Narrow lint to server demo Steve Karg 2019-10-19 14:59:34 -05:00
  • 8427f15da7 Move lint to end of CI. Narrow lint to server demo Steve Karg 2019-10-19 14:57:21 -05:00
  • d465e9409b cleanup Makefile for test. Cleanup CI stages. Steve Karg 2019-10-19 14:52:31 -05:00
  • 944362801f re-save line endings to LF for git Steve Karg 2019-10-19 14:20:19 -05:00
  • 4600e386e4 Added attributes file to handle EOL Steve Karg 2019-10-19 10:32:01 -05:00
  • 12ebc38930 Changed readme to embed CI status Steve Karg 2019-10-09 08:18:28 -05:00
  • 8d109a51ba Encapsulate unit test Makefile for CI Steve Karg 2019-10-09 08:11:06 -05:00
  • 0338e9e0f9 fix travis CI rules Steve Karg 2019-10-08 23:52:20 -05:00
  • a42e8f507c adjust root folder Steve Karg 2019-10-08 23:47:53 -05:00
  • b6fc50ddea added gitignore Steve Karg 2019-10-08 21:13:51 -05:00
  • 8a7f93fed2 Added more debug info for BBMD6 handling. skarg 2019-09-12 16:25:40 +00:00
  • a76dca8d5c Added missing function prototype for BACnet/IPv6 skarg 2019-09-12 16:23:11 +00:00
  • 0010acf59b Fix network port datalink init warnings for IPv6 demo builds skarg 2019-09-12 13:00:10 +00:00
  • 27402e31e0 Fix router-ipv6 demo when building stack for IPv6 skarg 2019-09-12 12:58:54 +00:00
  • 693616eb5a Fix CharacterString Value object name and description. skarg 2019-09-11 20:58:08 +00:00
  • 3f8cdd05f0 Added concurrent Network Port object example for Ethernet, MSTP, BACnet/IP and BACnet/IPv6. Enhanced the IPv6 API and data for Network Port object. Enhanced network port object unit testing and added to unit test Makefile. Incremented default protocol-revision from 14 to 19 to enable default testing with Network Port object. skarg 2019-09-11 19:39:27 +00:00
  • 7e0dbb7bf7 Fix javadoc header skarg 2019-06-22 13:27:08 +00:00
  • 09a2614359 Added property list membership test skarg 2019-06-02 14:48:52 +00:00
  • d7ad240f05 The patch is to change the timeout from 10us to 0 so that we just do a poll for more receive data when there is already data queued. With this patch, the code seems to work just fine with 100Hz timer tick. Thank you, David Mosberger skarg 2019-03-17 22:15:27 +00:00
  • f028874041 Linux make fixes for router-bip6 skarg 2019-03-17 22:09:55 +00:00
  • 2c7d5ea4aa Here is a patch for ports/linux/dlmstp.c that switches it to use CLOCK_MONOTONIC rather than real time for the condition variable. This makes the code robust against changes to real time (say, operator adjust time and moves it back by one year, now the timeout wont fire for a year...). Thank you, David Mosberger skarg 2019-03-17 22:08:25 +00:00
  • 65e602bd3c 1. readme.txt - Build instructions modified. - Added valid example of cmd line 2. main.c - Return false if no args passed. Fixes segmentation fault skarg 2019-03-17 13:16:59 +00:00
  • 585b0bae5b Add common functions for initializing the BACnet Application Value lists. Fixes problems with receiving Unconfirmed COV Notifications with more values to store than the stack has reserved in its value list. skarg 2019-01-31 14:51:46 +00:00
  • b3c9affd49 Use numeric constants for win32 port defines for MinGW using gcc version 4.8.1 skarg 2018-12-18 03:53:12 +00:00
  • 4b3db4416e Fix network port object for-loop to not depend on C99 features. skarg 2018-12-18 03:36:45 +00:00
  • c05245c6ff Removed baud-rate from network port object example since the property is called link-speed. skarg 2018-12-17 18:19:22 +00:00
  • f4984dd8d6 Updated stm32f10x port example to work with IAR EWARM 8.11 skarg 2018-12-15 16:52:21 +00:00
  • 37beed9f70 Corrected network port link speed datatype. skarg 2018-12-14 14:35:25 +00:00
  • 0386af099f Merged revision(s) 3206 from branches/releases/bacnet-stack-0-8-0: Removed case in MS/TP data expecting reply to not expect a ConfirmedRequest PDU reply. Bug #59. Thank you, Govind! ........ skarg 2018-12-13 17:50:25 +00:00
  • 56290fe877 Add COV handling example for Multi-state Value skarg 2018-12-11 02:40:47 +00:00
  • 0d53e59369 Fixed BACNET_REINITIALIZED_STATE enum broken in merge skarg 2018-12-11 02:39:31 +00:00
  • 55794f7f54 Merged revision(s) 3172 from branches/releases/bacnet-stack-0-8-0: Fixed ReinitializeDevice service error handling of states for demos and ports. ........ skarg 2018-12-06 04:11:01 +00:00
  • 755f5087ef Merged revision(s) 3160 from branches/releases/bacnet-stack-0-8-0: Added BACDL_NONE for testing without a physical datalink. ........ skarg 2018-12-05 23:58:23 +00:00
  • 212dca46da The WritePropertyMultiple does not sends the priority. In the function wpmencodeapduobjectproperty located in wpm.c, the apdulen variable is not increased after calling encodecontextunsigned for the priority property. Bug #58. skarg 2018-12-04 16:13:15 +00:00
  • 33a812a922 Rename NPDU local variables to be clearer. skarg 2018-10-09 22:38:42 +00:00
  • d1f0b020f0 [bacnet:bugs] #57 fix to increase filename buffer to avoid compile warning. Thank you, Joe Burmeister! skarg 2018-10-09 14:42:18 +00:00
  • 77360ad46f Added example Network Port object skarg 2018-08-30 01:19:31 +00:00
  • 14a2bf696a Removed option property from required property list. skarg 2018-08-30 01:11:26 +00:00
  • a37acdb319 Added property and units text for newer enums. skarg 2018-08-08 15:41:20 +00:00
  • 1e6aef6a3b Added BACnet/IPv6 network port enumeration. skarg 2018-08-08 15:40:12 +00:00
  • 059f3a1f70 nc.c: Attempting to write to Object_Name returned UNKNOWN_PROPERTY. Now returns WRITE_ACCESS_DENIED ekh 2018-06-18 06:24:28 +00:00
  • 9914f30a65 Merged revision(s) 3181 from branches/releases/bacnet-stack-0-8-0: Added BDT backup and restore to file option API. Thank you to Mario de Sousa for the patch. ........ skarg 2018-06-10 02:25:47 +00:00
  • c7ed0b24c0 Added address compare API for BIP6. skarg 2018-06-10 02:21:44 +00:00
  • 51e672dd9a Fixed unit test for Load Control object and Address module. Thank you to Chris Ellec for the patches. skarg 2018-05-31 00:37:20 +00:00
  • afd8687519 Updated Makefile GCC ARM build for STM32F10x port. skarg 2018-05-10 18:34:19 +00:00
  • 2bfa49cbe4 Fix extraneous PRINT_ENABLED which caused compiler warning. skarg 2018-04-20 01:30:13 +00:00
  • 7fc3060dbf Added environment variables to enhance BBMD behavior in the example server demo. BACNET_BDT_ADDR_1 - dotted IPv4 address of the BBMD table entry 1..128 BACNET_BDT_PORT_1 - UDP port of the BBMD table entry 1..128 (optional) BACNET_BDT_MASK_1 - dotted IPv4 mask of the BBMD table entry 1..128 (optional) skarg 2018-04-19 20:10:45 +00:00
  • a46fcc37d5 Fixed buffer overflow in BACnet/IP BVLC packet handling by properly checking the size of the packets at each function. Thank you, Marlies Ruck! skarg 2018-04-18 18:24:15 +00:00
  • b0f1107a57 Updated MS/TP FSM to not reply to Broadcast PFM. Thank you, Iqbal Hassan! skarg 2018-03-01 00:08:43 +00:00
  • 0185fe0314 Fixed Windows compile under MinGW. skarg 2018-02-03 01:22:22 +00:00
  • 96d222ec58 Added arm-none-eabi GCC Makefile for ports/stm32f10x example skarg 2018-01-21 19:58:16 +00:00
  • e3fab4a96c esp32 support fchaxel 2017-11-22 07:28:36 +00:00
  • 7d40c7ce5e Fixed comment. skarg 2017-11-01 21:34:34 +00:00
  • 04c94698e5 Added WritePropertyMultiple demo application. skarg 2017-11-01 21:33:48 +00:00
  • 9186440c56 Added missing Engineering Units. Thank you Mario. skarg 2017-08-31 05:33:24 +00:00
  • 00a3447ffd Merged revision(s) 3154 from branches/releases/bacnet-stack-0-8-0: Fixed WriteProperty demo command line options when using more than one property value and a context tag. Thank you James Gordon for reporting the problem. ........ skarg 2017-08-25 17:07:11 +00:00
  • 85f3ea13b2 Merged revision(s) 3153 from branches/releases/bacnet-stack-0-8-0: Fixed compile warnings due to BUILD=debug option ........ skarg 2017-08-25 17:06:27 +00:00
  • f53035cde1 Add a Device object and application layer to router demo. skarg 2017-08-25 17:05:40 +00:00
  • 4599d725f6 Added some readme info about Wireshark, extcap, and DLTs. skarg 2017-08-24 19:16:45 +00:00
  • 0c39a8edaf Clean up compile for Atmel port example. skarg 2017-08-24 17:57:30 +00:00
  • ebcd9bc494 address_cache file was inadvertently disabled for command line demo tools. Fixed. Thank you, Martin Tremblay! Syncing with 0.8.x branch. skarg 2017-08-24 17:55:46 +00:00
  • 6560623fa6 Added property enumerations from BACnet 2016 standard. Thank you, Mario Sousa! skarg 2017-08-24 17:09:57 +00:00
  • 6b0134d6d4 added engineering units from 135-2012ag and 135-2012ar skarg 2017-08-16 03:51:47 +00:00
  • d39044261c Added some arduino_uno files that we missed during first import [WIP]. skarg 2017-06-26 17:48:02 +00:00
  • 7d1550362b Merged revision(s) 3136 from branches/releases/bacnet-stack-0-8-0: Replace Receive_Packet_Flag conditional variable with a semaphore and update the related library functions accordingly. Analysis of the problem determined that the issue lay in the transfer of APDU packets between the FSM and the APDU packet handler thread. The mechanism previously used by the FSM to notify the APDU packet handler thread that a packet was available for processing used a pthread conditional variable which packet handler thread was supposed to wait on before being signalled by the FSM. However the packet handler thread has other tasks to perform and sometimes was not waiting on the conditional variable which it was signalled. Unlike other synchronisation mechanisms such as semaphores, if the waiting task (the consumer) is not blocked on the conditional variable when the producer signals, then that signal is lost and the consumer is never signalled again, leading to a continual sequence of timeouts on the conditional variable. This in turn led to the packet handler thread never being notified of a packet waiting to be processed thus causing the interface hang. The main problem is that a conditional variable is supposed to be used with a mutex to prevent this behaviour occurring, but this mutex was not present (and in fact had been removed from the code, most likely because it was causing other synchronisation issues) Further inspection revealed that this code was copied from another file but modified to remove the mutex which is an essential part of using a conditional variable for synchronisation. This then prevents the producer task being blocked until the consumer task is waiting on the conditional variable, thus leading to a race condition which is causing the issues seen. The fix is to replace the conditional variable with a semaphore as this provides the required mechanism in this case. Thank you Ian Smith at Abelon Systems Ltd. for the patch! skarg 2017-06-25 18:08:36 +00:00