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

Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone

Jan 14, 2016

Download

Documents

Rock Shok

Bluetooth-Anbindung medizinischer Sensoren an ein Smartphone. Projektwoche 2010, Projekt Nr.110. Projektleitung: Prof. Dr.-Ing. Ralf Tönjes Daniel Kümper, M.Sc. Gliederung. Einleitung Bluetooth Protokollanalyse / Paketsniffer Abfrage mit Android Abfrage mit C / Linux. - PowerPoint PPT Presentation
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: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

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: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

221.04.23

Gliederung

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

Page 3: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Automatisierte Sensorkonfigurationund Dokumentation

321.04.23

Page 4: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

BT Kommunikation über Sensorgateway

421.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: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Protokoll Abstraktion

521.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: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

621.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: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Anforderungen

721.04.23

Page 8: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Bluetooth

821.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: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Bluetooth Protokolle

921.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: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Bluetooth Sicherheit

1021.04.23

Page 11: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1121.04.23

Mitschneiden von Bluetoothübertragungen

Page 12: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1221.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: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1321.04.23

Page 14: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1421.04.23

Page 15: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Protokollanalyse / Paketsniffer

1521.04.23

Page 16: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Abfrage mit Android

Problematik

Einrichten der Entwicklungsumgebung

Bluetooth und seine Probleme

Die „fertige“ Anwendung

1621.04.23

Page 17: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Problematik

1721.04.23

BodyTel

SiDiary

Server

Konfiguration

Messwerte

Page 18: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

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

1821.04.23

Page 19: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

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

1921.04.23

Page 20: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

Fachhochschule Osnabrück

University of Applied Sciences

Die „fertige“ Anwendung

2021.04.23

Page 21: Bluetooth-Anbindung medizinischer  Sensoren an ein Smartphone

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