Project

General

Profile

Problemsdifficulties management » History » Version 12

João Samuel Mendo Pousão Gatta, 06/01/2023 20:38

1 1 Mariana Calado
h1. Problems/difficulties management
2 1 Mariana Calado
3 2 Mariana Calado
h2. Tasks:
4 3 Mariana Calado
5 5 Mariana Calado
+Bluetooth connection+
6 12 João Samuel Mendo Pousão Gatta
Understanding how BioLib and the corresponding connection Handler worked
7 4 Mariana Calado
8 5 Mariana Calado
+Acquisition as a background thread+
9 4 Mariana Calado
10 6 Mariana Calado
+Real-Time Results Display+
11 11 Mariana Calado
After the integration with the database, we had some difficulties in displaying the results in the graphs.
12 1 Mariana Calado
13 12 João Samuel Mendo Pousão Gatta
h2. How did we overcome this?
14 6 Mariana Calado
15 12 João Samuel Mendo Pousão Gatta
- The first step in developing StepNCount was successfully coding a prototype app to connect to the VitalJacket via Bluetooth. This step proved to be more difficult then expected due to our struggle in understanding how the BioLib class and the necessary connection Handler both worked. Our first attempt at resolving this issue involved checking Android Developers' documentation regarding BluetoothClient and BluetoothServer connections and attempting to simply display the IDs of the devices that have been, at some point, connected to the device running the prototype app. After accomplishing this and acquiring a better understanding of bluetooth connections with android devices, we went through the BioLib provided examples to prepare for connecting the actual VitalJacket. After some time trying to implement our own version of the exemplified connection Handler we figured out which portions of code we actually required for our use case and which ones we could discard to simplify not only the overall project but also our understanding of the functionality behind the bluetooth connection. We finally overcame this after a few different versions of the Handler and from then on, Bluetooth was never a problem. 
16 6 Mariana Calado
17 11 Mariana Calado
- While we were unable to establish the Bluetooth connection with the Vital Jacket, we developed another simple application with the aim of simulating the acquisition of a database with the cell phone's accelerometer in which whenever the user clicked on the button, the steps taken were saved in a listView displayed in another activity. This application can be found in the Redmine Repository folder under the name db_example, where it will be forwarded to a repository on Github.
18 1 Mariana Calado
19 11 Mariana Calado
Acquisition as a background thread+, primeiro a app estava em foreground
20 9 Mariana Calado
21 9 Mariana Calado
22 9 Mariana Calado
p=. !{width:400px}3_.png!