Design of UHF handheld reader based on AS3990 chip

Publisher:Mingyue1314Latest update time:2012-07-12 Source: 中国一卡通网 Keywords:AS3990  MSP430f149 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Introduction

RFID (radio frequency identification) is a non-contact automatic identification technology that emerged in the 1990s. It uses the characteristics of radio frequency signal propagation in space to achieve contactless information transmission through spatial coupling (alternating magnetic field or electromagnetic field), and realizes automatic identification of the identified object through the transmitted information. The identification process does not require physical contact, and the writing and reading of tag information can be completed without manual management. Using RFID technology, multiple targets and moving targets can be identified at one time. In addition, electronic tags are readable and writable, can store a large amount of information, have strong security and confidentiality, are not afraid of external dust, stains, etc., and have strong environmental adaptability. It is precisely because of these advantages that other identification methods do not have that RFID technology has a wide range of applications and great development prospects in logistics, transportation, traffic, production, anti-counterfeiting and other fields.

This paper designs a UHF RFID handheld reader/writer with MSP430f149 chip as the controller based on AS3990 chip. It can complete all reading, writing and control operations for electronic tags that comply with EPCGen2 standard. Its mobile intelligent management function is mainly used in logistics, supply chain, warehouse and other occasions.

2. System Overview and Design Principles

In the wireless radio frequency identification system, the RFID reader is a key device used to identify the tag and send the collected data information to the background for processing. It plays a key role in ensuring the correctness and reliability of the RFID system. At the same time, the RFID reader can also write to the tag and store the information in the tag. The design of the reader is completely based on the ISO/IEC18000-6C standard protocol.

2.1 Introduction to ISO/IEC18000-6C Protocol

The ISO/IEC18000-6C protocol stipulates that when data is transmitted, the high byte is transmitted first, and the modulation mode of the forward link is ASK, and PIE encoding is used. The anti-collision algorithm is based on probability and slotting algorithm; the backward link uses backscatter modulation technology to achieve data transmission, and Miller encoding or FM0 encoding can be selected. The 6C standard uses a relatively simple encryption algorithm to prevent the spread of sensitive data in the process of the reader obtaining tag information. This algorithm only encrypts information when the reader transmits data to the tag, and the data information transmitted from the tag to the reader is not encrypted. The implementation process is that the reader obtains a 16-bit wide random number from the tag and performs modulo 2 and calculation with the 16-bit wide data to be transmitted to obtain the ciphertext, and then the tag decrypts to obtain the original data sent by the reader.

2.2 Anti-collision mechanism

There is a 16-bit random number generator in the tag to solve the anti-collision algorithm problem. The query command contains the slot counter parameter Q. After receiving the query command, the participating tags should select a random value in the range of (0, 2 Q -1) and load the selected value into their counters. Tags with a selected value of zero will switch to the response state and respond immediately. Tags with a non-zero selected value should switch to the arbitration state and wait for the query adjustment or query command to be issued.

The interrogator uses three basic operations to manage tag groups, namely selection, inventory, and access. Each operation consists of one or more commands. The definitions of the three basic operations are as follows:

(1) Selection: The process by which an interrogator selects a group of tags for inventory and access. An interrogator can use one or more selection commands to select a specific group of tags before an inventory is taken.

(2) Inventory: The process of the interrogator identifying the tag. The interrogator transmits a query command in one of the four calls to start an inventory cycle. One or more tags can respond. The interrogator checks the response of a tag and requests the tag to send PC, EPC and CRC-16.

(3) Access: The process of the interrogator transacting with each tag, i.e. reading or writing tags. Tags must be identified before access, and access consists of multiple commands. If multiple tags respond, the card reader can resolve the 16-bit key sent by one of the tags by detecting and resolving waveform conflicts. Other unresolved tags will receive the wrong 16-bit key and return to the arbitration state. After issuing a query command, an inventory cycle will be started, and the interrogator will issue one or more query adjustment or repeat query commands. The query adjustment command simply repeats the previous query command, which can increase or decrease the value of Q, but will not introduce new tags into the inventory cycle. The repeat query command repeats the previous query command, but the parameters remain unchanged, and new tags will not be introduced into the inventory cycle. After receiving the query adjustment command, the tag in the arbitration or response state first adjusts Q, then selects a random value in the range of (0,2 Q-1) and loads the value into the slot counter. The tag with a selected value of zero should switch to the response state and respond immediately; the tag with a selected value of non-zero should switch to the arbitration state and wait for the next command. [page]

3. System hardware design

3.1 Introduction to main chips

MSP430 uses the currently popular Reduced Instruction Set (RISC) structure. One clock cycle can execute one instruction, so that when the MSP430 works at an 8MHz crystal oscillator, the instruction speed can reach 8MIPS. It has up to 64KB addressing space including ROM, RAM, flash RAM and peripheral modules. The MSP430 series of microcontrollers combines TI's high-performance analog technology, and each Chengdu integrates a rich set of on-chip peripherals. Depending on the model, the following functional modules may be combined: watchdog, analog comparator A, timer A, timer B, serial port 0, 1, hardware multiplier, LCD driver, 10-bit and higher precision ADC, DAC, etc. Compared with other microcontrollers, the MSP430 series of microcontrollers can greatly extend the battery life, and have ESD protection and strong anti-interference ability.

