Top Banner
Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110 Projektleitung: Prof. Dr.-Ing. Ralf Tönjes Daniel Kümper, M.Sc.
21

Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Apr 05, 2015

Download

Documents

Gitta Lazarus
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone

Projektwoche 2010, Projekt Nr.110

Projektleitung: Prof. Dr.-Ing. Ralf Tönjes Daniel Kümper, M.Sc.

Page 2: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

211.04.23

Gliederung

Einleitung Bluetooth Protokollanalyse / Paketsniffer Abfrage mit Android Abfrage mit C / Linux

Page 3: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Automatisierte Sensorkonfigurationund Dokumentation

311.04.23

Page 4: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

BT Kommunikation über Sensorgateway

411.04.23

Sensor Gateway

•Verbindung durch Sensorgateway, wenn Brustgurt sichtbar

• Permanentes Senden aktueller Daten durch Brustgurt (Frequenz, Batteriestand)

• Nach Messung wird eine Verbindung zum Sensorgateway hergestellt

• Datensatz wird übertragen

• Bei Verbindungsfehlern werden Daten zwischengespeichert

•Bidirektionale Kommunikation

•Übertragung nach Messung

•Konfiguration

Permanente Pulsmessung

Blutdruck

Blutzucker•Wartet nach Messung

auf Anfrage vom Master

Page 5: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Protokoll Abstraktion

511.04.23

Herstellerübergreifend

Herstellerübergreifend

Standard ist in Betriebssystemen integriert

und wird mit ausgeliefert

Für jeden Sensor

Für jeden Sensor

Betriebssystemspezifische Implementation für jeden Sensor in Programmiersprache

Problem: Deployment der Treiber

Page 6: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

611.04.23

IEM device sends ATE0 <CR> <LF>Remote device answers <CR><LF> OK <CR><LF>

IEM device sends AT+CMGS=…with a SMS in PDU

Mode

Remote device should answer <CR><LF>+CMGS:

<CR><LF> if the parsing of theSMS was successful.If there are more measurements stored, The IEM

device will send the nextAT+CMGS… string with next measurements

afterwards.10 Example SMS in PDU mode

Here’s an example of a Stabil-O-Graph:

AT+CMGS=44

Page 7: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Anforderungen

711.04.23

Page 8: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Bluetooth

811.04.23

Universelles Funksystem für drahtlose Ad-hoc-Verbindungen

Verknüpfung von Computer mit Peripherie, tragbaren Geräten, PDAs, Handys

Günstige Einbettung in andere Geräte

Kleine Reichweite (10 m), niedrige Leistungsaufnahme, lizenzfrei im 2,45 GHz-ISM-Band

Sprach-und Datenübertragung, ca. 1 Mbit/s Bruttodatenrate

Frequenzsprungverfahren: Nutzung von 69 Kanälen

Page 9: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Bluetooth Protokolle

911.04.23

Radio

Baseband

Audio

Audio

Logical Link Control and Adaption Protocol (L2CAP)

Link Manager

BNEP PPP

IP

TCP/UDP

NW-Anw. vCal/vCard Telefonie

AT moderncommands

Medizinische Sensoren

Propriätere Serielle Sensor-Protokolle

Verwaltung

SDPCon-trol

OBEX

RFCOMM (serial line interface)

AT: attention sequenceOBEX: object exchangeTCS BIN: telephony control protocol specification – binaryBNEP: Bluetooth network encapsulation protocol

SDP: service discovery protocolRFCOMM: radio frequency comm.

Page 10: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Bluetooth Sicherheit

1011.04.23

Page 11: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1111.04.23

Mitschneiden von Bluetoothübertragungen

Page 12: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1211.04.23

Information zum Sniff-Programm

1.Frontline FTS4BT / Version 10.4.20.22.Erlaubt das Mitschneiden von Datenübertragungen3.Benötigt Bluetooth-Modul4.Darstellung der unterschiedlichen Bluetooth-Layer5.Leichte Bedienung

Page 13: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1311.04.23

Page 14: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1411.04.23

Page 15: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1511.04.23

Page 16: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Abfrage mit Android

Problematik

Einrichten der Entwicklungsumgebung

Bluetooth und seine Probleme

Die „fertige“ Anwendung

1611.04.23

Page 17: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Problematik

1711.04.23

BodyTel

SiDiary

Server

Konfiguration

Messwerte

Page 18: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Einrichten der Entwicklungsumgebung

Software: Eclipse IDE for Java Developers Android ADT Plug-in Android SDK Java SDK

Hardware: T-Mobile G2 Touch HTC Desire

1811.04.23

Page 19: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Bluetooth und seine Probleme

Bluetooth-Unterstützung ab Android 2.0

Ab Android 1.5 über backport-library

Abstürze mit backport-library Nicht voll kompatibel

1911.04.23

Page 20: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Die „fertige“ Anwendung

2011.04.23

Page 21: Fachhochschule Osnabrück University of Applied Sciences Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone Projektwoche 2010, Projekt Nr.110.

Fachhochschule Osnabrück

University of Applied Sciences

Abfrage mit C / Linux

• Bluez ver. 4.78– Linux Stack– Serielle Kommunikation via rfcomm– voreingestelltes Paring – Kommunikation über D-Bus

• C– System unabhängig– Kommunikation mit der Schnittstelle