def read_from_device(path, start, count):
    """
    Read data from a device

    :param path: device path
    :type data: string
    :param start: starting offset for reading
    :type start: int
    :param count: lenght of data to read
    :type count: int
    :rtype: bytes
    """

    with open(path, "rb") as f:
        f.seek(start)
        data = f.read(count)

    return data