EdwynZN / pybluez

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

Can't open L2CAP Socket #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. server_sock=bluetooth.BluetoothSocket( bluetooth.L2CAP )
2.
3.

What is the expected output?
Create a succesful connection
What do you see instead?
server_sock=bluetooth.BluetoothSocket( bluetooth.L2CAP )
 File "C:\Python26\lib\site-packages\bluetooth\msbt.py", line 19, in __init__
    raise ValueError ("invalid protocol")
ValueError: invalid protocol

What version of the product are you using? On what operating system?
Python 2.6.4 32 bits, Windows 7 64 bits, Pybluez 0.18 32 bits, Widcomm Stack 
6.3 6.3.0.6700 (30/09/2010)

Please provide any additional information below.
I am using a Sony Vaio VGN-FW51JF with a Broadcom integrated bluetooth. It 
comes by default with Widcomm Drivers, I have tried with those and also with 
the latest ones. RFCOMM Sockets seem to be fine but there is just no way to 
create a L2CAP socket.

Any idea?

Original issue reported on code.google.com by rhenar...@gmail.com on 27 Oct 2010 at 2:24

GoogleCodeExporter commented 8 years ago
I have done 2 more tests with no success:

+Windows Vista 32 bits, Python 2.6.6 32 bits, Pybluez 0.18 32 bits, Toshiba BT 
with Toshiba BT Stack 5.10.03

+Windows Vista 64 bits, Python 2.6.6 32 bits, Pybluez 0.18 32 bits, DBT-122 
(Broadcom), Widcomm BT Stack 6.3.0.6700

Original comment by rhenar...@gmail.com on 28 Oct 2010 at 7:56

GoogleCodeExporter commented 8 years ago
I have done a new test building Pybluez 0.19 myself.

+Windows Vista 64 bits, Python 2.6.6 32 bits, Pybluez 0.19 32 bits, DBT-122 
(Broadcom), Widcomm BT Stack 6.3.0.6700

Same error as above.

Original comment by rhenar...@gmail.com on 29 Oct 2010 at 12:09

GoogleCodeExporter commented 8 years ago
I have managed to get it working under windows XP. Apparently I wasn't 
installing the widcomm bt stack correctly. I couldn't get it working under 
windows vista.

Original comment by rhenar...@gmail.com on 4 Nov 2010 at 12:15

GoogleCodeExporter commented 8 years ago
So, it is working under XP + widcomm stack, but not working under Vista + 
widcomm stack?

Original comment by gregory....@gmail.com on 22 Nov 2010 at 12:59

GoogleCodeExporter commented 8 years ago
I didn't manage to install the widcomm stack properly under windows. In my 
opinion this is a big problem, as far as i understood microsoft bluetooth stack 
does not provide an interface for the L2CAP protocol. And the other only 
supported stacks by pyBluez is Widcomm. Widcomm only provided the bluetooth 
stack up until version 5.1, the newer version of Widcomm drivers are just 
adding features over the microsoft bluetooth stack. So the only way to work 
with the L2CAP protocol and PyBluez is by using windows xp + widcomm stack 5.1 
or windows vista (which i didn't manage to get working).

Please correct me if i am wrong.

Original comment by rhenar...@gmail.com on 22 Nov 2010 at 2:57

GoogleCodeExporter commented 8 years ago
I'm currently using windows xp (32 bit) together with the driver the 
autoupdater provided me with (5.5). I haven't been able to instal lower drivers 
so if anyone finds out how, please let me know!
The 5.5 drivers work, altough sporadicly. Sometimes they behave as a windows 
stack, not allowing L2CAP and sometimes it works flawelsly. I stil haven't been 
able to find a pattern in when it is and isnt working, but usually it works the 
fist time until I disconect something or deactivate the drivers.  

Original comment by nall...@gmail.com on 9 Dec 2010 at 12:36

GoogleCodeExporter commented 8 years ago
I am in the same situation you were. I am using Windows 7 and am unable to use 
L2CAP with pybluez. Any help or suggestions?
Thanks,
John

Original comment by John.W.M...@gmail.com on 7 Jul 2011 at 1:58

GoogleCodeExporter commented 8 years ago
Issue 42 has been merged into this issue.

Original comment by karu...@wp.pl on 10 Feb 2015 at 10:47