Problemsdifficulties management » History » Version 14
Mariana Calado, 06/01/2023 21:09
1 | 1 | Mariana Calado | h1. Problems/difficulties management |
---|---|---|---|
2 | 1 | Mariana Calado | |
3 | 14 | Mariana Calado | {{>toc}} |
4 | 13 | Mariana Calado | |
5 | 14 | Mariana Calado | h2. Tasks |
6 | 3 | Mariana Calado | |
7 | 5 | Mariana Calado | +Bluetooth connection+ |
8 | 12 | João Samuel Mendo Pousão Gatta | Understanding how BioLib and the corresponding connection Handler worked |
9 | 4 | Mariana Calado | |
10 | 5 | Mariana Calado | +Acquisition as a background thread+ |
11 | 4 | Mariana Calado | |
12 | 6 | Mariana Calado | +Real-Time Results Display+ |
13 | 11 | Mariana Calado | After the integration with the database, we had some difficulties in displaying the results in the graphs. |
14 | 1 | Mariana Calado | |
15 | 12 | João Samuel Mendo Pousão Gatta | h2. How did we overcome this? |
16 | 6 | Mariana Calado | |
17 | 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. |
18 | 6 | Mariana Calado | |
19 | 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. |
20 | 1 | Mariana Calado | |
21 | 11 | Mariana Calado | Acquisition as a background thread+, primeiro a app estava em foreground |
22 | 9 | Mariana Calado | |
23 | 9 | Mariana Calado | |
24 | 9 | Mariana Calado | p=. !{width:400px}3_.png! |