bluez

Gatttool: Limited to 5 connections?

被刻印的时光 ゝ 提交于 2019-12-10 09:40:41
问题 I connect to five devices by spawning gatttools with pexpect in python*. When I try to connect to a sixth device (using the same CSR 4.0 dongle for all connections) manually I encounter: sudo gatttool -b DC:05:4F:BC:F6:4A -It random [DC:05:4F:BC:F6:4A][LE]> connect Attempting to connect to DC:05:4F:BC:F6:4A Error: connect error: Too many links (31) Is this a gatttool limitation or a hardware limitation? I cloned the source at http://git.kernel.org/cgit/bluetooth/bluez.git and ran grep -r

How to make Android BLE connect to Bluez Peripheral? (Connection issues)

徘徊边缘 提交于 2019-12-09 07:42:27
I am trying to connect my Nexus 5 (Android 6.0.1) smartphone to my desktop computer (Ubuntu 15.04 64-bit with BlueZ 5.36) using Bluetooth Low Energy. I use a BT 4.0 USB dongle with a CSR BC8510 chipset. The setup did actually work just a couple of days ago. Then I switched to a Broadcom USB dongle and it started to become unstable. Connecting became slow and started to fail. It now does not work anymore at all even though I switched back to the CSR dongle and a different Ubuntu machine (still using the same Android device). However receiving advertising packets was not affected and does still

Direct Control of HCI Device (Bypass Bluetooth Drivers) on Linux

谁说我不能喝 提交于 2019-12-09 01:06:10
问题 I need to control an HCI device directly without the Linux drivers/kernel interfering. For example, when creating an LE connection to a peripheral, the driver is independently sending an "LE Connection Update" command which I would like to avoid. I though of two approaches to resolve this: Configure the bluetooth drivers to somehow disable interference with the HCI device (similar to the -r flag on hciattach), then control the HCI device using a regular AF_BLUEOOTH socket. Disable this

Looking to write Bluetooth 'hcitool' equivelant in Windows

試著忘記壹切 提交于 2019-12-09 01:06:01
问题 I have used Bluez Bluetooth stack in Linux which comes with a handy utility 'hcitool'. Looking to build something like that in Windows with same or equivalent functionality. Specifically, 'hcitool name < MAC >', which shows if the specified device is within range. Any guidance will be appreciated. I have Windows SDK v7 with Visual Studio 2010, using C/C++ thanks. 回答1: Using my 32feet.NET library something like the following. EDIT 3rd March: I've now added code to directly lookup the device by

How to retrieve advertising payload from iBeacon / BLE

六眼飞鱼酱① 提交于 2019-12-09 00:37:47
问题 How do you retrieve the advertising payload for a Bluetooth LE emitter in linux? Specifically, I've configured arduino's and R-PI's using hcitool to act as iBeacons. What I'm looking for is a command to print out what the current advertising payload is for the device. 回答1: At Radius Networks, we put together a set of scripts that parse the iBeacon identifiers out of BLE advertisement detected on Linux. You can find a description of this here. If you simply want to see the raw advertisement

Bluetooth Low-Enery on Linux API

半腔热情 提交于 2019-12-08 16:43:33
问题 I have a device with a few custom GATT services, and I would like to write a Linux program to interact with it. After some searching I found out that Linux is using BlueZ to handle the Bluetooth LE protocol. I'm using Ubuntu 15.10 with BlueZ 5.35, but I cannot figure out how use this BlueZ from a user-space program. I cannot find an API documentation anywhere, no tutorials, examples, nothing. Is it even possible to use this BlueZ stack to do anything other than just connecting to Bluetooth

Does AirLocate only look for particular UUIDs?

谁说胖子不能爱 提交于 2019-12-08 13:37:31
I've been testing some iBeacons -- hen I set the UUID of the beacon to something other than the default it isn't picked up by AirLocate. Is AirLocate only looking for particular beacon UUIDs or am I doing something wrong? Thanks! AirLocate works differently depending on whether you are ranging or monitoring. When you are monitoring, you can choose from any one of eight built-in ProximityUUIDs to monitor, and you can optionally also choose to monitor based on a major and minor identifier. While you can manually edit one of the built-in ProximityUUIDs, changing one only affects the currently

How do I register a profile with bluez using dbus/gio?

为君一笑 提交于 2019-12-08 11:25:57
问题 I'm trying to register a profile with bluez through D-Bus/Gio. When I call RegisterProfile everything goes OK. I check my GError and it's NULL and my return value is an empty GVariant. I've tried many things, but here is my latest code. When I run it, it prints "g_dbus_connection_call_sync succeeded", but I can't see my new profile in D-Bus using d-feet and I cannot connect to it using a my test device. I know the code on the test device works, or at least did work with straight bluez, but I

Bluetooth Low Energy: listening for notifications/indications on Raspberry Pi B+

戏子无情 提交于 2019-12-08 09:36:48
问题 How is it possible to authenticate using Bluez 5.31 and GattTool? I want to listen on a notification. I've connected using gatttool -b <addr> -I and I can run the primary command etc. I sniffed the device and I know that handle 0x0024 is where I will find a notification. When I try char-write-req 0x0024 0100 I get Error: Characteristic write Request failed: Attribute requires authentication before read/write So I try sec-level medium and then sec-level high but I still get the same error. Any

How to use dbus-send to call org.bluez.Adapter1.StartDiscovery?

淺唱寂寞╮ 提交于 2019-12-08 08:17:51
问题 I am trying to interact with Bluez 5.44 using the dbus-send command line tool. I cannot seem to get it to start discovery properly, although it works fine when I use bluetoothctl 's scan on and scan off commands. I can also start and stop discovery using d-feet . I've tried powering off and on prior to issuing the command, but it doesn't seem to get discovery started. The command line I'm using is: dbus-send --system --type=method_call --print-reply --dest=org.bluez \ /org/bluez/hci0 \ org