House of the Future: Network/PC ECE 345 Summer 1999 Ari Pernick, Michael Upham, Matthew Hinterscher Group #5 TA: Purvesh Thakker.

Slides:



Advertisements
Similar presentations
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Advertisements

GPSCOMM Critical Design Report Taylor Hughes Andy Merritt Adrian Migacz Adam Preeo.
PLC Selection, Components, and Communication
1 Peripheral Component Interconnect (PCI). 2 PCI based System.
Computer Buses Ref: Burd, Chp – 220 Englander, Chp 7 p
Chapter7. System Organization
System Integration and Performance
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
I/O Systems.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
Chapter 8 Improving the User Interface
Arctic IEC-104 Gateway Jari Lahti, CTO.
The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
In this presentation you will:
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 3: Input/output and co-processors dr.ir. A.C. Verschueren.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Group 4 Rotationally Refreshed Display Patrick Boyd Daniel Hill.
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
Introduction. 2 What Is SmartFlow? SmartFlow is the first application to test QoS and analyze the performance and behavior of the new breed of policy-based.
Wireless Data Acquisition for SAE Car Project by: J.P. Haberkorn & Jon Trainor Advised by: Mr. Steven Gutschlag.
ASPPRATECH.
The 8051 Microcontroller and Embedded Systems
Lecture 27: LM3S9B96 Microcontroller – Inter- Integrated Circuit (I 2 C) Interface.
Computerized Train Control System by: Shawn Lord Christian Thompson.
Device Management. Serial Port Serial Device Serial Device Memory CPU Printer Terminal Modem Mouse etc.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
3/11/2002CSE Input/Output Input/Output Control Datapath Memory Processor Input Output Memory Input Output Network Control Datapath Processor.
Chapter 10 PLC Processors.
Page 1 - © Richard L. Goldman Mainframe Networking ©Richard L. Goldman January 7, 2002.
EE 446 Project Assignment Top Design Sensor Components Pin Assignment and Configuration Completed Physical Setup Project Tasks.
MICROPROCESSOR INPUT/OUTPUT
Interrupts and DMA CSCI The Role of the Operating System in Performing I/O Two main jobs of a computer are: –Processing –Performing I/O manage and.
FINAL MPX DELIVERABLE Due when you schedule your interview and presentation.
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
IP Forwarding.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
Microchip PIC Networks Amrit Bandy, Ben Funk Neil Goldsman.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
CS 8903 Demo Wireless Interface for the Bioloid Robot Chetna Kaur.
A Presentation by: Frank Kuo Nkiruka (Nikky) Chuka-Obah Keith Mayoral 07/28/2006 NESL - Ragobot Wars Click to edit Master title style.
Routing Fundamentals and Subnets Introduction to IT and Communications Technology CE
Home Networking Digital TV based on LnCP Introduction LnCP (Living Network Control Protocol) - Devised by LG Electronics Inc. - Optimized communication.
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
Water Flow GROUP A. Analogue input voltage results: Motor Input voltage( V) pin 12 Analogue input voltage (V) Display number
بسم الله الرحمن الرحيم MEMORY AND I/O.
Ch.12 Communication Systems Valvano’s text Introduction SCI can be used to create a network. Figure 12.1 gives a general visualization. –At lowest.
Chapter Microcontroller
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Final Presentation Smart-Home Smart-Switch using Arduino
LonWorks Introduction Hwayoung Chae.
Introduction to Networks v6.0
Module 12: I/O Systems I/O hardware Application I/O Interface
Instructor Materials Chapter 5: Ethernet
SCADA for Remote Industrial Plant
Programming Boe-Bots (Part 1)
ECE 544 Protocol Design Project 2016
CSCI 315 Operating Systems Design
I/O Systems I/O Hardware Application I/O Interface
Operating System Concepts
13: I/O Systems I/O hardwared Application I/O Interface
COMPUTER PERIPHERALS AND INTERFACES
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Networking and Network Protocols (Part2)
IP Forwarding Relates to Lab 3.
Chapter 13: I/O Systems.
Module 12: I/O Systems I/O hardwared Application I/O Interface
Presentation transcript:

