佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1782|回复: 3

简单保安系统 (simple security system)

[复制链接]
发表于 16-5-2007 01:46 AM | 显示全部楼层 |阅读模式
分享一下我做过的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。
回复

使用道具 举报


ADVERTISEMENT

发表于 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方面写得很乱。没有去整理。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 24-12-2024 03:04 AM , Processed in 0.160461 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表