Reduced MS/TP MAX_APDU to use 480 by default in examples (#683)

* Reduced MS/TP MAX_APDU to 480 from 1476 so that devices not use new MS/TP extended frame types which older routers do not understand.

* Added extra objects to STM32F4xx example to elicit edge cases in object-list for testing.
This commit is contained in:
Steve Karg
2024-07-02 12:47:15 -05:00
committed by GitHub
parent d5b0060d8a
commit cb4f675e39
18 changed files with 242 additions and 48 deletions
+2 -1
View File
@@ -221,7 +221,8 @@ target_compile_definitions(${EXECUTABLE} PRIVATE
-DHSE_VALUE=25000000
# BACnet Stack library
-DBACDL_MSTP
-DMAX_APDU=1476
# note: MS/TP extended frames can be up to MAX_APDU=1476 bytes
-DMAX_APDU=480
-DBIG_ENDIAN=0
-DMAX_TSM_TRANSACTIONS=0
-DBACAPP_MINIMAL
+2 -1
View File
@@ -153,7 +153,8 @@ OPTIMIZE_FLAGS += -DNDEBUG
BACNET_FLAGS = -DBACDL_MSTP=1
BACNET_FLAGS += -DBACAPP_MINIMAL
BACNET_FLAGS += -DMAX_APDU=1476
# note: MS/TP extended frames can be up to MAX_APDU=1476 bytes
BACNET_FLAGS += -DMAX_APDU=480
BACNET_FLAGS += -DBIG_ENDIAN=0
BACNET_FLAGS += -DMAX_TSM_TRANSACTIONS=0
BACNET_FLAGS += -DMAX_CHARACTER_STRING_BYTES=64
+1 -1
View File
@@ -227,7 +227,7 @@
<state>STM32F10X_XL</state>
<state>USE_STDPERIPH_DRIVER</state>
<state>BACDL_MSTP</state>
<state>MAX_APDU=1476</state>
<state>MAX_APDU=480</state>
<state>MAX_TSM_TRANSACTIONS=0</state>
<state>BACAPP_MINIMAL</state>
</option>