5.3.1.2.2.2. cli.cmd_bms.bms_shell.BMSShell
- class cli.cmd_bms.bms_shell.BMSShell(completekey='tab', stdin=None, stdout=None)
Bases:
CmdClass that defines the custom bms shell
- add_msg(msg_id: str | int, amount: int = 1, output: int = 1) None
Add a new message to the array.
- default(line: str) None
Handle input line for an unrecognized command.
- do_boottimestamp(_: str) None
Request the Boot Timestamp
- do_buildconfig(_: str) None
Get the Build Configuration
- do_commithash(_: str) None
Get the Commit Hash the software version was built with.
- do_exit(_: str) bool
Terminates the child process, stops the shell and exits.
- do_fram(_: str) None
Reinitialize the FRAM.
- do_getrtc(_: str) None
Get the RTC time
- do_init(_: str) bool
Start the receive and send process, the read process and initialize the CAN bus.
- do_log(arg: int | str) bool
Log message with the given ID as often as specified and to the given output: LOG [ID] [#, DEFAULT: 1] [OUTPUT, FILE / stdout]
- do_mcuid(_: str) None
Get the unique ID of the MCU.
- do_mculotnumber(_: str) None
Get the lot number of the MCU.
- do_mcuwaferinfo(_: str) None
Get the wafer information of the MCU.
- do_rtc(_: str) None
Set the RTC time to the current time
- do_softwarereset(_: str) None
Triggers a software reset
- do_softwareversion(_: str) None
Get the software version of the BMS.
- do_uptime(_: str) None
Get the Uptime information
- precmd(line: str) str
Convert the input to lowercase.
- preloop() None
Manage the initialization before the loop started.