pybluez

Is it possible to change bluetooth profile on RPi4?

老子叫甜甜 提交于 2021-02-11 13:00:50
问题 I have a camera connected to a RPi4 and I want to stream its feed via bluetooth. BLE max speed is 2 Mbps, which is a little too slow. I'd like to switch to bluetooth classic, to reach 24 Mbps. Is it possible? 回答1: There is example code for how to switch profiles in BlueZ at: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-profile I am assuming you are interested in the VDP profile which is documented at: https://www.bluetooth.com/specifications/profiles-overview/) However, I

Python bluetooth on Windows 10 [closed]

二次信任 提交于 2020-11-29 03:58:06
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 23 days ago . Improve this question 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 Windows 10. I

Python bluetooth on Windows 10 [closed]

强颜欢笑 提交于 2020-11-29 03:57:26
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 23 days ago . Improve this question 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 Windows 10. I

Reading Thermometer Data with Bluez Bluetooth Low Energy

六眼飞鱼酱① 提交于 2020-01-05 06:42:54
问题 I was wondering if there anyone willing to guide me a bit. I am trying to read the temperature of a Bluetooth thermometer using gatttool, but I don't know how to work with the indicate property. I am able to connect to the device, get the device name, etc., but it has proven to be more challenging to get the actual temperature data. Does any one have an idea? Also if you have more questions for me, let me know. 回答1: Assuming that your device uses the adopted thermometer profile, then you want

After installing PyBluez on Windows8.1 I get DLL %1 not valid win32 app

送分小仙女□ 提交于 2019-12-25 17:37:21
问题 I have installed PyBluez-0.22.win32.exe on a 64bit machine with Python 2.7 (they didn't have a 64bit version). Then I get the following error: ImportError:DLL load failed:%1 is not valid Win32 application. Any idea how I could fix this? Here is the part of code that depends on bluetooth: from bluetooth import * import bluetooth._msbt as bt bt.initwinsock () 回答1: That error message occurs when you try to use a 64-bit Python interpreter and a 32-bit extension module. The same error message can

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

☆樱花仙子☆ 提交于 2019-12-21 12:26:34
问题 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 connecting to passkey protected device). I am able to discover the devices and retrieve their names and addresses: nearby_devices = bluetooth.discover_devices(duration=4,lookup_names=True, flush_cache=True, lookup_class=False) But if tried to connect

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

喜你入骨 提交于 2019-12-18 10:56:12
问题 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 and then turned it on. From that point onwards, the simplest of the programs are failing to execute. Take this one for example. It gets stuck at advertise_service in bluetooth module and throws the following error (FYI: virtualenv was not a problem

python bluetooth - check connection status

前提是你 提交于 2019-12-18 08:52:11
问题 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 the status of the connection. I want my application to disable certain functionality when the device is disconnected but there does not seem to be any BluetoothSocket.is_connected() methods of any kind. I would like it to detect changes in the

python bluetooth - check connection status

冷暖自知 提交于 2019-12-18 08:51:14
问题 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 the status of the connection. I want my application to disable certain functionality when the device is disconnected but there does not seem to be any BluetoothSocket.is_connected() methods of any kind. I would like it to detect changes in the

Discovering bluetooth devices IOError: The RPC server is unavailable

不想你离开。 提交于 2019-12-12 14:00:07
问题 I just tried to implement bluetooth from Python in PyCharm, using PyBluez. I am stuck with this particular error. I tried to search this error but could not find it. Can anybody help ? This is my code >>> from bluetooth import discover_devices >>> nearby_devices = discover_devices() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python27\lib\site-packages\bluetooth\msbt.py", line 15, in discover_devices devices = bt.discover_devices(duration=duration, flush