Font Size: a A A

The Design Of Plant Perimeter Alarm System Based On UC/OS-Ⅱ

Posted on:2009-02-02Degree:MasterType:Thesis
Country:ChinaCandidate:Y Y WangFull Text:PDF
GTID:2178360242981443Subject:Circuits and Systems
Abstract/Summary:PDF Full Text Request
A factory is in Ji Lin city, Ji Lin province. It always has someone secretly jumping into the yard to do some thefts because of the factory's large yard. It makes grave property loss and imminently needs a security system to prevent. The factory cries for a guard against theft system which can prevent intrude, alarm in time, photo in time. The system can make better response protect the security of possession of the yard when there are some urgency。The principle of design should be high level, good quality, prefect capability, low price, but it must satisfy the requirement of intelligent. The design of my thesis fully embodies the idea and appeals of user. I also consider the requirement for designing security system and convenience of maintenance, using, management, watching and schedule for users to design a low-price perimeter alarm system.The perimeter alarm system's whole design divides two parts: one is Alarm Detection Monitoring System (ADMS), the other is CCTV Video Surveillance System (CVSS).ADMS includes a Infrared Detector and a Controller, Controller exchanges the message with the Regional Alarm via the Fiber. Regional Alarm exchanges the message with Core Board via RS-232 interface, Core Board can send orders to Controller, Controller also can send the alarm signals of the Infrared Detector to Core Board via Regional Alarm. CVSS is composed of Camera, transmission, controlling, image processing, displaying. The basic functions of CVSS include acquisition, displaying, distribution of video signals and switching control, recording and playback. The camera system is composed of cameras, haeundae and decoder. Video signal transmission is implemented by coaxial cable. 485-bus is the controlling wire of decoder. The CVSS does some jobs like controlling and image processing. TV show is completed by the four television equipments in the wall.Core Board is core of the perimeter alarm system. It completes the following functions: alarm data processing, which includes sending the alarm data to screen to display and sending the data to Matrix Switch in order to achieve the joint action. Alarm data uploading, which sends the data to the control platform in order to follow up processing. Command data downloading, which transmits the control platform's command data to the corresponding Regional Controller.The hardware components for Core Board's hardware design include PHILIPS 89C51RD2 microcontroller, serial and parallel converter 74HC595, RS-232 communication converter MAX232 and analog switches HEF4051B.Software uses real-time, multi-task operating system uC/OS-II. It is an open-source, real-time, multi-tasking operating system. It can be trimmed to facilitate transplantation. In order to facilitate the transplantation, most of uC/OS-II code is written by C language. But still we also use C and assembly language to write for a specific processor-related code. The reason for that is uC/OS-II reads and writes processor registers only through assembly language to achieve. because of C51 microcontroller's eligible, uC/OS-II can transplant and operation in the 51 SCM. uC/OS-II correlates with four major transplant-related files: the compilation file (OS_CPU_A.ASM), C processor-related files (OS_CPU.H, OS_CPU_C.C) and the configuration file (OS_CFG.H). Transplantation uses KeilCx51 compiler and the entire transplantation carries on in KeilCx51 development platform. Keil Cx51 is compiler for C5l Series MCU , version V7.0, which is currently the most efficient, flexible development platform for 89C51. When designing the uC / OS-II, it takes into account the different processors transplantation, thus transplanting uC/OS-II actually needs to amend the little code. uC/OS-II's transplantation for C51 needs to amend 3 files: OS_CPU.H,OS_CPU_C.C,OS_CPU_ASM.ASM. Before calling uC/OS-II's other services, uC/OS-II requires users to call the operating system initialization function OSInit() first. This function is not only responsible for initializing all the variables and data structures of uC/OS-II, but also builds a idle task OSTaskIdle(). The state of the idle task is always in place and its priority is always set as a minimum, to ensure that uC/OS-II system always has one task in operation at least. I have designed the communication protocol for the perimeter alarm system.From May 2007 to March 2008, the system has been installed and debugged in chemical fiber plant in JiuZhan of Jilin City. By March 24, 2008, the entire perimeter alarm system has been completed most of the established functions. The whole system's instability is mainly from the infrared detector. Some erroneous alarm appears in bad weather, for example: snowy days, windy days. But as a whole, the entire system is operated well, state is stability and achieve the set objectives.
Keywords/Search Tags:Perimeter
PDF Full Text Request
Related items