查看: 1781|回复: 3
|
简单保安系统 (simple security system)
[复制链接]
|
|
分享一下我做过的project.这个是我的assignment.懒惰翻译。 有谁的空可以帮忙翻译一下。 谢谢!
迟一点再post block diagram和schematics上来。
In this project, the students are required to produce the hardware and software for a basic security system from the given specifications. This project will enable the students to investigate the following topics:
q User interface designs using keys and LCD
q Basic microcontroller and PC interface via RS232 and HyperTerminal program
q Embedded software design with emphasis on concurrency
The block diagram of the system is as shown in Figure 1. The microcontroller can be any variants of 8051. The microcontroller is connected to the PC through the RS232 serial interface. The LCD is the usual 2 lines alphanumeric type. The keys can be made from tact switches or a 4x4 keypad. The 2 LEDs are used to indicate the access status.
The basic specifications of the system are adapted from one of the laboratory of Prof. Bruce Land’s course (ECE476 Cornell). The specifications for the system are as follows:
- When the system is idle, the LCD will display the time (since midnight).
- Wait for user to enter a 2-digit user identification number (ID) using the keys. The ID will be displayed on the LCD.
- Once the ID is entered, wait for the user to enter a 4-digit security code using the keys. The code will be shown on the LCD as “*”. The number of “*” indicates the number of digits that have been entered.
- Once the 4th digit is entered:
- LED 0 will light up for 1 second if the code is authorized.
- LED 1 will light up for 1 second if the code is unauthorized.
- The code and current time are sent to the “HyperTerminal” program running on the PC with additional indicator to indicate if the code is unauthorized.
- If the same user has made 3 consecutive tries with unauthorized code, lock out the user for 1 minute.
- Optional:
- allow the user input to time-out if no key press is detected after some time.
- update the time display on the LCD while the user is keying in the ID or code.
- A user (security manager) on the PC running the HyperTerminal program will be able to do the following:
- Add new user and security code.
- Delete an existing user and the associated security code.
- Lists all existing users and security codes.
- Force an unlock
- Force a lock
- Set the time
- The only software on the PC to interact with the microcontroller is HyperTerminal.
- The time keeping, LCD update, user keys entry and security manager interactions must be concurrent. As an example, the time must be updated even when the user is keying in the ID or code or when the security manager is accessing the microcontroller; Likewise, the keys entry must be working even when the security manager is accessing the microcontroller. Long process will have to be broken down to several sub-states in order to achieve this objective。
|
|
|
|
|
|
|
|
发表于 16-5-2007 09:55 AM
|
显示全部楼层
回复 #1 fritlizt 的帖子
哇!很有看头的一个设计哦!我想问下,你是用“前,后台系统”或是有“操作系统”代劳? |
|
|
|
|
|
|
|
发表于 21-5-2007 02:54 PM
|
显示全部楼层
如果security manager可以马上在keypad+LCD:
Add new user and security code.
Delete an existing user and the associated security code.
Lists all existing users and security codes.
Force an unlock
Force a lock
Set the time
这是我几年前的大学的assigment,无需用timer,只用interrupt。给你的一个挑战。。。 |
|
|
|
|
|
|
|
楼主 |
发表于 22-5-2007 06:16 AM
|
显示全部楼层
原帖由 richloo 于 21-5-2007 02:54 PM 发表
如果security manager可以马上在keypad+LCD:
Add new user and security code.
Delete an existing user and the associated security code.
Lists all existing users and security codes.
Force an unloc ...
timer interrupt也不可以用??
这样要怎样soft real time clock?
单单要用keypad set timer, lock system, unlock system,delete 等也不是很难.避免有infinite loop就可以了。
这个就比较难---〉Lists all existing users and security codes.我的lcd只是2x16罢了。
现在final exam,比较忙。 过后就upload我的schematics和source code上来分享分享。
source code方面写得很乱。没有去整理。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|