import re


def parse_uart_settings_str(settings_str):
    """
    A unified one-launchkey uart settings standart for Wiren Board software is like 9600N2

    :return: [baudrate, parity, stopbits]
    :rtype: list
    """
    if re.match('\d*[A-Z]\d*', settings_str):
        baudrate, stopbits = re.split('[A-Z]', settings_str)
        parity = settings_str.replace(baudrate, '').replace(stopbits, '').strip()
        return [int(baudrate), parity, int(stopbits)]
    else:
        raise RuntimeError('Incorrect format of serial port settings string. Should be like 9600N2')