26 questions
0
votes
0
answers
57
views
There is a double scan happening with my python Bluetooth scanner and I don't know why
I will provide my code. The primary purpose of this is vehicle identification. My only hypothesis is my laptop having multiple Bluetooth signals but it seems to happen for other devices as well. This ...
1
vote
1
answer
188
views
How can I hook a BT05 Bluetooth LE device to Python bleak on a raspberry PI
I want to send serial data with a BT05 serial Bluetooth LE device from a microcontroller to a Raspberry Pi 5 with Linux 6.6.51+rpt-rpi-2712. On the raspi I use the latest newest Python bleak version ...
0
votes
0
answers
57
views
WinRT pairing fails with error 19 the first time an attempt is made by a script
I'm using bleak and winRT to write a python application.
In this application the device should be paired and connected to a Windows Pc automatically after providing mac address and PIN.
The connection ...
0
votes
0
answers
81
views
Bluetooth connectivity issues when connecting multiple Muse IMU devices with Python/Bleak
I'm currently am using python with bleak and I'm finding it difficult to connect and maintain a stable connection to multiple Bluetooth enabled imu devices (muse), especially when trying to connect ...
1
vote
1
answer
549
views
When using pygrabber and bleak together, the error "Thread is configured for Windows GUI but callbacks are not working." occurs
In the following Python code, whether or not the line from pygrabber.dshow_graph import FilterGraph is included determines whether an error occurs. If I do not include it, no error appears, but if I ...
0
votes
2
answers
80
views
Await inside ctypes callback with loop already running
I need to perform a series of read/write tasks inside a ctypes callback function, but still inside an async task that is responsible for giving such read/write tasks:
async def main(ble_address):
...
1
vote
2
answers
877
views
ModuleNotFoundError: No module named 'winrt.windows.foundation.collections'
I have a Tkinter program that uses several libraries (matplotlib, numpy, pygame, …) as well as the bleak BLE library. I create an exe on windows using PyInstaller and most of the program works ...
1
vote
1
answer
268
views
Bluetooth Low Energy filter devices based on services
I am a beginner with BLE/Bluetooth. I am trying to communicate with a BLE enabled device, which is using a CH9141K BLE-to-serial bridge. I've got my host application successfully talking to the device ...
0
votes
0
answers
57
views
Python Bleak Unittest: Try to connect to device once; run multiple tests
I have a BLE device. I want to connect to it, run all my tests then deconnect.
Here is what versions I'm using:
bleak: "0.22.2";
bleak-winrt: "1.2.0";
python_full_version: "3....
0
votes
1
answer
972
views
Pair Bluetooth devices using Bleak
How can I pair a bluetooth device using bleak
I have developed a code for scanning of bluetooth devices nearby how can I pair devices.
This is a code written to scan bluetooth devices
from bleak ...
0
votes
0
answers
146
views
Bluetooth BTLE: how to connect reliably to device
Problem: Connecting to a BTLE device succeeds about 1 out of 10 times. How can I improve this and reliably connect to the device?
I have a Sensirion SHT41x that I want to access via Bluetooth from my ...
2
votes
0
answers
584
views
How to get device Bluetooth addresses in Python Bleak
I’m new to Bluetooth in Python so I’m not sure how to best phrase my question. The task I need to achieve, is I want to know whether a certain phone is in my vicinity through Bluetooth. I read Bleak’s ...
1
vote
1
answer
2k
views
Python with Bleak - Pair with a device that requires a pin
I'm attempting to read some characteristics from a Bluetooth device. The device requires a Pin to pair but I can't find any resources on how to enter a pin with python-bleak.
My code is below. It will ...