Command Line Interface (CLI)
This page will describe how to use the CLI
The help command
nsh> bms help
This is the bms cli (command line interface) help
These commands can be used with the bms:
bms help --this command shows this help
bms help parameters --this command shows the <parameter> list
bms help show-meas --this command shows the <show-meas> list
bms get <parameter> --this command gets a parameter value.
parameter is the parameter you want
bms get all --this command gets all the parameters
including the values
bms set <parameter> <x> --this command can be used to set a parameter
WARNING this could lead to unsave operations!
WARNING only use this command in a safe manner!
parameter is the parameter you want to set
x is the new value of the parameter you want to set
to enter a decimal value use "." as seperator
to enter a string with spaces use "input string"
bms show <show-meas> <x> --this command can be used to show the cyclic
measurement results
show-meas is the to measurement to enable or
disable visibility
if x is 1 the measurement is shown, if 0 it will
be disabled
bms reset --this command will reset the fault when in the
fault state
bms sleep --with this command it will go to the sleep state
from the normal or the self_discharge state
NOTE: if current is drawn it will transition to
the normal state
bms wake --this command will wake the BMS in the sleep state
bms deepsleep --with this command it will go to the deep sleep state
from the sleep state or the charge state
bms save --this command will save the current settings
(parameters) to flash
bms load --this command will load the saved settings
(parameters) from flash
bms default --this command will load the default settings
bms time --this command will output the time since boot
reboot --this command will reboot the microcontroller
this command should be used without the word bms
in front of it
some parameters have a letter in front of the "-", this indicates the type of
parameter
a - capacity
c - temperature (celcius)
e - energy
i - current
m - mass
n - number
s - status
t - time
v - voltage What parameters are there?
How can I see the cyclic update of the parameters?
How do I get parameter values?
How do I set parameter values?
What parameters can I use to change the state?
Last updated