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

Publisher:cloudy德德Latest update time:2010-05-21 Source: 江伴东 汪志成 陈正军 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 portable, online at any time and easy to set up. Therefore, they are different from traditional wired connections. They are more convenient. The main wireless communication technologies at present are IEEE 802.11, Bluetooth (Bluetoth) and Sensor Network (Sensor Network-work). 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 Internet networks 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 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 Windows CE, a 32-bit real-time embedded operating system. In the wired remote control aspect, a general personal computer is used to control the door opening, and uses 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 the EP7212 chip with ARM7 architecture, and the Linux used by the general i386 platform is compiled into ARM

Linux is used as its operating system. When the host receives the command from 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 to monitor the environmental voltage changes and transmits 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 microcontroller as the central controller, plus a 4x4 keyboard, LCD display and EEPROM

93C46 password memory, relays and other peripheral components are used as I/O devices and password settings of the WDCS host. When the user enters the user name and password from the 4x4 keyboard, the 8051 executes the instructions and verifies with the EEPROM 93C46 whether the information entered by the user is correct, and then controls the door opening or closing action through the function of the relay, and transmits the information result to the LCD and WDCS server.

AT89C51 is a low-voltage, high-performance CMOS 8-bit microcontroller produced by ATMEL Corporation of the United States. It has 4 kB of rewritable read-only program memory (FPEROM) and 128 B of 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 various external ports 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 both Bhetootll and mEE 802.11 hardware devices. [page]

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 a Bluetooth Module and a Wireless LANCard 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 Flowchart of the main program of the WDCS host The basic architecture of WDCS is divided into four steps. The first step is the basic system operation, including the system environment and initial value settings. 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 User Name 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 User Name 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 Set User P/W (Password) function is to modify the password used. First, use the arrow keys to select Set User P/W and press Enter. Enter User Name. If it is correct, continue to enter New User P/W and re-enter to confirm New User P/W. 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 User Name and Set New User P. The Set Card No. function allows the user to set a new card number. First, use the arrow keys to select Set Card No. and press Enter. Enter User Name. If it is correct, continue to enter New Card No. and confirm New Card No. once after swiping. If the swiping or swiping is wrong, the system will ask you to re-enter User Name and re-Set Card No. Finally, the Set User Name function is to set the user's name. First, use the arrow keys to select Set User Name and press Enter. Enter User Name. If it is correct, continue to set New User Name and re-enter to confirm New User Name once. If the input is correct, the New User Name 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 the User Name and Set New User Name 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 User Name and User Password. 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 the User Name and User Password. The WDCS host will return a successful login or error message to the WDCS server. [page]

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 the Windows version of WDCS server program. Use the USB port on the laptop and R232 communication technology as the connection between the two devices. Because there is no COM El on this laptop, a USB to R232 cable is used to convert the USB port into a 9Pin COM port and connect to the UART Port 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 Windows version of WDCS server and the Windows version of WDCS PC client. Install Bluetooth Dongol and Wireless IEEE802.1lb network card on the WDCS server. Install Wireless IEEE802.1lb network card or network cable on the WDCS PC client. Use two PDAs as WDCS clients to install the Windows CE version of WDCS client respectively, start the Bluetooth module on one of them and install the Wireless IEEE 802.1 lb network card on the other PDA. First, install Bluetooth Dongol, Wireless IEEE802.1lb network card, and Windows version of WDCS server on the WDCS server, and start Microsoft ActiveSynczTool. At the same time, open the access control system program on the WDCS server and set Local

Port, and start the access control system program. Open the WDCS client, and one of the PDAs must start the Bluetooth module with Microsoft

Use ActiveSynczTool to synchronize the Bluetooth communication protocol with the WDCS server. Then, with other WDCS clients, start 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.

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

Previous article:Analysis on the Application of 485 Hub in Bus-type Data Acquisition System
Next article:Design of OFDM transmitting and receiving system based on NI technology

Latest Test Measurement Articles
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号