Android - Por que se detiene la recepcion de envios en Aplicacion android?

 
Vista:
sin imagen de perfil

Por que se detiene la recepcion de envios en Aplicacion android?

Publicado por Xavi (1 intervención) el 09/12/2016 19:29:14
Buen día.
Estoy enviando datos que obtengo de un dispositivo ECG con la ayuda de una tarjeta ehealth y un modulo bluetooth wt12 hacia una aplicacion android que se encarga de recibir estos datos.
Los dispositivos que utilizo son estos:
https://www.cooking-hacks.com/documentation/tutorials/ehealth-biometric-sensor-platform-arduino-raspberry-pi-medical
El primer problema que tengo es que los datos se deben de enviar a 1 ms, pero si cargo el programa y trato de establecer conexion con mi aplicacion esta no puede establecer conexion, sin embargo si cambio el delar a 100ms en el codigo de arduino, si puede establecer conexion con mi app pero la onda se distorciona.
El codigo de arduino es el siguiente:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*  
 *  eHealth sensor platform for Arduino and Raspberry from Cooking-hacks.
 *  
 *  Copyright (C) Libelium Comunicaciones Distribuidas S.L. 
 *  http://www.libelium.com 
 *  
 *  This program is free software: you can redistribute it and/or modify 
 *  it under the terms of the GNU General Public License as published by 
 *  the Free Software Foundation, either version 3 of the License, or 
 *  (at your option) any later version. 
 *  a
 *  This program is distributed in the hope that it will be useful, 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License 
 *  along with this program.  If not, see http://www.gnu.org/licenses/. 
 *  
 *  Version:           2.0
 *  Design:            David Gascón 
 *  Implementation:    Luis Martin & Ahmad Saad
 */
 
#include < eHealth.h >
 
// The setup routine runs once when you press reset:
void setup() {
  Serial.begin(115200);
}
 
// The loop routine runs over and over again forever:
void loop() {
 
  float ECG = eHealth.getECG();
 
  Serial.print("ECG value :  ");
  Serial.print(ECG, 2);
  Serial.print(" V");
  Serial.println("");
 
  delay(1);	// wait for a millisecond
}

Hay alguna modificacion que pueda hacer en la configuracion del bluetooth de android para que pueda establecer conexion bluetooth con el arduino aun que este enviando datos a ms?
De antemano muchas gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder