Design of reader-writer for agricultural product production line based on RFID

Publisher:WiseThinkerLatest update time:2012-03-06 Keywords:RFID Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1. Research Background and Design

RFID is the abbreviation of Radio Frequency Identification. Radio Frequency Identification is a contactless automatic identification technology that uses radio frequency electromagnetic waves through spatial coupling (alternating magnetic field or electromagnetic field) to achieve contactless information transmission between the reader and the mobile items to be identified, classified and tracked (RFID tags are attached to the items) and achieve identification through the transmitted information. RFID is an automatic identification and data capture technology that can provide unattended automatic monitoring and reporting operations.

The working principle of the RFID reader is as follows: the reader sends out a radio frequency signal of a certain frequency through the antenna. When the tag enters the magnetic field, an induced current is generated to obtain energy. The tag sends out its own code and related information, which is read and decoded by the reader and then sent back to the computer for relevant processing. The identification work does not require human intervention and can work in various harsh environments. High-performance RFID readers can identify multiple objects at the same time [1]. In agricultural production, the scope of RFID use is gradually expanding. With the increasingly stringent food inspection and quarantine systems in developed countries around the world, RFID technology has begun to be widely used in animal management abroad. In some domestic supermarkets, customers are also provided with basic additional functions such as using RFID tags to query the origin and date of high-end agricultural products such as clean vegetables. It can be foreseen that in the future, RFID will inevitably play a greater role in product traceability and quality monitoring. The design idea of ​​this system is shown in Figure 1. It uses high-performance read-write modules and RFID tags that follow the RFIDGEN2 protocol to directly complete complex tag reading, tag anti-collision calculation, information extraction and data storage tasks locally, and only transmits valid information to the background server through the network. This greatly reduces the overhead of network communication and reduces the resource usage of the server, thereby improving the overall operation efficiency of the system, improving stability, and increasing business flexibility.

Figure 1 Schematic diagram of RFID technology applied to agricultural product packaging line

2. System Hardware Design


Figure 2 RF module and CPU interface

Considering high reliability and low cost, this system uses S344B0-based embedded CPU and WJ 6000 RF module as the basis, and cooperates with USB, Realtek network card, SDRAM and other chips to form the core system. The key RF module and CPU interface are shown in Figure 2.

3. Software system design of the system

The entire software system module relationship of the system is shown in Figure 3:


Figure 3 Schematic diagram of the overall system software module

The operating system uses uClinux system as the operating system to manage various hardware and provide a software operation platform. The driver layer provides drivers for various devices such as Ethernet, serial port, USB memory, status light and other devices. The network communication module is responsible for transmitting the processed tag information back to the background server, and can also control the main control module parameters according to the command of the background server to change the working mode. The embedded database control module is responsible for saving the system's work log and saving the read tags and related data to the local database for future inquiries. The protocol analysis module is responsible for protocol analysis of the received data communication packet, extracting valid tag data, and performing tag anti-collision operations, handling various interference problems, and ensuring the integrity of the received tag data. It is also the core part of the entire software system.

RFID reading system software workflow:


Figure 4 Software system workflow

1. Embedded database operation module

In this project, Sqlite3 is used as the embedded database of the system. The embedded database is an important part of the whole system. It is mainly responsible for the local storage of basic data, the preliminary storage and fast query of barcode reading information, and the preservation of work logs. It can also cooperate with the network communication module to realize the synchronization of network master/slave databases. In the case of the main server crash, most of the data can still be recovered by sorting out the data of all embedded databases, which increases the reliability of the system. This database adopts a single data file design, which can support most of the SQL 92 standard database operation statements and transaction functions. By extending the network operation interface function, it achieves the purpose of communicating and exchanging data with the background database.

2. Network communication module

The characteristic of this system is that it can transmit data to the background data server through multiple network transmission channels through the network bottom support of the embedded Linux operating system. In the network part design of this system, the TCP/IP protocol support provided by the Linux system is used in the local area network, and the method of dynamically establishing a connection with the server is adopted in programming. When the tag information is read and the valid information is decoded, the corresponding Socket request information is sent to the corresponding port of the server. After receiving the request, the server establishes a connection and creates a new Socket port to communicate with the terminal; only when reading data does the database and the terminal generate data transmission and occupy server resources, thereby reducing the network occupancy rate and the load on the server, and improving the efficiency of network communication.

3. RFID protocol analysis module

The protocol parsing module is responsible for adding the sent command parameters to the packet header and other information, and unpacking the information returned by the received tag. By unpacking the information, the relevant information of inventory or reading and writing can be obtained. The RFID Gen2 commands supported by MPR6000 include Read, Write, Kill, Erase, and Lock. The commands are composed of a string, and its structure is as follows:
,
which are composed of the start frame, node, total length, status, tag information, and CRC.

