Giter Site home page Giter Site logo

seanyxwang / ble-client-windows Goto Github PK

View Code? Open in Web Editor NEW

This project forked from empatica/ble-client-windows

0.0 1.0 0.0 9 KB

This repo contains a simple client for sending commands and receive data from an Empatica E4 using Empatica BLE Server

C# 100.00%

ble-client-windows's Introduction

Sample client for Empatica BLE Server

Introduction

Empatica BLE Server is a Windows application that can connect to multiple Empatica E4 devices using Bluetooth and stream data to local endpoint using multiple socket connections.

In order to get Empatica BLE Server, please contact us at mailto:[email protected]

Setup

  • Clone/download this repository

  • Open it and, if needed, check the address and port where your istance of EmpaticaBLEServer is running. You can change it by editing these constants in "AsynchronousClient.cs" file

    private const string ServerAddress = "127.0.0.1";
    private const int ServerPort = 28000;
    
  • Run EmpaticaBLEClient

Start the client

  • Check that EmpaticaBLEServer is running (Start button pressed)

  • Press ENTER and you should see a confirmation message

      Socket connected to 127.0.0.1:280000
    
  • You can start to sending commands

Connect to a device and receive data

Protocol example

In these code snippets, the first row is the sent commands, the second one an example of received data

device_list
R device_list 2 | 9ff167 Empatica_E4 available | 740163 Empatica_E4 available

device_connect 9ff167
R device_connect OK

device_subscribe bvp ON
R device_subscribe bvp OK

device_subscribe gsr ON
R device_subscribe gsr OK

After each subscription, you'll start to receive data in real time:

E4_Bvp 123345627891.123 31.128

When you want to stop receiving data, simply disconnect the device or send

device_disconnect
device_disconnect OK

System requirements

The application can be run on Windows 7, 8 or 10 desktop computers.

If you need any additional information about the Empatica BLE Server for Windows, please check the official documentation.

ble-client-windows's People

Contributors

faustoempatica avatar alecha avatar hamal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.