CN206193856U - Food safety traceability system based on RFID technique - Google Patents

Food safety traceability system based on RFID technique Download PDF

Info

Publication number
CN206193856U
CN206193856U CN201621146189.6U CN201621146189U CN206193856U CN 206193856 U CN206193856 U CN 206193856U CN 201621146189 U CN201621146189 U CN 201621146189U CN 206193856 U CN206193856 U CN 206193856U
Authority
CN
China
Prior art keywords
food
antenna
reader
card
rfid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201621146189.6U
Other languages
Chinese (zh)
Inventor
王钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gansu Agricultural University
Original Assignee
Gansu Agricultural University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gansu Agricultural University filed Critical Gansu Agricultural University
Priority to CN201621146189.6U priority Critical patent/CN206193856U/en
Application granted granted Critical
Publication of CN206193856U publication Critical patent/CN206193856U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Credit Cards Or The Like (AREA)

Abstract

本实用新型涉及一种基于RFID技术的食品安全溯源系统,用于对数据进行运算和处理的MCU单元;用于对运算数据进行显示的显示器;用于产生语音提示信息的提示音单元;用于驱动读写器天线与应答机通信,实现读写、解码和写入的无线射频识别单元;用于产生磁通量向无源标签提供能量并建立标签与读写器之间连接的天线;用于与读写器进行密码校验,对卡片进行读写操作的ID卡。根据食品编号追踪食品的产地、食品的生产日期即食品的保质期。可以提高生产者、经营者和消费者的组织结构,解决由于技术限制而造成的信息传递不及时的情况。同时,也可以加强以法制和道德约束为主的食品安全体系建设,确保信息的准确性。

The utility model relates to a food safety traceability system based on RFID technology, an MCU unit for computing and processing data; a display for displaying computing data; a prompt unit for generating voice prompt information; The radio frequency identification unit that drives the reader antenna to communicate with the transponder to realize reading, decoding and writing; the antenna used to generate magnetic flux to provide energy to the passive tag and establish a connection between the tag and the reader; used to communicate with the reader The reader performs password verification and reads and writes the ID card of the card. Track the place of origin of the food, the production date of the food, that is, the shelf life of the food according to the food number. It can improve the organizational structure of producers, operators and consumers, and solve the untimely information transmission caused by technical limitations. At the same time, the construction of a food safety system based on legal and moral constraints can also be strengthened to ensure the accuracy of information.

Description

一种基于RFID技术的食品安全溯源系统A food safety traceability system based on RFID technology

技术领域technical field

本实用新型属于食品安全技术领域,尤其涉及一种基于RFID技术的食品安全溯源系统。The utility model belongs to the technical field of food safety, in particular to a food safety traceability system based on RFID technology.

背景技术Background technique

近年来,食品安全引起了广大人民的密切关注。尤其是在多类食品安全事件的频繁发生后,人们开始意识到食品安全的重要性。同时,食品安全也引起了党中央与国务院的高度重视,始终将人民的身体健康与生命安全视为重中之重。由于目前食品链系统的发展越来越复杂,从食品生产到包装的程序极多,因此,食品的不安全因素也随之增加。这些过程导致了食品安全频繁的发生在消费者身边,使消费者对食品安全失去信心,严重影响了社会的稳定和消费者的健康。In recent years, food safety has aroused the close attention of the general public. Especially after the frequent occurrence of multiple types of food safety incidents, people began to realize the importance of food safety. At the same time, food safety has also attracted great attention from the Party Central Committee and the State Council, and people's health and life safety have always been regarded as the top priority. As the development of the current food chain system is becoming more and more complex, there are many procedures from food production to packaging, so the unsafe factors of food are also increasing. These processes have led to frequent food safety incidents around consumers, causing consumers to lose confidence in food safety, and seriously affecting social stability and consumer health.

食品安全研究人员将食品安全划分为数量安全、可持续安全和质量安全三个方面。其中最重要的是质量安全。食品质量安全主要是指在食品营养质量高,能够满足食用人群对营养的需求,并且保证食用者的健康。基于这些原因,当食品进入市场时,其所携带的食品标签起到了至关重要的作用。同时,相关部门也对食品标签的规范性做出了严格的规定。Food safety researchers divide food safety into three aspects: quantity safety, sustainable safety and quality safety. The most important of these is quality and safety. Food quality and safety mainly refers to the high nutritional quality of food, which can meet the nutritional needs of the eating population and ensure the health of the eating people. For these reasons, when a food product enters the market, the food label it carries plays a vital role. At the same time, relevant departments have also made strict regulations on the standardization of food labels.

食品溯源控制系统,也就是对食品安全的追踪和溯源系统,目前已称为食品管理部门或消费者对食品安全控制与监测的有效途径。但是,截止目前仍然没有一个国际权威性的定义来描述食品的可追溯性。The food traceability control system, that is, the tracking and traceability system for food safety, is currently known as an effective way for food management departments or consumers to control and monitor food safety. However, up to now, there is still no international authoritative definition to describe the traceability of food.

