Docstoc

CDR

Document Sample
CDR Powered By Docstoc
					                                    Spring – Summer 2002
                                        Senior Design
                                          Group 12

                        Anissa Lomax                        Loren Stroup
                        Josh Broline                        Bryan Herde


Project partly sponsored by the University of Central Florida College of Engineering and Computer Science
            Overview
•   Introduction
•   Software Components
•   Hardware Components
•   Mechanical Components
•   Administration Content
•   Summary & Conclusion
Description & Objective
• KeyGuard Series
   –   Automated system for key authorization
   –   System uses smart card technology
   –   Smart Card holds user & key authorization info
   –   Lessens hassle of keeping handwritten key logs


• KeyGuard III Motivation
   – Improve the system from KeyGuard II
      • Cheaper
      • Manufacturable
      • Lighter
      • Improve Design (Generic)
Block Diagram
Software Components
     Interfacing
Software Block Diagram
       Software Specs
• Operating System: MS Windows 98

• Main (Host) Program: Java Application
  – Personal Preference


• API’s (Application Programming Interface)
  C++
  – Better interface with external ports (Readily
    available commands)
  – JNI: Java Native Interface
  – DLL: Dynamic Link Libraries
 Smart Card Interfacing
• Unidirectional serial channel

• PC/SC API (Personal Computer/Smart
  Card)
  – MSDN (Microsoft Developer’s Network)
  – Standard Commands for Smart Card
    Interfacing

• Program will have to:
  – Communicate with Reader
  – Verify Card Authenticity
  – Read/Write to Card
   SCard Code Snippet
lReturn =
SCardEstablishContext(SCARD_SCOPE_USER, NULL, NU
LL, &hSC);

lReturn =
SCardListReaders(hSC, NULL, (LPTSTR)&pmszReaders,
&cch );

lReturn = SCardConnect(hSC,"TOWITOKO CHIPDRIVE
0",SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0 |
SCARD_PROTOCOL_T1,&hCardHandle,&dwAP
);

lReturn = SCardReleaseContext(hSC);
Control Board Interfacing
• Parallel Port

• Program:
  – Send signal to 3:8 Decoder authorizing key
    checkout
  – Receives signal from Multiplexer to verify if
    keys are in locks
                  Port Pins
Register Signal Name   DB-25 Bit   I/O Pin        Direction

Strobe (-)             C0                     1   Output
Data Bit 0 (+)         D0                     2   Output
Data Bit 1 (+)         D1                     3   Output
Data Bit 2 (+)         D2                     4   Output
Data Bit 3 (+)         D3                     5   Output
Data Bit 4 (+)         D4                     6   Output
Data Bit 5 (+)         D5                     7   Output
Data Bit 6 (+)         D6                     8   Output
Data Bit 7 (+)         D7                     9   Output
Acknowledge (-)        S7                    10   Input
Busy (+)               S6                    11   Input
Paper End (+)          S5                    12   Input
Select In (+)          S4                    13   Input
Auto Feed (-)          C1                    14   Output
Error (-)              S3                    15   Input
Initialize (-)         C2                    16   Output
Select (-)             C3                    17   Output
Ground                             18-25
 Problems & Challenges

• Board has not yet been built
  – Still some designing to do with address
    lines to keys


• Smart Card Commands
  – Specify Smart Card to be used and get
    commands
Software Components
     Main Program
      Main Program Specs
• Why JAVA?
  –   More user-friendly components
  –   More security options
  –   Easier to program than C++
  –   Overall presentation looks better


• Stand Alone Application
  – Will open whenever system is on
  – Only administrator will have option to close
    program
  – There will be a General User Part and System
    Administrator Part
  JAVA Software Design
• Every action represents a class in JAVA
  – Making a reservation, checking out a key, etc…
  – Selection of GUI button invokes the desired
    action


• Every class defines a new GUI
  – Performs the duties that the user desires
  – Controls the user’s interactions with
    KeyGuardIII
              Pseudo Code Snippet
