bluetooth db and secureelement byte conversion