VS-ECG Programming Guide (V1.0)

2.0 HelloWorld

VS-ECG is open source API make users easily to fetch data from 1-lead ECG holter (VSH101) with a USB serial port dongole (VSG101).  You can download the source code from link below

VS-ECG GitHub Source OR, visit https://github.com/juangjl/vs-ecg for more information.

ubuntu 20.04

Before you start, try to install the essential component install.

$ sudo apt-get install build-essential
$ sudo apt-get install git
$ sudo apt-get install libgtk-3-dev
$ sudo apt-get install bluez bluetooth libbluetooth-dev

Type the instruction in the terminal to download the VS-ECG  code from the github repository.

$ git clone https://github.com/juangjl/vs-ecg.git

After clone the source code in your local folder you can try to enter the first example “HelloWorld” 

Type “make clean” to clean the previous build

$ make clean

make all to start the code build

./script/run.sh will execute the program and it will show “Hello World” and the local time for you. Once Hello World shows, it means you have a correct compile and link environment is for VS-ECG.

$ make all

This example is used to check if you have a compatible compile and link enviroment of VS-ECG. Next example will show how to communicate with VS Dnogle.