bluetooth

Audio through Cron Job

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-04 20:59:19
问题 Does anyone know why audio wouldn't run through a cron job even though it runs perfectly fine when run through the command line. I have a python script that plays audio through a bluetooth speaker and when I run it on the command line (python helper.py) it plays fine, but running it through cron doesn't seem to work. Extra details: I am doing this on a Raspberry Pi that I have connected to a bluetooth speaker. I have a display connected to the raspberry pi (not doing it headless but that is

Invalid Params issue when doing hciconfig hci0 reset

风格不统一 提交于 2021-01-29 14:11:46
问题 This issue I am observing with kernel above 5.0. And with controllers that have extended advertising enabled. I have currently tested with bluez-5.50. The issue is something to do with "MGMT_ADV_FLAG_SEC_MASK" flag is what I could get from the code. But when and how will this flag be modified is what I dont understand. Config: kernel 5.4.24(issue seen with any 5.0+ kernel) , bluez 5.50 I am doing following steps: 1. hciattach the BLE extended ADV enabled controller. 2. hciconfig hci0 reset. I

Android Bluetooth Scanner startDiscovery() showing nothing at the output

流过昼夜 提交于 2021-01-29 13:56:04
问题 Problem I am trying to create a bluetooth scanner , using android bluetooth API startDiscovery() method. I'm trying to show device list using list view,but the output dont show anything. package com.example.shad.lucaa; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.support.v7

Bluetooth 5 & BLE throughput over multiple connections

有些话、适合烂在心里 提交于 2021-01-29 13:28:14
问题 I've been reading this article on Bluetooth 5 & BLE maximum throughput. It provides data on maximum throughput across different devices and configurations. As far as I've understood, these measurements are defined by the connection between two devices and their respective data rates. When establishing connections to more than one device, do these data rates apply to each connection independently? Or is the data rate shared between all of the connections? For example: If I have a device with a

Android Bluetooth app wont run due to Null pointer error

给你一囗甜甜゛ 提交于 2021-01-29 10:54:30
问题 Bluetooth app won't run due to Null pointer exceptions. No errors, but I can't see to connect to the emulator as the app just crashes every time. Even if I try sample GitHub codes, it won't run either. I'll post code and catlog and anything else you need. Thank you for your help package com.example.bluetooth_demoproject; import android.app.Activity; import android.bluetooth.BluetoothA2dp; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android

What are these extra characters in my byte strings?

独自空忆成欢 提交于 2021-01-29 09:12:29
问题 I have a Python 3 script that gets data from some Bluetooth LE sensors. The data I'm getting is in 20-byte strings, but it looks like there are some extra characters along with the typical \x00 bytes. What are these extra characters? Why are they in seemingly random spots in the string? Here is a chunk of byte strings that I am getting from the sensors. b'\x96\x80G\x92\x00\x00\xc0\x7f\x00\x00\xc0\x7f\x00\x00\xc0\x7f\x00\x00\xc0\x7f' b'\xb1\xc1G\x92\x00\x00\xc0\x7f\x00\x00\xc0\x7f\x00\x00\xc0

Basic flutter bluetooth questions

拥有回忆 提交于 2021-01-29 08:12:39
问题 I'm undertaking a new project involving flutter and bluetooth. For this I read a bit about it and tried a test project, but I still have questions I find no easy answer for. Firstly, BLE vs Bluetooth. BLE is nothing else than Bluetooth version 4, mostly used in IoT applications. It can run in mobile phones, but is there any compatibility issues? AKA, can a BLE device comunicate with a bluetooth device or do they both need to be using the same bluetooth version? This question comes from

Android check if Bluetooth connected

时光毁灭记忆、已成空白 提交于 2021-01-29 04:25:17
问题 I am searching for this on the internet for quite a while, but I can't find what I am looking for. How can I find out with my app, if my device is already connected to a Bluetooth device (/ was before I start my app). I was hoping there was something like bool BluetoothAdapter.isPaired(); 回答1: If you are only interested if a connection to an arbitrary bluetooth device is established you can use the BluetoothAdapter.getProfileConnectionState(profile): adapter = BluetoothAdapter

Android check if Bluetooth connected

南笙酒味 提交于 2021-01-29 04:22:35
问题 I am searching for this on the internet for quite a while, but I can't find what I am looking for. How can I find out with my app, if my device is already connected to a Bluetooth device (/ was before I start my app). I was hoping there was something like bool BluetoothAdapter.isPaired(); 回答1: If you are only interested if a connection to an arbitrary bluetooth device is established you can use the BluetoothAdapter.getProfileConnectionState(profile): adapter = BluetoothAdapter

QBluetoothSocketPrivate::_q_readNotify() 14 error

戏子无情 提交于 2021-01-29 03:00:34
问题 i write an simple application to access the PBAP of my smartphone from my pc (Linux, Debian). I see all services of my smartphone, i can also connect (the smartphone gets a pairing request). But after a few seconds i get the following error: qt.bluetooth.bluez: void QBluetoothSocketPrivate::_q_readNotify() 14 error: -1 "Die Ressource ist zur Zeit nicht verfügbar" Has anybody an idea how to fix it? This is the function i call: void ServiceDiscoveryDialog::startClient(const