Android Sensor Latency Test

Overview

This app uses the library to visually test the latency of the data acquired from the phone and to record the data in order to analyze the data later. Main screen

Prerequisites

  • Microsoft Visual Studio 2019
  • .NET Core 2.2
  • ADB tools downladed on your PC
  • USB debugging turned on your phone.
  • Newton.JSON (v12.0.2) library for json object deserialization.

Usage

Connect your phone to the PC and run the app (pay attention to prerequisites there). After that start this app.

Latency test

Lay your phone on the stable surface. Press calibrate button and start rotating your phone. The blue stick on the screen rotates according to the rotating of your phone, thus you can notice if there is a discernible lag between rotation of the phone and stick, hence estimate if the latency of sensors is useful for your purposes.

Data recording

After you press the "Start Recording" Button the incoming data is saved to log.txt file in the format of <Sensor type>, <timestamp>, <sensor data values, separator is coma>. For instance: Accelerometer, 8643007751041, -8.954697, 4.404648, 1.233398. When you press "Stop Recording" recording is paused.