Setup and Installation Procedure for Personal Healthcare Test Bed (You can skip step 1-4 if you don't have the health monitor.) 1. Install device driver for the USB-RS232 adapter If the USB-RS232 adapter is used to connect the health monitor to USB port, the device driver needs to be installed; otherwise, this step can be skipped and proceed with RS232 interface. 1) Click sis/materials/USB_RS232_Installer.exe to install the device driver. 2) Restart the system when the installation is finished. 3) When windows is on, connect the adapter to computer and open Control Panel->Administrative Tools->Computer Management console, then click Device Manager to list all devices in the system. Expand ports node in the device tree. If there is a port called "serialio.com USB to Serial Port" and the windows reports it is working properly, then the device driver has been installed successfully. Note: the usb adaptor must be connected to the left usb port of the netbook. If you want to try other 2 usb ports on the right side. You should modify the first line of runInputProcessor.bat script accordingly, the usb port near the back(Right side) is COM4, and the one near the front is COM5. The internet cable should always be plugged in. 2. Find the serial port name 1) Open Control Panel->Administrative Tools->Computer Management console 2) Click "Device Manager" to list all devices in the system 3) Expand ports node in the device tree 4) If the USB-RS232 adapter is used, keep in mind the port name assigned to "serialio.com USB to Serial Port"; otherwise, keep in mind the system serial port name. The port name is like "COM3". This port name will be used later. 3. Install RXTX Java Serial library 1) Go to JRE directory, which by default is C:\Program Files\Java\jre1.6.***. Let's say JRE. 2) Copy sis\lib\RXTXcomm.jar to JRE\lib\ext 3) Copy sis\lib\rxtxParallel.dll and sis\lib\rxtxSerial.dll to JRE\bin 4. Start the health monitor 1) Turn on the health monitor 2) Connect the device to computer by RS232 cable or RS232 cable plus USB-RS232 adapter. 3) Wait for a little while until the monitor screen shows up. 5.Before you start running this PersonalHealthcare2014_v5 program. Make sure you are using the windows OS and have properly installed java runtime, if you haven’t done so please follow the steps in this link: http://docs.oracle.com/goldengate/1212/gg-winux/GDRAD/java.htm and install the Java runtime carefully. 6.After you have install the java runtime, please make sure you have downloaded and unziped the SISv2c.zip file from course web. 7.After unzip the file you'll see a folder called “ConnectPaceTech", please open it then looking for “PersonalHealthcare2014_V5” folder, double click on the “PersonalHealthcare2014_V5” folder. 8.Double click again on the “PersonalHealthcare2014” folder (This would be the main folder which you are going to work with). 9.Use any word editor to open the “initial_0815.bat” file (in my case, I use notepad++). 10.Replace all “cd C:/Users/Xiaoyu/Desktop/ConnectPaceTech/System/SISServer” with “cd ”. When doing all replacements, please be sure to use “\\” or “/” instead of “\” when writing your path (by default windows use “\” which is wrong in our case). And make sure your path don’t contain any space. 11.Replace all “C:\\Users\\Xiaoyu\\Desktop\\ConnectPaceTech\\System\\SISServer” with “”. 12.Replace all “C:/Users/Xiaoyu/Desktop/ConnectPaceTech/ with “”. 13.Save your “initial_0815” file, and double clock on “initializer” folder, then double click again on “src” folder. 14.Use word editor to open “Initializer.java” file. Replace “C:\\Users\\Xiaoyu\\Desktop\\ConnectPaceTech” with “” 15.Save your file, go back to PersonlHealthcare2014 folder. Then go to Components folder, under Components folder double click on BloodPressure folder. Use word editor to open Initializer.java file. Replace “C:\\Users\\Xiaoyu\\Desktop\\ConnectPaceTech\\” with “”. 16.Repeat step 11 for “GUI”, “InputProcessor”, “KinnectSensor”, “SPO2” and “Uploader” folders. 17.Go back to “Components” folder, this time choose “KinnectSensor” folder, use any text editor to open CreateKinnextSensor.java file. Replace all “C:/Users/Xiaoyu/Desktop/ConnectPaceTech/” with < Your own path for personalHealthCare2014> . 18.Go back to “PersonalHealthcare2014” folder, go to “xml” folder then open “InitXML” folder. Under “InitXML” folder. Use any text editor to edit “list_InitXML.txt” file, replace all “C:\Users\Xiaoyu\Desktop\ConnectPaceTech\” with < Your own path for personalHealthCare2014>. 19.Download “TEMPer V24.4.3.zip” file from http://www.pcsensor.com//uploadFile/APPsoftware/TEMPer%20V24.4.3.zip , unzip it. Then double click on the “setup.exe” file to install the TEMPer program. 20.Go back to PersonlHealthcare2014 folder, double click on CreateTemp.java file. Replace “C:\\Users\\Xiaoyu\\Desktop\\Temp\\TempSensor” to “”. 21.Go back to PersonlHealthcare2014 folder double click on initial_0815.bat file. 22.You’re now executing the PersonalHealthcare2014 Project. 23. Start to measure health data 1) Clamp a finger using SPO2 clip, and wrap around the upper arm with the cuff. 2) Press start button on the health monitor 3) Once the measurement is finished, the input processor will receive the data and send to the SIS server, which will forward to the appropriate monitor. If the monitor found any abnormality, it will send the alert to the SIS server. The SIS server will forward the alert to GUI for display, and to DBUploader which will store into the remote database at KSI. 24. Check database 1) Start "SQL Server Management Studio Express" and connect to the remote Chronobot database server. IP is 64.107.76.51, User Name: Chronobot, Password: Chr0n0b0t 2) Expand SIS database, and open SISDB table. Some abnormality alerts should show in the table. 25. Shut down the SIS system 1) Click "Close" button on all components' windows to shut down all the components 2) Click "Close" button to shut down the remote interface 3) Press "Enter" on SIS Server command window to shut it down 4) Turn off the health monitor Appendix: 1. Install Eclipse sis directory is actually an Eclipse Java project, so Eclipse has to be installed in order to get the whole project built. Eclipse IDE for Java Developers can be downloaded from http://eclipse.org/downloads/ 2. Schema info for remote database at KSI USE [SIS] GO /****** Object: Table [dbo].[SISDB] Script Date: 04/23/2010 15:31:25 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[SISDB]( /* auto-increasing record ID */ [id] [int] IDENTITY(1,1) NOT NULL, /* User ID */ [user_id] [nchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* the name of the component generating the alert message */ [COMPONENT] [nchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* Systolic pressure in mmHg */ [SYSTOLIC] [nchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* Diastolic pressure in mmHg */ [DIASTOLIC] [nchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* Mean Arterial Pressure */ [MAP] [nchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* Pulse rate per minute*/ [PULSE] [nchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* percentage of Oxygen Saturation */ [SPO2] [nchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* Electrocardiogram data */ [EKG] [image] NULL, /* Blood sugar measurement */ [BLOODSUGAR] [nchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* Diagnosis notes */ [DIAGNOSIS] [nchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* Suggestions */ [SUGGESTIONS] [nchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, /* Diagnosis date */ [EntryDate] [datetime] NOT NULL CONSTRAINT [DF_SISDB_EntryDate] DEFAULT (getdate()), /* Other notes */ [Note] [nvarchar](2000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]