├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── scopes │ └── scope_settings.xml ├── encodings.xml ├── vcs.xml ├── inspectionProfiles │ ├── profiles_settings.xml │ └── Project_Default.xml ├── modules.xml ├── misc.xml ├── gradle.xml └── compiler.xml ├── app ├── .gitignore ├── app-release.apk ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_network_cell.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_network_cell.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_network_cell.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_network_cell.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── layout │ │ │ │ ├── toolbar.xml │ │ │ │ ├── activity_device_scan.xml │ │ │ │ ├── activity_uartdisplay.xml │ │ │ │ └── adapter_scan_result.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ ├── menu_device_scan.xml │ │ │ │ └── menu_uartdisplay.xml │ │ │ └── values-v21 │ │ │ │ └── styles.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── blazingmammothgames │ │ │ │ └── tools │ │ │ │ └── btledatalogger │ │ │ │ ├── BaseActivity.java │ │ │ │ ├── DeviceScanResultsAdapter.java │ │ │ │ ├── LogService.java │ │ │ │ ├── DeviceScanActivity.java │ │ │ │ ├── UARTService.java │ │ │ │ └── UARTDisplayActivity.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── blazingmammothgames │ │ └── tools │ │ └── btledatalogger │ │ └── ApplicationTest.java ├── build.gradle ├── proguard-rules.pro ├── manifest-merger-release-report.txt └── app.iml ├── settings.gradle ├── bt.png ├── icon.png ├── feature.png ├── feature.psd ├── .gitignore ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitattributes ├── README.md ├── BTLEDataLogger.iml ├── gradle.properties ├── LICENSE ├── gradlew.bat └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | BTLEDataLogger -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /bt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/bt.png -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/icon.png -------------------------------------------------------------------------------- /feature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/feature.png -------------------------------------------------------------------------------- /feature.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/feature.psd -------------------------------------------------------------------------------- /app/app-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/app-release.apk -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_network_cell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-hdpi/ic_action_network_cell.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_network_cell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-mdpi/ic_action_network_cell.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_network_cell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-xhdpi/ic_action_network_cell.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_network_cell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamaluik/BTLEDataLogger/master/app/src/main/res/drawable-xxhdpi/ic_action_network_cell.png -------------------------------------------------------------------------------- /.idea/scopes/scope_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 10 15:27:10 PDT 2013 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_device_scan.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_uartdisplay.xml: -------------------------------------------------------------------------------- 1 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BTLEDataLogger 2 | 3 | This is a simple android app for connecting to and logging data sent over Bluetooth Low Energy serial using [Adafruit's BTLE nRF8001 Breakout](https://www.adafruit.com/product/1697). So far only source code for the iOS BTLE app has been published, and none of the apps offer a convenient method for logging data. This is therefore both a sample app for learning how to write your own BTLE apps as well as a tool for performing simple BTLE logging using an Arduino-like device. -------------------------------------------------------------------------------- /app/src/androidTest/java/com/blazingmammothgames/tools/btledatalogger/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.blazingmammothgames.tools.btledatalogger; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | @color/material_blue_grey_800 4 | @color/material_blue_grey_900 5 | 6 | @color/material_deep_teal_200 7 | @color/material_deep_teal_500 8 | 9 | #333333 10 | #80000000 11 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 21 5 | buildToolsVersion "21.1.2" 6 | 7 | defaultConfig { 8 | applicationId "com.blazingmammothgames.tools.btledatalogger" 9 | minSdkVersion 18 10 | targetSdkVersion 21 11 | versionCode 2 12 | versionName "1.0.1" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:appcompat-v7:22.0.0' 25 | } 26 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in C:\Users\mfplab\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /BTLEDataLogger.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | BTLE Data Logger 5 | Settings 6 | Scan for Devices 7 | Scanning... 8 | Connect 9 | BTLE Log 10 | File name: 11 | btle_log.csv 12 | UART Log: 13 | Status: 14 | Start Logging 15 | Stop Logging 16 | Signal strength icon 17 | UART Devices 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/java/com/blazingmammothgames/tools/btledatalogger/BaseActivity.java: -------------------------------------------------------------------------------- 1 | package com.blazingmammothgames.tools.btledatalogger; 2 | 3 | import android.os.Bundle; 4 | import android.support.v7.app.ActionBarActivity; 5 | import android.support.v7.widget.Toolbar; 6 | 7 | public abstract class BaseActivity extends ActionBarActivity { 8 | 9 | private Toolbar toolbar; 10 | 11 | @Override 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | setContentView(getLayoutResource()); 15 | toolbar = (Toolbar) findViewById(R.id.toolbar); 16 | if (toolbar != null) { 17 | setSupportActionBar(toolbar); 18 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 19 | } 20 | } 21 | 22 | protected abstract int getLayoutResource(); 23 | 24 | protected void setActionBarIcon(int iconRes) { 25 | toolbar.setNavigationIcon(iconRes); 26 | } 27 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_device_scan.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 15 | 16 |