I'm trying to send data with the HC-05 bluetooth module with an arduino uno. I am successful in both sending and receiving data. However the data being received is not human readable. I am using pybluez to connect to the module. below is the data received:
received: ÿ
received: °■
received: ÿ
received: °
received: ÿ°
received: ÿ°
received: ÿ°
received: ÿ°
received: ÿ°
received: ÿ°
here is my .ino
#include<SoftwareSerial.h>
SoftwareSerial mySerial(2,3);
void setup(){
mySerial.begin(9600);
}
void loop(){
if(mySerial.available())
mySerial.write(mySerial.read());
}
here is my .py
# simple inquiry example
import bluetooth
import sys
addr = "20:16:12:05:69:99"
port = 1
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
sock.connect((addr,port))
print 'connected'
sock.settimeout(15.0)
sock.send('10\r\n')
count = 0
while (count<10):
data = sock.recv(12)
print 'received: %s'%data
sock.send(data)
count += 1
sock.close()