agrimgrover / pybluez

Automatically exported from code.google.com/p/pybluez
GNU General Public License v2.0
0 stars 0 forks source link

XP+Widcomm/Broadcomm (rocketfish dongle) PyBluez-0.15.win32-py2.5.exe error #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download script from: http://209.85.173.132/search?
q=cache:XomKXL5CFf8J:www.wiili.org/index.php/Wiimotecomm+pybluez+wiimote&hl
=en&ct=clnk&cd=1&gl=us
2. Run script with argument 'discover "52 15 00"'
3.

What is the expected output? What do you see instead?
Expected to connect.
Instead:
D:\coding\python\pybluez>python wiimotecomm.py discover "52 15 00"
[Searching for Wiimotes...]
[Found Wiimote at address 00:22:D7:7F:E0:65]
Trying to connect...
connecting to 00:22:D7:7F:E0:65 port 19
AssignScnValue
widcomm\rfcommport.cpp:107 event 32768 received
widcomm\rfcommport.cpp:107 event 12 received
event 8000 received
Traceback (most recent call last):
  File "wiimote.py", line 95, in <module>
    connect(address)
  File "wiimote.py", line 25, in connect
    receivesocket.connect((address, 0x13))
  File "C:\Python25\Lib\site-packages\bluetooth\widcomm.py", line 432, in 
rfcomm
_connect
    self.rfcomm_read_msg ()
  File "C:\Python25\Lib\site-packages\bluetooth\widcomm.py", line 325, in 
rfcomm
_read_msg
    raise BluetoothError ("Connection failed")
bluetooth.btcommon.BluetoothError: Connection failed

What version of the product are you using? On what operating system?
latest pybluez python 2.5 binary installer

Please provide any additional information below.
Other apps work.  Whiteboard, GlovePIE
Inquiry works fine:
D:\coding\python\pybluez>python inquiry.py
performing inquiry...
found 1 devices
  Nintendo RVL-CNT-01 - 00:22:D7:7F:E0:65

Original issue reported on code.google.com by ma...@email.com on 10 Jan 2009 at 12:41

Attachments:

GoogleCodeExporter commented 8 years ago
I think the real issue here is that the event definitions are not available for 
PyBluez.

I found on hci.h in some Bluez distribution this:
#define OCF_LINK_KEY_NEG_REPLY      0x000C

So, that means you're connection was denied because the bluetooth devices have 
not
being paried (bonded).

Original comment by rene.f.aguirre on 10 Mar 2010 at 8:17

GoogleCodeExporter commented 8 years ago
Marking it as done

Original comment by karu...@wp.pl on 23 Jul 2014 at 2:26