From 8f35b4cf4285141d785dd40990296c10db7035e1 Mon Sep 17 00:00:00 2001 From: Marco Scholl Date: Sun, 8 Dec 2024 23:05:50 +0100 Subject: [PATCH] adds unicast auto ack --- src/knx/tpuart_data_link_layer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/knx/tpuart_data_link_layer.cpp b/src/knx/tpuart_data_link_layer.cpp index ac145812..08b0c290 100644 --- a/src/knx/tpuart_data_link_layer.cpp +++ b/src/knx/tpuart_data_link_layer.cpp @@ -649,6 +649,15 @@ void TpUartDataLinkLayer::requestConfig() _platform.writeUart(U_CONFIGURE_REQ | U_CONFIGURE_MARKER_REQ); #endif + // Set Address for AutoACK Unicast + const uint16_t address = _deviceObject.individualAddress(); + _platform.writeUart(U_SET_ADDRESS_REQ); + _platform.writeUart((address >> 8) & 0xFF); + _platform.writeUart(address & 0xFF); +#ifdef NCN5120 + _platform.writeUart(0xFF); // Dummy Byte needed by NCN only +#endif + // Abweichende Config if (_repetitions != 0b00110011) {