powermon.protocols.jkserial module¶
powermon / protocols / jkserial.py
- class powermon.protocols.jkserial.JkSerial¶
Bases:
AbstractProtocolJKBMS TTL serial communication protocol handler
- check_crc(response: str, command_definition: CommandDefinition = None)¶
crc check, needs override in protocol
- check_valid(response: str, command_definition: CommandDefinition = None) bool¶
check response is valid
- get_full_command(command) bytes¶
Override the default get_full_command as its different
- split_response(response: str, command_definition: CommandDefinition = None) list¶
split response into individual items, return as ordered list or list of tuples
- trim_response(response: str, command_definition: CommandDefinition = None) str¶
Remove extra characters from response