bluez client-server in debian

Nov 21 2013 Published under Linux

Running rfcomm server client sample program from
http://people.csail.mit.edu/albert/bluez-intro/x232.html in ubuntu/debian gives the following error:

Traceback (most recent call last):
  File "rfcomm-client.py", line 9, in 
    sock.connect((bd_addr, port))
  File "", line 5, in connect
bluetooth.btcommon.BluetoothError: (115, 'Operation now in progress')

This turns out to be problem with bluez default settings in ubuntu/debian. To fix this, edit /etc/bluetooth/main.conf, add:

DisablePlugins = pnat

ref:

http://stackoverflow.com/questions/14618277/rfcomm-without-pairing-using-pybluez-on-debian

Comments Off

Comments are closed at this time.

Login