Design of RFID card reader for aviation based on S3C6410

Publisher:shmilydeLatest update time:2013-02-19 Source: dzscKeywords:S3C6410  RFID Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  0 Introduction

  With the development of the national economy, aviation has become a travel mode that people rely on. In the air cargo logistics system, there are many types of food and goods, high safety requirements, and complicated handover procedures. It is urgent to introduce information management. The emergence of RFID technology has a positive significance for improving the logistics management of civil aviation. The aviation logistics RFID system is mainly composed of electronic seals, card readers and database management systems. The existing card readers generally use single-chip microcomputer systems (such as STC89C54 or MC9S12X128) or STM32 series. Their common disadvantages are: low main frequency, no support for operating system and poor user experience, which cannot meet the growing application needs of air cargo logistics systems. In the aviation food and duty-free goods logistics system, ground staff and flight attendants urgently need handheld card readers that are simple to operate, quick to respond, and can upload data through wireless networks at any time, so as to speed up logistics and improve the work efficiency of airport staff. Based on the above situation, a high-frequency RFID reader based on S3C6410 is proposed. It supports the Linux operating system and multi-threaded operation. Operators can switch between multiple card reading interfaces and upload data to the SQL database via GPRS anytime and anywhere, which not only greatly reduces the workload of airport staff, but also improves the speed and safety of aviation logistics.

  1 Hardware Design

  The system structure is shown in Figure 1. The system uses the S3C6410 microprocessor, which has a stable main frequency of 667MHz and a maximum main frequency of 800MHz. The S3C6410 integrates many peripheral interfaces, such as Camera interface, TFT-24bit true color LCD controller, power system management, 4-channel UART, 32-channel DMA, 4-channel timer, general I/O port, IIS, IIC bus interface, USBHost, USB OTG (480Mbps), 3-channel SD/MMC Host controller and clock generation PLL, etc. In addition, the use of 90nm COMS technology, low power consumption, simplicity, exquisiteness and full static design make the S3C6410 very suitable for applications that are sensitive to cost and power consumption.

  The system's display screen uses a 3.5-inch 24-bit true color touch TFT-LCD with a maximum resolution of 1 024×1 024. The resolution of this card reader is 480×272. The storage peripherals are Nand flash, 24C64 and SD card.

  LINUX's Uboot, kernel, boot image and file system are all burned into nand flash. 24C64 is used to save touch screen calibration parameters and data read from electronic tags. When the system starts, S3C6410 automatically reads the calibration parameters from 24C64 to avoid the need to calibrate the screen every time the system starts. SD card is used to store data read from the electronic seal. In addition, Chinese character library and icons and other files are also stored in the SD card.

Figure 1 System structure

Figure 1 System structure

  S3C6410 drives the GPRS module (SIM300) to communicate wirelessly with the host computer SQL database through serial port 1. SIM300 is a 3-band GSM/GPRS module that can operate at 3 frequencies of EGSM 900 MHz, DCS 1 800MHz, and PCS 1 900MHz worldwide. It can provide up to 10 GPRS multi-channel types and supports 4 GPRS coding schemes: CS-1, CS-2, CS-3, and CS-4.

  The RF chip uses NXP's CLRC632, which is a highly integrated wireless RF IC for 13.56MHz. Its pins are compatible with MF RC500, MF RC530, MF RC531 and SL RC 400. It can read and write Type A and Type B cards that comply with the ISO14443 protocol, as well as electronic tags that support the ISO15693 protocol. RC632 provides two communication interfaces. The first is an 8-bit parallel port that can be directly connected to various 8-bit microprocessors; the second is an SPI interface. This system uses this communication interface. The microprocessor can achieve RF operation by setting the registers of RC632 (see Figure 2).

Figure 2 Principle of CL RC632

