thehyve/RADAR-AndroidApplication

Name: RADAR-AndroidApplication

Owner: The Hyve

Description: Application to be run on a Raspberry Pi3 to interact with the wearable devices

Forked from: RADAR-CNS/radar-prmt-android

Created: 2016-10-11 09:05:14.0

Updated: 2017-04-05 08:08:11.0

Pushed: 2017-12-14 14:59:06.0

Homepage: null

Size: 2551

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

RADAR-AndroidApplication

Application to be run on an Android 4.4 (or later) device with Bluetooth Low Energy (Bluetooth 4.0 or later), to interact with wearable devices. The app is cloned from the Empatica sample app.

Currently only the Empatica E4 is supported.

Setup Empatica E4

First, request an Empatica API key for your Empatica Connect account from our Developer Area. Also download the Empatica Android SDK there.

Setup Pebble 2

To run this app with a Pebble 2 device, the RADAR-CNS app must be installed on the Pebble 2. For now, install the Pebble SDK on your machine. Go to the pebble2/ directory. There we can use the Pebble command line tools. First, build the app with

le build

Then run the following sequence:

  1. Pair the Pebble 2 with the app on the endpoint.
  2. Disable Bluetooth on the endpoint.
  3. Enable Bluetooth on your phone.
  4. Pair the Pebble 2 with the Pebble app on your phone.
  5. Open the developer menu on the Pebble app on your phone and enable developer mode.
  6. Install the app with pebble install --phone 1.2.3.4 with the IP address stated in the Pebble app on your phone.
  7. Disable Bluetooth on your phone. If desired, remove the pairing with your phone and the Pebble 2 device.
  8. Enable Bluetooth on the endpoint.

The RADAR-CNS Pebble app will now send data to the endpoint.

Usage

To send some mock data to a Confluent Kafka set up on localhost, run ./gradlew :app:cleanTest :app:test. If the Confluent Kafka setup is running elsewhere, edit app/src/test/resources/org/radarcns/kafka/kafka.properties accordingly.

Contributing

To add additional device types to this application, make the following steps (see the org.radarcns.pebble2 package as an example):

Make a pull request once the code is working.

Android Installation

The guide for installing Android on Raspberry Pi3 and UDOO boards is available here


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.