Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -8,11 +9,26 @@ 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
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/s<sup>2</sup>. 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
```