Questions tagged [pybluez]

PyBluez is a Python extension module allowing access to system Bluetooth resources on Windows, Linux, and OS X(unstable).

PyBluez is a Python module that works on both Python 2 and 3 on Windows and Linux. It has support for both L2CAP and RFCOMM, however L2CAP is unsupported in Python 2. It also has experimental BLE(Bluetooth Low Energy) functions in Linux versions. Mac OS X versions are currently unstable. https://github.com/karulis/pybluez

162 questions
1
vote
0 answers

Python and Bluetooth

I am doing my best to learn Python by writing a script for my home automation setup. I want to monitor the presence of 4 Iphone's and as things are right now I want to avoid installing any app to handle this. (Yes, this is both impractical and not…
pittbull74
  • 11
  • 2
1
vote
2 answers

Some issues on installing modules with PyCharm

With Mac 10.13.2,PyCharm 2017.3(community edition),Python 3.6.4: I've been searching high and low but with no luck as whatever I tried didn't work.I have installed Python 3.6 and PyCharm with a success,but it was driving me crazy when I installed…
Ringo
  • 1,173
  • 1
  • 12
  • 25
1
vote
1 answer

Cannot import Bluetooth in Python 3 (OSX)

I reinstalled PyBluez some weeks ago since I couldn't get basic functions to work. Now I can't even import it to Python 3. import bluetooth Traceback (most recent call last): File "", line 1, in import bluetooth File…
Carl Bratt
  • 47
  • 2
  • 7
1
vote
0 answers

How can i make a "secure connection" Bluetooth connection on a raspberry pi?

I am rather new to programming Bluetooth. I am simply trying to communicate with my PI via my phone, currently i have managed to send single characters with Blueterm. Using a tutorial scrypt. import bluetooth server_sock=bluetooth.BluetoothSocket(…
ldania
  • 11
  • 2
1
vote
1 answer

Installed module (via pip) can't be imported

OS: Windows 10 64-bit Language: Python 3.5.2 (Anaconda 4.2.0) Problem Module: PyBluez 0.22 (PyBluez-0.22-cp35-none-win_amd64.whl) When I attempt to import PyBluez after installation ie: I am getting the following error: I updated Spyder via…
Kieran
  • 89
  • 1
  • 13
1
vote
0 answers

BluetoothSocket connection 'Invalid Argument' error

I am trying to connect and send data from my laptop to my Android phone via Bluetooth. I am using PyBluez library for that. When I am trying to call 'connect' method of BluetoothSocket: sock=BluetoothSocket( RFCOMM ) sock.connect((host, port)) it…
RadioLog
  • 582
  • 1
  • 4
  • 20
1
vote
0 answers

read vendor specific characteristics using bluetoothctl

I am able to connect Pair and trust with a BLE device [Sensor Bug 4.0] provided by blueradios.com I am not able to read Vendor specific characteristics. I am running bluetoothctl on Debian Linux platform. Any help will be appreciated
krudra
  • 21
  • 1
  • 4
1
vote
1 answer

Using pin to connect raspberry pi to other equipment using Pybluez

I'm trying connect a Raspberry PI to other equipment via Bluetooth using a Pybluez librarie. It is possible to define a pin in Pybluez to connect to the equipment?
1
vote
2 answers

Python ImportError: No module named pybluez

I am starting with python recently and I am trying to get the hang of the modules and libraries. So I have one script which has the following line from pybluez import bluetooth So I looked for this library and downloaded from here…
Fatias7
  • 101
  • 2
  • 11
0
votes
0 answers

bluetooth socket connection with bluetooth headphones / Python

This is the occuring error message. I cant establish a bluetooth socket connection with my airpods. Traceback (most recent call last): File "C:\Program…
0
votes
0 answers

Can't install python package Pybluez, showing "error: Microsoft Visual C++ 14.0 or greater is required."

I need to use Bluetooth in my Python program for some functionality. So I tried installing Pybluez, but I can't get it to go right no matter how I install it. I used the following command to install it: pip install…
HRPF
  • 1
0
votes
0 answers

Connect to PyBluez server using Android SDK

I want to open RFCOMM socket connection between two devices, but nothing that I tried worked. This is what I have: Python script uses PyBluez to advertise SPP service and waits for connections. Android application tries to find that service and…
Karolis
  • 255
  • 3
  • 15
0
votes
0 answers

Error with Bluetooth and PyBluez: "OSError: [Errno 97] Address family not supported by protocol"

I'm running into an error while trying to discover and connect to bluetooth devices. The error and script are below. I'm running a python script on a Google Chromebook. Here is the error: File…
tom
  • 977
  • 3
  • 14
  • 30
0
votes
0 answers

"Operation now in progress" exception when connecting bluetooth client to server with pybluez

I took the rfcomm-server.py and rfcomm-client.py from the PyBluez repository on github. The contents of these scripts is the following: rfcomm-server.py: import bluetooth server_sock =…
S3gfault
  • 308
  • 2
  • 9
0
votes
0 answers

Is it possible to use PyBluez on Windows to turn my computer into an HID device?

In fact, I want to control the iPhone camera to take photos via Bluetooth. I already know that if I can send Volume Up to the iPhone (some phone Bluetooth shutters are based on this principle), then I can achieve this function. I have searched a lot…