Fix a bug: sample loss in Android app when retrieving data via BLE

Lukket Lagt ut 6 år siden Betales ved levering
Lukket Betales ved levering

I'm developing an Android app which retrieves data via BLE from a device in real-time.

As stated in the device's datasheet, BLE uses a 20-ms connection interval. Twenty user-data bytes (which is equal to 2- samples for each channel and 2-bytes running counter) are sent in GATT notifications. Data from the device is ping-pong buffered and up to six BLE-notification packets are sent every 14 ms based on an OSAL timer. The sample rate is set as 160 samples/sec. Each sample is 3 bytes and is sending 3 channels.

Each notification packet consists of 20 bytes containing the following:

Measurement Sample 1 (Raw ADC data):

- Channel1 (3 bytes)

- Channel2 (3 bytes)

- Channel3 (3 bytes)

Measurement Sample 2 (Raw ADC data):

- Channel1 (3 bytes)

- Channel2 (3 bytes)

- Channel3 (3 bytes)

Afterwards I plot this data, but it looks like that I am only getting a sample rate around 105, while there should be 160 samples/sec. It just looks like some samples are missing looking from the signal.

I would like you to fix the bug. Here's a code that I use: [login to view URL]

Android Java Mobile App Development

Prosjekt-ID: #13483947

Om prosjektet

14 bud Eksternt prosjekt Aktiv 6 år siden

14 frilansere byr i gjennomsnitt €258 for denne jobben

posspooja

Hello, I am an Developer with more than 7 years of experience and shall get this done in about 3 days' time. Let me know if you have any doubts / queries about my expertise, will be more than happy to address t Mer

€263 EUR på 3 dager
(4 Omtaler)
4.7
searcheverything

Hi I am expert android developer having 8+ year experienced . I am interested in this project & I can fix bugs . NOTE : Can't provide estimate of this It should be hourly. As It needs to diagnose the issue . Mer

€136 EUR på 1 dag
(7 Omtaler)
4.7
jiandeng

sampling rate 160, that is 80 notifications per second. Given 20ms connection interval, up to 4 notifications in a single connection interval (if you are talking about cc2640 or cc2541), data rate is not a problem

€200 EUR på 10 dager
(0 Omtaler)
0.0