feat(gateway): enhance DALI and KNX settings management with instance support
Signed-off-by: Tony <tonylu@tony-cloud.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
menu "Gateway App"
|
||||
|
||||
menu "DALI Settings"
|
||||
|
||||
config GATEWAY_CHANNEL_COUNT
|
||||
int "Gateway channel count"
|
||||
range 1 2
|
||||
@@ -329,6 +331,8 @@ config GATEWAY_DALI_BAUDRATE
|
||||
help
|
||||
Runtime baudrate used when initializing the local DALI bus.
|
||||
|
||||
endmenu
|
||||
|
||||
menu "Gateway Startup Services"
|
||||
|
||||
config GATEWAY_BLE_SUPPORTED
|
||||
@@ -620,6 +624,17 @@ config GATEWAY_START_BACNET_BRIDGE_ENABLED
|
||||
help
|
||||
Starts configured BACnet/IP object bindings at boot. Disabled by default so the UDP BACnet/IP port is opened only after provisioning or explicit runtime start.
|
||||
|
||||
menu "KNX Settings"
|
||||
|
||||
config GATEWAY_KNX_INSTANCE_COUNT
|
||||
int "Enabled KNX instance count"
|
||||
range 1 16
|
||||
default 1
|
||||
help
|
||||
Number of enabled KNX logical instances exposed by management APIs.
|
||||
Instance 0 preserves the legacy serial/FDSK identity; each additional
|
||||
instance derives its serial/FDSK from the base identity plus instance id.
|
||||
|
||||
config GATEWAY_KNX_BRIDGE_SUPPORTED
|
||||
bool "KNX to DALI bridge is supported"
|
||||
depends on GATEWAY_BRIDGE_SUPPORTED && (GATEWAY_WIFI_SUPPORTED || GATEWAY_ETHERNET_SUPPORTED)
|
||||
@@ -956,16 +971,16 @@ config GATEWAY_KNX_TP_UART_9BIT_MODE
|
||||
mode commonly described as 19200 baud 9-bit UART. Disable only for
|
||||
hardware wired for 8N1 host UART mode.
|
||||
|
||||
config GATEWAY_KNX_TP_FULL_IP_FORWARD
|
||||
bool "Mirror all physical KNX TP telegrams to KNXnet/IP"
|
||||
depends on GATEWAY_KNX_BRIDGE_SUPPORTED && GATEWAY_KNX_TP_UART_PORT >= 0
|
||||
default n
|
||||
help
|
||||
Mirrors physical KNX TP telegrams received from the TP-UART line back
|
||||
out through KNXnet/IP tunnelling and multicast even when the gateway
|
||||
runs the single-interface ETS device runtime. Enable this when ETS must
|
||||
monitor or download other TP devices through the gateway's IP endpoint.
|
||||
Leave it disabled to preserve the narrower default forwarding behavior.
|
||||
config GATEWAY_KNX_TP_FULL_IP_FORWARD
|
||||
bool "Mirror all physical KNX TP telegrams to KNXnet/IP"
|
||||
depends on GATEWAY_KNX_BRIDGE_SUPPORTED && GATEWAY_KNX_TP_UART_PORT >= 0
|
||||
default n
|
||||
help
|
||||
Mirrors physical KNX TP telegrams received from the TP-UART line back
|
||||
out through KNXnet/IP tunnelling and multicast even when the gateway
|
||||
runs the single-interface ETS device runtime. Enable this when ETS must
|
||||
monitor or download other TP devices through the gateway's IP endpoint.
|
||||
Leave it disabled to preserve the narrower default forwarding behavior.
|
||||
|
||||
config GATEWAY_BRIDGE_KNX_TASK_STACK_SIZE
|
||||
int "KNX/IP bridge task stack bytes"
|
||||
@@ -979,6 +994,8 @@ config GATEWAY_BRIDGE_KNX_TASK_PRIORITY
|
||||
range 1 10
|
||||
default 5
|
||||
|
||||
endmenu
|
||||
|
||||
config GATEWAY_CLOUD_BRIDGE_SUPPORTED
|
||||
bool "MQTT cloud bridge is supported"
|
||||
depends on GATEWAY_BRIDGE_SUPPORTED && (GATEWAY_WIFI_SUPPORTED || GATEWAY_ETHERNET_SUPPORTED)
|
||||
|
||||
@@ -596,6 +596,10 @@ CONFIG_PARTITION_TABLE_MD5=y
|
||||
#
|
||||
# Gateway App
|
||||
#
|
||||
|
||||
#
|
||||
# DALI Settings
|
||||
#
|
||||
CONFIG_GATEWAY_CHANNEL_COUNT=2
|
||||
|
||||
#
|
||||
@@ -640,6 +644,7 @@ CONFIG_GATEWAY_CACHE_OUTSIDE_BUS_FIRST=y
|
||||
# end of Gateway Cache
|
||||
|
||||
# CONFIG_GATEWAY_ENABLE_DALI_BUS is not set
|
||||
# end of DALI Settings
|
||||
|
||||
#
|
||||
# Gateway Startup Services
|
||||
@@ -683,6 +688,10 @@ CONFIG_GATEWAY_MODBUS_TCP_PORT=1502
|
||||
CONFIG_GATEWAY_MODBUS_UNIT_ID=1
|
||||
CONFIG_GATEWAY_BACNET_BRIDGE_SUPPORTED=y
|
||||
# CONFIG_GATEWAY_START_BACNET_BRIDGE_ENABLED is not set
|
||||
|
||||
#
|
||||
# KNX Settings
|
||||
#
|
||||
CONFIG_GATEWAY_KNX_BRIDGE_SUPPORTED=y
|
||||
CONFIG_GATEWAY_START_KNX_BRIDGE_ENABLED=y
|
||||
CONFIG_GATEWAY_KNX_DATA_SECURE_SUPPORTED=y
|
||||
@@ -716,6 +725,8 @@ CONFIG_GATEWAY_KNX_TP_UART_9BIT_MODE=y
|
||||
CONFIG_GATEWAY_KNX_TP_FULL_IP_FORWARD=y
|
||||
CONFIG_GATEWAY_BRIDGE_KNX_TASK_STACK_SIZE=12288
|
||||
CONFIG_GATEWAY_BRIDGE_KNX_TASK_PRIORITY=5
|
||||
# end of KNX Settings
|
||||
|
||||
CONFIG_GATEWAY_CLOUD_BRIDGE_SUPPORTED=y
|
||||
# CONFIG_GATEWAY_START_CLOUD_BRIDGE_ENABLED is not set
|
||||
CONFIG_GATEWAY_BRIDGE_MODBUS_TASK_STACK_SIZE=6144
|
||||
|
||||
Reference in New Issue
Block a user