SENDA(Sensor Data Streamer) is an android application to stream real time sensor reading using LSL (Lab Streaming Layer). Along with the sensors it streams real time audio as well. This is a fork from the original author's Git Ali Ayub Khan's SENDA, which contains additional features and support for Samsung phones.
Following sensors are included:
- Accelerometer
- Light
- Proximity
- Gravity
- Linear Acceleration
- Rotation Vector
- Step Count
In order to start with development you need to follow these steps:
- Clone this repository
- Open project with Android Studio
- update Gradle tools to newst version, then update and sync the project
If you get errors related to native, built in functions such as fgetpos and fsetpos in cstdio, this problem arises beacuse of the version of the ndk that you are using. Follow this link https://developer.android.com/ndk/downloads/older_releases.html to download Revision 14b. Now to update the ndk in android studio go to File -> Project Structure -> SDK Location -> Android NDK location and set the path to point at android-ndk-r14b.
Install this application and start streaming data by clicking on Start LSL button. You can record this data on PC using Lab Recoder from https://github.com/sccn/labstreaminglayer/tree/master/Apps/LabRecorder.
In newer Android versions, it might be useful to prevent Android from saving battery power by limiting processing time for the app. Go to Settings -> Battery optimization and disable this feature for the app.
- Android Studio - Android development framework
- LSL - Lab Streaming Layer library
Please feel free to contribute to this project by creating an issue first and then sending a pull request respectively.
- Sarah Blum
- Ali Ayub Khan - AliAyub007
This project is licensed under GNU General Public License License - see the LICENSE.md file for details
liblsl Library: I used this library to develop this application.
You can cite this work in your research using text below:
Ali Ayub Khan. (2018, October 24). AliAyub007/SENDA: New features added (Version 1.0.1). Zenodo. http://doi.org/10.5281/zenodo.1469957