t he w atcher 중간 결과 보고

15
The Watcher 중중 중중 중중 200500109 중중중 200700860 중중중 200802627 중중중 1

Upload: cheveyo-gimenez

Post on 30-Dec-2015

38 views

Category:

Documents


5 download

DESCRIPTION

T he W atcher 중간 결과 보고. 200500109 고동현 200700860 김진호 200802627 이정윤. The Watcher System Architecture. Registration / Request. Registration / Send user’s info. The Watcher Server. Guardian. Data. User ID + data. Google Push Server. Data. The user. Emergency. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: T he  W atcher  중간 결과 보고

1

The Watcher 중간 결과 보고

200500109 고동현200700860 김진호200802627 이정윤

Page 2: T he  W atcher  중간 결과 보고

2

The Watcher System Architecture

Hankuk University of Foreign StudiesInformation & Communications Engineering

GooglePushServer

The Watcher Server

Registration /Send user’s info.

User ID + data

Registration /Request

Data

The user

Guardian

Data

Emergency

Page 3: T he  W atcher  중간 결과 보고

3

The Watcher Data Sequence Dia-gram

PHP / Apache

Server

HBE-Zigbex-II kitBIO opt module

Android Smartphon

e

MySQL DB

Google Push Server

Watcher

AndroidSmartphone

사용자 정보 등록 / 확인 보호자 정보 등록 / 확인

맥박 정보 전송

위치 정보 전송

비정상 맥박 전송

사용자 정보 Push 사용자 정보 Push

주기적으로 반복

긴급 메시지 전송긴급 메시지 Push

Emergency

Facility

긴급 메시지 Push긴급 메시지 재전송지속적인 비정상 맥박 전송

비상상황 발생

사용자 위치 정보 요청

위치 정보 전송 위치 정보 Push

User

Hankuk University of Foreign StudiesInformation & Communications Engineering

Page 4: T he  W atcher  중간 결과 보고

4

Hankuk University of Foreign StudiesInformation & Communications Engineering

The Watcher Database Schema

idbeatDatapeakCount

BeatInfoidnametelephoneaddresslocation

UserInfoidnametelephoneaddress

WatcherInfo

nametelephonelocation

EmergencyFacility

11 1 1

guardianattach

1

*near location

Page 5: T he  W atcher  중간 결과 보고

5

Hankuk University of Foreign StudiesInformation & Communications Engineering

심전도 측정 상세설명

파의 형태 형태별 설명

P 파 심방파 ( 심방의 탈분극 )

PQ 파 심방의 재분극

QRS 심실의 탈분극

ST 파 재분극시 Na 의 유입으로 전위가 떨어지는 시기

T 파 심실의 재분극

* 분극 : 전해시 생성되는 물질 때문에 극이되는 것 * 재분극 : 막전위가 휴식전위로 회복되는 것 * 탈분극 : 외부막에 대해 생긴 내부 막의 음 (-) 분극

Page 6: T he  W atcher  중간 결과 보고

6

Hankuk University of Foreign StudiesInformation & Communications Engineering

심전도로 판단할 수 있는 이상징후

이상징후 이상징후에 대한 파의 형태

동방결절곡선이 서서히 상승한다 . 탈분극이 서서히 진행하고 정점이 둥글게 된다 .

방실결절동방결정의 곡선과 비슷하지만 탈분극이 더 빠르게 일어난다 .

부정맥평상시 규칙적인 박동수와 다르게 불규칙적으로 뛰게 된다 . P 파 형태의 이상이 보인다 .

각종 폐질환우심방의 비대 및 확장으로 P 파가 뾰족하게 나타나는 경우

심근경색비정상적 T 파 , 비정상 ST 파의 분절 , 비정상적인 Q 파

Page 7: T he  W atcher  중간 결과 보고

7

Hankuk University of Foreign StudiesInformation & Communications Engineering

