From d0e2e5af58e8f903f40c2eb7f93504a9945f1cb1 Mon Sep 17 00:00:00 2001 From: Muhammad Irfanul Haque Date: Wed, 7 Aug 2019 15:33:03 +0600 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e9bf970..133268e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # eSense BLE -## Research on HID devices and there use case at North South University(NSU) +## Research on HID devices and their use case at North South University (NSU) + ### Shell Script for reading IMU Data from the eSense BLE in-ears (PLUG&PLAY) Requirements: @@ -8,7 +9,7 @@ Requirements: - hcitool - gattool -The commandline tools used come pre packaged with installation of linux. Before running the code make sure your bluetooth device agent in detected by the OS. Run `hcitool dev` and `gatttool` form terminal to make sure they are present and bluetooth agent is detected. +The commandline tools used come pre-packaged with installation of linux. Before running the code make sure your bluetooth device agent in detected by the OS. Run `hcitool dev` and `gatttool` from terminal to make sure they are present and bluetooth agent is detected. Run: ```bash @@ -16,3 +17,18 @@ git clone https://github.com/Soumic-Shekhar/eSense-Implementation.git cd /path/to/eSense-Implementation/IMU_Data ./eSense.sh ``` + +### Python Script - Use accelerometer data to imitate HID input devices (mouse and keyboard) + +#### esense_pexpect.py +Takes IMU Data from eSense using gatttool. Converts the raw accelerometer data to m/s2. Maps orientation of head (tilt) to mouse movement. +Logs acceleration in each axis with timestamp. + +External modules used: +- [pexpect](https://pypi.org/project/pexpect/) +- [pynput](https://pypi.org/project/pynput/) + +Run: +```bash +sudo python3 esense_pexpect.py +```