Set of Android applications (mobile and wear) to stream IMU data from smartwatch to an MQTT broker.
mobile app
- From the git repository download release/mobile-release.apk into your smartphone;
- Tap on the downloaded file and follow on screen instruction to complete the installation.
wearable app
There exist different approaches to install the app into your smartwatch, we describe one of them that requires few external software.
- Download on a Windows PC Android Wear 2.0 APK Installer.exe;
- Download on the same PC release/mobile-release.apk;
- Plug your smartwatch to the PC;
- Run Android Wear 2.0 APK Installer.exe;
- Press the Start ADB server button and whait for the green notification;
- Check that your smartwatch name appears in the ADB Devices tab;
- One the smartwatch is detected, in the control tab press the Batch mode button;
- Press Browse and select the folder were the apk was downloaded, the installation process will start automatically.
NOTE
- On the smartphone the unknown source option, from Menu>Settings>Security, should be enabled;
- On the smartwatch the ADB debugging option, from Menu>Settings>Developer, should be enabled;
- If you experience problem with Android Wear 2.0 APK Installer.exe check your antivirus.
- Using Android Wear app pair your smartwatch to your smartphone;
- Open the app on the smartwatch and press start, IMU data stream will appear on the monitor;
- Open the app on the smartphone press MQTT comunication;
- Insert MQTT broker info, default port is 1883;
- Press start;
- Press pause and resume to pause and resume the communication with the MQTT broker.
NOTE
- If the comunication between the devices does not work, check Google Play services version on the smartwatch. It should be higher then 11.9.51
Alessandro Carfì e-mail: [email protected]