由于RFID技术现目前以及广泛应用于生产、运输、医疗、防伪等方面,但是在食品的而应用上发展及其缓慢,主要包括以下几个方面:Since RFID technology is currently widely used in production, transportation, medical treatment, anti-counterfeiting, etc., but its application in food is developing very slowly, mainly including the following aspects:

1.成本过高1. The cost is too high

基于RFID技术的标签不同于常用的条形码或者现如今新兴的二维码,其内部含有微小的集成电路。因此,相对于条形码或二维码,其制作成本高。若将RFID技术应用于低价格的商品上,生产者、销售者和消费者的成本都会升高。价格因素在很大方面决定了电子标签目前还不能被广泛应用于各种消费品上。Tags based on RFID technology are different from commonly used barcodes or the emerging two-dimensional codes, which contain tiny integrated circuits inside. Therefore, compared with barcodes or two-dimensional codes, its production cost is high. If RFID technology is applied to low-priced commodities, the costs of producers, sellers and consumers will all increase. The price factor largely determines that electronic tags cannot be widely used in various consumer goods.

2.数据录入复杂2. Complicated data entry

在食品行业中,其具有种类多样性、原辅料来源复杂性、短周期性级运输多样性等特点。若在每个过程中不断录入商品信息,势必会增加工人的工作量。单从这一方面,就对RFID技术的发展形成阻碍。并且在数据录入过程中,信息录入的准确性与工人的严谨性得不到有力地保障,这也使该技术的发展失去意义。In the food industry, it has the characteristics of diverse types, complex sources of raw and auxiliary materials, and short-term transportation diversity. If the product information is continuously entered in each process, it will inevitably increase the workload of workers. From this aspect alone, it hinders the development of RFID technology. Moreover, in the process of data entry, the accuracy of information entry and the rigor of workers cannot be effectively guaranteed, which also makes the development of this technology meaningless.

发明内容Contents of the invention

本实用新型为解决公知技术中存在的RFID技术成本高,数据录入复杂的问题而提供一种结构简单、安装使用方便、提高工作效率的基于RFID技术的食品安全溯源系统。The utility model provides a food safety traceability system based on RFID technology with simple structure, convenient installation and use, and improved work efficiency in order to solve the problems of high cost of RFID technology and complicated data entry in the known technology.

本实用新型为解决公知技术中存在的技术问题所采取的技术方案是:The technical scheme that the utility model takes for solving the technical problem existing in the known technology is:

该基于RFID技术的食品安全溯源系统包括:The food safety traceability system based on RFID technology includes:

用于对数据进行运算和处理的MCU单元;MCU unit for computing and processing data;

与MCU单元相连接,用于对运算数据进行显示的显示器;A display connected to the MCU unit for displaying calculation data;

与MCU单元相连接,用于产生语音提示信息的提示音单元;It is connected with the MCU unit and is used to generate a prompt sound unit for voice prompt information;

与MCU单元双向连接,用于驱动读写器天线与应答机通信,实现读写、解码和写入的无线射频识别单元;Two-way connection with the MCU unit, used to drive the reader antenna to communicate with the transponder, and realize the radio frequency identification unit of reading, writing, decoding and writing;

与无线射频识别单元双向连接,用于产生磁通量向无源标签提供能量并建立标签与读写器之间连接的天线;Two-way connection with the radio frequency identification unit, used to generate magnetic flux to provide energy to the passive tag and establish an antenna connecting the tag and the reader;

与无线射频识别单元相连接,用于与读写器进行密码校验,对卡片进行读写操作的ID卡。Connected with the radio frequency identification unit, it is used for password verification with the reader, and an ID card for reading and writing operations on the card.

进一步,所述的无线射频识别单元由读卡器天线、电子标签、RFID控制器三部分组成,电子标签通过读卡器天线与RFID控制器相连接。Further, the radio frequency identification unit is composed of a card reader antenna, an electronic tag, and an RFID controller, and the electronic tag is connected to the RFID controller through the card reader antenna.

进一步,所述的提示音单元内部安装有蜂鸣器。Further, a buzzer is installed inside the prompt sound unit.

本实用新型根据食品编号追踪食品的产地、食品的生产日期即食品的保质期。可以提高生产者、经营者和消费者的组织结构,解决由于技术限制而造成的信息传递不及时的情况。同时,也可以加强以法制和道德约束为主的食品安全体系建设,确保信息的准确性。The utility model tracks the production place of the food, the production date of the food, that is, the shelf life of the food according to the food serial number. It can improve the organizational structure of producers, operators and consumers, and solve the untimely information transmission caused by technical limitations. At the same time, the construction of a food safety system based on legal and moral constraints can also be strengthened to ensure the accuracy of information.

附图说明Description of drawings