The AS3990HUF reader chip is a 900M reader system with an integrated analog front end and exchange protocol system. It complies with the ISO18000-6C (EPCGen2 is specifically used for logistics management) standard. It has low-voltage transmission code, low-voltage decoder, CRC code verification, selectable clock output, voltage output within 20mA for external devices, provides voltage for the RF output stage, has ASK (keying) and PR-ASK modulation (where ASK is adjustable modulation), supports frequency hopping, power off, standby and working modes, and can also be powered by USB.

3.2 Hardware Design

3.2.1 RF module design: The RF module uses AS3990HUF as the core chip, and an external power amplifier is used to ensure that its power meets the necessary conditions for long-distance reading and writing transmission. The RF part is the front end of the reader/writer. When the control circuit sends a transceiver instruction, the RF circuit will complete the carrier modulation of the instruction and send the carrier to the RF tag, as well as demodulate the returned received signal and transmit the processed baseband signal to the control circuit.

3.2.2 Digital module design: The digital part is designed with the MSP430 series microcontroller as the core chip. The main functions of the digital part include realizing the waveform encoding of the command sent to the tag, decoding of the return signal, read and write command flow control, error control, sending control commands and receiving data, realizing the interface protocol between the host computer application, collecting and processing input and output signals, realizing the relevant algorithms of the reader function, controlling the working mode of the RF circuit, etc. (including the control of output power, tag reading mode, carrier frequency, etc.)

3.2.3 Antenna design: The antenna used in the design is mainly to radiate electromagnetic waves and receive electromagnetic wave signals returned from the tag. By adopting the circularly polarized microstrip antenna solution, a gain of 3db can be achieved, and the size is 80mm*80mm*6mm.

4. System software design

4.1 Driver Software Design

The hardware driver software is written in C language, mainly using modular programming ideas. The system main program is a complete RFID reader system, which is used to control the working status and working mode of each module of the hardware circuit and coordinate the work of the entire reader reading and writing process. The main program of this reader hardware driver can be mainly divided into the following parts: serial communication program, tag reading and writing program, anti-collision program, data processing program, etc. Figure 2 is the main program flow chart for reading and writing electronic tags:

Figure 2 Flowchart of the main program for reading and writing electronic tags

4.2 Application Software Design

The application software is located on the host computer and runs on the Windows operating system. Therefore, C++ programming language is used to implement the reading and writing of data in the electronic tag, reading user data, storing user data, encrypting and decrypting tags and "unchangeable" operations, setting the reader working mode, etc. Figure 3 is a block diagram of the software system: [page]

Figure 3 System software block diagram

5. Conclusion

The RFID UHF handheld reader designed in this paper fully combines the advantages of software and hardware, and can realize the reading and writing operations of EPCGEN2 electronic tags. Using the antenna designed in this paper, the reading distance of the tag can reach 1.4m, and the writing distance of the tag can reach 1m. It has good anti-collision performance when multiple tags are used, and can read 20 electronic tags at the same time. The reader can be connected to the host computer through the serial port and transmit data. The reader has the advantages of low cost, high sensitivity, stable communication, reliable information, and simple operation. It has a broad application prospect in various industries and is also of great significance to the promotion of RFID.

Keywords:AS3990  MSP430f149 Reference address:Design of UHF handheld reader based on AS3990 chip

Previous article:Design of a heat meter based on ultra-low power microprocessor MSP430
Next article:Analysis of the significance of using M430/OS on the MSP430 MCU

Recommended ReadingLatest update time:2024-11-17 02:53

MSP430F149 TimerA outputs pwm signal C program code
MSP430F149 TimerA outputs pwm signal  Note the corresponding relationship between the register settings and the PWM signal output pins: P1.2-TA1, TACCR1, TACCTL1; P1.3-TA2, TACCR2, TACCTL2.   #include msp430x14x.h   #define uint unsigned int #define uchar unsigned char     void int_clk() {   uch
[Microcontroller]
msp430f149 microcontroller serial port C program
Introduction to msp430f149 microcontroller: The MSP430 series of microcontrollers are a 16-bit ultra-low-power, RISC-based mixed signal processor that Texas Instruments (TI) began to market in 1996. The msp430f149 is an ultra-low power MCU based on flash or ROM, providing 8MIPS, operating at 1.8V - 3.6V, with up to 6
[Microcontroller]
Ultra-low frequency waveform generator using MSP430F149 microcontroller
Ultra-low frequency waveform generators are often used as simulation signal sources in vibration analyzers for manned transportation systems. They are required to work stably within the range of 0.1 Hz to 100 Hz, with low waveform distortion and the ability to be fine-tuned in steps of 0.1 Hz. There are many shortco
[Microcontroller]
Ultra-low frequency waveform generator using MSP430F149 microcontroller
MSP430F149 MCU realizes temperature controller
  introduction   Temperature control has broad application prospects in industries and daily life. Many application fields require high-precision constant temperature control. Due to the nonlinearity, time lag and uncertainty of its control, traditional control cannot achieve good control effects. Fuzzy control is a
[Microcontroller]
MSP430F149 MCU realizes temperature controller
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号