“excalibur” a flexible knx/tp1 node tu wien automation systems group fritz praus 0025854...

12
“Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 [email protected]

Upload: andra-carson

Post on 27-Dec-2015

223 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

“Excalibur”A flexible KNX/TP1 node

TU WienAutomation Systems Group

Fritz Praus0025854

[email protected]

Page 2: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 2

Outline

• Introduction– definition of terms– requirements

• Hardware– components– design

• Software– basic low level routines– various stacks

Page 3: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 3

Definition of Terms

• Building Automation / Building Services– lighting, HVAC– security and access control, safety alarm systems,

elevators, …– (white goods, brown goods)

• Field buses for building automation– exchange of control data– small data amounts– robust

Page 4: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 4

EIB/KNX

• open standard– EN 50090– specification maintained by Konnex Association

• well-established in D-A-CH• decentralized design• Twisted pair medium:

– CSMA with bitwise arbitration at 9600 bit/s– hierachical 3 layer structure possible

• Powerline, radio transmission, …

Page 5: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 5

EIB/KNX Devices and Interfaces

• EIB/KNX devices– sensors, actuators– Router (TP/TP vs. IP tunnelling for high-traffic backbones)– gateways– PC-based (management, visualization)

• EIB/KNX (TP) interfaces– medium connection

• BCU, BIM: Transceiver + Microcontroller (Layer 7)• TP-UART: Transceiver + Layer 2 ASIC

– application module/processor• sensor/actuator module: PEI as free digital/analog I/O• µC/PC: RS232 (BCU/TP-UART), USB, IP

Page 6: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 6

Requirements

• experimental embedded platform (lab use)• universally applicable

– wish list: EIB/KNX, RS232, IP, USB– extensible (i.e. LON, IO pins, ..)

• support high-level way of working – But offer powerful features

• low cost and compact• design openly available

Page 7: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 7

Hardware - Components

• Fujitsu MB90330F 16-bit Microcontroller – 24 MHz, 24Kbyte RAM, 384Kbyte flash memory– 4 UARTS and USB– external bus interface

• Crystal CS8900ACQ3 Ethernet Controller• 2 TP-UARTs• SD/MMC card connection

Page 8: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 8

Hardware – Design

• Schematic

• PCB Layout– Placement– Conductors– Power

Page 9: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 9

Software – Low-Level Drivers

• TP-UART protocol– asynchronous serial communication– normal vs. analog mode (transceiver only)

• CS8900A protocol– ISA bus

• SD card protocol– SPI standard

• USB firmware– slave / mini host

Page 10: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 10

Software – IP Stack

• IP• ICMP (echo)

• UDP• TCP (single)

• ARP• DHCP• SLIP

Page 11: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 11

Software – EIB/KNX

• EIB/KNX Stack– cEMI

• EIBNet/IP– Gateway functionality– Tweety port

Page 12: “Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 fritz@praus.at

TU Wien, Automation Systems Group 12

Thanks for your attention