Research on the application of wireless network technology in access control system

Publisher:真诚的友谊Latest update time:2013-11-30 Source: dzsc Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

    1 Introduction

  In recent years, due to the rapid development of wireless networks, the increase in speed and the decrease in prices, many users have begun to use wireless networks. Wireless networks have the characteristics of being able to move freely, access the Internet at any time and being easy to set up. Therefore, they are different from traditional wired connections. They are more convenient. The main wireless communication technologies at present are IEEE802.11, Bluetooth (Bluetoth) and Sensor Network (SensorNetwork). This article provides a wireless access control system WDCS (Wireless Door Control System) that combines wireless Bluetooth technology with IEEE802.11 and Ethernet to control the access control system using local area networks and the Internet respectively, so as to improve the convenience and security of the access control system, and is suitable for today's diverse environments and needs. This system uses two different systems, PDA (Personal Digital Assistant) and PC, as development platforms, and designs three different versions suitable for Bluetooth communication protocol, IEEE802.11 communication protocol and RS232 communication protocol. Combined with the access control system host with single chip as the theme, it develops into a multifunctional wireless terminal remote control access control system, thus achieving security and convenience.

  2 System architecture and its functions

  The wired aspect of WDCS is that the user uses a PDA to make a wireless remote control to control the door opening, and uses WindowsCE, a 32-bit real-time embedded operating system. In terms of wired remote control, a general personal computer is used to control the door opening, and the Windows XP operating system is used as the development platform. A computer is used as the central monitoring center. A monitoring gateway is used to communicate between the central monitoring center and the monitoring point subsystem. Its CPU is an EP7212 chip with an ARM7 architecture, and the Linux used in the general i386 platform is compiled into ARM Linux as its operating system. When the host receives the command issued by the terminal, it transmits the command to the monitoring point subsystem through the Bluetooth communication module. The monitoring point subsystem uses the 8051 chip as the system core, which is used to monitor the environmental voltage changes and transmit the detection information back to the monitoring gateway through the Bluetooth communication module. Then it is transmitted back to the central monitoring center.

  2.1 WDCS Hardware Architecture

  The hardware architecture of the system can be explained from three aspects: the first part is the WD-cs host, the second part is the WDCS server, and the third part is the WDCS client.

  2.1.1 WDCS host hardware architecture

  The hardware architecture of the WDCS host is mainly based on the 8051 single-chip microcomputer as the central controller. In addition, there are peripheral components such as a 4x4 keyboard, LCD display, EEPROM93C46 password memory, relays, etc., which serve as the I/O device and password setting of the WDCS host. When the user enters the user name and password from the 4x4 keyboard, the 8051 executes the instruction and verifies with the EEPROM93C46 whether the information entered by the user is correct, and then controls the action of opening or closing the door through the function of the relay, and transmits the information result to the LCD and the WDCS server.

  AT89C51 is a low-voltage, high-performance CMOS 8-bit microcontroller produced by ATMEL Corporation of the United States. It has 4kB rewritable read-only program memory (FPEROM) and 128B random access data memory (I/O), compatible with the standard MCS51 product instruction system, 32 programmable I/O ports, 2 16-bit timers and counters, 6 interrupt sources, and programmable serial UART channels. Table 1 shows the connection of the WDCS host to each external port of 89C51. In the 4x4 keyboard, the principle is to use the fixed output of the column and the voltage value read in the row as the key value of the key. For example, when a key is triggered, the corresponding row and column will be turned on, and the fixed end of the column will output a low potential, and then the voltage value of the row will be read back. The voltage value of the row is low, indicating that the key is pressed. The decoding formula is key value = column × 4 + row. Table 2 shows the input pins and corresponding positions of the 4x4 keyboard. In EEPPROM93C46, the password is stored and can still be recorded after the power is off.

  2.1.2 WDCS Server Hardware Architecture

  The hardware equipment of WDCS server can be completed by using a general PC or Notebook. The operating system should be Windows version. It must have two hardware devices, Bhetootll and mEE802.11.


  2.1.3 WDCS Client Hardware Architecture

  The hardware requirements for the WDCS client (remote control) can be divided into two types, one is to use a PDA, and the other is a PC or Notebook. It can not only be used using a wired network, but also using wireless network communication technologies such as Bluetooth and local area networks as a connection. Therefore, one of the hardware devices such as Bluetooth Module and Wireless LAN Card is required.

  2.2 Introduction to WDCS software architecture

  The software architecture of WDCS will also be divided into three parts. The first part is the main architecture of WDCS host, the second part is the control architecture of WDCS server and WDCS host. The third part is the communication architecture of WDCS server and WDCS client. Assembly language is used as the development language for developing the main architecture of WDCS host. The flow chart is as follows.


  Figure 1 Main program flow chart of WDCS host The basic structure of WDCS is divided into four steps. The first step is the basic system operation, including system environment and initial value setting. The second step is the timer interrupt. Responsible for sending or receiving information. The third step is to determine whether the input and output information is correct. The fourth step is responsible for the door opening action. [page]

  In terms of input, the system provides a 4x4 keyboard as an input device, including 9 numeric keys, 2 arrow keys, and 3 function keys. Users can use these keys to select function forms. As well as input and modify user names and passwords, and control the relay to open and close the door, thereby achieving the purpose of access control. As shown in Figure 2, the WDCS host provides five function options: The main function of Keyboard is to allow users to enter passwords through the terminal keyboard or the local keyboard. First, use the arrow keys to select Keyboard and press the Enter key. Enter the UserName and Password. If the input is correct, the door will open and send the information back to the LCD display and the WDCS server. If the input is wrong, the system will ask you to re-enter. The CardReader function allows users to enter passwords through the card reader. First, use the arrow keys to select CardReader and press the Enter key. Enter the UserName and Card. If the input is correct, the access control will open. And send messages back to the LCD display and the WDCS server. If the input is wrong, the system will ask you to re-enter and swipe the card again. The SetUserP/W (Password) function is to modify the password used. First, use the arrow keys to select SetUserP/W and press Enter. Enter UserName. If it is correct, continue to enter NewUserP/W and re-enter NewUserP/W to confirm it. If the input is correct, the new password is successfully changed and the information is sent back to the LCD display and WDCS server. If the input is wrong, the system will ask you to re-enter UserName and SetNewUserP. The SetCardNo. function allows the user to set a new card number. First, use the arrow keys to select SetCardNo. and press Enter. Enter UserName. If it is correct, continue to enter NewCardNo. and confirm NewCardNo. once after swiping. If the swipe or swipe is wrong, the system will ask you to re-enter UserName and re-SetCardNo. Finally, the SetUserName function is to set the user's name. First, use the arrow keys to select SetUserName and press Enter. Enter UserName. If it is correct, continue to set NewUserName and re-enter NewUserName to confirm it. If the input is correct, NewUserName is successfully set and the information is sent back to the LCD display and WDCS server. If the input is incorrect, the system will ask you to re-enter UserName and SetNewUserName respectively.


  Figure 2 Five functions provided by the WDCS host The second part is the control structure of the WDCS server and the WDCS host. First, start the WDCS host. Then the WDCS server starts the installed server version program. And start the RS232 port to connect to WDCS, you can issue commands and enter UserName and UserPassword. The WDCS host will return a successful login or error message to the WDCS server.

  The third part is the communication architecture between the WDCS server and the WDCS client. Start the installed server program on the WDCS server. Start the R232 communication port and the Winsock server. Wait for the WDCS client to connect. The client must specify the server IP location or server name and server port number. Only then can it connect to the server and issue commands and enter UserName and UserPassword. The WDCS host will return successful login or error information to the WDCS server.

  3. System integration and testing

  The system integration and testing is divided into three steps. The first step is the connection between the WDCS server and the WDCS host, the second step is the connection between the WDCS client and the WDCS server, and the third step is to integrate and test the above two systems.

  3.1 First Step

  First, in order to test the effect of WDCS server and WDCS host, use a laptop as WDCS server and install WDCS server Windows version program, use the USB port on the laptop, and use R232 communication technology as the connection between the two devices. Because there is no COMEl on this laptop, a USB to R232 cable is used to convert the USB port into a 9PinCOM port and connect to the UARTPort of the WDCS host. When the two devices are ready, start the program on the WDCS server and open the communication port of the program.

  3.2 Second Step

  WDCS server and WDCS client To test the effect of this part: Use two laptops as WDCS server and WDCS PC client, and install the WDCS server Windows version program and the WDCS PC client Windows version program, and install Bluetooth Dongol and Wireless IEEE 802.1lb network card on the WDCS server. On the WDCS PC client, install the Wireless IEEE 802.1lb network card or network cable, and use two PDAs as WDCS clients to install the WDCS client Windows CE version program respectively, and start the Bluetooth module on one of them and install the Wireless IEEE 802.1lb network card on the other PDA. First, install Bluetooth Dongol, Wireless IEEE 802.1lb network card, WDCS server Windows version program on the WDCS server, and start Microsoft ActiveSynczTool, and at the same time open the access control system program on the WDCS server, set the Local Port, and start the access control system program. Open the WDCS client, and after one of the PDAs starts the Bluetooth module, it must synchronize the Bluetooth communication protocol with the WDCS server in the Microsoft ActiveSynczTool mode. Then, with other WDCS clients, open the access control system program and set the IP and Port to connect to the terminal WDCS server.

  3.3 The third step

  It is a system integration and testing system. This step mainly combines the network connection between the WDCS client and the WDCS server, and the system connection between the WDCS server and the WDCS host of the previous two systems. When the WDCS client and the service can be connected to the network, and the WDCS server can also control the WDCS host, the operation steps in the program are followed. First, the test user is controlled by the WD-cs server to achieve access control, function switching and change the user name and password. The steps are as follows: The user first determines whether to log in or use the change function. If you want to log in, you must determine how to log in. There are two ways, 1Key-board login and 2Insercard login.

  4 Conclusion

  The author's innovation: By designing a comprehensive wireless access control system, the 89C51 microprocessor is used as the access control host, and the handheld embedded system (PDA) is used as the development platform. Then, the wireless communication technology (Bluetooth, WEAN) and the characteristics of wireless network are combined to provide users with a visual and convenient interface for a variety of environments. Help users quickly master the operation method and meet the requirements of security and expandability. This system can also be used in different information appliance systems, providing a very flexible development model, which is different from the single-nature products on the market. In this system, we actually tested the application with the general electronic lock on the market, and issued a command to successfully open the electronic lock. And the electronic lock automatically executes the action of closing the door at the system set time (5s). Because the electronic lock is expensive and there is no actual transportation, this product was not purchased. For the future direction, the Bluetooth module can be transplanted to the single-chip microcomputer to achieve a small, beautiful and powerful product, which is in line with the characteristics of Bluetooth in personal wireless communication devices.


