The structure has been changed to match the new ThingSet v0.5 spec which is more suitable to be used in mobile phone apps because the data is structured based on logical subsystems (Battery, Load) and not on data type (conf, input, etc.) anymore. This required some updates in the ThingSet library aswell. Especially the update mechanism for configuration data had to be changed. The data_objects_parser script is now able to extract the units itself, reducing the commenting effort. All IDs have been kept the same, so previously stored settings in charge controllers NVM should be compatible.
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
# Main application configuration (overrides board-specific settings)
|
|
|
|
# only very small heap necessary for malloc in printf statements with %f
|
|
CONFIG_HEAP_MEM_POOL_SIZE=256
|
|
|
|
CONFIG_CPLUSPLUS=y
|
|
CONFIG_LIB_CPLUSPLUS=y
|
|
|
|
CONFIG_NEWLIB_LIBC=y
|
|
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
|
|
|
|
CONFIG_WATCHDOG=y
|
|
CONFIG_WDT_DISABLE_AT_BOOT=y
|
|
CONFIG_TASK_WDT=y
|
|
CONFIG_THREAD_NAME=y
|
|
|
|
CONFIG_REBOOT=y
|
|
|
|
CONFIG_HWINFO=y
|
|
|
|
CONFIG_CONSOLE_SUBSYS=y
|
|
CONFIG_CONSOLE_GETCHAR=y
|
|
|
|
# Use minimal logging by default to save memory for STM32F0 with little RAM
|
|
CONFIG_LOG=y
|
|
CONFIG_LOG_MODE_MINIMAL=y
|
|
|
|
CONFIG_THINGSET=y
|
|
CONFIG_THINGSET_NESTED_JSON=y
|
|
|
|
# ThingSet protocol interface via UART serial
|
|
CONFIG_THINGSET_SERIAL=y
|
|
|
|
# Uncomment to disable regular data publication on ThingSet serial at startup
|
|
#CONFIG_THINGSET_SERIAL_PUB_DEFAULT=n
|
|
|
|
# Uncomment to use LS.one or debug RX/TX connector instead of UEXT serial for ThingSet
|
|
#CONFIG_UEXT_SERIAL_THINGSET=n
|
|
|
|
# Uncomment to enable I2C OLED display in UEXT connector
|
|
#CONFIG_UEXT_OLED_DISPLAY=y
|
|
|
|
# Select initial battery configuration: GEL (default), FLOODED, AGM, LFP, NMC or NMC_HV
|
|
#CONFIG_BAT_TYPE_???=y
|
|
|
|
# Change number of cells considering selected type (12V/24V battery by default if not set)
|
|
#CONFIG_BAT_NUM_CELLS=?
|