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
0
votes
0 answers

Connecting a bluetooth device OnItemClickListener

I have a List View, with a list of available blue tooth devices, and on selecting an item, i want to connect gatt on that device. But the compiler says "The method connectGatt(Context, boolean, BluetoothGattCallback) in the type BluetoothDevice is…
Samra
  • 1,815
  • 4
  • 35
  • 71
0
votes
1 answer

Which UUID to advertise a custom GATT server?

I'm developing a custom GATT server: I mean a server which exposes non-standard services and characteristics. What UUID I should use to advertise it? From here: https://www.bluetooth.com/specifications/assigned-numbers/generic-attribute-profile I…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
0 answers

BLE send data but can't receive data via GATT

I have a BLE device (Arduino chip) which I connect to an Android app I've built. I can send and receive data normally and maintain the connection pretty good. However I found a bug which I do not know how to solve or why it appear. When the BLE…
Andreas Rolén
  • 508
  • 5
  • 15
0
votes
1 answer

My BLE device is getting disconnected when I am switching activity

When I switch from my homescreen to another activity, my BLE device gets disconnected. Here's my main activity: public class MainActivity extends FragmentActivity implements OnDataReceivedListener, OnStateChangedListener,…
Santu Reddy
  • 87
  • 1
  • 9
0
votes
1 answer

How much amount of arbitrary data can be included in Beacon PDU?

We're trying to emulate a beacon on a Android device and would like to include some 50 bytes of application data in payload? We found that with AltBeacon format this is not possible? How can it be done with help of AltBeacon lib for…
0
votes
0 answers

BLE connect issue in Android

First of all, my English is very poor. I am developing an Android Application that connects to a BLE Device and reads the specific GATT Characteristics and Services that I need to check. I used the BluetoothLeGATT example from the Android Dev site…
0
votes
1 answer

onServicesDiscovered issues?

I have a basic android application. This is an almost duplicate of what I had already written and tested. The servicesDiscovered is not firing, and it isn't finding any services when I search manually. I can't figure out what is wrong, and note…
0
votes
1 answer

Bluetooth Gatt Characteristics for Light Level

Does there exist a characteristic for light levels measured by a photoresistor? I cannot seem to find it in the bluetooth specifications, even though I imagined it would be under environmental sensing? Is there any way to use it anyway without…
andreasj93
  • 33
  • 1
  • 5
0
votes
0 answers

Using GATTTOOL to listen without a write command

I can't seem to find anyone who has had this issue. I'm trying to listen to notifications using gatttool. On most devices, this is fine, I type in gatttool -b mydevice --char-write-req -a enablebdaddr -n enablingvalue --listen and I just sit and…
0
votes
1 answer

Gatttool "Characteristic Write Request failed:" How to reduce fail timeout for read/write?

I'm reading and writing the characteristics from my board using bluez-4.101. using gatttool. sometimes i get Characteristic Write Request failed: or read failed. Frequency of these errors is like 2/10, is there something that i can do to make full…
0
votes
1 answer

Android BLE GATT Peripheral Mode Notifications

I'm trying to set up an app to behave as a BLE peripheral device using the Android 5.0 (21) api. So far, I've set up the server, got advertising and connections working, set up custom GATT services and characteristics, and can read and write between…
Hamaluik
  • 179
  • 1
  • 7
0
votes
1 answer

Android BLE GATT multile writing- WriteCharacteristics failed

I am trying to write data by using the blow code, successfully received on the target. boolean status = mBluetoothGatt.writeCharacteristic(characteristic); byte[] value = new byte[1]; value[0] = (byte)inputvalue; …
Vineesh TP
  • 7,755
  • 12
  • 66
  • 130
0
votes
0 answers

Android GATT BLEScanner support only for Motorola Devices

I am developing an application in Android GATT BLE , I can get connection with my target device in Motorola devices only (Tested with Android version 5, 5.0.1,5.0.2) but, other devices like samsung,HTC, Lenovo etc, not working. I tried to debug the…
Vineesh TP
  • 7,755
  • 12
  • 66
  • 130
0
votes
1 answer

bluetooth GATT over BLE for iOS and Android?

I have a project that needs iOS/Android APP to communicate with embedded side via Bluetooth Low Energy(BLE) to transfer small amount of data. My embedded side is CSR chip which supports the dual mode. Does anyone know is that possible for both…
user303967
  • 131
  • 2
  • 6
0
votes
0 answers

Golang GATT package to connect multiple peripherals at a time

I'm using Golang GATT package by PayPal and editing its example file explorer.go to connect multiple peripherals at a time. The issue I'm facing is if I try to connect two peripherals at a time , sometimes it connect to both and sometimes it…
waqas
  • 81
  • 1
  • 1
  • 5