Languages

Menu
Sites
Language
help with sending sensors data with bluetooth le

Hello. I'm writing an app in witch i have to send pedometer and accelerometer data via bluetooth to a phone. I watched the samples provided by tizen (this in particular https://developer.tizen.org/development/sample/native/Network/Bluetooth_LE_Service). The problem is that: in this code is provided a link that tells how to pack data before sending them (the first result from bluetooth,com by searching "bluetooth gatt characteristics" on google,), but, unlike the heart rate measurement of the sample, i can't find anything about accelerometer or pedometer. Can anyone help me? Where do i find gatt characteristics for these two sensors? Or, in whitch way should i pack them before sending them? Thenk you for your help.

Edited by: Tiburzi on 13 Dec, 2018

Responses

3 Replies
Yasin Ali

Hi,

I think you should follow below link for greater understanding of Bluetooth GATT operations
in native Tizen. Also you may explain a littile bit more to properly understand your problem possibly with some code.

https://developer.tizen.org/development/guides/native-application/connectivity-and-wireless/bluetooth

Hope it will help.

Tiburzi

It's not about the connectivity, in the samples i found the classes to send data via bluetooth, the problem is how do i pack the data? It's like in this sample https://developer.tizen.org/development/sample/native/Network/Bluetooth_LE_Service, the class in src>hrs>hrs_data.c provide to pack data before sending. But it's not casual, it follows the gatt characteristics that here i cannot post because it's an external link ( if you search "heart rate measurement gatt characteristics" on google it's the result named "Heart Rate Measurement - Bluetooth SIG" ). Here it says in which way, position and with which flags i have to pack data. But i can't find this with pedometer and accelerometer. (On the watch i should only collect data, i will elaborate on the phone).

Yasin Ali

I got this useful link https://www.bluetooth.com/specifications/gatt .
Didn't get anything direct for accelerometer or pedometer.
But you may check these two from that link and may get helpful insights.

1. RSCP Running Speed and Cadence Profile 1.0
2. Fitness Machine Profile

Hope it will help.