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

How are you supposed to have multiple attributes in one service?

I'm building a BLE automation IO card, so I'm trying to use BLE-Automation I/O https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Services/org.bluetooth.service.automation_io.xml And it says that it supports 1 or more…
2
votes
1 answer

Android BLE Gatt Server with multiple services - onCharacteristicWriteRequest() no char for handle

I am trying to build a BLE Gatt Server with multiple custom services and multiple characteristics. To begin with I used the Google Example: https://github.com/androidthings/sample-bluetooth-le-gattserver/tree/master/kotlin This was straight forward…
2
votes
0 answers

Android BLE Sending more than 20 bytes (without request MTU on client side)

I'm developing an app with BLE features. My server (Peripheral) detect that some clients are connected to my server. I notify them by sending some server's information then after that the client receive those informations he send client's…
Xtazer
  • 161
  • 3
  • 14
2
votes
1 answer

How we can achieve the BLE peripheral device to connect to only our Android app (Central) if any other app try to connect need to disconnect

As question suggested we have our own BLE device and Android app to connect with that device. We are able to connect with BLE device and do all operations successfully. In the meantime, we are able to detect our BLE device with other 3rd party apps…
YBDevi
  • 439
  • 5
  • 22
2
votes
2 answers

BLE Gatt onConnectionStateChanged failed with status 257 in Android

I am developping a Android app that connects to multiple BLE devices at the same time, after that i read characteristic permanently from those devices but after a while, I am getting a status 257 in the onConnectionStateChanged() function, the…
2
votes
2 answers

Android BLE: onCharacteristicRead works only first time

Gatt communication works only first time it is used. I have read a lot of issues related to this one but no solution helped. Whole process: 1. Restart phone 2. Run the app 3. App connects to BLE device and fetches list of accessible Wifi networks…
2
votes
1 answer

What does Battery level state (0x2A1B) Bluetooth specification mean?

Battery Level State (0x2A1B) is not listed under Battery Service specification in Bluetooth docs, only the Battery Level (0x2A19) is. However, when reading the characteristic Battery Level State (0x2A1B) under Battery Service, the 0x2A1B…
imrich
  • 383
  • 5
  • 14
2
votes
0 answers

Reading advertisement packet using QtBluetooth

Is there any way to read the contents of an advertisement packet advertised by a BLE device(peripheral) on BLE Central application developed in Qt using QtBluetooth.
Kuncheria
  • 1,182
  • 9
  • 16
2
votes
0 answers

How to use a queue to write characteristic fast and stable for BLE in Android

Following the google ble app, I created two joysticks on the android app. Then, I am sending the joystick values from android phone to an arduino over ble using 1 write characteristics, the packets size is 4 bytes. when I lift up my finger from the…
BOB
  • 151
  • 3
  • 13
2
votes
1 answer

Android BLE peripheral disconnects with status code BLE_HCI_INSTANT_PASSED(0x28)

My application is able to connect to the BLE peripheral(which is an OBDII/J1939 device) device successfully. 2018-01-24 14:58:38,413 INFO LogUtil - GATT Server Status = (0) : BLE_HCI_STATUS_CODE_SUCCESS(0x00) 2018-01-24 14:58:38,414 INFO …
2
votes
2 answers

Is there a way use Bluetooth LE libraries C# in Windows 10 to communicate with sensors or micro-controllers?

I spent some time looking for ways to exchange data from a micro-controller Bluno Beetle from DFRobots that uses Bluetooth LE and a desktop application written in C#. DFRobots actually has a code (in Java Android), where they use GATT profiles to…
Dennis Cunha
  • 51
  • 1
  • 8
2
votes
4 answers

BLE Gatt onConnectionStateChange failed, Status 133 and 257

I'm trying to connect my Beacons to the Gattservice. In the Callback onConnectionStateChange, It's always failing and im getting the statuscodes 133 and 257. Somehwere was written that 133 stands for to many connections. In my code there are…
Sunny
  • 25
  • 1
  • 1
  • 6
2
votes
0 answers

BluetoothGattServerCallback does not call onConnectionStateChange

I have an app (Lollipop) that advertises to a Recon JET which will discover it with its own app. They will successfully connect, and I know this because I have a button that calls BluetoothManager.getConnectedDevices(BluetoothProfile.GATT) and…
2
votes
1 answer

How to notify user if connection fails to BLE device in Android?

How do I notify users if the device they are trying to connect to does not connect, besides waiting and testing for a connection. There does not seem to be any callback for a failed connection after trying connectGatt(). Thanks!
2
votes
0 answers

How to disconnect BLE Beacon from Samsung Gear S2 watch?

I face issue , once GATT Operation done, Second time i am unable to scan any Beacon. I am developing basic demo BLE app. Wearable SDK 3.0, Device: Samsung Gear S2, I have two buttons Start and Stop. when press start button app start scanning and…