def set_format(data):
    """Set the data in the requested format.
    (1) Devide into 8 bits.
    (2) Convert to the format 'XXXX XXXX'.
    """

    n = len(data)
    data_list = []
    for i in range(0, n, 8):
        data_temp = ''.join(data[i:i+4]) + ' '
        data_temp = data_temp + ''.join(data[i+4:i+8])
        data_list.append(data_temp)

    return data_list