bluez

Linux BlueZ custom Manufacturing Scan Response Data

依然范特西╮ 提交于 2021-02-20 04:10:05
问题 I have a custom GATT Server working as a plugin using BlueZ 4.101 on Linux. I am now trying to set custom Scan Response advertising data. I am using LightBlue on iOS to debug my GATT Server and advertising parameters. I tried the following code, and LightBlue can see the Advertising Payload and Device Name, but not the Scan Response data. How do I set custom Scan Response data with BlueZ? Thanks. # BLE Name echo "<GATT SERVER> Setting BLE Advertising Name..." btmgmt -i $BLUETOOTH_DEVICE name

Linux BlueZ custom Manufacturing Scan Response Data

大憨熊 提交于 2021-02-20 04:07:04
问题 I have a custom GATT Server working as a plugin using BlueZ 4.101 on Linux. I am now trying to set custom Scan Response advertising data. I am using LightBlue on iOS to debug my GATT Server and advertising parameters. I tried the following code, and LightBlue can see the Advertising Payload and Device Name, but not the Scan Response data. How do I set custom Scan Response data with BlueZ? Thanks. # BLE Name echo "<GATT SERVER> Setting BLE Advertising Name..." btmgmt -i $BLUETOOTH_DEVICE name

Linux BlueZ custom Manufacturing Scan Response Data

谁都会走 提交于 2021-02-20 04:05:19
问题 I have a custom GATT Server working as a plugin using BlueZ 4.101 on Linux. I am now trying to set custom Scan Response advertising data. I am using LightBlue on iOS to debug my GATT Server and advertising parameters. I tried the following code, and LightBlue can see the Advertising Payload and Device Name, but not the Scan Response data. How do I set custom Scan Response data with BlueZ? Thanks. # BLE Name echo "<GATT SERVER> Setting BLE Advertising Name..." btmgmt -i $BLUETOOTH_DEVICE name

BLE temperature characteristic conversion

▼魔方 西西 提交于 2021-02-11 13:58:48
问题 I have a BLE app running on nrf51822 on Zephyr. Application is reading data from humidity and temperature sensor and exposes environmental sensing characteristic. Main exposed value is temperature (uuid:2A6E). I have trouble reading this data via Bluez on linux. With nrfConnect app everything works no problem - I connect to the device and can see temperature reading - somewhere between 20 and 26 degrees (assigned to said uuid). Via Bluez I can connect and read characteristic handle but the

BLE temperature characteristic conversion

帅比萌擦擦* 提交于 2021-02-11 13:57:16
问题 I have a BLE app running on nrf51822 on Zephyr. Application is reading data from humidity and temperature sensor and exposes environmental sensing characteristic. Main exposed value is temperature (uuid:2A6E). I have trouble reading this data via Bluez on linux. With nrfConnect app everything works no problem - I connect to the device and can see temperature reading - somewhere between 20 and 26 degrees (assigned to said uuid). Via Bluez I can connect and read characteristic handle but the

Python Bluez GATT server - client cannot disconnect

余生颓废 提交于 2021-02-08 07:55:05
问题 I've been working on a simple bluetooth GATT server app working on a Raspberry pi 3 model B. This app uses Bluez (version 5.49) to advertise services and characteristics. The app is based on the following example: https://github.com/Jumperr-labs/python-gatt-server So far I have almost ended the server: clients can read and write in characteristics and services are advertised. The problem appears when the clients attempt to disconnect to the server. The server seems to be rejecting

Python Bluez GATT server - client cannot disconnect

半腔热情 提交于 2021-02-08 07:54:52
问题 I've been working on a simple bluetooth GATT server app working on a Raspberry pi 3 model B. This app uses Bluez (version 5.49) to advertise services and characteristics. The app is based on the following example: https://github.com/Jumperr-labs/python-gatt-server So far I have almost ended the server: clients can read and write in characteristics and services are advertised. The problem appears when the clients attempt to disconnect to the server. The server seems to be rejecting

how event packet header is getiing in hci_send_req api implementation?

蓝咒 提交于 2021-02-07 10:15:38
问题 Hi I am going through hci_send_req implementation in hci.c file. in this function after sending hci command to controller . Controller send event packet. After reading event packet in buffer by read(dd, buf, sizeof(buf)) (dd is hci socket descriptor) , now we need event packet header and to get event packet header, buf is sifted by 1 byte. why?? hdr = (void *) (buf + 1); (line number 1049 of hci.c) Please let me know about this. Thanks. 回答1: HCI Event Packets: the Host Controller notifies the

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

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