图1是本实用新型实施例提供的基于RFID技术的食品安全溯源系统的结构示意图;Fig. 1 is the structural representation of the food safety traceability system based on RFID technology that the utility model embodiment provides;

图2是本实用新型实施例提供的单片机最小电路系统图;Fig. 2 is the minimum circuit system diagram of the single-chip microcomputer that the utility model embodiment provides;

图3是本实用新型实施例提供的MCU单元与显示器连接电路图;Fig. 3 is the MCU unit and the display connection circuit diagram that the utility model embodiment provides;

图4是本实用新型实施例提供的天线的电路图;Fig. 4 is a circuit diagram of the antenna provided by the embodiment of the present invention;

图中:1、MCU单元;2、显示器;3、无线射频识别单元;4、提示音单元;5、ID卡;6、天线。In the figure: 1. MCU unit; 2. Display; 3. Radio frequency identification unit; 4. Prompt tone unit; 5. ID card; 6. Antenna.

具体实施方式detailed description

为能进一步了解本实用新型的发明内容、特点及功效,兹例举以下实施例,并配合附图详细说明如下。In order to further understand the invention content, characteristics and effects of the present utility model, the following examples are given, and detailed descriptions are given below in conjunction with the accompanying drawings.

下面结合图1至图4对本实用新型的结构作详细的描述。Below in conjunction with Fig. 1 to Fig. 4, the structure of the utility model is described in detail.

MCU单元1采用的主控芯片为STC公司生产的STC89C52芯片,该芯片是一种低功耗、高性能的CMOS 8位微控制器,俗称单片机。同时,该芯片具有8k在系统中可进行编程的Flash存储器。STC89C52单片机具有传统51单片机不具备的功能,但也兼容传统51单片机的所有功能。因为其具有8位CPU,所以可以在单芯片上进行灵活地编程。STC89C52单片机的最小电路系统如图2所示。该最小电路系统的结构主要包括了:复位电路、振荡电路和存储器选择电路。The main control chip used by MCU unit 1 is the STC89C52 chip produced by STC Company. This chip is a low-power, high-performance CMOS 8-bit microcontroller, commonly known as a single-chip microcomputer. At the same time, the chip has 8k Flash memory that can be programmed in the system. The STC89C52 single-chip microcomputer has functions that the traditional 51 single-chip microcomputer does not have, but it is also compatible with all functions of the traditional 51 single-chip microcomputer. Because it has an 8-bit CPU, it can be programmed flexibly on a single chip. The minimum circuit system of the STC89C52 microcontroller is shown in Figure 2. The structure of the minimum circuit system mainly includes: a reset circuit, an oscillation circuit and a memory selection circuit.

STC89C52单片机具有以下特点:该单片机共拥有40个引脚数目:其中电源、复位电路、电源、接地和EA各占1个引脚;晶振电路占2个引脚;32个IO接口;2个悬空引脚。STC89C52单片机为8k bytes Flash片内程序存储器,256bytesde随机存储数据存储器(RandomAccess Memory,RAM),拥有32个外双向输入/输出接口(I/O),5个中断优先级,2个16位可编程定时计数器,2个全双工串行通信口,看门狗(WDT)电路,片内时钟振荡器。The STC89C52 single-chip microcomputer has the following characteristics: The single-chip microcomputer has a total of 40 pins: among them, the power supply, reset circuit, power supply, grounding and EA each occupy 1 pin; the crystal oscillator circuit occupies 2 pins; 32 IO interfaces; 2 are suspended pin. STC89C52 single-chip microcomputer is 8k bytes Flash on-chip program memory, 256 bytesde random access memory (Random Access Memory, RAM), with 32 external bidirectional input/output interfaces (I/O), 5 interrupt priorities, and 2 16-bit programmable Timing counter, 2 full-duplex serial communication ports, watchdog (WDT) circuit, on-chip clock oscillator.

1.单片机供电电路:一般给STC89C52单片机供电的电源为5V,图2中VCC与GND为供电网络标识符。1. Single-chip power supply circuit: Generally, the power supply for the STC89C52 single-chip microcomputer is 5V. In Figure 2, VCC and GND are the power supply network identifiers.

2.晶振电路:采用24MHz的晶振作为STC89C52单片机的时钟源。2. Crystal oscillator circuit: 24MHz crystal oscillator is used as the clock source of the STC89C52 microcontroller.

3.复位电路:为单片机正常运行的一个重要组成部分,复位电路应该保证单片机在通电的瞬间就进行一次有效地复位,在单片机正常工作时需将RST引脚接低电平。3. Reset circuit: It is an important part of the normal operation of the single-chip microcomputer. The reset circuit should ensure that the single-chip microcomputer is effectively reset at the moment of power-on. When the single-chip microcomputer is working normally, the RST pin needs to be connected to low level.

按照STC89C52单片机的引脚功能可以分为四个方面进行介绍:According to the pin function of STC89C52 microcontroller, it can be divided into four aspects for introduction:

1.电源引脚1. Power pin