Figure 2 CL RC632 principle[page]

  The SPI bus is a high-speed, full-duplex, synchronous communication bus that uses four lines: MISO, MOSI, SCLK, and CS. Its main features include: sending and receiving serial data simultaneously; being able to work as a master or a slave; providing a frequency-programmable clock; sending an end interrupt flag; write conflict protection; and bus contention protection.

  RC632 has 32 pins in total, of which pins 22, 23, and 24 are the address lines of the register, and pins 13 to 20 are 8-bit parallel ports. When using SPI communication, pin 13, i.e. data bit D0, is MISO, pin 22, i.e. address line A0, is MOSI, pin 24, i.e. address line A2, is CLK, and D1 to D7 do not need to be connected. In addition, A1 and NCS must be set to the low level, and NRD and NWR must be set to the high level.

  RC632 communicates with the antenna through three pins DTX1, DTX2 and DRX. It transmits the modulated 13.56MHz energy carrier to the antenna through pins DTX1 and DTX2, and the antenna transmits the 13.56MHz energy carrier back to RC632 through pin DRX. Generally, there are two methods to connect the antenna to RC632: direct matching antenna and 50Ω matching antenna. This system uses direct matching to connect RC632 to the antenna, which includes EMC low-pass filter, antenna matching circuit and receiving circuit.

  The system uses a PCB loop antenna, whose EMC low-pass filter is used to filter out high-frequency electromagnetic waves. The antenna matching circuit matches the antenna impedance to obtain maximum power transmission, increase the card reading distance, and avoid possible damage to the circuit caused by impedance mismatch. According to actual measurements, the operable distance of the antenna is 5~10cm.

    Card reader software design

  The operating system of the card reader uses the relatively stable Linux-2.6.30 kernel, and the file system is the yaffs file system. The software is divided into two parts: the first part is the QT program, whose main function is to accept user instructions and display the graphical interface; the second part is the RF driver, which is responsible for operating the registers of RC632 to realize specific RF functions. After writing the QT application for the RF card reader, it needs to be integrated into the yaffs file system. In addition, the Linux kernel needs to be tailored and the driver needs to be configured in the kernel configuration list.

  Typical protocols for 13.56MHz RFID are ISO-14443 and ISO-15693. ISO-14443 is a standard protocol for contactless IC cards and is more widely used than ISO-15693. The following will mainly analyze the ISO-14443 protocol, which consists of four parts: the first part, physical characteristics; the second part, spectrum power and signal interface; the third part, initialization and anti-collision algorithm; the fourth part, communication protocol.

  The message of ISO-14443 communication protocol can be divided into 6 parts, as shown in Table 1:

Table 1 Message data format of ISO-14443 communication protocol

Table 1 Message data format of ISO-14443 communication protocol

  The header 2 bytes are fixed as AABB, the message length represents the sum of bytes from the node to the checksum, and the command code indicates the function of the message. Commonly used command codes include 0201 (search card), 0202 (anti-collision), 0203 (select card), 0206 (password authentication), 0208 (read card), 0209 (write card), etc.

  After the QT program is started, a series of icons will be displayed on the TFT-LCD, including: card search, card reading, card writing, sector selection, etc. Card search includes anti-collision detection, which is a very important step in the card reading process [10-11]. The process is as follows: when the user clicks the card search icon on the TFT-LCD, a touch point position signal will be generated on the touch screen. The system determines the area where the touch point is located based on the coordinates of the touch point, and the system makes corresponding processing based on the touched area. The QT program integrates the card search (0201), anti-collision (0202), card selection (0203), and password authentication (0206) in the ISO-14443 protocol into one sub-function. The card search process is divided into 4 processes:

  1) Search for tags - that is, S3C6410 sends instructions to RC632 through serial port 1 to operate the relevant registers for antenna operation. Regardless of whether there is a card within the antenna sensing area, RC632 will send back relevant data to S3C6410. After receiving the data, S3C6410 determines whether there is an electronic tag.

  2) Anti-collision - If there is more than one electronic tag within the antenna sensing area, the card reader needs to make a selection. After anti-collision, RC632 will return the 4-byte electronic tag card number to the microprocessor.

  3) Select the tag - If you want to operate the electronic tag with the corresponding card number, the microprocessor will send a command to RC632 to select this electronic tag for the next read and write operation.

  4) Password authentication - Only the card reader with the correct password can read and write the corresponding electronic tag.

  After selecting the sector, if you want to read the card, just click the card reading icon. If you want to write the card, you need to input data. See Figure 3.

Figure 3 QT application process

Figure 3 QT application process. [page]

    After receiving the message from the application, the RF driver removes the header and check bit, judges the command code through the case statement, and then jumps to the corresponding subroutine. The subroutine sets the register of RC632 through the driver to implement RF operation. When reading RC632 data, the first byte of the MOSI line sets the mode and address: specifically, the 0th bit is set to 1, the 1st to 6th bits are the address, and the 7th bit is set to 0. The other bytes of the MOSI line are set accordingly. The first byte of the MISO line is reserved, and the data returned from the RC632 is from the second byte. When writing data to the RC632, the first byte of the MOSI line represents the address, and the data written to the RC632 is from the second byte. At this time, the MISO line is not enabled.

  When driving RC632, first set the channel check register, set bits 0 and 2 to 1 (enable parity check and CRC check), then clear bit 3 of the control register to zero (disable data encryption), then write 0x07 to the bit structure controller, and the last step is to set the transmission control register to 0x03 (send unmodulated 13.56MHz continuous carrier at pin TX2). After setting the register status, RC632 can communicate with the electronic seal. The register operation during the communication process includes the following steps:

  1) Set the interrupt enable and interrupt request registers to 0x07, set the command register, and cancel the current command; 2) Clear the FIFO BUF read and write pointers (i.e., clear FIFO[6:0]), set the interrupt enable register, and prompt that the flag bit has been set; 3) Write the data to the FIFO BUF in sequence and send the data out from the antenna; 4) Set the command register, activate the command to be executed, read the error flag register, and determine whether there is an error; 5) Wait for the specified time, then read the FIFO BUF, and read the data received by the antenna into RC632; 6) Set the interrupt enable and interrupt request registers to 0x07, set the control register, stop the timer, set the command register, and cancel the current command.

  3 On-site measurement and host computer SQL database communication example

  During the field test, 20 operations were performed on sectors 4, 16, and 33 of the electronic seal, and only one write process on sector 16 resulted in data loss, which shows stable operation performance. Table 2 is an example of the card reader writing and reading data on the electronic seal of the goods: first write the content 11220003, and then read the written content. The sector operated is 04, and the password is set to FFFFFFFFFF.

  The interface after the read data is transferred to the host computer SQL database is shown in Figure 4.

