“Excalibur” A flexible KNX/TP1 node TU Wien Automation Systems Group Fritz Praus 0025854 [email protected]
Dec 27, 2015
“Excalibur”A flexible KNX/TP1 node
TU WienAutomation Systems Group
Fritz Praus0025854
TU Wien, Automation Systems Group 2
Outline
• Introduction– definition of terms– requirements
• Hardware– components– design
• Software– basic low level routines– various stacks
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
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, …
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
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
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
TU Wien, Automation Systems Group 8
Hardware – Design
• Schematic
• PCB Layout– Placement– Conductors– Power
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
TU Wien, Automation Systems Group 10
Software – IP Stack
• IP• ICMP (echo)
• UDP• TCP (single)
• ARP• DHCP• SLIP
TU Wien, Automation Systems Group 11
Software – EIB/KNX
• EIB/KNX Stack– cEMI
• EIBNet/IP– Gateway functionality– Tweety port
TU Wien, Automation Systems Group 12
Thanks for your attention