The Electronic Badge System Chia-yang Hung Frans Faizal Man Hing Wong
Electronic Badge System Badge DoorModule
Overview Door Module Request + DoorID DoorID + BadgeID AUTH sensor Badge
Requirements
XS40 RF FPGA 8051 AUTH INIT ECHO BADGEID REQUEST BUSY IE0 RS232 (sonar) XS40 DoorModule
Detecting User Requesting ID Checking ID Detected user within a specified range Time out in ID request ID received Done Checking State Diagram of the DoorModule
How to find distance? Diff distance
Detecting User: Sonar_Task SEND_INIT INIT = 1 WAIT_ECHO distance++ start RESET INIT = 0 distance = 0 distance > MAX RF_TASK ECHO
Protocol Board Data Board Same for Both the DoorModule and the Badge: 8051 RS 232 Virtual Wire Dev. Kit RF Hardware
Protocol Board requires: TO/FROMPacket #Packet SizeData Bytes We add: REQUEST RESPONSEBadgeID Request from Door Response from Badge RF Message Formats
8051 XS40 RS232 RF 8051 Micro-controller RS232 Badge
FPGA (DoorModule) 8051 (DoorModule) Request + DoorID DoorID + BadgeID Request + BadgeID Check BadgeID Sonar INIT ECHO Time Time Line
AUTHNOT_AUTH !REQUEST REQUEST and CHECKED !REQUEST or !CHECKED REQUEST CHECKED = 1 if BadgeID exists in the database. Checking ID: FPGA_Task
Schematic 8051FPGA
Timing Diagram FPGA CLK BadgeID REQUEST BUSY AUTH µC Interrupt
Parts PartManufacturerQuantityPart Number FPGA BoardXilinx1XS Micro-controllerAtmel1AT89C55-33PC Virtual Wire Development KitRF Monolithics1DR1004-DK Sonar Ranging KitPolaroid1R RS-232 TransceiverDallas Semiconductor2DS K Resistor -1-
Trade-offs and Issues RF instead of IR: –No aiming But problem from using RF: –Range of RF is long –Signals from a badge far away can be heard by other doors
Summary Hand-free. Security checking preserved. Design of the DoorModule and the Badge. –Sonar detects user intention. –RF exchanges user information. –FPGA does the checking. Design issues. Coming soon. –More detail in final design presentation…
Design Issue 1: One Badge and Two Doors Door 1 Door 2 BadgeID 3 feet Door Module Question: Should Door1 or Door2 read the BadgeID? Solution: DoorID + BadgeID in reply packet.
Design Issue 2: One Badge and Two Doors (cont’) Door 1Door 2 Request 3 feet Door Module Question: Which request should the badge read?