From 8c3bf8763e6dcab291df4d0cee9c2711c99a0c22 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Thu, 12 Jun 2025 18:42:24 +0530 Subject: [PATCH] obuspa: option to configure poll period --- obuspa/Config.in | 9 +++++++++ obuspa/Makefile | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/obuspa/Config.in b/obuspa/Config.in index 9e4a98d37..607202344 100644 --- a/obuspa/Config.in +++ b/obuspa/Config.in @@ -70,4 +70,13 @@ config OBUSPA_VENDOR_PREFIX config OBUSPA_OVERRIDE_CT_ROLE bool "Override ControllerTrust role with factory default roles" default y + +config OBUSPA_VC_POLL_PERIOD + int "Polling interval in sec for ValueChange Subscriptions" + range 15 120 + default "15" + help + Obuspa relies on a polling mechanism to determine the ValueChange, Add, Del Subscriptions. + Short poll period could give more responsive subscription events, but might delay overall experience in slower CPUs with good amount of subscriptions, on the other hand, a bigger value results into less responsive subscription handling. This value must be in range of 15 to 120 secs. (default 15) + endif diff --git a/obuspa/Makefile b/obuspa/Makefile index 9c35a7400..0e686f680 100644 --- a/obuspa/Makefile +++ b/obuspa/Makefile @@ -5,13 +5,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=obuspa -PKG_VERSION:=10.0.0.9 +PKG_VERSION:=10.0.0.10 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/obuspa.git -PKG_SOURCE_VERSION:=3e9299063e3c65565d2c834b5ab654fda830f749 +PKG_SOURCE_VERSION:=17704abb7481ced6b176e495a3000a8a9bf9eb96 PKG_MAINTAINER:=Vivek Dutta PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_MIRROR_HASH:=skip @@ -107,6 +107,10 @@ ifneq ($(CONFIG_OBUSPA_MAX_CONTROLLERS_NUM),) TARGET_CFLAGS += -DOBUSPA_MAX_CONTROLLERS_NUM=$(CONFIG_OBUSPA_MAX_CONTROLLERS_NUM) endif +ifneq ($(CONFIG_OBUSPA_VC_POLL_PERIOD),) +TARGET_CFLAGS += -DOBUSPA_VC_POLL_PERIOD=$(CONFIG_OBUSPA_VC_POLL_PERIOD) +endif + ifeq ($(LOCAL_DEV),1) define Build/Prepare $(CP) -rf ~/git/obuspa/* $(PKG_BUILD_DIR)/