def read_line(line):
    """
    :param line: csv line Build of:
    timestamp, some string, value
    example:
    "0.384060000000000,Async Serial,0xFF"

    :return: pair of timestamp, value
    """
    x = line.rstrip().split(',')
    timestamp = int(float(x[0])*1000)
    try:
        value = int(x[2], 16)
    except ValueError:
        value = int(x[2][:4], 16)
        print(x[2][4:], 'at: ', timestamp)
    return timestamp, value