Changed so that bluetooth protocol is uniform in both directions