House of the Future: Network/PC ECE 345 Summer 1999 Ari Pernick, Michael Upham, Matthew Hinterscher Group #5 TA: Purvesh Thakker

Introduction zObjective: To create a home automation system which can be easily controlled from any home PC. zMultiple microcontrollers will be used to collect data from sensors throughout the house. They will also be used to control any devices which are attached. zThe microcontrollers communicate with the PC via a multi-drop RS 485 serial bus. This allows for up to 31 microcontrollers in the house at a time.

System Components zMC68HC11 microcontroller yaccepts inputs from sensors, outputs to lights, doors, etc. ycommunicates with computer over RS-485 network zRS-232 to RS-485 converter yallows for longer network runs which are useful in a full-scale operation yallows for multiple devices to communicate on the same network zComputer yrunning Java GUI client and Bus Master

System Layout

Network Adapter Takes RS-232 from serial port and passes it on to RS-485 serial bus. Timer only enables drivers for a single character length at 9600 baud. Otherwise it receives all characters sent. RS 485 Bus Driver Enable RS 485 Driver One Shot Timer RS 232 Driver TTL Serial Data RS 232 To Host Trigger Timer

Microcontrollers zEach microcontroller contains the code for communicating with the PC. zThree microcontrollers connect the sensors to the network. yEach microcontroller contains customized code for the sensors that are attached to it. x1 - Temperature in Fahrenheit from remote group x1 - Manual light switches, light outputs, beam entry sensor x1 - Motion detection and temperature in Celsius

Microcontroller Code Initialize Get sensor and output status Commands in table? Send commands to outputs Communication from PC? ID# match assigned ID? Send and receive packets to and from PC yes no

Memory Table Format Command Table Status Table

Real Time Interrupt zSet Interrupt rate at ms zInterrupt Handler yReads temperature and motion counters and stores values in variables. yThen resets counters to zero to begin next count cycle. yUses a multiplexor to provide multiple inputs to Port C.

ADP Primary Functions Polling - Standard way of communication between PC and Microcontrollers. Commands and status updates are sent each polling cycle. Microcontroller sends a fixed state each time it is polled by the PC. Probing - Every 15 seconds the PC sends a packet with Device ID zero and payload byte also zero. This is identified by the Microcontroller as a probe signal. It then reports back to the PC with a current list of all devices which are currently connected.

ADP - Packet Structure Main Header Device Header Second Device All 8 bit fields beginning with 0 except Address

Bus Master Architecture Serial Handler Serial Handler Bus Master Bus Master Dispatcher Light ADPDevices ADP Bus output timeout control input Input Device Message Input Device Message Input Device Message Input Device Message Input Device Message Java Serial Support Running Thread

ADPDevice Client Architecture Dispatcher Light ADPDevice processADPMessage() generateADPMessage() Device getControlPanel()

Problems Encountered zNoise due to unconnected serial lines was causing corrupt data to appear on the network. The problem was solved by adding resistors to load down open lines. zOn start-up the computer would occasionally find microcontrollers that were not actually present. This problem is corrected by removing devices which timeout over 25 times in ten seconds. zIf a byte was not read properly a microcontroller would stay in a read loop indefinitely. By adding timeouts and transmitting extra zeros this was alleviated. zIt was more time consuming then it should have been to write new device support that was similar to existing devices. The objects and supporting code was rewritten to provide rapid device coding.

Development Cost Analysis Parts for Network Adapter (4) $ ea. Microcontrollers (3) $ ea. Computer (1) $ 2, ea. Labor (5 hrs a day, 5 days a week) Salary ($30 /hr) (x 2.5) (3) $ 7, ea. Grand Total $ 26,540.00

Questions

RS485 RS232 Device