ST UM0408 User Manual

April 2007 Rev 1 1/27
UM0408
User manual
Security door keypad controller
Introduction
This document describes the operation of a keypad controller for use in security door applications. The aim is to assist in the development of a keypad decoding system and to display associated information through LEDs for all necessary actions such as power on, door open and error. The entire system has been developed to target low-end and low-cost application areas and has been realized with the help of the ST7FLITE39 microcontroller. A useful additional feature is the support of system protection from physical intrusion, using the STM1403.
The associated evaluation board (order code STEVAL-IAS001V1) aims to display the capabilities of ST's general purpose microcontroller to fit the market segment of home automation and security, keeping the system cost as low as possible.
The board can operate in 2 modes:
User (stand-alone) mode
Administrator mode
– through board – through PC Graphical User Interface
System operation in the various modes is explained through the document sections. When the board is connected to the power supply the system enters the user configuration mode. Administrator mode can be accessed through the use of a PC, where SCI communication is set up and used between the PC and the board through the RS232.
At the time of manufacturing an additional board has been connected to allow in-circuit programming of the microcontroller. The two can be easily disconnected so that the keypad controller for the security door evaluation board can be used independently.
To summarize, the key features of the evaluation board include:
4x3 key matrix
3 LEDs (green for power, red for error and yellow for magnetic lock)
4 jumpers for physical intrusion detection with battery back-up and buzzer
On-board SPI EEPROM for event logging
On-board RS232 driver to interface with the PC
Power supply adaptor (3.4V - 19V)
Embedded in-circuit programming capability
www.st.com
Contents UM0408
2/27
Contents
1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Package contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 Hardware installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Software installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Running the security door application . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 User or standalone mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1.1 Powering on the system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1.2 Default system settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1.3 Valid user code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1.4 Door open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1.5 Physical intrusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1.6 Error conditions in user mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1.7 User-code tampering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2 Administrator mode through board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.1 Add new user code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.2 Delete user code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3 Administrator password reset through board . . . . . . . . . . . . . . . . . . . . . . 14
2.4 Administrator mode through PC graphical user interface . . . . . . . . . . . . . 15
2.4.1 Connecting to the PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4.2 Powering on the board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.4.3 The first GUI window - login GUI mode . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.4.4 Communication setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.4.5 Communication error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.4.6 Features supported by the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.4.7 Logoff GUI mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.4.8 Automatic Logoff from GUI mode (through watchdog) . . . . . . . . . . . . . 19
Appendix A Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Appendix B Demonstration board schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Appendix C Bill of materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
UM0408 Contents
3/27
Appendix D Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
D.1 Communication error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
D.2 Time-out error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
D.3 Delete all users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Getting started UM0408
4/27
1 Getting started
1.1 System requirements
The system can operate in standalone mode by powering it externally using a power supply adaptor (3.4V to 19V). For the system to be connected to a PC for administrator use, a recent version of Windows, such as Windows 2000 or Windows XP must be installed on the PC.
Note: The version of the Windows OS installed on your PC can be determined by clicking on the
System icon in the Control Panel.
1.2 Package contents
The keypad controller for the security door evaluation package is orderable with the following order code: STEVAL-IAS001V1. It includes:
Hardware
One demonstration board
Software
PC executable software to be used along with the demonstration board
Documentation
–User manual
The firmware source code (C language) is not included in the evaluation package. Please contact your ST sales office to request it.
1.3 Hardware installation
The demonstration board can be powered through an external power supply using a DC adaptor (3.4V to 19V). It is not included within the ST evaluation package.
UM0408 Getting started
5/27
Figure 1. Security door keypad controller - front view
The major components present on the front of the board are (see Figure 1):
1. An external power jack for the DC adaptor
2. 3 status LEDs for power, error and magnetic lock
3. 4x3 key matrix to enter the user code
4. 4 jumpers for physical intrusion detection
5. An RS232 female socket
6. An HE10 connector for ICC programming
3 status LEDs
External power
RS232 female
HE10 ICC
4x3 key matrix
supply jack
socket
connector
4 jumpers for physical intrusion configuration
Getting started UM0408
6/27
Figure 2. Security door keypad controller - back view
The major components present on the back of the board are (see Figure 2):
1. A buzzer for physical intrusion detection
2. A coin-type battery as back-up for the tamper detection device in the event of power failure
3. KF33B voltage regulator
4. ST7LITE39F2 microcontroller
5. M95080 EEPROM for data logging
6. STM1403 tamper detection device
7. ST3232C RS232 driver
1.4 Software installation
To install the PC GUI, follow the steps described below:
1. Double-click the Security Door executable icon. The window shown in Figure 3 opens.
KF33
Battery
STPM1403
ST3232C
M95080
ST7FLite39
Buzzer
UM0408 Getting started
7/27
Figure 3. Installation window
2. Click Next to move to the License Agreement window shown in Figure 4. Read the license and if you accept it, click Yes.
Figure 4. License agreement
3. The Customer Information window opens as shown in Figure 5. Enter the relevant information and click Next.
Getting started UM0408
8/27
Figure 5. Customer Information
4. Now select the folder in which you want to install the software (see Figure 6). By default the software is installed to the following path:
C:\Program Files\STMicroelectronics\SecurityDoorKeypad
Figure 6. Select installation folder
5. After selecting the destination folder, click Next. The software installation then starts, see Figure 7.
UM0408 Getting started
9/27
Figure 7. Installation process
6. On completion of the installation process, the window shown in Figure 8 opens. Click the Finish button.
Figure 8. Installation complete
You will find the software and Help Files have been placed in the installation folder. Also, a shortcut is available in the Windows Start Menu and on the Desktop.
Loading...
+ 18 hidden pages