VCC(40):接5V电源正端;VCC(40): Connect to the positive terminal of 5V power supply;

GND(20):接5V电源正端。GND(20): Connect to the positive terminal of 5V power supply.

2.外接晶振引脚2. External crystal oscillator pin

XTAL1(19):在单片机的内部,XTAL1相当于一反向放大器的输入端。当与外部时钟进行连接时,对于不同的单片机,该引脚的接入方式不一样,如当与HMOS单片机连接时,则需接地;与CHMOS单片机连接时,其为外部信号的接入端。XTAL1 (19): Inside the microcontroller, XTAL1 is equivalent to the input of an inverting amplifier. When connecting with an external clock, the access method of this pin is different for different microcontrollers. For example, when connecting with an HMOS microcontroller, it needs to be grounded; when connecting with a CHMOS microcontroller, it is the access terminal for external signals.

XTAL2(18):在单片机内部接内振荡器的反相放大器的输出端。该引脚与XTAL1(19)操作类似。当与HMOS连接时,为输入端;当与CHMOS连接时,只需悬空操作。XTAL2 (18): The output of the inverting amplifier connected to the internal oscillator in the microcontroller. This pin operates similarly to XTAL1(19). When it is connected with HMOS, it is an input terminal; when it is connected with CHMOS, it only needs to be suspended.

3.控制信号或与其它电源复用引脚3. Control signals or multiplexed pins with other power supplies

该类型的引脚总共有4种形式,分别为:RST、ALE、PSEN和EA。There are 4 forms of this type of pins, namely: RST, ALE, PSEN and EA.

1)RST(9):即重置键。作用为单片机上的电复位端与掉电保护端。若单片机在震荡工作期间,该引脚可以帮助单片机复位到初始状态;当VCC出现故障,该引脚可以连接备用电源而保障单片机不断电,从而可以继续保存RAM中的数据。1) RST (9): the reset key. It acts as the electrical reset terminal and power-down protection terminal on the single-chip microcomputer. If the single chip microcomputer is in the period of oscillation, this pin can help the single chip microcomputer reset to the initial state; when VCC fails, this pin can be connected to the backup power supply to ensure the continuous power supply of the single chip microcomputer, so that the data in the RAM can continue to be saved.

2)ALE(30):当访问外部存储器时,ALE(允许地址锁存信号)以每机器周期两次的信号输出,用于锁存出现在P0口的低。2) ALE (30): When accessing the external memory, ALE (enable address latch signal) is output as a signal twice per machine cycle, and is used to latch the low that appears at the P0 port.

3)PSEN(29):该引脚为片外RAM的选通输出端,并且在低电平接入时才有效。在片外RAM从外部进行读取信号期间,该端在每个周期有两次有效,可以通过数据总线口读取指令信号。若是访问片外信号,则该端无信号出现。3) PSEN (29): This pin is the strobe output terminal of the off-chip RAM, and it is only valid when it is connected at a low level. During the period when the off-chip RAM reads the signal from the outside, this terminal is valid twice in each cycle, and the command signal can be read through the data bus port. If the off-chip signal is accessed, no signal appears at this end.

4)EA(31):该端为访问外部RAM控制端,且仅在低电平接入时有效。当该端为高电平接入时,单片机访问内部RAM 4KB;若超过此范围,则该端自动访问外部RAM的程序。若该端一直保持低电平不变,则均访问外部程序存储器。4) EA (31): This terminal is the control terminal for accessing the external RAM, and it is only valid when it is connected at a low level. When this end is connected at a high level, the microcontroller accesses the internal RAM 4KB; if it exceeds this range, this end automatically accesses the program of the external RAM. If this end keeps low level all the time, then access the external program memory.

4.输入/输出(I/O)引脚P0、P1、P2和P34. Input/Output (I/O) pins P0, P1, P2, and P3

1)P0(39-22):当芯片不接外部电路或者不进行扩展时,P0.0-P0.7可为准双向8位输入/输出接口。当片内含有EPROM单片机编程时,从P0输入指令字节,当检验程序时,则输出指令字节。1) P0(39-22): When the chip is not connected to an external circuit or expanded, P0.0-P0.7 can be a quasi-bidirectional 8-bit input/output interface. When the chip contains EPROM single-chip programming, the instruction byte is input from P0, and when the program is checked, the instruction byte is output.

2)P1(1-8):P1.0-P1.7统称为P1口,可作为准双向I/O接口使用。对于EPROM在进行编程或程序校验操作时,P1口将会接收输入信号的低8位地址。2) P1(1-8): P1.0-P1.7 are collectively referred to as P1 ports, which can be used as quasi-bidirectional I/O ports. For EPROM, when performing programming or program verification operation, P1 port will receive the lower 8-bit address of the input signal.

