def binary_to_hex(binary: bytearray):
    """
    Convert an array of bytes to offset hex string notation.
    :param binary:
    :return:
    """
    result = []
    for elem in binary:
        result.append("%02x" % elem)
    return ' '.join(result)