For example, the opcode of the Gen2 inventory command is 01h, and the operation will return all Gen2 tags that meet the read conditions in the read/write domain. After being processed by the anti-collision module, the resulting data frame consists of two parts: tag information and inventory summary:

That is, = []
=
=
For example, when using antenna B and the RF power is 22, read all Gen2 tags with SL as NOT SET and S3 flag as A. At this time, the starting Q is 1 (i.e. 2 time slots).
60 01 01 16 02 03 00 01If
the tag within the current RF range has a 64-bit Gen2 tag 1 with an ID of "0102 0304 0506 0708".
And there is a 96-bit Gen2 tag 2 with an ID of "1211 1009 08070605 0403 0201".

The read-write module may receive a packet like this, the complete content is as follows:
04 28 00 01 02 03 04 05 06 07 08 07 08 30 00 12 11 10 09 08 07 06 05 04 03 02 01 00 02 00 16 00 01 00 00 00 02 00 09Now
parse this packet. According to the protocol, = [

=
= <04> = 4-word = 64-bit Tag ID
= <28 00>, so =<0102 0304 0506 0708>
=

= <06> = 6-word = 96 Bit Tag ID
= <30 ​​00>, so = <1211 1009 0807 0605 0403 0201>

And =
So we get = 2, = 22, = 1, = 0, = 2, = 9

After extracting the tag information, the obtained tag information can be sent to the embedded database module for local temporary storage, and uploaded to the background server through the network module for recording. The interface function part in the middle will not be given in detail.

IV. Summary and Outlook

The embedded RFID terminal reader described in this article has been put into practical use in an agricultural product packaging production line. It basically meets the requirements of the production line RFID system for front-end RFID tag data collection, processing, and communication. It can replace dedicated RF readers in terms of functionality and stability. Because it uses the free open source Linux operating system and open source database Sqlite, the overall cost is greatly reduced. It is particularly suitable for use in the production and monitoring of agricultural products with high cost sensitivity.

Keywords:RFID Reference address:Design of reader-writer for agricultural product production line based on RFID

Previous article:Application of RFID Technology in Logistics Management of Cigarette Factory
Next article:Application of RFID Technology in E-Government

Recommended ReadingLatest update time:2024-11-16 21:03

Active RFID Zhongzhi has long been at the forefront
  RFID (Radio Frequency Identification) technology, also known as wireless radio frequency identification, is a communication technology that can identify specific targets and read and write related data through radio signals without the need to establish mechanical or optical contact between the identification system
[Analog Electronics]
Active RFID Zhongzhi has long been at the forefront
Protecting System Firmware and Other Intellectual Property with RFID
The classic method of anti-counterfeiting has always been to use anti-counterfeiting packaging or some kind of irreversible anti-tampering packaging, as well as special label imprinting technology. However, any information visible on the product can be cloned, and the cloned information can be used to produce counte
[Microcontroller]
Automobile wireless radio frequency identification system based on short-range wireless communication technology
1.3 System Power Supply The power supply of the wireless radio frequency identification system is a combination of photovoltaic cells as daily power supply and lithium-ion batteries as backup batteries. Under good light conditions, the energy storage battery is charged by solar energy. A certain amount of light time
[Microcontroller]
Automobile wireless radio frequency identification system based on short-range wireless communication technology
How to use AMR technology to realize RFID system automation
By Kyle O'Brien The adoption of autonomous mobile robots (AMRs) can support a variety of payloads and provide a foundation for verifying the contents of warehouse containers. T&W Operaons provides identification (ID) and is working to automate all manual and forklift-related shipping/receiving and wa
[robot]
Research on sensitivity test method of passive RFID tag chip
    introduction   The sensitivity of an RFID tag chip is the minimum energy required for the chip to be activated. Sensitivity is the most important performance indicator of a tag chip, and its size directly affects the performance of the RFID tag, such as the tag read/write distance. Therefore, accurate testing of
[Security Electronics]
Design and application of field medical card based on RFID technology
Today, as the medical system continues to improve, the hospital's informationization has been greatly improved. Now, large hospitals have already used hospital information systems (HIS). After the application of HIS, it has become more convenient for the public to seek medical treatment and has also improved the lev
[Medical Electronics]
Design and application of field medical card based on RFID technology
125K contactless ID card reader design
0 Preface Radio Frequency Identification (RFID) is an automatic identification technology that uses induction, electromagnetic fields or electromagnetic waves as transmission means to complete non-contact two-way communication and obtain relevant data. This technology does not require human intervention to complete t
[Microcontroller]
125K contactless ID card reader design
Design and application of MC9S08QE4 in 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]
Design and application of MC9S08QE4 in RFID
Latest Analog Electronics 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号