3)P2(21-28):P2.0-P2.7统称为P2口,一般可作为准双向I/O接口。大概接有外部程序存储器或进行扩展时,P2口用于高8位地址总线送出高8位地址。对于EPROM编程或进行程序校验时,P2口接收输入的8位地址。3) P2 (21-28): P2.0-P2.7 are collectively referred to as P2 ports, which can generally be used as quasi-bidirectional I/O interfaces. Probably when the external program memory is connected or expanded, the P2 port is used for the high 8-bit address bus to send the high 8-bit address. For EPROM programming or program verification, the P2 port receives the input 8-bit address.

4)P3(10-17):P3.0-P3.7统称为P3口.该8个接口均为双功能口,不仅作为一般的准双向I/O接口,也可以将每1位用于第2功能,而且P3口的每条引脚均可独立定义为第1功能的输入输出或第2功能。P3口的第2功能如表1。4) P3 (10-17): P3.0-P3.7 are collectively referred to as P3 ports. The 8 ports are all dual-function ports, not only as general quasi-bidirectional I/O ports, but also can use each bit for The second function, and each pin of the P3 port can be independently defined as the input and output of the first function or the second function. The second function of P3 port is shown in Table 1.

表1 P3口的功能表Table 1 Function table of P3 port

综上:可将STC89C52单片机的引脚作用归纳为:To sum up: the pin functions of the STC89C52 microcontroller can be summarized as:

1)单片机功能多,引脚数少,因而大多引脚具有第2功能;1) The single-chip microcomputer has many functions and few pins, so most of the pins have the second function;

2)单片机对外呈3总线形式,且P2和P0口组成16位地址总线;由P0口分时复用作为数据总线。2) The single-chip microcomputer is in the form of 3 buses externally, and the P2 and P0 ports form a 16-bit address bus; the P0 port is time-division multiplexed as the data bus.

本实用新型中采用的显示器2为LCD12864液晶显示模块,该液晶屏显示模块具有20个引脚,其中包括8位双向数据线和6条控制线与电源线。The display 2 adopted in the utility model is an LCD12864 liquid crystal display module, which has 20 pins, including 8 bidirectional data lines and 6 control lines and power lines.

LCD12864液晶显示器2分为左右两屏,128个行像素点、64个列像素点,整个屏幕为128*64个像素点。对液晶显示器2的编程就是向DDRAM中写入数据。在进行写数据之前,需要先清除RAM,并且左右屏需分别清除。LCD12864的引脚功能表为表2LCD12864 liquid crystal display 2 is divided into left and right screens, with 128 row pixels and 64 column pixels, and the entire screen is 128*64 pixels. The programming of the liquid crystal display 2 is to write data into the DDRAM. Before writing data, the RAM needs to be cleared first, and the left and right screens need to be cleared separately. The pin function table of LCD12864 is Table 2

表2 LCD12864引脚功能表Table 2 LCD12864 pin function table

LCD12864液晶显示器2采用的是带字库的屏幕,带中文字符的128*64屏可以显示4行8列的32个16*16点阵的汉字,每个显示随机存储器可显示1个中文字符或2个16*8点阵全高ASCII码字符的显示。带中文字库的内部拥有可以提供128*2字节的字符显示RAM缓冲区。字符的显示是通过编码写入随机存储器而实现的。根据写入内容的差异,可在液晶屏上显示中文字符、ASCII码与自定义内容。LCD12864 liquid crystal display 2 uses a screen with a font library. The 128*64 screen with Chinese characters can display 32 Chinese characters of 16*16 dot matrix in 4 rows and 8 columns. Each display random memory can display 1 Chinese character or 2 A 16*8 dot matrix display of full-height ASCII code characters. Internally with a Chinese character library, it can provide 128*2 bytes of character display RAM buffer. The display of the characters is realized by writing the code into the RAM. According to the difference of written content, Chinese characters, ASCII codes and custom content can be displayed on the LCD screen.

LCD12864液晶显示屏的通信方式有两种:分别为串行通信和并行通信。由于并行通信传输数据速度快,LCD12864液晶显示屏与MCU的通信方式采用的并行通信。There are two communication modes of the LCD12864 liquid crystal display: serial communication and parallel communication. Due to the fast data transmission speed of parallel communication, the communication method between LCD12864 liquid crystal display and MCU adopts parallel communication.

显示器2有一个整体的片选信号“E”,只有当该信号为高电平时,所有的电路才会失去功能。另外左右半屏各有一个选择信号CS1与CS2,且各自为低电平时,分别选中左半屏和右半屏。为了区分读写的内容为数据还是指令,另外设置了一个数据/指令控制线D/I。根据这些原则设计出了接口电路如图3所示。Display 2 has an overall chip selection signal "E", only when this signal is high level, all circuits will lose their functions. In addition, each of the left and right half screens has a selection signal CS1 and CS2, and when each is at a low level, the left half screen and the right half screen are respectively selected. In order to distinguish whether the content of reading and writing is data or instructions, a data/instruction control line D/I is additionally set up. According to these principles, the interface circuit is designed as shown in Figure 3.

