Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Android Bluetooth LE Gatt Services

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts

Hey guys.



Well i have a problem, or may i say some algo that i'm not figure out. -- really geek or just idiot...  :spoton:


First i'll tell the story.

I have a medical device, that record some stuff like (Blood Pressure, EKG...etc) after the measurement is finish, the device save data in his own memory.

Also have an android tablet with Bluetooth LE capabilities (Android v.7).


The main ideea is: tablet connect to medical device and download the saved data, that's all i need to do with with Gatt. - and this is my problem.

Tablet also has some class, that make some authentication, send data to some server, get some response...etc - those stuff are working perfectly, i don't have problem or issue with those stuff.


The functionality of tablet is:  at some point in the app, u press a button on screen and tablet connect to medical device and read/save data from device memory, after that send those info to server.


What i've dont untill now: when i press the button, app intent new actvity, who check for bluetooth enabled, scan for device - filter scan ( i know the device name ), get the Gatt characteristics, get the UUID of Gatt Services, and the i have some checkpoint of the characteristics;


At some point i make the check of ACTION_DATA_AVAILABLE

   int[] data = intent.getIntArrayExtra(BluetoothLeService.EXTRA_DATA);

where BluetoothLeService  is the service  - is the originial samle Android sample that i've modified a little bit.


So my problem is... how to store the data broadcast from the medical device in some variable, and after that send it to server. 



ps: the data i must receive is ArrayList -  cuz' the device save more the 1 record (have like 30 posibile records), and one record can be one of the option of the device (EKG, or BP,...).


And exemple:

Record 1 : is for EKG - (and have some list of integers)

Record 2 : is for BP - (have only 2 integers - Systolic and Diastolic - SYS and DIA)




So if anyone have an ideea who should i saved those data... i'll give a beer  :cheers:

Thanks in advanced!





  • 0


Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP