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
13
votes
2 answers

Which tool has replaced gatttool in bluez5?

It seems like since commit b1eb2c4cd057624312e0412f6c4be000f7fc3617 gatttool has been deprecated but I'm unable to find any information on what has replaced gattool. Every Python Bluetooth LE packages I looked into relays on gatttool and is now…
Henrik Pingel
  • 3,083
  • 1
  • 19
  • 27
10
votes
3 answers

Python code for Bluetooth throws error after I had to reset the adapter

I was trying out bluetooth programming in python. It was working fine till yesterday. This morning, there was a power outage and for some reason, the bluetooth module got disabled and it could not be turned on. So, I did a sudo hciconfig hci0 reset…
Sidmeister
  • 856
  • 2
  • 14
  • 27
9
votes
2 answers

Pairing bluetooth devices with Passkey/Password in python - RFCOMM (Linux)

I am working on a Python script to search for bluetooth devices and connect them using RFCOMM. This devices has Passkey/Password. I am using PyBlueZ and, as far as I know, this library cannot handle Passkey/Password connections (Python PyBluez…
Juan C. Vanegas
  • 373
  • 1
  • 4
  • 12
8
votes
1 answer

Is there any other way to get RSSI values than blueZ (Pybluez)

I am struggling very hard on this one, so any help / pointers would be greatly appreciated. I have been trying to get precise values from RSSI with pyblueZ I get some good results, but this below is the thing I don't want (from blueZ doc) : For a…
Navet
  • 301
  • 1
  • 3
  • 7
5
votes
1 answer

Pybluez cant find devices, but bluetoothctl can

I've been trying to get a simple python bluetooth example running on my lenovo y50-70 laptop running ubuntu 18. But while doing this i noticed that the Pybluez library is unable to find any devices, while using the bluetoothctl tool can. import…
Darth Coder
  • 312
  • 2
  • 11
5
votes
2 answers

Emulate a keyboard with BlueZ 5

I'm working on a setup where I want to connect a RaspberryPi-3 to another machine. Most of the time it will be a Windows machine. On the Pi I want to forward all Keyboard strokes via Bluetooth to the other (Windows) machine. Therefore I did some…
r3dst0rm
  • 1,876
  • 15
  • 21
5
votes
3 answers

Python Bluetooth how to send a file to a phone

in my current project it is a requirement to send a file from a windows computer to an android device over bluetooth without anything on the phone other than it's standard state and of course a paired bluetooth connection. i've looked over pybluez…
j.gooch
  • 305
  • 1
  • 4
  • 21
5
votes
3 answers

python bluetooth - check connection status

I am using the bluetooth module for python import bluetooth which I believe is the PyBluez package. I am able to connect, send, and receive just fine from the bluetooth.BluetoothSocket class but my application is completely blind when it comes to…
marco
  • 93
  • 1
  • 1
  • 7
5
votes
1 answer

For bluetooth connection using PyBluez, socket connection is not getting accepted even after pairing

I have a Raspberry pi model B booted with Rasbian OS and a bluetooth dongle plugged into it. I am able to discover my pi when searching from my PC and am able to pair using Blueman GUI. This is the python program I am using for the pairing…
Shameel Mohamed
  • 607
  • 5
  • 23
4
votes
3 answers

Pybluex python bluetooth module installation error error in pycharm

I have to communate python with aurdino for this I am trying to install package pybluex but always it gave this error LINK : fatal error LNK1181: cannot open input file 'Irprops.lib' error: command 'C:\\Program Files (x86)\\Microsoft Visual…
Engr Talha
  • 41
  • 1
  • 5
4
votes
1 answer

Python bluetooth on Windows 10

I found multiple similar questions but all of them seemed to be either outdated or to not have a working answer, so I'm asking here again. I want to connect to another device (in my case a RaspberryPi) via bluetooth from my laptop, which is running…
Jannik
  • 399
  • 2
  • 5
  • 22
4
votes
1 answer

Error downloading pybluez on windows 10 with python 3.7 (64-bit)

I was attempting to download the python module one windows 10 pybluez (using the cmd pip install pybluez, when I had this error: Collecting pybluez Using cached…
john doe
  • 107
  • 2
  • 10
4
votes
1 answer

BlueZ AutoReconnect as device to PC

I'm working on a HID bluetooth device with the code on the device in Python; at the moment it can connect to a PC by running: os.system("hciconfig hcio class 0x002560") os.system("hciconfig hcio name DataPaqWalk") Then we can use pybluez to connect…
Neil Benn
  • 904
  • 1
  • 12
  • 31
4
votes
1 answer

Failure installing pybluez

I want to install pybluez with python 3.8 but get this error: C:\wndows\system32>pip install pybluez Collecting pybluez Using cached PyBluez-O.22.zip Complete output from command python setup.py egg_info: Could not find the Windows…
Rostan
  • 809
  • 9
  • 25
4
votes
2 answers

pybluez not detecting any devices

I have the following Python code: import bluetooth print(bluetooth.discover_devices()) This always waits a few seconds and prints out an empty list. My bluetooth adapter appears to be working, as I can discover devices with bluetoothctl easily by…
888
  • 291
  • 3
  • 11
1
2 3
10 11