Questions tagged [characteristics]

113 questions
1
vote
1 answer

central unsubscribes from characteristic when restart app

IOS app is a peripheral. After pairing, peripheral can successfully update characteristic value to and indicate to subscribed central via updateValue:forCharacteristic:onSubscribedCentrals: When I call this method successfully (after pairing), logs…
1
vote
0 answers

Android, BLE continuously writing a characteristic value disconnects the gatt server

I notice that if i write fast and continuously a characteristic value the gatt server disconnect. I know that I have to wait until onCharacteristicWrite callback, so that's not the problem I think. This my queue implementation, I'm using a kotlin…
blow
  • 12,811
  • 24
  • 75
  • 112
1
vote
2 answers

BLE Android how to pass characteristics to use in Fragment

I got a BLE tutorial working. I can send and receive data on the SPS service, this data TX RX is done in Dialog_BTLE_Characteristics. It looks like the characteristics & services are passed from Activity_BTLE_Services to Dialog_BTLE_Characteristic…
1
vote
1 answer

onCharacteristicChanged not being hit. Android BLE

I have an app that is using BLE connectivity with my device. Everything works from connecting to the device, discovering the services, writing the characteristic and descriptor. But for some reason, onCharacteristicChanged is not triggering. The…
1
vote
0 answers

GATT-like procotol over TCP

I am searching for a protocol on top of TCP/IP that behaves like BLE GATT. The server should announce which characteristics/properties it offers and the client can read/write/subscribe to them. Also, it should be very lightweight, since it needs to…
Daniel D.
  • 178
  • 2
  • 15
1
vote
1 answer

Receive notifications for multiple characteristics in Android

I have several characteristics (all under one service) that I would like to be notified of in my Android app. When I set the notification descriptor for one of them, it works well. I understand that some sort of a queue or delay must be utilized for…
1
vote
1 answer

Writing characteristic property check is always false Android BluetoothGatt class

I want to create an android application in order to connect and retrieve data from an ESP32 board as well as the ability to send values to the board using Bluetooth Low Energy communication. I have an ESP32 board with BLE server inside.I've…
1
vote
0 answers

createCharacteristic with 3 or more characteristic properties for BLE application?

I am working on a BLE application using ESP32 Arduino Platform and having a concern about having 2 or more Characteristic Properties, and wonder if the statement below is valid and efficient? I've been seeing code samples with 2 properties but not…
huynh213
  • 21
  • 2
1
vote
0 answers

Definition of Characteristics for the Object Property hasTopping in Different Contexts in OWL

Different burgers have different toppings like cheese, onions, beef, salad. Let's consider hamburgers and cheeseburgers as possible burger instances and the object property "has_Topping" to define their properties. First, we want to model a burger…
user3352632
  • 617
  • 6
  • 18
1
vote
0 answers

iOS - Swift Bluetooth - received characteristic value too small

I am sending an image from an Android app to an iOS app over BLE. According to some articles, the max size for sending via BLE is 1 KB, hence I am splitting my image into 1 KB chunks and sending it to the Swift App with a 40ms delay. However, the…
phoebus
  • 1,280
  • 1
  • 16
  • 36
1
vote
1 answer

BLE receiving GATT notifications from a characteristic

I want to receive notifications when this characteristic is changed Micro:Bit. What I'm doing is basically the following: 1) Check if the system is compatible with BLE 2) Enable bluetooth in case it's disabled 3) Connect to the only one paired…
Lechucico
  • 1,914
  • 7
  • 27
  • 60
1
vote
1 answer

Compare UUID with GattService List

I have used the BluetoothLeGatt example from Android and now I want to load a xml file depending on the UUID of the device I'm connecting with. I've tried to compare the UUID's with the following…
N.Gre
  • 45
  • 10
1
vote
1 answer

Bluetooth Low Energy Notification Characteristics

I just want to figure out. If i have the BLE(cc2541) and android APP. BLE has characteristics for notification, read, write and other. Can i write value to notification characteristics from BLE, read it with android APP, and then write to same…
1
vote
1 answer

Android BLE readCharacteristic is false

I'm trying to read message using Bluetooth low energy. when (characteristic.getProperties() & BluetoothGattCharacteristic.PROPERTY_READ) == 0, the onCharacteristicRead will never be called. Now the characteristic.getProperties() = 16 and…
sifeili
  • 11
  • 1
1
vote
1 answer

Android BLE - read custom service

I try to communicate with an µ-controller through an android device via BLE. I am able to write my custom characteristic (toggle an LED on my Dev-Kit) but can't read the value of the LED status ('0x00' for off, '0x01' for on). I want to read it…
Ian
  • 147
  • 1
  • 13