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

Can't open L2CAP Socket #38

Open
GoogleCodeExporter opened this issue Jan 29, 2016 · 8 comments
Open

Can't open L2CAP Socket #38

GoogleCodeExporter opened this issue Jan 29, 2016 · 8 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Issue 42 has been merged into this issue.

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

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

No branches or pull requests

1 participant