Problema #1: (x%) Dado el siguiente código usando Free RTOS en Arduino, ¿Cuáles de las siguientes afirmaciones son correctas?.
Problema #2: (x%) Qadri et Al., en su trabajo “The Future of Healthcare Internet of Things (H-IoT): A Survey of Emerging Technologies” propone como uno de los desafíos del H-IoT el Fitness Tracking, tal como se describe a continuación.
Referencia:
Qadri, Y. A., Nauman, A., Zikria, Y. B., Vasilakos, A. V., & Kim, S. W. (2020). The Future of Healthcare Internet of Things: A Survey of Emerging Technologies. IEEE Communications Surveys & Tutorials, 22(2), 1121-1167.
⭐⭐⭐⭐⭐ SOLUCIÓN EVALUACIÓN SISTEMAS EMBEBIDOS, 2do Parcial (2020 PAO 1)
1. vasanza
SISTEMAS EMBEBIDOS
EVALUACIÓN 2P
Fecha: 2020/09/09 PAO1 2020-2021
Nombre: ______________________________________________ Paralelo: __________
Problema #1: (x%)
Dado el siguiente código usando Free RTOS en Arduino, ¿Cuáles de las siguientes afirmaciones son
correctas?
#include <Arduino_FreeRTOS.h>
TaskHandle_t TaskLed_Handler;
void TaskBlink( void *pvParameters );
void setup() {
pinMode(led, OUTPUT);
xTaskCreate(
TaskBlink
, "Blink" // A name just for humans
, 128 // Stack size
, NULL
, 0 // priority
, &TaskLed_Handler); // Variable que apunta al task (opcional)
vTaskSuspend(TaskLed_Handler);
}
void TaskBlink(void *pvParameters)
{
for (;;){
digitalWrite(led, HIGH);
vTaskDelay( 500 / portTICK_PERIOD_MS );
digitalWrite(led, LOW);
vTaskDelay( 500 / portTICK_PERIOD_MS );
vTaskSuspend(TaskLed_Handler);
}
}
a) La tarea TaskBlink solo será ejecutada en el momento que se utilice la instrucción
vTaskResume(TaskLed_Handler) y solo será ejecutada una vez ya que al final de la misma tarea esta
la instrucción vTaskSuspend(TaskLed_Handler).
b) La tarea TaskBlink solo será ejecutada en el momento que se utilice la instrucción
vTaskResume(TaskLed_Handler) y se ejecutará de forma infinita por el for(;;) ya que al final de la
misma tarea esta la instrucción vTaskSuspend(TaskLed_Handler).
c) Es importante que la tarea que llame a ejecutar a la tarea TaskBlink, adicione una vTaskDelay(
2000 / portTICK_PERIOD_MS ) luego de la instrucción vTaskResume(TaskLed_Handler). Esto para
permitir que la tarea Taskblink sea ejecutada correctamente.
d) Al llamar a ejecutar a la tarea TaskBlink, no es necesario adicionar un vTaskDelay( 2000 /
portTICK_PERIOD_MS ) luego de la instrucción vTaskResume(TaskLed_Handler) para permitir que
la tarea Taskblink sea ejecutada correctamente.
2. vasanza
Problema #2: (x%)
Qadri et Al., en su trabajo “The Future of Healthcare Internet of Things (H-IoT): A Survey of Emerging
Technologies” propone como uno de los desafíos del H-IoT el Fitness Tracking, tal como se describe
a continuación:
“The major application of IoT in healthcare is fitness tracking using wearables that are available in
the consumer electronics domain. The domains include smart wrist bands that track motion and pulse
and smart clothing that can monitor cardiac activity. The overall data collected is used to determine
the fitness levels of the user, particularly sports persons [90]. The use of an array of sensors to measure
the overall fitness of the user is proposed in [91]. The device layer is an input interface between the
user and the local processor in a three-layer architecture. The locally processed data is sent to the
database server for storage. The database is remotely accessed by the user to keep track of health
parameters. The sensors considered in this work include pulse sensors, temperature sensors, and
accelerometers to track the moment and a Grove GSR sensor that analyses body sweat. All the sensors
are attached to the commonly available fabric that emulates a smart fabric. For determining the
effectiveness of gym training, a user-tailored workout plan determination system is proposed [92]. The
proposed system uses proprietary Apple Watch and to access the data, Apple’s health application is
used. A system to track the fitness of a bike rider is proposed in [93]. Besides, it also detects the bike
theft. The system architecture is two-pronged based on the application sharing a common backend
system and communication system. The three-stage architecture has a sensing module and bike safety
module at the user end. The heart rate is the main input for the detection of health parameters, while
the bike safety system depends upon readings from an accelerometer. These two systems work in
synchronization, and the collected data is sent to an android app where the user can monitor the health
parameters and bike lock status. A comprehensive system of tracking human fitness is proposed that is
aimed at the recognition of physical activity like running, walking, and resting [94]. The architecture
is divided into three layers, a BSN layer that contains the sensors. The BSN is connected to the
processing block, the cloudassisted layer that is implemented using Matlab, and an IoT analytics tool
called ThingSpeak. The analyzed data is accessible to the user via the third layer, an application for
PC and mobile. A mobile phone acts as a gateway between the BSN and the Cloud Assisted layer.”
3. vasanza
Referencia:
Qadri, Y. A., Nauman, A., Zikria, Y. B., Vasilakos, A. V., & Kim, S. W. (2020). The Future of Healthcare
Internet of Things: A Survey of Emerging Technologies. IEEE Communications Surveys & Tutorials,
22(2), 1121-1167.
Se pide: Dibujar el Data Flow Diagram (DFD) de cada uno de los componentes del
sistema (Sport Band, Smarthphone, Gateway, Server), incluir las entidades
externas, procesos que usted considere necesarios en cada sistema embebido,
almacenamiento y flujo de datos.
Su respuesta: