Questions tagged [gatt]

GATT: Generic Attribute Profile

Provides profile discovery and description services for Bluetooth Low Energy protocol. It defines how a set of ATT attributes are grouped together to form services.

See Bluetooth Profile

556 questions
2
votes
1 answer

dbus api for sending GATT notification in bluez

Can someone tell me how to send GATT notifications using DBUS api's. Currently I am using bluez5.43. I am trying to register a service and send notifications. I have taken the reference of gatt-service.c which is present under the tools directory.…
2
votes
2 answers

Example code to access battery service from ble device in C using bluez

I have a ble device which gives battery status as battery service.I need to read battery information from my ble device using C programming language from linux using bluez. I could not see a proper example anywhere for this purpose even though there…
Bill Goldberg
  • 1,699
  • 5
  • 26
  • 50
2
votes
2 answers

Android Code Does not scan BLE device CC2650

I am working with the CC2650STK SensorTag. I have downloaded this open source app from GitHub: https://github.com/googlesamples/android-BluetoothLeGatt However, the app does not scan my BLE device and show on the list. If anyone can guide me or help…
2
votes
1 answer

Modify the BLE device name

I am working on an iPhone app and this app send command to a board through BLE module. the board controls some motor to move around. I do code on iOS app and another guy do the code on Arduino. There is a BLUGiga 112 module on the board. Now, in my…
user418751
  • 1,937
  • 2
  • 18
  • 21
2
votes
0 answers

Sending GATT Attributes Client -> Server

I am trying to create an connection between an Tablet and my MCU which connects as BLE and send/receive characteristics via GATT. The MCU is the GATT Server and the Tablet is my GATT Client. What is working so far: Both devices are connecting to…
B. Ben
  • 109
  • 1
  • 9
2
votes
1 answer

Should Bluetooth GATT characteristics be grouped in fields when they depend on each other?

I am designing a custom GATT profile for a mobile robot base to connect to a tablet. Among other things, the base is reporting its position in x and y coordinates. The question is, how should I organize these two values in the GATT profile? Should…
Karl Hansen
  • 23
  • 1
  • 5
2
votes
1 answer

What happens with the Gatt Characteristic after it has been read?

I am using an android device with Android 5.1 (Bluetooth 4.0) and a MCU Board which has Bluetooth 4.2. On my MCU side i am updating my Gatt Characteristic in a Loop just to make sure, that i know if the data i am writing inside is consistent. before…
B. Ben
  • 109
  • 1
  • 9
2
votes
1 answer

Android BLE read Gatt Characteristic

I am trying to read some Bluetooth Characteristics in my APP. Now i have a Problem with what to do after the characteristic changed from my Gatt Server. At first i've tried to use a thread to retrigger the read for the characteristic again and again…
B. Ben
  • 109
  • 1
  • 9
2
votes
0 answers

How to send command to BLE device and show result

@Override public void onServicesDiscovered(final BluetoothGatt gatt, int status) { super.onServicesDiscovered(gatt, status); if (status == BluetoothGatt.GATT_SUCCESS) { List characteristics = null; …
2
votes
1 answer

UWP GATT heart rate monitor characteristic value interpretation

I wrote a program that connects to a heart rate modeled but I don't know how to interpret the data. Here is a sample starting from the first output: heart rate is : 16-40-15-04-6D-02-8C-01-0C-04-24-04-AB-03-7B-02-B4-01 heart rate is :…
rur2641
  • 691
  • 1
  • 10
  • 26
2
votes
1 answer

Service for multiple activities

I'm developing an app which communicates with a bluetooth module (RN4020 by microchip). This app use a service which handles the communication with the module (connection/read/write). When I use one activity there aren't any kind of problem. When I…
Damien
  • 921
  • 4
  • 13
  • 31
2
votes
2 answers

Scanning BLE device not working

I am trying to scan BLE devices with mBluetoothAdapter.startLeScan(this); (I know its obsolete for newer versions but just to see it works with my phone [4.4], I am using it). So it starts scanning and then moves on without giving errors but no…
Samra
  • 1,815
  • 4
  • 35
  • 71
2
votes
2 answers

Maximum no of device that can connect to BLE(BluetoothGattServer) server android

Does anybody knows the maximum number of device that can be connected to ble peripheral ? I tried with two devices and it connects well but the third device is not able to connect to Android BLE peripheral/ BluetoothGattServer. Is there any…
DAMM108
  • 970
  • 2
  • 13
  • 27
2
votes
0 answers

Services cannot be added more than once

Using the following code to re-publish my Bluetooth service, I intermittently get a crash with the error message below. self.stopAdvertising() peripheralManager.removeAllServices() if let service = self.cbService { …
davidgyoung
  • 63,876
  • 14
  • 121
  • 204
2
votes
0 answers

Develop custom GATT profile on Linux

I need to create a program implementing custom GATT profile on Linux PC. Question is: what options do I have for this? As long as I can see, the only option is to develop a program on top of BlueZ stack. I guess it should have some sort of API to…
SergeyM
  • 136
  • 1
  • 4