From 1943533360f045afd7ef4fdeea0c5573506919c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Wed, 14 Apr 2021 11:30:07 +0200 Subject: [PATCH] Use UEXT serial for ThingSet by default Rationale: ESP32 modules can be used as gateways without firmware change. --- README.md | 10 ++++++++++ zephyr/Kconfig | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 968ca48..71bd953 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,16 @@ CONFIG_BAT_TYPE_LFP=y CONFIG_BAT_NUM_CELLS=4 ``` +#### Define serial for ThingSet protocol + +By default, the charge controller uses the serial interface in the UEXT connector for the [ThingSet protocol](https://libre.solar/thingset/). This allows to use WiFi modules with ESP32 without any firmware change. + +Add the following configuration if you prefer to use the serial of the LS.one port or the additional debug RX/TX pins present on most boards: + +``` +CONFIG_UEXT_SERIAL_THINGSET=n +``` + ### Custom functions (separate C/C++ files) If you want experiment with some completely new functions for the charge controller, new files should be stored in a subfolder `src/custom`. diff --git a/zephyr/Kconfig b/zephyr/Kconfig index e9a377c..461cb78 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -328,10 +328,10 @@ config EXT_OLED_BRIGHTNESS config UEXT_SERIAL_THINGSET depends on THINGSET_SERIAL bool "Use UEXT serial for ThingSet interface" - default n + default y help If the ThingSet interface is not attached to the serial port in the UEXT connector, the - debug serial connector is used (if existing). + serial in the LS.one port or the debug connector is used (if existing). endmenu # UEXT port