由于读写器芯片内具有寄存器,因此,MCU单元1可以通过对读写器内寄存器的读写来控制读写器芯片,并将信号传输至提示音单元4。当读写器收到来自于MCU单元1单片机发出的信号后,将会按照非接触式射频卡协议格式,通过与天线6和其它匹配电路发出固定频率的调制信号进行寻找。当寻找到此范围内ID卡5的存在时,ID卡5内的LC谐振电路(谐振电路的频率与读写器发出的频率一致)会在电磁波的激励下,产生共振。Since the reader-writer chip has registers, the MCU unit 1 can control the reader-writer chip by reading and writing the registers in the reader-writer, and transmit the signal to the prompt tone unit 4 . When the reader/writer receives the signal from the MCU unit 1, it will follow the protocol format of the non-contact radio frequency card to search by sending a fixed-frequency modulation signal with the antenna 6 and other matching circuits. When finding the existence of ID card 5 within this range, the LC resonant circuit in ID card 5 (the frequency of the resonant circuit is consistent with the frequency sent by the reader) will generate resonance under the excitation of electromagnetic waves.

当有ID卡5在读写器的有效工作范围内时,MCU单元1向卡片发出寻找信号,卡片将返回信息,建立ID卡5与读写器的首次联系,若在MCU单元1发出的频率范围内有多张ID卡5时,读写器将会启动其防冲撞机制,以保证操作的合法性。当这种情况出现时,读写器会根据卡片号选定其中一张卡片,选中的卡片会与读写器进行校验,而未被选中的仍旧处于闲置状态,等待下次MCU单元1发出的命令。在ID卡5与读写器进行密码校验成功后,便可以对卡片进行读写等应用操作。When there is an ID card 5 within the effective working range of the reader, the MCU unit 1 sends a search signal to the card, and the card will return information to establish the first contact between the ID card 5 and the reader. If the frequency sent by the MCU unit 1 When there are multiple ID cards 5 within the range, the reader will start its anti-collision mechanism to ensure the legality of the operation. When this situation occurs, the reader will select one of the cards according to the card number, and the selected card will be verified with the reader, while the unselected card is still in an idle state, waiting for the next time MCU unit 1 sends out a card. The command. After the password verification between the ID card 5 and the reader/writer is successful, application operations such as reading and writing can be performed on the card.

RFID电子标签的信息传送方式为无线数据传输。其主要优点是可以进行数据处理,同时也可以进行安全验证。当与读写器连接时,RFID标签与读写器会启用双向验证机制。在进行数据处理前,标签需与读写器进行三次认证,并且所有过程均会进行加密保护。The information transmission method of RFID electronic tags is wireless data transmission. Its main advantage is that data processing can be carried out, and security verification can also be carried out at the same time. When connected with the reader, the RFID tag and the reader will enable a two-way authentication mechanism. Before data processing, the tag needs to be authenticated three times with the reader, and all processes will be encrypted and protected.

无线射频识别单元3的关键为射频芯片,本实用新型中选用的芯片为MFRC522。MFRC522是一种可以应用在13.5MHz非接触式通信中高集成度读写卡系列芯片。是由NXP公司开发的一种低电压、低成本的微型非接触式读写芯片,是用于便携式手持设备的最佳选择。The key of the radio frequency identification unit 3 is a radio frequency chip, and the chip selected in the utility model is MFRC522. MFRC522 is a highly integrated read-write card series chip that can be used in 13.5MHz contactless communication. It is a low-voltage, low-cost miniature non-contact read-write chip developed by NXP, which is the best choice for portable handheld devices.

MFRC522以先进的调制和解调概念为基础,集成了在13.5MHz下的所有类型的被动非接触式通信方式与通信协议。该芯片内部发送部分可驱动读写器天线与应答机通信等,而不需要其它设备的协助。接收器部分可以提高有效地解调与解码电路,用于处理接收端信号。数字部分处理ISO14443A帧和进行奇偶检测。该芯片可以支持更高速的非接触式通信,其双向数据传输率也非常高。MFRC522作为13.5MHz高集成度读写系列芯片中的一种,其与主机间的通信采用连线较少的串行通信,且可根据不同的用户需求进行SPI、I2C或串行模式中的一种的选取,有利于减少连线数量,降低PCB板的体积,同时也可以压缩成本。Based on advanced modulation and demodulation concepts, MFRC522 integrates all types of passive non-contact communication methods and communication protocols under 13.5MHz. The internal sending part of the chip can drive the reader-writer antenna to communicate with the transponder, etc., without the assistance of other devices. The receiver part can improve the effective demodulation and decoding circuit for processing the signal at the receiving end. The digital section processes ISO14443A frames and performs parity detection. The chip can support higher-speed contactless communication, and its two-way data transmission rate is also very high. MFRC522 is one of the 13.5MHz high-integration read-write series chips. Its communication with the host adopts serial communication with fewer connections, and it can perform one of SPI, I2C or serial modes according to different user needs. The selection of the species is conducive to reducing the number of connections, reducing the volume of the PCB board, and can also reduce the cost.

