def validate_typed_connector_id(cid):

    m = re.match(r'(smpps|http)\(([A-Za-z0-9_-]{3,25})\)', cid, re.I)
    if not m:
        raise InvalidCidSyntax('Invalid syntax for connector id, must be smpps(some_id) or http(some_id).')

    return m.group(1).lower(), m.group(2)
Read the heading data by write a 0x41 first
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/morouterm.py/validate_typed_connector_id--crossover with--dataset/ETHPy150Open randymxj/OpenPythonSensor/lib_hmc6352/lib_hmc6352.py/HMC6352.readData