heihei1252 / pybluez

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

PyBluez never accepting connection - my fix! #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up an advertise a service
2. Pair the devices correctly
3. Try and send files using a socket

What is the expected output? What do you see instead?
The .accept() function never accepts a connection. It permanently hangs on some 
versions of Debian, particularly Raspbian (version tested on).

What version of the product are you using? On what operating system?
Debian. 4.99 Bluez. 0.18.

Please provide any additional information below.
I have managed to fix this issue by adding a line to Bluez configuration file. 
This file is found in /etc/bluetooth/main.conf and add DisablePlugins=pnat. I'm 
hoping adding this an issue will help other people. 

Original issue reported on code.google.com by m...@billyhickman.com on 29 Jan 2014 at 9:25

GoogleCodeExporter commented 9 years ago
This seems to be same as issue 57.

Could You check if pnat service is running on channel 1?
Because due to some bug if PORT_ANY is specified by pybluez for BT service on 
linux,
then port 1 is selected even if it is already taken by some other service.

Original comment by karu...@wp.pl on 2 Feb 2014 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by karu...@wp.pl on 2 Feb 2014 at 7:40

GoogleCodeExporter commented 9 years ago
Yeh, I had to disable pnat to fix the problem

Original comment by m...@billyhickman.com on 2 Feb 2014 at 7:55

GoogleCodeExporter commented 9 years ago

Original comment by karu...@wp.pl on 16 Jul 2014 at 3:58