Ive connected an hm10 ble to my raspberry pi 2 GPIO pins (3.3V, GND, Rx and Tx).
I've changed the cmdline.txt to 9600 and the inittab is empty. I downloaded raspbian about 1 week ago.
Im running this python script on the raspberry pi 2 to try and send commands to the ble module. I cant get the module to respond:
#!/usr/bin/env python
import serial
ser = serial.Serial('/dev/serial0',9600,parity=serial.PARITY_NONE,stopbits=serial.STOPBITS_ONE,bytesize=serial.EIGHTBITS,timeout=None)
while True:
ser.write("AT")
data = ser.read()
ser.write(data)
I just get an empty prompt and no response in terminal. What am I missing?