bluetooth.btcommon.BluetoothError: (104, 'Connection reset by peer')
I'm having trouble getting this to work. The devices appear to connect, but if I try to press a key after waiting about 5 seconds, I get this error:
Service record added
Waiting for a connection
Got a connection on the control channel from 28:CF:DA:D7:98:F3
Got a connection on the interrupt channel from 28:CF:DA:D7:98:F3
Found a keyboard
# about 5 seconds pass...
Traceback (most recent call last):
File "./PiTooth.py", line 169, in <module>
kb.event_loop(bt)
File "./PiTooth.py", line 158, in event_loop
bt.send_input(self.state)
File "./PiTooth.py", line 89, in send_input
self.cinterrupt.send(hex_str)
File "<string>", line 5, in send
bluetooth.btcommon.BluetoothError: (104, 'Connection reset by peer')
I haven't maintained this in a while, and am unlikely to do so in the near future. I don't remember much of how this worked. Sorry about that, but you're on your own. Figured I'd give you a heads up.
On Sun, Oct 5, 2014 at 9:15 PM, Justin Ramos [email protected] wrote:
I'm having trouble getting this to work. The devices appear to connect, but if I try to press a key after waiting about 5 seconds, I get this error:
Service record added Waiting for a connection Got a connection on the control channel from 28:CF:DA:D7:98:F3 Got a connection on the interrupt channel from 28:CF:DA:D7:98:F3
about 5 seconds pass...
Traceback (most recent call last): File "./PiTooth.py", line 169, in
kb.event_loop(bt) File "./PiTooth.py", line 158, in event_loop bt.send_input(self.state) File "./PiTooth.py", line 89, in send_input self.cinterrupt.send(hex_str) File " ", line 5, in send bluetooth.btcommon.BluetoothError: (104, 'Connection reset by peer') — Reply to this email directly or view it on GitHub https://github.com/Mqrius/BluePloverPi/issues/1.
No worries. Thanks for the reply. I'm trying the latest version of Bluez now to see if that makes a difference...
https://github.com/hh/btk has a fork similar to this working with Bluez5. When I do disconnect DEV via bluetoothctl on the computer utilizing the HID Profile I get the same error. This is on linux, OSX doesn't seem to work yet, and windows is untested.