MFRC522可以与不同控制器芯片的接口相连,他拥有自动检测逻辑,因此可以启动自适应系统模式与其它接口相连。值得注意的是,MFRC522虽然支持不同的数字接口,且其接口形式具有多样化,所以,芯片在每次复位后都需要对外部引脚的连接关系进行重新检测。MFRC522 can be connected with interfaces of different controller chips. It has automatic detection logic, so it can start adaptive system mode to connect with other interfaces. It is worth noting that although MFRC522 supports different digital interfaces, and its interface forms are diversified, so the chip needs to re-check the connection relationship of the external pins after each reset.

天线6主要用于产生磁通量,天线6的作用即为向无源标签提供能量并建立标签与读写器之间的连接。13.56MHz射频天线及匹配电路共有三个组成部分:线圈、LC谐振电路和EMC滤波电路。天线6的设计中,保证其产生一个强的电磁场是设计天线6的一个基本条件。其目的是使卡片可以通过天线6为自身供电。同时,必须有足够的通带来传送信号也为天线6输出能量的一个验证标准。The antenna 6 is mainly used to generate magnetic flux, and the function of the antenna 6 is to provide energy to the passive tag and establish a connection between the tag and the reader. The 13.56MHz RF antenna and matching circuit have three components: coil, LC resonant circuit and EMC filter circuit. In the design of the antenna 6 , ensuring that it generates a strong electromagnetic field is a basic condition for designing the antenna 6 . Its purpose is to enable the card to power itself through the antenna 6 . At the same time, there must be enough passband to transmit the signal and also be a verification standard for the output energy of the antenna 6 .

天线6的谐振频率公式为式(3.1):The resonant frequency formula of antenna 6 is formula (3.1):

其中,f为谐振频率,L为天线6等效电感,C为等效电容。本论文中,天线6的工作频率为13.5MHz,若天线6等效电感L过高,则C就应该变小。环形天线6电感计算公式为:Wherein, f is the resonant frequency, L is the equivalent inductance of the antenna 6, and C is the equivalent capacitance. In this thesis, the working frequency of antenna 6 is 13.5MHz. If the equivalent inductance L of antenna 6 is too high, then C should be reduced. The formula for calculating the inductance of the loop antenna 6 is:

公式(3.2)中,I1为环形天线6一周的长度,D1为导线的直径,K为天线6的形状因素。N1为线圈的圈数,P为和线圈结构相关的系数。天线6品质因素Q的计算公式如下:In the formula (3.2), I1 is the length of one circle of the loop antenna 6 , D1 is the diameter of the wire, and K is the shape factor of the antenna 6 . N1 is the number of turns of the coil, and P is a coefficient related to the coil structure. The formula for calculating the quality factor Q of antenna 6 is as follows:

Q可以用来评价回路的输出效率,它的值越大,那么能力输出效率就越高。若Q值过高,则会使通带变窄,副载波频率处的能量福多过小,进而会影响调制信号的发送。Q can be used to evaluate the output efficiency of the loop, the larger its value, the higher the output efficiency of the capacity. If the Q value is too high, the passband will be narrowed, and the energy Fodo at the subcarrier frequency will be too small, which will affect the transmission of the modulated signal.

图4为天线6及滤波的匹配电路。在发送部分,引脚TX1与TX2上发送的信号有包络信号调制的13.5MHz载波能量,经过L0与C0组成的EMC滤波电路及C1、C2和Rq组成的匹配电路来驱动天线6。在接收部分,R2与C4保证RX引脚的直流输入电压,R1和C3调整RX引脚的交流输入电压。FIG. 4 is a matching circuit for the antenna 6 and filtering. In the sending part, the signals sent on the pins TX1 and TX2 have 13.5MHz carrier energy modulated by the envelope signal, and drive the antenna 6 through the EMC filter circuit composed of L0 and C0 and the matching circuit composed of C1, C2 and Rq. In the receiving part, R2 and C4 ensure the DC input voltage of the RX pin, and R1 and C3 adjust the AC input voltage of the RX pin.

将产品ID卡5分别放在感应区,当放上ID卡5后,LCD液晶屏将分别显示商品的名称、编号、出厂、与保质期等信息。可以正确的显示出标签中的产品信息,达到预期的设计目标。Put the product ID cards 5 on the induction area respectively, and when the ID cards 5 are put on, the LCD screen will display information such as the name, serial number, ex-factory, and shelf life of the product respectively. The product information in the label can be displayed correctly and the expected design goal can be achieved.

表3产品性能表Table 3 Product Performance Table

可以看到系统的工作电压为3.3V,工作电流为5.0V,系统功耗较低,综合来讲,系统具有良好的可靠性、不易损坏,使用与维修方便,同时,其成本较小,具有较高性价比。It can be seen that the working voltage of the system is 3.3V, the working current is 5.0V, and the power consumption of the system is low. Generally speaking, the system has good reliability, is not easy to be damaged, and is easy to use and maintain. At the same time, its cost is small and has High cost performance.