부정맥 / 심근경색 이상징후

부정맥

심근경색

Page 8: T he  W atcher  중간 결과 보고

8

Hankuk University of Foreign StudiesInformation & Communications Engineering

Bio Module 측정법

Wire RA LA RL

MCX of BIO Hu-man body

R-ARM L-ARM R-Leg

P1 P2 P3

R-Leg

L-ARM

R-ARM

Page 9: T he  W atcher  중간 결과 보고

9

Hankuk University of Foreign StudiesInformation & Communications Engineering

BeatDeviceP.nc

BeatP.nc

BeatSensorC.nc

BeatC.nc

OscilloscopeAppC.nc

AMSenderC.nc

AMReceiverC.nc

ActiveMessageC.nc

AdcReadClientC.nc

ZigbexBusC.ncMainC.nc

TimerMilliC.nc

LedsC.nc

OscilloscopeC.nc

Radio Transfer Components

Node Process Components

Heart Beat Sensor Components

Bio Module Program

Page 10: T he  W atcher  중간 결과 보고

10

Hankuk University of Foreign StudiesInformation & Communications Engineering

The Testing of Bio Module

Page 11: T he  W atcher  중간 결과 보고

11

Hankuk University of Foreign StudiesInformation & Communications Engineering

Packet Structure

version: mote’s versiondefalut interval: 15 msid: Node Id [0 ~ 255]count: count sending packetreading: sended & receiveed data when interval is fired

head (7E)

data

destination

source

length

type

CRC

group

4 bytes

tail(7E)

Zigbex-II SerialTransfer Packet

version

interval

id

count

reading[0]

reading[1]

reading[10]

4 bytes

BIO ModuleData Packet

Page 12: T he  W atcher  중간 결과 보고

12

Hankuk University of Foreign StudiesInformation & Communications Engineering

The Watcher Algorithm of Peak Count

peak[0]

peak[1]

peak[11]

peak[2]

peak[3]

peak[4]

peak[5]

For count peak value, using Circle Queue

1. Within 5 sec, count peak.2. Initially, fill all queues with peak[0]’s value.3. After that, within next 5 sec, count peak and fill

an circle queue.4. Repeat 3 continuously.

1.

3.

peakCount = Σpeak[i]

peak pendingthreshold

peak over pending threshold

Page 13: T he  W atcher  중간 결과 보고

13

Hankuk University of Foreign StudiesInformation & Communications Engineering

The Setting of Application Server

- http://code.google.com/intl/ko-KR/android/c2dm/signup.html 로 부터 Google C2DM 인증키를 받을 수 있다 .

- C2DM 은 서드파티 서버가 간단한 메세지를 자신들의 어플리케이션으로 전달하는 것을 허용 한다 .- 어플리케이션은 적절하게 브로드캐스트 리시버와 Permission 을 설정해야 한다 .

Field Description

registration_id User_id 로 부터 읽은 어플리케이션 Id 를 C2DM 으로 전송

collapse_key User 가 오프라인일 때 몰려온 메시지가 온라인으로 상태로 변했을 때 몰려오는 것을 방지하기 위해 setting.

delay_while_idle

사용자의 기기가 idle 상태에서 active 상태가 될 때 까지 메시지를 보내지 않고 기다린다 .

Authorization: GoogleLogin

auth=[AUTH_TOKEN]

구글 서비스에 접근하기 위해 필요한 토큰으로 어플리케이션 서버에서 생성하여 사용한다 .

Page 14: T he  W atcher  중간 결과 보고

14

Hankuk University of Foreign StudiesInformation & Communications Engineering

향후 진행 계획

1. C2DM 서버와 연동하기 위한 인증 key 발급

2. php 를 이용한 Application Server 구축

3. Application 시스템 구성 보완

Page 15: T he  W atcher  중간 결과 보고

15

Hankuk University of Foreign StudiesInformation & Communications Engineering

- End -