Data Objects

Handling of ThingSet data nodes.

Defines

APP_ID_DEVICE
APP_ID_DEVICE_MANUFACTURER
APP_ID_DEVICE_TYPE
APP_ID_DEVICE_HW_VER
APP_ID_DEVICE_FW_VER
APP_ID_DEVICE_SHUTDOWN
APP_ID_DEVICE_RESET
APP_ID_DEVICE_PRINT_REG
APP_ID_DEVICE_PRINT_REG_ADDR
APP_ID_DEVICE_PRINT_REGS
APP_ID_CONF
APP_ID_CONF_NOMINAL_CAPACITY
APP_ID_CONF_SHORT_CIRCUIT_CURRENT
APP_ID_CONF_SHORT_CIRCUIT_DELAY
APP_ID_CONF_DIS_OVERCURRENT
APP_ID_CONF_DIS_OVERCURRENT_DELAY
APP_ID_CONF_CHG_OVERCURRENT
APP_ID_CONF_CHG_OVERCURRENT_DELAY
APP_ID_CONF_DIS_MAX_TEMP
APP_ID_CONF_DIS_MIN_TEMP
APP_ID_CONF_CHG_MAX_TEMP
APP_ID_CONF_CHG_MIN_TEMP
APP_ID_CONF_TEMP_HYST
APP_ID_CONF_CELL_OVERVOLTAGE
APP_ID_CONF_CELL_OVERVOLTAGE_RESET
APP_ID_CONF_CELL_OVERVOLTAGE_DELAY
APP_ID_CONF_CELL_UNDERVOLTAGE
APP_ID_CONF_CELL_UNDERVOLTAGE_RESET
APP_ID_CONF_CELL_UNDERVOLTAGE_DELAY
APP_ID_CONF_BAL_TARGET_DIFF
APP_ID_CONF_BAL_MIN_VOLTAGE
APP_ID_CONF_BAL_IDLE_DELAY
APP_ID_CONF_BAL_IDLE_CURRENT
APP_ID_CONF_PRESET_NMC
APP_ID_CONF_PRESET_NMC_CAPACITY
APP_ID_CONF_PRESET_LFP
APP_ID_CONF_PRESET_LFP_CAPACITY
APP_ID_CONF_PRESET_LTO
APP_ID_CONF_PRESET_LTO_CAPACITY
APP_ID_CONF_OCV_POINTS
APP_ID_CONF_SOC_POINTS
APP_ID_MEAS
APP_ID_MEAS_PACK_VOLTAGE
APP_ID_MEAS_STACK_VOLTAGE
APP_ID_MEAS_PACK_CURRENT
APP_ID_MEAS_CELL_TEMPS
APP_ID_MEAS_IC_TEMP
APP_ID_MEAS_MCU_TEMP
APP_ID_MEAS_MOSFET_TEMP
APP_ID_MEAS_SOC
APP_ID_MEAS_ERROR_FLAGS
APP_ID_MEAS_BMS_STATE
APP_ID_MEAS_CELL_VOLTAGES
APP_ID_MEAS_CELL_AVG_VOLTAGE
APP_ID_MEAS_CELL_MIN_VOLTAGE
APP_ID_MEAS_CELL_MAX_VOLTAGE
APP_ID_MEAS_BALANCING_STATUS
APP_ID_INPUT
APP_ID_INPUT_CHG_ENABLE
APP_ID_INPUT_DIS_ENABLE

Functions

void data_objects_update_conf(enum thingset_callback_reason reason)

Callback function to be called when conf values were changed

int32_t bat_preset_nmc()

Callback function to apply preset parameters for NMC type via ThingSet

int32_t bat_preset_lfp()

Callback function to apply preset parameters for LFP type via ThingSet

int32_t bat_preset_lto()

Callback function to apply preset parameters for LTO type via ThingSet

void print_registers()

Callback to read and print common BMS registers via ThingSet

void reset_device()

Callback to reset device (obviously…)

void shutdown()

Callback to invoke bms_shutdown via ThingSet