References:

[1]. RS232 datasheet http://www.dzsc.com/datasheet/RS232_585128.html.
[2]. EP7212 datasheet http://www.dzsc.com/datasheet/EP7212_300650.html.
[3]. AT89C51 datasheet http://www.dzsc.com/datasheet/AT89C51_810155.html.

Reference address:Research on the application of wireless network technology in access control system

Previous article:Design of temperature alarm control system based on mobile phone text messages
Next article:Design and implementation of a medical intelligent oxygen flow meter

Recommended ReadingLatest update time:2024-11-16 23:57

Intelligent calculator based on single chip microcomputer (AT89C51, LCD1602, matrix keyboard)
1. Introduction This circuit consists of AT89C51 minimum system, LCD1602 liquid crystal display module and matrix keyboard module. 2. Implementation Effect 3. Partial Code /* S16 S12 S8 S4 are 123+ S15 S11 S7 S3 are 456- S14 S10 S6 S2 are 789* S13 S9 S5 S1 are 0 CLR = / */ /*Want more projects private wo!!!*
[Microcontroller]
Intelligent calculator based on single chip microcomputer (AT89C51, LCD1602, matrix keyboard)
Design of High-speed Serial Output Port of AT89C51 Single-chip Microcomputer
The serial port of the AT89C51 (compatible with MCS-51) microcontroller can expand multiple 8-bit parallel I/O ports using a shift register chip in mode 0. In the LED dot matrix display application system, the data synchronous shift output method is generally adopted, and the shift register chip (such as 74LS595) is
[Microcontroller]
Design of High-speed Serial Output Port of AT89C51 Single-chip Microcomputer
AT89C51 single chip DC motor PWM speed control program
This is a PWM speed control program for DC motors with AT89C51 MCU. The program can be directly used in AT89C52, AT89S51, AT89S51, STC89C51, STC89C52 MCUs. The MCU crystal uses 11.0592M. The DC motor is controlled by L298 integrated circuit. The frequency of the generated PWM is about 91Hz. The pins of L298 have been
[Microcontroller]
Application of AT89C51 single chip microcomputer in wireless data transmission
Abstract: This paper introduces the composition of wireless data transmission system, the working mode of AT89C51 single chip microcomputer serial port and the software and hardware design and implementation method of its interface with wireless digital radio. The general digital acquisition system conver
[Microcontroller]
Application of AT89C51 single chip microcomputer in wireless data transmission
AT89C51 MCU Performance Introduction
AT89C51 is a low-voltage, high-performance CMOS 8-bit microprocessor with 4K bytes of flash programmable and erasable read-only memory (FPEROM), commonly known as a single-chip microcomputer. The device is manufactured using ATMEL's high-density non-volatile memory manufacturing technology and is compatible with the i
[Microcontroller]
Design of variable frequency speed control system based on AT89C51 single chip microcomputer
1. Overview In the field of electrical transmission, with the continuous improvement of the technical level of self-shutoff devices, pulse width modulation technology (PWM technology for short) has also become increasingly mature. PMW AC variable frequency speed regulation has been widely used in undergroun
[Microcontroller]
Design of variable frequency speed control system based on AT89C51 single chip microcomputer
AT89C51 electronic clock description
This electronic clock microcontroller uses AT89C51, and the dynamic display uses two 4-digit digital tubes. The program is relatively simple, and interested friends can give it a try. 1. Function When turned on, the time starts at 12:00:00; P0.0/AD0 controls the adjustment of "seconds", each press adds 1 second; P0.
[Microcontroller]
AT89C51 electronic clock description
Design of serial bus chip testing experimental platform based on AT89C51 microcontroller
When applying serial interface chips to expand the system, after initially selecting the serial interface chip, in order to better understand the chip's resources, developers usually build a simple hardware circuit and compile corresponding software before system design. Test, and then determine the final design plan
[Microcontroller]
Design of serial bus chip testing experimental platform based on AT89C51 microcontroller
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号