Table 2 Field measured electronic seal reading and writing data.

Table 2 Field measured electronic seal reading and writing data

Figure 4 Interface for transferring data to the database  

Figure 4 Interface for transferring data to the database

  4 Conclusion

  A high-frequency RFID card reader based on the S3C6410 microprocessor is proposed, which realizes the functions of reading cards, writing cards and uploading data to the database. Experiments show that the card reader has good stability and practicality, and is suitable for application in the field of civil aviation. The card reader system has certain reference value and application prospects for the development and improvement of civil aviation logistics.

References:

[1]. GPRS datasheet http://www.dzsc.com/datasheet/GPRS_1594650.html.
[2]. 24C64  datasheet http://www.dzsc.com/datasheet/24C64+_32293.html.
[3]. SIM300 datasheet http://www.dzsc.com/datasheet/SIM300_1135859.html.
[4]. CS-1 datasheet http://www.dzsc.com/datasheet/CS-1_2525798.html.
[5]. ISO15693 datasheet http://www.dzsc.com/datasheet/ISO15693.html.
[6]. EMC datasheet http://www.dzsc.com/datasheet/EMC_2342312.html.
[7]. PCB datasheet http://www.dzsc.com/datasheet/PCB_1201640.html.

Keywords:S3C6410  RFID Reference address:Design of RFID card reader for aviation based on S3C6410

Previous article:Design of Touch Screen Interface Based on Embedded Microprocessor S3C44BOX
Next article:Design of home gateway based on S3C2440

Recommended ReadingLatest update time:2024-11-16 20:24

Design and implementation of discrete MES based on RFID technology
1 MES system and RFID technology 1.1 Discrete Manufacturing MES System Manufacturing execution system is an advanced management technology for manufacturing workshops. It is located between the enterprise planning layer and the industrial control layer. It studies how to comprehensively consider the planni
[Analog Electronics]
NFC technology definition and its difference from RFID
As an evolved version of RFID technology, what advantages does NFC have compared to RFID that makes it so popular among mobile phone manufacturers and operators? Let us analyze them one by one.    NFC definition   NFC is the abbreviation of Near Field Communication, which is a short-range wireless communication te
[Analog Electronics]
S3C6410 bare metal program, LED light flashes
1 /* 2 * Realize the running light, LED1 LED2 LED3 LED4 are turned on and off in turn 3  */ 4 5 .global _start 6 .section .text 7 8 _start: 9 10     /* 11      * set the CPU to SVC32 mode 12      */ 13     mrs r0,cpsr 14     bic r0,r0,#0x1f        @ cl
[Microcontroller]
Design and implementation of RFID board-level tag based on FPGA
introduction Radio Frequency Identification (RFID) technology is an emerging non-contact automatic identification technology with broad application prospects in many fields such as industrial automation, commercial automation, transportation control and management, anti-counterfeiting and military. It uses
[Security Electronics]
Design and implementation of RFID board-level tag based on FPGA
ARM11 learning based on S3C6410 (VII) Core initialization: turning off MMU and CACHE
After disabling all interrupts, we need to disable MMU and CACHE. Because at this time, the environment is still being initialized, and these two things are not needed. So we need to disable them all to avoid affecting our initialization. MMU is the abbreviation of Memory Management Unit. Its Chinese name is Memory
[Microcontroller]
ARM11 learning based on S3C6410 (VII) Core initialization: turning off MMU and CACHE
Design and implementation of enterprise production logistics
The RFID-based production logistics management information system can reflect the production and logistics information of the production process online in real time, so that production scheduling, quality inspection and management personnel can understand the overall picture of bus production at any time, adjust the op
[Analog Electronics]
Design and implementation of enterprise production logistics
Application of MC9S08QE4 microcontroller in active RFID
  RFID tags are divided into two types: passive tags and active tags. Passive tags are contactless IC cards. Due to the short reading distance of passive tags, they are limited in many applications. Active tags are also called active RFID. Due to the use of wireless radio frequency identification technology, the readi
[Microcontroller]
GPIO operation of s3c6410 under Linux (1)
1. The arch/arm/plat-s3c64xx/gpiolib.c file contains the following: arch_initcall(s3c64xx_gpiolib_init); This should be called when the system is initialized. static __init int s3c64xx_gpiolib_init(void) { s3c64xx_gpiolib_add(gpio_4bit, ARRAY_SIZE(gpio_4bit),    s3c64xx_gpiolib_add_4bit); s3c64xx_gpiolib_add(g
[Microcontroller]
GPIO operation of s3c6410 under Linux (1)
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号