Labor Vorbesprechung + Theorie Wireless + CAN Labor

Post on 19-Jan-2016

26 views 0 download

Tags:

description

Labor Vorbesprechung + Theorie Wireless + CAN Labor. Dietmar Bruckner. Personal Introduction. Who am I?. Dietmar Bruckner , ICT, TU Vienna Cognitive Automation Group Smart Sensor and Actuator Networks Complex Systems Intelligent Systems Building Automation - PowerPoint PPT Presentation

Transcript of Labor Vorbesprechung + Theorie Wireless + CAN Labor

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36

Labor Vorbesprechung + Theorie Wireless + CAN Labor

Dietmar Bruckner

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36

Personal Introduction

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36

Who am I?

3Dietmar Bruckner

Dietmar Bruckner, ICT, TU Vienna

Cognitive Automation Group Smart Sensor and Actuator Networks Complex Systems Intelligent Systems Building Automation Ambient Assisted Living …

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36

Background

4Dietmar Bruckner

Diploma Study of Electrical Engineering ´99-´04Diploma Thesis: Mobile Plattform zur digitalen Bildbearbeitung für batteriebetriebene Roboter

PhD Study of Technical Sciences ´04-´07PhD Thesis: Probabilistic Models in Building Automation: Recognizing Scenarios with Statistical Methods

Employed at ICT since 01/04

Project manager since 07/07

University Assistant sind 05/09

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36

Research Interest: Automating Human Technical Environments

5Dietmar Bruckner

Complex and complicated sensor and actuator systems

Ambient Assisted Living

Surveillance

Sensor Fusion

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Allgemeine Informationen

6

Wireless Labor von 9.00 – 17.00Uhr

CAN Labor von 9.30 – 17.00Uhr

Anwesenheitspflicht

• Abwesenheit wegen Püfungen vorher melden!

als Abgabe sind am Ende jedes Tages ein paar Fragen zum Labor schriftlich zu beantworten

es gibt keine weitere Abgaben (Laborprotokolle)

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36

Hardware Intro

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

CM-CC2400 Module

9

Chipcon (TI) CC2400 Chip

• 2.4GHz

• 1Mbps

• Rx -86dBm

• Tx 0dBm

Atmel Mega8

• AVR 8-bit RISC

• 16MHz

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

TinyRadio Funkmodul 1

10

MicrocontrollerAtmel ATmega8

8 Bit RISC16 MHz

USB UART ConverterSiLabs CP2102

TransceiverChipcon (TI) CC2400

2.4GHz1Mbps

USB

UART

SPI

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

TinyRadio Funkmodul 2

11

ATMELCC2400

Anpassungsnetzwerk

Antenne

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

CC2400 Block Diagramm

12

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

CC2400 States

13

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner 14

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner 15

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

CAN Hardware

16

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Features

17

MCU: STM32F103RBT6 ARM 32 bit CORTEX M3™ with 128K Bytes Program Flash, 20K Bytes RAM, USB, CAN, x2 I2C, x2 ADC 12 bit, x3 UART, x2 SPI, x3 TIMERS, up to 72Mhz operation

standard JTAG connector with ARM 2x10 pin layout for programming/debugging with ARM-JTAG

USB connector, CAN driver and connector

RS232 driver and connector

UEXT connector which allow different modules to be connected (as MOD-MP3, MOD-NRF24LR, etc)

SD-MMC connector, backup battery connector

RESET button , status LED, power supply LED

on board voltage regulator 3.3V with up to 800mA current single power supply: takes power from USB port or power supply jack

8 Mhz crystal oscillator, 32768 Hz crystal and RTC backup battery connector

extension headers for all uC ports

PCB: FR-4, 1.5 mm (0,062"), soldermask, silkscreen component print

Dimensions: 100 x 90mm (3.94 x 3.5")

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Aufgabenstellungen im Labor

18

Selbstorganisierendes Netzwerk für Roboter

Real-Time Kommunikation

• Jeder Roboter soll in periodischen Abständen jeden anderen seine Sensordaten mitteilen

Entfernen oder hinzufügen von Robotern sollte möglich sein

Die maximale Anzahl der Roboter ist begrenzt

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Unterschiede Drahtlos – Drahtgebunden

19

ST

L

L

H

T

L… LightT… TemperatureH… HumidityS… Sink Node

T H

T

L

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Buszugriffsverfahren

20

TDMA

CSMA

FDMA

CDMA

und Kombinationen davon

. . .

1Mhz

1 2 3 79

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Fehlererkennung

21

Querparität

• VRC = Vertical Redundancy Check

ARQ Verfahren

• Automatic Repeat Request

• Stop-and-wait-ARQ, Go-back-N-ARQ , Selective-repeat-ARQ

Zyklische Blocksicherung

• CRC = Cyclic Redundancy Check

Vorwärtsfehlerkorrektur

• FEC = Forward Error Correction

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Ein Feldbus für Roboterfussball

22

Tormann

Verteidigung

Mittelfeld

Sturm

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Zum überlegen

23

Buszugriffsverfahren

Timing

• Rundenaufteilung

• Beacons, Logon Runden, Daten Runden

Fehlererkennung

Adressierung

Fehlertoleranz

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Vernetzungsstrategien

24

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Vernetzungsstrategien

25

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Vernetzungsstrategien

26

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Vernetzungsstrategien

27

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Vernetzungsstrategien

28

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Timing I

29

m

s1

s2

1ms

t1 t2 t3 t4 t5 t6

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Timing II

30

Statische Konfiguration

Dynamische Konfiguration

LogonBeacon

1 Logonrunde 1 Datenrunde

n DatenrundenDatenBeacon

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Paketformate

31

Type Source Destination Data

Preamble CRC

Microcontroller Paket

Funktransceiver Datenpaket

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Protokoll Stack und Paketformate

32

Type Source DataSPI Paket

Preamble CRC

Type Source Data

DataGUI Eingabe Destination

UART Paket Data

und

UART API LengthData und

RF API und

RF Paket Type SourceDest. DataLength

Dest.

Dest.

Dest.

Dest.

Length

Length

Length

Achtung: Skalierung der Balken stimmt nicht mit der Länge der jeweiligen Datenblöcke überein!

zu implementierendes Protokoll

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Zum Überlegen - Wireless

33

Unterschied drahtgebunden wireless Buszugriffsverfahren (Vor- und Nachteile?) Timing• Rundenaufteilung

• Beacons, Logon Runden, Daten Runden

Fehlertoleranz (Wo liegen die Schwachstellen?) Mögliche Optimierungen Implementierung• verwendete Resourcen

• Ablauf

• Programmstruktur

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36Dietmar Bruckner

Zum Überlegen - CAN

34

Unterschied Message-oriented <-> zeitgesteuert Prioritäten Timing• Rundenaufteilung

• Beacons, Logon Runden, Daten Runden

Fehlertoleranz (Wo liegen die Schwachstellen?) Mögliche Optimierungen Implementierung• verwendete Ressourcen

• Ablauf

• Programmstruktur

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /3635Dietmar Bruckner

Abgabe Überlegungen

“formlos”, schriftlich

als PDF oder TXT

Abgabe und Fragen an bruckner@ict.tuwien.ac.at

Kenndaten

• Namen

• Matrikelnummern

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /36

Viel Erfolg!