Steve Karg
b38d975f35
Bugfix/compiler warning ( #172 )
...
* Fix compiler and static analysis warning
* revise to use for loop pattern
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-05-21 09:00:40 -05:00
Steve Karg
a4fe367ac0
Added write BDT application ( #170 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-04-23 13:46:21 -05:00
Steve Karg
70c1d8bd7a
IPv6 MAC length is 3 after public review. ( #169 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-04-23 13:45:57 -05:00
Steve Karg
5490101a4f
Bug#76 Fix Send_WhoIs_Local destination address. Thanks, Duffy! ( #167 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-04-23 13:45:02 -05:00
Steve Karg
541d4591e9
Reject DCC password out of range ( #166 )
...
* Reject DCC password out of range
* Fix unit test after return value change
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-04-23 13:44:39 -05:00
Steve Karg
297a11665b
Fix MSTP skip data state to result in not-for-us ( #165 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-04-23 13:44:20 -05:00
Steve Karg
a7bc145c43
Feature/alarm ack application ( #164 )
...
* Added alarm-ack application
* fix error and simple ack handling for event notification
* Added ack-alarm application
* Update CMake for ack-alarm
* update example objects for alarm and events
* Allow repeated ack-alarm for same transition
* add event state API. Fix COV event state.
* add event state API to AV. Fix COV event state.
* Use event time for ack notification
* Enable notifications for all transitions by default. For testing.
* Use unconfirmed device notification to 4194303 for testing.
* initialize local vars
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-04-22 08:33:04 -05:00
Steve Karg
7664b744d9
Fix the gateway example routing and lookups. Thanks, Sam! ( #163 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-04-02 14:12:49 -05:00
Steve Karg
038ba9ec2b
Feature/access event notification ( #156 )
...
* Added event notification for access event. Thank you, Ojdanic Andrijana!
* Added event notification for command failure. Thank you, Ojdanic Andrijana!
* Fix event notification ztest
* Fix event notification ztest
* Added ztest for command failure and access event
* fix zassert_equal test function args
* fix zassert_equal test function args
* fix zassert_true test function args.
Fix verifyBaseEventState().
* Fix octetstring_value_same to use zassert_true
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-02-22 13:23:48 -06:00
Steve Karg
b2da64d93d
Fix WPM for BTL - 9.23.2.X1 ( #155 )
...
* Fix WPM for BTL - 9.23.2.X1
* Fix WPM handler from scan-build error
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-02-15 19:39:26 -06:00
Steve Karg
117db88ce6
Feature/confirmed event notification app ( #153 )
...
* Initial ConfirmedEventNotification app
* Fixed event argument processing
* Adjust event argument processing.
Move the common event arguments
Enable text lookup for some event arguments.
* Fix CMAKE for event app.
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-02-10 10:58:47 -06:00
Steve Karg
80114088f9
Fix the encoding of network port number for BACnet IP ( #147 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-01-14 00:00:27 -06:00
Steve Karg
69f876f1c9
Discard confirmed APDU from original broadcast in BIP and BIP6 datalink ( #149 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-01-13 13:59:16 -06:00
Steve Karg
0a9fbaf438
Bug#74 Printing of the Read property acknowledgement when APDU len is > 255 bytes. Thank you unnakb! ( #148 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-01-13 13:58:50 -06:00
Steve Karg
7cb63dcf06
RP and RPM Network Port indefinite object instance ( #146 )
...
* RP and RPM Network Port indefinite object instance
Added ReadProperty and ReadPropertyMultiple handling for
Network Port object indefinite object instance 4194303.
* Add network port object to some examples
* Fix stm32f10x build
* Fix Endian order of network port IP UDP port
* Add network port object to BDK Makefile
* Add network port object header to BDK device.c
* fix BDK and AT91SAM7S port builds
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2021-01-07 10:21:11 -06:00
Steve Karg
511adb646c
Added MSV object API create/delete/cleanup. Added BIP6 API for Contiki. ( #134 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-10-10 10:45:58 -05:00
Steve Karg
b6697c6f54
Refactored object COV encode into COV module. ( #131 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-10-10 10:44:47 -05:00
Greg Shue
c5f59af14b
Zephyr cleanup (fix date-time.c, cleanout device.c, use full C lib) ( #124 )
...
Co-authored-by: Gregory Shue <gregory.shue@legrand.us >
2020-09-23 14:27:52 -05:00
Greg Shue
a95b7d597e
Zephyr core bacnet server port; bacnet/device test ( #123 )
...
Co-authored-by: Gregory Shue <gregory.shue@legrand.us >
2020-09-22 09:24:38 -05:00
Greg Shue
19869dccdb
Feature/zephyr ztest ( #118 )
...
* Leverage (older) embedded unit tests into external unit tests build upon copy of Zephyr's ztest library and CMake.
* Expand top-level CMake build to run external unit tests.
* Expand Zephyr module extension to run external unit tests via west or sanitycheck.
Co-authored-by: Gregory Shue <gregory.shue@legrand.us >
2020-09-16 07:33:34 -05:00
Steve Karg
8a866b6754
Bugfix/file object file size type ( #116 )
...
* Fix file object example file size type
* Add include for definition of BACnet unsigned.
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-09-03 22:02:49 -05:00
Steve Karg
577b18e1f7
Fix confirmed ACK and simple ack callback without casting. ( #112 )
...
Co-authored-by: Steve Karg <steve.karg@legrand.us >
2020-08-26 17:41:32 -05:00
Steve Karg
645c1b7916
Fixed AVR ports IDE project builds ( #111 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-08-19 10:05:01 -05:00
Txinto
c1429ba7be
Fixing BACDL_ETHERNET compilation ( #108 )
...
Co-authored-by: Txinto Vaz <txinto@iac.es >
2020-08-13 10:19:42 -05:00
Roy Schneider
993acb494a
Replaced gotos in handler code ( #109 )
2020-08-13 10:18:50 -05:00
Steve Karg
f41b5377cc
Added UTF8 multibyte to wide char printing in some apps ( #106 )
...
* Added UTF8 multibyte to wide char printing in some apps
* Fix test compile
* Reduce diff churn
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-07-27 22:44:43 -05:00
Roy Schneider
2af16ab14d
Feature/comments and review ( #102 )
...
* Added comments. Replaced -1 with BACNET_STATUS_ERROR macro.
* Added some DogyGen comments
* Added missing return value check for booleans.
* Check used bits against unused bits in bitstrings.
* Added missing return value check for bitstrings.
* Added sanity checks and comments.
* Fixed implicit type conv warning.
* Chose to keep simpler C function methods.
Co-authored-by: Steve Karg <steve@kargs.net >
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-07-14 11:41:51 -05:00
Steve Karg
de7f7e9782
Feature/router mstp example app ( #101 )
...
* Ported router-ipv6 app to router-mstp
* Fixed router-ipv6 build
* Added router-ipv6 and router-mstp to pipeline
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-07-02 22:46:13 -05:00
Steve Karg
cfb82a937f
Incremented version to 1.0.0 for release on 20200619
2020-06-19 15:01:41 -05:00
Steve Karg
ca544e7ac1
Performed clang-tidy on files
2020-06-19 14:51:19 -05:00
Steve Karg
15dce68947
make pretty using clang-format 10
2020-06-19 14:44:32 -05:00
Carlos Gomes Martinho
ff9697bab4
fix: linking with cpp code ( #95 )
...
* fix: linking with cpp code
* fix: make Handler_Transmit_Buffer always available
2020-05-31 23:44:09 -05:00
Carlos Gomes Martinho
9cad803cc8
chore: remove BACAPP_SNPRINTF_ENABLED macro ( #94 )
...
* chore: remove BACAPP_SNPRINTF_ENABLED macro
* feat: add ifdef in bacapp_snprintf_value and bacapp_parse_application_data for each data type so that smaller MCU can compile without
* fix: typos
2020-05-31 23:42:40 -05:00
Carlos Gomes Martinho
9137531eb0
fix: compiler warnings Wtautological-pointer-compare ( #93 )
...
warning: comparison of array 'wp_data->application_data' equal to a null pointer is always false [-Wtautological-pointer-compare]
2020-05-28 08:56:58 -05:00
Carlos Gomes Martinho
5efc16d3e4
refactor: use const char * instead of char * for inputs ( #92 )
...
fixes: "ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]"
2020-05-28 08:55:50 -05:00
Carlos Gomes Martinho
981d4036c8
refactor: rename test macro to prevent collisions ( #91 )
...
* refactor: rename test macro to prevent collisions
* style: align cmake epilog
* refactor: rename define in makefiles
2020-05-28 08:55:05 -05:00
Steve Karg
cbfa74e48d
Bugfix/bacnet real endian simplify ( #89 )
...
* Remove dependence on endian define
* Make use of existing big_endian function if BACNET_BIG_ENDIAN is not defined
* Add efficient endian macro option if available
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-05-24 09:36:21 -05:00
Roy Schneider
764e0e8448
Feature/zeroing rx buffer remain ( #90 )
...
* Added zeroing rx buffer remain
* Added zeroing rx buffer remain
* Added safety margin for the rx-buffer in the different ports.
* Added safety margin for the receive buffer.
* Added DoxyGen comments.
* Fixed checking return value when calculating distance between opening and closing tag on multiple properties.
2020-05-24 09:19:52 -05:00
Steve Karg
3553ae56c2
Fixed objects list helper and unit test ( #86 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-05-15 15:41:02 -05:00
Roy Schneider
094ac1db00
Feature/safe decode npdu ( #84 )
...
* Added safe version to decode npdu
* Calling safe decoder function.
* Added comments and apdu_len checks.
* Fixed signed/unsigned warnings.
2020-05-11 08:30:18 -05:00
Steve Karg
ec923e51a3
Bugfix/device object protocol revision 14 property list ( #82 )
...
* Added property-list to device object for client applications
* Added property-list to some AVR ARM and RX62 ports
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-05-02 14:01:09 -05:00
Roy Schneider
05aaee7f6b
Comments and length checks. ( #81 )
...
* Comments and length checks.
* Added max_apdu checking.
2020-05-01 20:29:21 -05:00
Roy Schneider
0abcbea971
Feature/app data buffer check ( #79 )
...
* Added comments and buffer overflow checks
* Removed backslashs from C-code.
2020-04-28 08:45:03 -05:00
Steve Karg
89929ee802
Fix the Abort and Reject enumeration max and comments. Thanks Brad! ( #78 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-04-27 11:47:57 -05:00
Steve Karg
1fe6b7e670
Fixed #15 bactext engineering units for new reserved range ( #77 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-04-23 14:42:38 -05:00
Steve Karg
62bfeba2c5
Fixed #57 crash for get alarm summary. Thank you Walter! ( #76 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-04-23 07:29:56 -05:00
Roy Schneider
8f13d59629
Feature/comments and buffer checks ( #73 )
...
* Added comments
* Replaced Goto construct
* Added apdu_len check
* Added comments
* Added string limit and reworked printable check
* Mainly comments
* Just comments
* Just comments
* decode service request returns now non zero on success
* eliminated warnings
* Added character string init with length check.
* Paranoic length check
* Comments and object index checking on read/write.
* Check name/desc strings before returning.
* Eliminated Goto
2020-04-16 10:38:49 -05:00
Steve Karg
1ead6acea5
Fix BACnet IPv4 decode to allow for NULL ( #72 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-04-15 00:03:21 -05:00
Steve Karg
5c8e3406cb
Fixed BACnet integer decode for 40-48-56 bits ( #71 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-04-15 00:03:06 -05:00
Steve Karg
40f7aaba74
Added macro to calculate the next power of two for FIFO data store ( #69 )
...
Co-authored-by: Steve Karg <skarg@users.sourceforge.net >
2020-04-13 11:45:57 -05:00