以上所述仅是对本实用新型的较佳实施例而已,并非对本实用新型作任何形式上的限制,凡是依据本实用新型的技术实质对以上实施例所做的任何简单修改,等同变化与修饰,均属于本实用新型技术方案的范围内。The above descriptions are only preferred embodiments of the present utility model, and are not intended to limit the present utility model in any form. Any simple modifications made to the above embodiments according to the technical essence of the present utility model are equivalent to changes and modifications. All belong to the scope of the technical solution of the utility model.

Claims (3)

1. a kind of food security traceability system based on RFID technique, it is characterised in that food security of RFID technique should be based on Traceability system includes:
MCU units for data to be carried out with computing and treatment;
It is connected with MCU units, for the display shown to operational data;
It is connected with MCU units, the prompt tone unit for producing information of voice prompt;
It is bi-directionally connected with MCU units, for driving reading and writing device antenna to be communicated with answering machine, realizes the nothing of read-write, decoding and write-in Line rfid uint;
It is bi-directionally connected with radio frequency identification unit, for producing magnetic flux to provide energy to passive label and setting up label and read Write the antenna connected between device;
It is connected with radio frequency identification unit, for carrying out cryptographic check with read write line, the ID of operation is written and read to card Card.
2. the food security traceability system of RFID technique is based on as claimed in claim 1, it is characterised in that described wirelessly penetrates Frequency recognition unit is made up of card reader antenna, electronic tag, the part of RFID controller three, electronic tag by card reader antenna with RFID controller is connected.
3. the food security traceability system of RFID technique is based on as claimed in claim 1, it is characterised in that described prompt tone Buzzer is installed inside unit.
CN201621146189.6U 2016-10-21 2016-10-21 Food safety traceability system based on RFID technique Expired - Fee Related CN206193856U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201621146189.6U CN206193856U (en) 2016-10-21 2016-10-21 Food safety traceability system based on RFID technique

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201621146189.6U CN206193856U (en) 2016-10-21 2016-10-21 Food safety traceability system based on RFID technique

Publications (1)

Publication Number Publication Date
CN206193856U true CN206193856U (en) 2017-05-24

Family

ID=58733504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201621146189.6U Expired - Fee Related CN206193856U (en) 2016-10-21 2016-10-21 Food safety traceability system based on RFID technique

Country Status (1)

Country Link
CN (1) CN206193856U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112344619A (en) * 2020-11-04 2021-02-09 海信视像科技股份有限公司 Refrigerator and ingredient information editing method
US12188715B2 (en) 2020-11-04 2025-01-07 Hisense Visual Technology Co., Ltd. Refrigerator and method for editing food information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112344619A (en) * 2020-11-04 2021-02-09 海信视像科技股份有限公司 Refrigerator and ingredient information editing method
US12188715B2 (en) 2020-11-04 2025-01-07 Hisense Visual Technology Co., Ltd. Refrigerator and method for editing food information

Similar Documents

Publication Publication Date Title
CN101894281B (en) A multi-protocol UHF RFID reader baseband signal processing SOC chip
CN206193856U (en) Food safety traceability system based on RFID technique
CN104502695A (en) Zero power consumption energy meter read by radio frequency
CN103927566A (en) Embedded RFID read-write device, monitoring system and monitoring method
CN206224537U (en) A kind of medicinal intelligent Wearable system
CN201203873Y (en) High-performance double-interface card reader
CN206378861U (en) A kind of secure device of enterprises confidential information data
CN104764515A (en) Intelligent electronic scale based on ZigBee and RFID
CN206961177U (en) A kind of RFID production line balance management systems based on Bluetooth technology
CN201698443U (en) Usb radio frequency card reader
CN206711268U (en) A kind of Portable Ticket-Selling Device
CN106572174A (en) Zigbee based intelligent RFID induction bookmark
CN203276294U (en) Multifunctional card reader
CN204288237U (en) A kind of Network Smart Card Reader-Writer
CN202976150U (en) Interface-expandable smart card reader-writer
CN203276315U (en) Double-interface IC card reading/writing device
CN203054881U (en) Radio-frequency card reader writer based on single-chip microcomputer
CN203276402U (en) Multifunctional payment terminal
CN106529630A (en) Wearable RFID reader-writer and data reading method and device
CN201465131U (en) A multi-standard radio frequency card reading and writing device capable of updating programs in the system
CN205845211U (en) A kind of multi-functional public transport card fills shifting money POS
CN204537139U (en) A kind of portable RFID card reader based on blue tooth interface and attendance checking system
CN103325150A (en) Campus card attendance system
CN204331767U (en) A kind of frequency read/write
CN206058243U (en) A kind of personnel's register system based on RFID technique

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170524

Termination date: 20171021