Class Secure {
        Smart Card(); //Reads smart card data
        actionPerformed(ActionEvent e) { //Listens for buttons in GUI and
                                          records user’s PIN code};
        WHEN button “ENTER” is selected {
           //System uses smart card data to retrieve PIN code from user’s file
kept         locally with JAVA’s FileInputStream method
           IF username is not found { //Alert user that username doesn’t exist
}
           //System compares user’s PIN code kept on file with the PIN code
                      entered by user
           IF PIN codes match up AND the username is NOT the administrator
{
              create an instance of a general user main menu };
           IF PIN codes don’t match { //Clear PIN code entry and start over };
           IF PIN codes match AND the user IS the administrator {
              create an instance of an administrator main menu };
        };
};
UML Activity Diagrams
Reservation GUI Layout
Modify Account GUI Layout
 Problems & Challenges
• Time keeping problems in reservation
  class
  – String vs. Integer representation of dates
  – Limitations on checkout time
• Scope of username
  – Other classes couldn’t “see” username from
    secure class
  – Fixed by giving each class constructor a String
    input parameter
Hardware Components
   Computer System &
    Controller Circuit
            Computer System
• Intel ATX Socket 370 Motherboard
   – Intel 466 MHz Celeron Processor
   – 64 Megabytes of SDRAM


• 1.5 Gig.Western Digital Hard Drive

• 32 Megabyte AGP TV-Out Video
  Card

• PCI fast Ethernet card


                                       Reprinted with permission by Pine
     Computer System (cont.)
• Cirque Easy Cat Touch Pad
   – Cheaper solution than touch
     screen


• 3.5” Floppy Drive
   – For exporting data


• 250 Watt ATX Power Supply
                                       Reprinted with permission by Cirque


   *All parts were selected with
     minimal functionality and price
     in mind
                LCD Screen

• Legacy 5.6” Color LCD

• Built in Speakers

• RCA connection

• Power: 12 V DC



                          Reprinted with permission of Legacy
     Smart Card Reader

• Towitoko Micro 120
  Smart Card Reader

• Interfaces through
  serial port

• Power Supply: Runs
  off of NiMH battery   Reprinted with permission from Towitoko
            Controller Circuit
• 3 to 8 Decoder (2)
   – Used to address key lock
   – Used to address expansion
     port                              A5   A4   A3   A2   A1    A0
                                       0    0    0    0    0     0

• 8 to 1 Multiplexer                   0    0    0    0    0     1

   – Used to indicate a checked        0    0    0    0    1     0
     in/out key                        0    0    0    0    1     1
                                       0    0    0    1    0     0

• 24 V Relays (8)                      0    0    0    1    0     1

   – Used to activate solenoids        0    0    0    1    1     1

                                  Addressing Table for Central Key Locks
Controller Circuit (Cont.)
• 12VDC to 24 VDC Converter
  – Used to step up power supply for relays


• Power Supply:
  – 5 V for logic parts
  – 12 V for DC converter


• 15 pin expansion port connection
                                                  Controller Circuit
              VCC_12VDC                                12V to 24V Converter
                                                         1                    2
                                                               VIN     VOUT
                                                                                                                                    24V Relays
                                                             AD1403A

                                                                                  3:8 Decoder
                            1
 Parallel Port Connection




                            2                                                     1                  15
                            3                                                     2   A         Y0   14
                            4                                                     3   B         Y1   13
                            5                                                         C         Y2   12
                                                                                                Y3
                            6
                            7
                                                                                  6
                                                                                  4   G1        Y4
                                                                                                     11
                                                                                                     10
                                                                                                                                                   To Solenoids
                            8                                                     5   G2A       Y5   9
                            9                                                         G2B       Y6   7
                            10                                                                  Y7
                            11
                            12                                                        74S138
                            13
                            14
                            15
                            16
                            17
                            18                                                                                                      Optical Sensors
                            19
                            20                                                                                                             1        2
                            21
                            22                                                         8:1 Multiplexer                                     1        2
                            23                                                         5                  4
                            24                                                         6    Y        D0   3                                1        2
                            25                                                              Y        D1   2
                                                                                                     D2   1                                1        2
                                                                                                     D3   15
CON25                                                                                                D4   14                               1        2
                                                                                                     D5   13
                                                                                                     D6   12                               1        2
                                                                                                     D7
                                         5
                                         4
                                         6

                                                3
                                                2
                                                1




                                                                                                          11                               1        2
                                                                                                     A    10
                                                      3:8 Decoder
                                          G2B
                                          G2A
                                           G1


                                                  B
                                                  A
                                                  C




                                                                                                     B    9                                1        2
                                                      74S138                                         C
                                                                                                          7
                                                                                                     G
                                        Y7
                                        Y6
                                        Y5
                                        Y4
                                        Y3
                                        Y2
                                        Y1
                                        Y0




                                                                                           74LS151
                                       10
                                       11
                                       12
                                       13
                                       14
                                       15
                                       7
                                       9
                                 15

                                 14

                                 13

                                 12

                                 11

                                 10
                                 8

                                 7

                                 6

                                 5

                                 4

                                 3

                                 2
                                 9
                                 1




                                                                                                          Title
                                                                                                                  <Title>
                                                                                                                            Controller Circuit
                                 P5                              VCC_5VDC                                 Size    Document Number                                     Rev

                                 Expansion Port
                                                                                                             A    <Doc>
                                                                                                                                    By: Joshua Broline                  <Rev Code>

                                                                                                          Date:                                  Sheet   1   of   1
 Problems & Challenges
• Trouble finding a cheap solution to
  interface LCD to Computer
• Solution: Using TV LCD and TV-Out Video
  Card

• Building an expansion port that does not
  access two keys with the same 6 bit
  address on multiple controller
Hardware Components
    Casing & Locking
      Mechanism
            KeyGuard Casing
• Dragon DX-01BD middle tower case with
door

• Lockable swing-out side panel with
handle

• Fits different size motherboards
     - mainly ATX boards

• Lockable front door

• (2) 2x8 cm snap-in fan mounts

• 7 expansion slots
                Cam Locks

• MAG Security
   – Drawer and Cabinet Locks
   – 7/8”
   – 22mm
   – 90 degree or 180 degree
     cams
   – Different locking options
• Position 1 & 2                 Reprinted with permission of Home Depot
                       Solenoids
• Pull-type solenoid w/ spring return

• Designed for 22-26 Vdc
    -works fairly well on 12 Vdc

• Pull force, 3.7 lbs @ 24 Vdc
    -0.77" diameter X 1.82" long
    - 3" long plunger

• 3.4" mounting bracket attached to
body

• Activated – Retrieves Key             Reprinted with permission of allelectronics.com

• Deactivated – Locks Key
           Optical Sensor

• Slotted optical switch
• 0.125" gap between
emitter and sensor
                            Reprinted with permission of allelectronics.com
• Four 6" long wire leads
terminate to 4 pin molex-
type connector
• High – signals
multiplexer & cam in
•Low – cam out
   Problems & Challenges
• Mounting brackets
  – Looking for one that will hold both solenoid
    and camlock


• Choice of Solenoids
  – Trying to keep it as cheap as possible
Administrative Content
     Work Flow Diagram,
       Milestone Chart,
   Expenditures (Budget),
  Status Chart & Conclusion
Work Flow Diagram
Milestone Chart
                       Expenditures
            Products       Key Guard II   Key Guard III

Computer System               $215.00        $189.96


Container (case)              $ 85.00        $ 49.00


Controller Circuit            $ 45.69        $ 40.00


Mechanical Parts              $ 69.92        $ 40.00


LCD                           $ 15.91        $ 85.00


Touch Screen                  $119.46           --


Smart Card Reader             $ 65.00         $69.00


TOTAL                         $615.98        $472.96
Status Chart
Questions???

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:1/2/2013
language:Latin
pages:42