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
0
votes
1 answer

OSError on PyBluez 0.22

Running PyBluez on Windows 10 and Python 3.6, I get OSError everytime I call the bluetooth.discover_devices() function. As of now, the codes only consists in 3 lines: import bluetooth print "Searching for devices... \n" nearby_devices =…
G. Thaler
  • 13
  • 1
  • 6
0
votes
1 answer

Pycharm is not showing installed packages : PyBluez

I have installed pybluez (a python package) using pip install pybluez, but pybluez is not listed in my package list. My python version is python2.7 and I installed pycharm-2018.1.1 on my PC running Ubuntu 16.04. I can see pybluez is installed using…
vikas2cc
  • 43
  • 1
  • 9
0
votes
0 answers

PyBluez socket.send() does not block even when socket.setblocking(True)

I am using PyBluez to try to determine the bluetooth transfer speed between a raspberry pi and a phone. I want to start a timer before socket.send(data) and stop it after the data has been sent, to see how long it took to send the data. However,…
mnt
  • 1
0
votes
0 answers

PyBlueZ causes errors on import

I am attempting to write a program that can pair to a game console via bluetooth and act as a controller for it. In order to do this, I have tried to install PyBlueZ, but I can get no further than import bluetooth, because it displays this error on…
Azria Mei
  • 3
  • 1
0
votes
1 answer

Can't install pybluez on mac OS

With Mac OS Ver 10.13.1 and Python 3.6: I have installed Python with a success, but when I input sudo pip3 install pybluez in the terminal.app.The result is as follows: The warning and error info. log : (1) Command…
Ringo
  • 1,173
  • 1
  • 12
  • 25
0
votes
1 answer

Android phone cannot connect to PyBluez Server?

So, I've been wanting to make my own raspberry-pi bluetooth speaker that I can connect my android phone to and play music. To do this, I stumbled across the PyBluez library in python, and found that I could use it to create and advertise a bluetooth…
0
votes
1 answer

Installing pybluez using pip3

i am trying to install pybluez package using pip3. but i always get the following error, when I write to terminal "pip3 install pybluez" Command "/usr/local/opt/python3/bin/python3.6 -u -c "import setuptools,…
keremistan
  • 414
  • 5
  • 17
0
votes
0 answers

Pybluez Raspberry Pi

I was looking into source code for BLE scanner to understand it and customize it. I came across a function which I could not find any source code or documentation. What is HCI_FILTER_NEW() function in Bluetooth library and how does it works? Also…
0
votes
1 answer

ASCII command send to bluetooth device for receive data using Python

I want to send hex cmd (0X2A,0X0A,0X58)from raspberry pi to my another bluetooth interfaced device(Arduino) for receive sensor data.when I am using server.send(0X2A,0X0A,0X58).its not working .So how to send that request cmd for receive data from…
0
votes
0 answers

PyBluez lists saved devices instead of detecting nearby devices

PyBluez's first and most basic example is "examples/simple/inquiry.py", which is described as "Detecting nearby Bluetooth devices". This is exactly what I'd like to do - detect and list nearby Bluetooth devices. However when I run the example…
Hack-R
  • 22,422
  • 14
  • 75
  • 131
0
votes
0 answers

PyBluez - Changing the value of a specific service

I am trying to connect my Raspberry Pi with several temperature sensors via bluetooth. The problem is, that I need to change a specific value of the "Trigger"-Service of the sensor, which recognize it at start measuring the temperature. But I am…
0
votes
1 answer

Why in Bluez 5.35 SBC codec capabilities are initialized in android/hal-audio-sbc.c packge not in AVDTP.c

I am updating Bluez 4.97 to 5.35 in my embedded device. For A2DP connection, we have to share SBC codec capabilities. In ideal case the capablity will look like figure 1 . In Bluez 4.97 code, I am getting SBC codec capability from sbc_getcap_ind()…
Hari
  • 111
  • 1
  • 1
  • 8
0
votes
0 answers

OSError with Pybluez librairy

I would like to make a bluetooth communication between a laptop with a bluetooth dongle and windows 7, and my raspberry pi 3. I found on internet some tutorials which use the Pybluez librairy but this doesn't work for me. Find below the code for…
T.Justice
  • 75
  • 1
  • 2
  • 13
0
votes
0 answers

Not discovering services after connection in some android mobile

I'm trying to use Android's Bluetooth Low Energy[BLE supported Android] to communicate with a BLE device. After connect with device, it will not be able to discover the services. In few mobile phones like samsung galaxy s6,iphone,ipad service are…
0
votes
1 answer

Receiving data from arduino and HC-05 module using pyserial or pybluez

I'm having trouble receiving data from arduino and the bluetooth module HC-05. I tried to receive data with PySerial and Pybluez, but none have worked for me. I appreciate if someone could review what I'm doing wrong. I found this in StackOverflow,…
1 2 3
10
11