Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluetooth.btcommon.BluetoothError: (104, 'Connection reset by peer') #1

Open
ghost opened this issue Oct 5, 2014 · 3 comments
Open

Comments

@ghost
Copy link

ghost commented Oct 5, 2014

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')
@Mqrius
Copy link
Owner

Mqrius commented Oct 6, 2014

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
#1.

@ghost
Copy link
Author

ghost commented Oct 6, 2014

No worries. Thanks for the reply. I'm trying the latest version of Bluez now to see if that makes a difference...

@hh
Copy link

hh commented Feb 15, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants