SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- sudo rfcomm bind 0 rfcomm0
- import serial
- ser = serial.Serial('/dev/rfcomm0',9600)
- myhex = bytearray([0x01,0x13,0x20,0x0e,0x40,0x00,...]) #17 bytes, trimmed for brevity
- ser.write(myhex)
- print("Written!") #this line does display, so at least the write occurs
- while 1:
- print(ser.read())
- SerialException('device reports readiness to read but returned no data')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.