WO2012136019A1 - Radio frequency identification system based communication method, apparatus and system - Google Patents

Radio frequency identification system based communication method, apparatus and system Download PDF

Info

Publication number
WO2012136019A1
WO2012136019A1 PCT/CN2011/076088 CN2011076088W WO2012136019A1 WO 2012136019 A1 WO2012136019 A1 WO 2012136019A1 CN 2011076088 W CN2011076088 W CN 2011076088W WO 2012136019 A1 WO2012136019 A1 WO 2012136019A1
Authority
WO
WIPO (PCT)
Prior art keywords
reader
random number
data frame
current inventory
idle state
Prior art date
Application number
PCT/CN2011/076088
Other languages
French (fr)
Chinese (zh)
Inventor
吴奇
徐运
刘金栋
汪旭光
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012136019A1 publication Critical patent/WO2012136019A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer

Definitions

  • the present invention relates to the field of radio frequency identification, and in particular, to a communication method, device and system based on a radio frequency identification system. Background technique
  • RFID Radio Frequency Identification
  • An RFID system generally includes a reader and an electronic tag, wherein the reader is a device that reads electronic tag information.
  • the reader performs data transmission and reception in units of counting cycles, that is, an inventory period includes two stages of transmitting data and receiving data. According to different application scenarios, the number of transmitting data frames and the time slots included in one inventory period are included. The numbers are not the same.
  • the RFID system is composed of a roadside base station (dedicated reader), a lane reader, and an electronic tag.
  • the electronic tag At the entrance of the highway, the electronic tag is initialized by the lane reader; on the highway, the electronic tag interacts with the roadside base station and saves the necessary path information; at the highway exit, the electronic tag reads through the lane
  • the card device reports the already stored path information for data processing.
  • the communication between the roadside base station and the electronic tag is unidirectional, that is, only the roadside base station sends the path information to the electronic tag.
  • channel idle detection is required, that is, the idle time period of the roadside base station in the current inventory period is determined to be selected during the idle time period.
  • the slot transmits the information of the electronic tag to the roadside base station.
  • RSSI Received Signal Strength Indication
  • the method performs channel idle detection based on Received Signal Strength Indication (RSSI), that is, the electronic tag monitors the strength of the received carrier signal, that is, RSSI, in real time, and determines that the channel is idle when determining that the RSSI is lower than the set threshold. status.
  • RSSI Received Signal Strength Indication
  • the method is not applicable to active electronic tags.
  • the detection of RSSI requires that the radio frequency circuit of the electronic tag is always in the radio frequency receiving state, and the energy consumption of the electronic tag battery is large; secondly, the detection of the RSSI is easily exposed to the outside world. Environmental interference affects the accuracy of the test results and reduces the stability of the RFID system communication.
  • the present invention provides a communication method, device and system based on a radio frequency identification system for realizing two-way communication between an electronic tag and a reader in a radio frequency identification system, and saving battery energy consumption of the active electronic tag. Ensure the stability of communication between the electronic tag and the reader.
  • a communication method based on a radio frequency identification system including:
  • a message is sent to the reader based on the selected time slot.
  • the method further includes: presetting the format of the data frame sent by the reader, and presetting the frame number of the data frame in a predetermined field in the data frame.
  • selecting one time slot from the time slots included in the current inventory period includes: determining a number of time slots in the channel idle state in the current inventory period, and generating according to the number of time slots A random number, selecting a time slot corresponding to the random number.
  • the method includes: determining, according to the number of time slots, the number of bits occupied by the random number, and initializing the random number; determining whether the number of times of capturing reaches the number of bits occupied by the random number, if not reaching random Counting the number of bits, shifting the random number to the left by one bit, starting the timer and capturing the high frequency clock based on the low frequency clock, and using the value of the lowest bit of the captured data as the lowest bit of the random number And adding the number of captures to 1 and then determining whether the number of captures reaches the number of bits occupied by the random number; if the number of bits occupied by the random number is reached, the time slot corresponding to the random number is selected.
  • a communication device based on a radio frequency identification system comprising:
  • a radio frequency chip configured to receive a data frame sent by the reader during a current inventory period, and send a message to the reader based on a time slot selected by the central processing unit;
  • a central processing unit configured to parse a data frame received by the radio frequency chip, and extract a frame serial number from a predetermined field, calculate a duration of waiting for the current inventory period to enter a channel idle state, and determine that the reader is In the channel idle state, one time slot is selected from the time slots included in the current inventory period.
  • the format of the data frame sent by the reader is preset, and the frame number of the data frame is preset in a predetermined field in the data frame.
  • the central processor calculates, according to the extracted frame sequence number, a duration that the current inventory period needs to wait for entering the channel idle state, specifically: time required for sending a single data frame according to the total time of transmission in the current inventory period, and the data from the data The frame number extracted from the predetermined field of the frame, and the time to wait for entering the channel idle state.
  • the central processor determines from the current inventory period packet when determining that the reader is in a channel idle state
  • One time slot is selected, which is specifically: determining the number of time slots in the channel idle state in the current inventory period, and generating a random number according to the number of the time slots, and selecting the time slot corresponding to the random number.
  • the central processor generates a random number according to the number of time slots, specifically: determining, according to the number of time slots, the number of bits occupied by the random number, and initializing the random number; determining whether the number of times of capturing reaches the number of bits occupied by the random number, and if If the number of bits occupied by the random number is not reached, the random number is shifted to the left by one bit, the timer is started, and the high frequency clock is captured based on the low frequency clock, and the lowest bit of the captured data is used as the lowest bit of the random number.
  • the value of the bit, and the number of times of the capture is incremented by one to determine whether the number of times of the capture reaches the number of bits occupied by the random number; if the number of bits occupied by the random number is reached, the time slot corresponding to the random number is selected.
  • a radio frequency identification based communication system comprising:
  • a reader configured to send a data frame to the electronic tag, and receive the message sent by the electronic tag;
  • the electronic tag is configured to receive the data frame sent by the reader during the current inventory period, parse the data frame, and extract the frame serial number from the predetermined field And calculating, according to the extracted frame sequence number, a duration that the current inventory period needs to wait for entering the channel idle state, and determining that the reader is a channel idle state, selecting a time slot from the time slots included in the current inventory period, and A message is sent to the reader based on the selected time slot.
  • the electronic tag after receiving the data frame sent by the reader in the current inventory period, the electronic tag parses the data frame and extracts the frame serial number from the predetermined field, and then calculates the current inventory period based on the extracted frame serial number.
  • FIG. 1 is a schematic structural diagram of a radio frequency identification system according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of an electronic tag according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a communication method based on a radio frequency identification system according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a composition of a check cycle of a reader according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a format of a data frame generated by a reader in an embodiment of the present invention. detailed description
  • the embodiment of the present invention provides a radio frequency based A communication method, apparatus, and system for identifying a system.
  • the method is: the electronic tag receives a data frame sent by the reader during the current inventory period, parses the data frame, and extracts a frame serial number from a predetermined field, and calculates a duration to wait for the current inventory period to enter the channel idle state based on the extracted frame serial number, and When it is determined that the reader is in the channel idle state, one time slot is selected from the time slots included in the current inventory period, and a message is sent to the reader based on the selected time slot.
  • the RFID system is mainly composed of a reader 101 and an electronic tag 102, wherein
  • the reader 101 is configured to send a data frame to the electronic tag 102, and receive a message sent by the electronic tag 102;
  • the electronic tag 102 is configured to receive a data frame sent by the reader 101 during a current inventory period, parse the data frame, and extract a frame serial number from a predetermined field, and calculate, according to the extracted frame serial number, a duration that the current inventory period needs to wait for entering the channel idle state, When it is determined that the reader 101 is in the channel idle state, one slot is selected from the slots included in the current inventory period, and a message is transmitted to the reader 101 based on the selected slot.
  • the electronic tag 102 mainly includes a central processing unit 201, a radio frequency chip 202, The battery and its peripheral circuit 203 and the antenna 204.
  • the radio frequency chip 202 transmits the data frame sent by the reader in the current inventory period to the central processing unit 201 through the antenna 204, and sends a message to the reader based on the time slot selected by the central processing unit 201;
  • the processor 201 is configured to parse the data frame and extract a frame sequence number from the predetermined field, and calculate, according to the extracted frame sequence number, a duration that the current inventory period needs to wait for entering the channel idle state, and when determining that the reader is in the channel idle state, the current inventory period includes One time slot is selected in the time slot; the radio frequency chip 202 is configured to send a message to the reader through the antenna 204 based on the selected time slot.
  • the battery and its peripheral circuit 203 are used to supply power to the central processing unit 201.
  • the detailed method flow for communication based on the radio frequency identification system is as follows:
  • Step 301 Receive a data frame sent by the reader during the current inventory period.
  • an inventory period is set to include N. Data frames and time slots.
  • the electronic tag before the electronic tag receiving reader sends the data frame in the current inventory period, the electronic tag needs to be configured as a timed wake mode, that is, parameters required for configuring the timed wake mode for the electronic tag, for example, sleep duration and wakeup. duration.
  • the central processor configures the radio frequency chip to be in a timed wake mode, and the central processor sends a control command to the radio frequency chip.
  • the radio frequency chip is placed in a timed wake state to receive data frames transmitted by the reader during the current inventory period in the timed wake state.
  • each time the electronic tag enters the timed wake state the time of receiving the data frame sent by the reader for the first time in the timed wake state is recorded.
  • Step 302 Parse the data frame and extract a frame sequence number from the predetermined field, calculate a duration to wait for the current inventory period to enter the channel idle state based on the extracted frame sequence number, and determine that the reader is a channel. In the idle state, one slot is selected from the slots included in the current inventory period.
  • the format of the data frame sent by the reader is defined as shown in FIG. 5.
  • a new field is added to save the current data in the added field.
  • the added field is 2 bytes.
  • calculating a duration of waiting for the current inventory period to enter the channel idle state specifically: sending the total time occupied by the current inventory period, sending the time occupied by the single data frame, and The frame number extracted from the predetermined field of the data frame, and the time to wait for the channel to idle.
  • the total time occupied by the current inventory cycle is 7; the time taken to send a single data frame is 7>, the time of receiving the data frame sent by the reader is 7:, and the frame number extracted from the predetermined field of the data frame is Then the formula for calculating the start time ⁇ ] of entering the channel idle state is as follows:
  • T i T + T - N f xT f
  • the total time occupied by the central processor according to the current inventory cycle is 7; the time occupied by sending a single data frame is 7>, and the frame number extracted from the predetermined field of the data frame.
  • N calculate the time ⁇ to wait for entering the channel idle state, and according to the setting of the internal timer of the central processing unit, the radio frequency chip is in a sleep state, real-time monitoring the internal timer of the central processing unit, and in the timer After the set time has elapsed, it is determined that the idle state of the current inventory cycle is entered.
  • the number of time slots in the channel idle state in the current inventory period is determined, and the random number is generated according to the number of the time slots, and the random number is selected. The number of corresponding time slots.
  • the high frequency clock can be captured based on a low frequency clock inside the central processing unit to generate a random number. Specifically, determining the number of bits occupied by the random number according to the number of time slots included in an inventory period, and initializing the random number; and determining whether the number of times of the capture reaches the number of bits occupied by the random number, and if the number of bits occupied by the random number is not reached, Move the random number to the left by one bit, start the timer and capture the high frequency clock based on the low frequency clock, take the value of the lowest bit of the captured data as the value of the lowest bit of the random number, and add 1 to the number of captures. It is determined again whether the number of acquisitions reaches the number of bits occupied by the random number; if the number of bits occupied by the random number is reached, the time slot corresponding to the random number is selected to send a message to the reader.
  • the random number is initialized to zero.
  • the number of captures is determined to be zero, the random number is shifted to the left by one bit, and the start is performed.
  • the timer captures the high frequency clock based on the low frequency clock. If the lowest bit of the captured data is 1, the lowest bit position of the random number is 1 and the number of captures is increased by 1 (the number of captures is 1); If the number of captures is 1, the random number is shifted to the left by one bit, the timer is started, and the high frequency clock is captured based on the low frequency clock. If the lowest bit of the captured data is 0, the lowest bit position of the random number is 0.
  • the random number is shifted to the left by one bit, the timer is started, and the high frequency clock is captured based on the low frequency clock, if the captured data is the lowest If the bit is 1, the lowest bit position of the random number is 1 and the number of captures is increased by 1 (the number of captures is 3); then the number of captures is 3, and the random number is occupied.
  • the number of bits, a random number is generated, and the random number represented in binary as 101, that is 5, the fifth slot from the start to send information to the reader.
  • Step 303 Send a message to the reader based on the selected time slot.
  • the waiting time ⁇ 7 is calculated according to the random number; and the timer inside the central processing unit is configured to be ⁇ 7 according to the waiting time; while waiting for ⁇ 71 Long after sending a message to the reader.
  • the electronic tag by adding a field in a data frame of the reader, and placing a frame number of the data frame in the added field, the electronic tag transmits the data frame in the current inventory period of the reader. After that, the data frame is parsed and the frame number is extracted from the predetermined field, and then the length of time that the current inventory period enters the channel idle state is calculated based on the extracted frame number, and after waiting for the duration, when the reader is determined to be the channel idle state, the selection is performed.
  • the time slot sends a message to the reader, thereby realizing the two-way communication between the electronic tag and the reader, and does not increase the energy consumption of the battery by the active electronic tag, thereby ensuring the stability of communication between the electronic tag and the reader.
  • the technical solution provided by the embodiment of the present invention does not need to change the original hardware structure of the radio frequency communication system, and the implementation is simple. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Landscapes

  • Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Near-Field Transmission Systems (AREA)

Abstract

A radio frequency identification system based communication method, apparatus and system are disclosed, which are used for implementing bi-directional communication between an electronic tag and a reader in the radio frequency identification system, saving battery power consumption in an active electronic tag, and guaranteeing communication stability between the electronic tag and the reader. Wherein, the method includes: receiving data frames sent by the reader in the current checking period, analyzing the data frames and extracting frame sequence numbers from preset fields, calculating waiting time required for the current checking period to enter into a channel idle state based on the extracted frame sequence numbers, selecting one timeslot from timeslots included in the current checking period when determining the reader is in the channel idle state, and transmitting messages to the reader based on the selected timeslot.

Description

一种基于射频识别系统的通信方法、 装置及系统 技术领域  Communication method, device and system based on radio frequency identification system
本发明涉及射频识别领域, 尤其涉及一种基于射频识别系统的通信方 法、 装置及系统。 背景技术  The present invention relates to the field of radio frequency identification, and in particular, to a communication method, device and system based on a radio frequency identification system. Background technique
目前, 以射频识别( Radio Frequency Identification, RFID )技术为核心 的应用系统在智能交通领域得到广泛应用。 RFID技术是利用射频信号基于 空间耦合传输特性, 非接触式地实现对物体的自动识别。 RFID系统一般包 括阅读器和电子标签两部分, 其中阅读器为读取电子标签信息的设备。 阅 读器以清点周期为单位进行数据收发, 即一个清点周期内包含了发送数据 和接收数据两个阶段, 根据应用场景不同, 在一个清点周期内包含的发送 数据帧的个数以及时隙的个数也不相同。  At present, application systems based on Radio Frequency Identification (RFID) technology are widely used in the field of intelligent transportation. The RFID technology utilizes the radio frequency signal based on the spatial coupling transmission characteristic to realize the automatic recognition of the object in a non-contact manner. An RFID system generally includes a reader and an electronic tag, wherein the reader is a device that reads electronic tag information. The reader performs data transmission and reception in units of counting cycles, that is, an inventory period includes two stages of transmitting data and receiving data. According to different application scenarios, the number of transmitting data frames and the time slots included in one inventory period are included. The numbers are not the same.
以高速公路的路径识别系统为例, RFID系统由路侧基站(专用的阅读 器)、 车道读卡器和电子标签三部分组成。 在高速公路入口, 通过车道读卡 器对电子标签进行初始化信息设置; 在高速公路上, 电子标签与路侧基站 进行信息交互, 并保存必要的路径信息; 在高速公路出口, 电子标签通过 车道读卡器将已经存储的路径信息进行上报以进行数据处理。 然而, 路侧 基站与电子标签之间的通信是单向的, 即仅由路侧基站向电子标签下发路 径信息。 随着市场需求的不断变化和 RFID技术的发展, 实现路侧基站和电 子标签之间的双向通信成为必然的趋势。  Taking the route identification system of the expressway as an example, the RFID system is composed of a roadside base station (dedicated reader), a lane reader, and an electronic tag. At the entrance of the highway, the electronic tag is initialized by the lane reader; on the highway, the electronic tag interacts with the roadside base station and saves the necessary path information; at the highway exit, the electronic tag reads through the lane The card device reports the already stored path information for data processing. However, the communication between the roadside base station and the electronic tag is unidirectional, that is, only the roadside base station sends the path information to the electronic tag. With the continuous changes in market demand and the development of RFID technology, it is an inevitable trend to realize two-way communication between the roadside base station and the electronic tag.
在基于时分的通信系统中, 若实现路侧基站和电子标签之间的双向通 信, 需要进行信道空闲检测, 即确定路侧基站在当前清点周期内的空闲时 间段, 以在空闲时间段选择时隙将电子标签的信息发送给路侧基站。 传统 的方法基于接收信号强度指示 ( Received Signal Strength Indication, RSSI ) 进行信道空闲检测, 即电子标签实时监测接收的载波信号的强度、即 RSSI, 在确定 RSSI低于设定阔值时, 确定信道处于空闲状态。 但是, 该方法并不 适用于有源电子标签, 首先, 对 RSSI进行检测需要电子标签的射频电路始 终处于射频接收状态, 对电子标签电池的能量消耗较大; 其次, 对 RSSI进 行检测容易受到外界环境的干扰, 影响检测结果的准确性, 同时会降低 RFID系统通信的稳定性。 发明内容 In the time-based communication system, if two-way communication between the roadside base station and the electronic tag is implemented, channel idle detection is required, that is, the idle time period of the roadside base station in the current inventory period is determined to be selected during the idle time period. The slot transmits the information of the electronic tag to the roadside base station. Traditional The method performs channel idle detection based on Received Signal Strength Indication (RSSI), that is, the electronic tag monitors the strength of the received carrier signal, that is, RSSI, in real time, and determines that the channel is idle when determining that the RSSI is lower than the set threshold. status. However, the method is not applicable to active electronic tags. First, the detection of RSSI requires that the radio frequency circuit of the electronic tag is always in the radio frequency receiving state, and the energy consumption of the electronic tag battery is large; secondly, the detection of the RSSI is easily exposed to the outside world. Environmental interference affects the accuracy of the test results and reduces the stability of the RFID system communication. Summary of the invention
有鉴于此, 本发明提供一种基于射频识别系统的通信方法、 装置及系 统, 用以实现射频识别系统中电子标签和阅读器之间的双向通信, 并节约 有源电子标签的电池能量消耗, 保证电子标签和阅读器之间通信的稳定性。  In view of the above, the present invention provides a communication method, device and system based on a radio frequency identification system for realizing two-way communication between an electronic tag and a reader in a radio frequency identification system, and saving battery energy consumption of the active electronic tag. Ensure the stability of communication between the electronic tag and the reader.
为解决上述技术问题, 本发明实施例提供的具体技术方案如下: 一种基于射频识别系统的通信方法, 包括:  To solve the above technical problem, the specific technical solution provided by the embodiment of the present invention is as follows: A communication method based on a radio frequency identification system, including:
接收阅读器在当前清点周期内发送的数据帧;  Receiving a data frame sent by the reader during the current inventory period;
解析所述数据帧并从预定字段提取帧序号, 基于提取的帧序号计算所 述当前清点周期进入信道空闲状态需等待的时长, 并在确定所述阅读器为 信道空闲状态时, 从所述当前清点周期包含的时隙中选择一个时隙;  Parsing the data frame and extracting a frame number from a predetermined field, calculating a duration of waiting for the current inventory period to enter a channel idle state based on the extracted frame number, and determining that the reader is a channel idle state, from the current Selecting one time slot from the time slots included in the inventory period;
基于选择的时隙向所述阅读器发送消息。  A message is sent to the reader based on the selected time slot.
所述接收阅读器在当前清点周期内发送的数据帧之前, 进一步包括: 预设阅读器发送的数据帧的格式, 在数据帧中的预定字段内预置所述数据 帧的帧序号。  Before receiving the data frame sent by the reader in the current inventory period, the method further includes: presetting the format of the data frame sent by the reader, and presetting the frame number of the data frame in a predetermined field in the data frame.
所述基于提取的帧序号计算当前清点周期进入信道空闲状态需等待的 时长, 包括: 根据当前清点周期中发送占用的总时间, 发送单个数据帧占 用的时间, 以及从所述数据帧的预定字段提取的帧序号, 计算进入信道空 闲状态需等待的时间。 所述在确定阅读器为信道空闲状态时, 从当前清点周期包含的时隙中 选择一个时隙, 包括: 确定当前清点周期中处于信道空闲状态的时隙数目, 并根据所述时隙数目生成随机数, 选择所述随机数对应的时隙。 And calculating, according to the extracted frame sequence number, a duration that the current inventory period needs to wait for entering the channel idle state, including: sending a time occupied by a single data frame according to a total time of sending and occupying in the current inventory period, and a predetermined field from the data frame The extracted frame number, and the time to wait for entering the channel idle state. When determining that the reader is in the channel idle state, selecting one time slot from the time slots included in the current inventory period includes: determining a number of time slots in the channel idle state in the current inventory period, and generating according to the number of time slots A random number, selecting a time slot corresponding to the random number.
所述根据时隙数目生成随机数时, 包括: 根据所述时隙数目确定随机 数占用的比特数, 并初始化所述随机数; 判断捕获次数是否达到随机数占 用的比特数, 若没有达到随机数占用的比特数, 将随机数左移一个比特位, 启动定时器并基于低频时钟对高频时钟进行捕获, 将捕获的数据的最低比 特位的值作为所述随机数的最低比特位的值, 并将捕获次数加 1后再次判 断捕获次数是否达到随机数占用的比特数; 若达到随机数占用的比特数, 选择所述随机数对应的时隙。  When the random number is generated according to the number of time slots, the method includes: determining, according to the number of time slots, the number of bits occupied by the random number, and initializing the random number; determining whether the number of times of capturing reaches the number of bits occupied by the random number, if not reaching random Counting the number of bits, shifting the random number to the left by one bit, starting the timer and capturing the high frequency clock based on the low frequency clock, and using the value of the lowest bit of the captured data as the lowest bit of the random number And adding the number of captures to 1 and then determining whether the number of captures reaches the number of bits occupied by the random number; if the number of bits occupied by the random number is reached, the time slot corresponding to the random number is selected.
一种基于射频识别系统的通信装置, 包括:  A communication device based on a radio frequency identification system, comprising:
射频芯片, 用于接收阅读器在当前清点周期内发送的数据帧, 并基于 中央处理器选择的时隙向阅读器发送消息;  a radio frequency chip, configured to receive a data frame sent by the reader during a current inventory period, and send a message to the reader based on a time slot selected by the central processing unit;
中央处理器, 用于解析射频芯片接收的数据帧, 并从预定字段提取帧 序号, 基于提取的帧序号计算所述当前清点周期进入信道空闲状态需等待 的时长, 并在确定所述阅读器为信道空闲状态时, 从所述当前清点周期包 含的时隙中选择一个时隙。  a central processing unit, configured to parse a data frame received by the radio frequency chip, and extract a frame serial number from a predetermined field, calculate a duration of waiting for the current inventory period to enter a channel idle state, and determine that the reader is In the channel idle state, one time slot is selected from the time slots included in the current inventory period.
在所述射频芯片接收阅读器在当前清点周期内发送的数据帧之前, 预 设阅读器发送的数据帧的格式, 在数据帧中的预定字段内预置所述数据帧 的帧序号。  Before the radio frequency chip receives the data frame sent by the reader in the current inventory period, the format of the data frame sent by the reader is preset, and the frame number of the data frame is preset in a predetermined field in the data frame.
所述中央处理器基于提取的帧序号计算当前清点周期进入信道空闲状 态需等待的时长, 具体为: 根据当前清点周期中发送占用的总时间, 发送 单个数据帧占用的时间, 以及从所述数据帧的预定字段提取的帧序号, 计 算进入信道空闲状态需等待的时间。  The central processor calculates, according to the extracted frame sequence number, a duration that the current inventory period needs to wait for entering the channel idle state, specifically: time required for sending a single data frame according to the total time of transmission in the current inventory period, and the data from the data The frame number extracted from the predetermined field of the frame, and the time to wait for entering the channel idle state.
所述中央处理器在确定阅读器为信道空闲状态时, 从当前清点周期包 含的时隙中选择一个时隙, 具体为: 确定当前清点周期中处于信道空闲状 态的时隙数目, 并根据所述时隙数目生成随机数, 选择所述随机数对应的 时隙。 The central processor determines from the current inventory period packet when determining that the reader is in a channel idle state One time slot is selected, which is specifically: determining the number of time slots in the channel idle state in the current inventory period, and generating a random number according to the number of the time slots, and selecting the time slot corresponding to the random number.
所述中央处理器根据时隙数目生成随机数, 具体为: 根据所述时隙数 目确定随机数占用的比特数, 并初始化所述随机数; 判断捕获次数是否达 到随机数占用的比特数, 若没有达到随机数占用的比特数, 将随机数左移 一个比特位, 启动定时器并基于低频时钟对高频时钟进行捕获, 将捕获的 数据的最低比特位的值作为所述随机数的最低比特位的值, 并将捕获次数 加 1后再次判断捕获次数是否达到随机数占用的比特数; 若达到随机数占 用的比特数, 选择所述随机数对应的时隙。  The central processor generates a random number according to the number of time slots, specifically: determining, according to the number of time slots, the number of bits occupied by the random number, and initializing the random number; determining whether the number of times of capturing reaches the number of bits occupied by the random number, and if If the number of bits occupied by the random number is not reached, the random number is shifted to the left by one bit, the timer is started, and the high frequency clock is captured based on the low frequency clock, and the lowest bit of the captured data is used as the lowest bit of the random number. The value of the bit, and the number of times of the capture is incremented by one to determine whether the number of times of the capture reaches the number of bits occupied by the random number; if the number of bits occupied by the random number is reached, the time slot corresponding to the random number is selected.
一种基于射频识别的通信系统, 包括:  A radio frequency identification based communication system, comprising:
阅读器, 用于向电子标签发送数据帧, 并接收电子标签发送的消息; 电子标签, 用于接收阅读器在当前清点周期内发送的数据帧, 解析所 述数据帧并从预定字段提取帧序号, 基于提取的帧序号计算所述当前清点 周期进入信道空闲状态需等待的时长, 在确定所述阅读器为信道空闲状态 时, 从所述当前清点周期包含的时隙中选择一个时隙, 并基于选择的时隙 向所述阅读器发送消息。  a reader, configured to send a data frame to the electronic tag, and receive the message sent by the electronic tag; the electronic tag is configured to receive the data frame sent by the reader during the current inventory period, parse the data frame, and extract the frame serial number from the predetermined field And calculating, according to the extracted frame sequence number, a duration that the current inventory period needs to wait for entering the channel idle state, and determining that the reader is a channel idle state, selecting a time slot from the time slots included in the current inventory period, and A message is sent to the reader based on the selected time slot.
基于上述技术方案, 本发明实施例中, 电子标签在接收阅读器在当前 清点周期内发送的数据帧后, 解析该数据帧并从预定字段提取帧序号, 再 基于提取的帧序号计算当前清点周期进入信道空闲状态需等待的时长, 并 在等待该时长后, 确定阅读器为信道空闲状态时, 选择时隙向阅读器发送 消息, 从而实现了电子标签和阅读器之间的双向通信, 并且, 不会增加有 源电子标签对电池能量的消耗, 保证了电子标签和阅读器之间通信的稳定 性, 也无需改变射频通信系统原有的硬件结构, 实现简单。 附图说明 Based on the foregoing technical solution, in the embodiment of the present invention, after receiving the data frame sent by the reader in the current inventory period, the electronic tag parses the data frame and extracts the frame serial number from the predetermined field, and then calculates the current inventory period based on the extracted frame serial number. The length of time to wait for entering the channel idle state, and after waiting for the duration, determining that the reader is in the channel idle state, selecting the time slot to send a message to the reader, thereby implementing two-way communication between the electronic tag and the reader, and It does not increase the energy consumption of the active electronic tag on the battery, ensures the stability of communication between the electronic tag and the reader, and does not need to change the original hardware structure of the radio frequency communication system, and is simple to implement. DRAWINGS
图 1为本发明实施例中射频识别系统结构示意图;  1 is a schematic structural diagram of a radio frequency identification system according to an embodiment of the present invention;
图 2为本发明实施例中电子标签的结构示意图;  2 is a schematic structural diagram of an electronic tag according to an embodiment of the present invention;
图 3为本发明实施例中基于射频识别系统的通信方法流程示意图; 图 4为本发明实施例中阅读器清点周期组成示意图;  3 is a schematic flowchart of a communication method based on a radio frequency identification system according to an embodiment of the present invention; FIG. 4 is a schematic diagram of a composition of a check cycle of a reader according to an embodiment of the present invention;
图 5为本发明实施例中阅读器发生的数据帧的格式示意图。 具体实施方式  FIG. 5 is a schematic diagram of a format of a data frame generated by a reader in an embodiment of the present invention. detailed description
为了实现 RFID系统中电子标签和阅读器之间的双向通信,并节约有源 电子标签的电池能量消耗, 保证电子标签和阅读器之间通信的稳定性, 本 发明实施例提供了一种基于射频识别系统的通信方法、 装置及系统。 其中 方法为: 电子标签接收阅读器在当前清点周期内发送的数据帧, 解析该数 据帧并从预定字段提取帧序号, 基于提取的帧序号计算当前清点周期进入 信道空闲状态需等待的时长, 并在确定阅读器为信道空闲状态时, 从当前 清点周期包含的时隙中选择一个时隙, 基于选择的时隙向阅读器发送消息。  In order to realize the two-way communication between the electronic tag and the reader in the RFID system, and to save the battery energy consumption of the active electronic tag and ensure the stability of the communication between the electronic tag and the reader, the embodiment of the present invention provides a radio frequency based A communication method, apparatus, and system for identifying a system. The method is: the electronic tag receives a data frame sent by the reader during the current inventory period, parses the data frame, and extracts a frame serial number from a predetermined field, and calculates a duration to wait for the current inventory period to enter the channel idle state based on the extracted frame serial number, and When it is determined that the reader is in the channel idle state, one time slot is selected from the time slots included in the current inventory period, and a message is sent to the reader based on the selected time slot.
下面结合附图对本发明优选的实施例进行详细说明。  Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
如附图 1所示, 本发明实施例中, RFID系统主要由阅读器 101和电子 标签 102组成, 其中,  As shown in FIG. 1, in the embodiment of the present invention, the RFID system is mainly composed of a reader 101 and an electronic tag 102, wherein
阅读器 101 , 用于向电子标签 102发送数据帧, 并接收电子标签 102发 送的消息;  The reader 101 is configured to send a data frame to the electronic tag 102, and receive a message sent by the electronic tag 102;
电子标签 102, 用于接收阅读器 101在当前清点周期内发送的数据帧, 解析该数据帧并从预定字段提取帧序号, 基于提取的帧序号计算当前清点 周期进入信道空闲状态需等待的时长, 在确定阅读器 101 为信道空闲状态 时, 从当前清点周期包含的时隙中选择一个时隙, 基于选择的时隙向阅读 器 101发送消息。  The electronic tag 102 is configured to receive a data frame sent by the reader 101 during a current inventory period, parse the data frame, and extract a frame serial number from a predetermined field, and calculate, according to the extracted frame serial number, a duration that the current inventory period needs to wait for entering the channel idle state, When it is determined that the reader 101 is in the channel idle state, one slot is selected from the slots included in the current inventory period, and a message is transmitted to the reader 101 based on the selected slot.
如附图 2所示,电子标签 102主要包括中央处理器 201、射频芯片 202、 电池及其外围电路 203以及天线 204。 本发明实施例中, 射频芯片 202通过 天线 204用于接收阅读器在当前清点周期内发送的数据帧传送给中央处理 器 201 , 并基于中央处理器 201选择的时隙向阅读器发送消息; 中央处理器 201用于解析数据帧并从预定字段提取帧序号,基于提取的帧序号计算当前 清点周期进入信道空闲状态需等待的时长, 在确定阅读器为信道空闲状态 时, 从当前清点周期包含的时隙中选择一个时隙; 射频芯片 202用于基于 选择的时隙通过天线 204向阅读器发送消息。 其中, 电池及其外围电路 203 用于向中央处理器 201供电。 As shown in FIG. 2, the electronic tag 102 mainly includes a central processing unit 201, a radio frequency chip 202, The battery and its peripheral circuit 203 and the antenna 204. In the embodiment of the present invention, the radio frequency chip 202 transmits the data frame sent by the reader in the current inventory period to the central processing unit 201 through the antenna 204, and sends a message to the reader based on the time slot selected by the central processing unit 201; The processor 201 is configured to parse the data frame and extract a frame sequence number from the predetermined field, and calculate, according to the extracted frame sequence number, a duration that the current inventory period needs to wait for entering the channel idle state, and when determining that the reader is in the channel idle state, the current inventory period includes One time slot is selected in the time slot; the radio frequency chip 202 is configured to send a message to the reader through the antenna 204 based on the selected time slot. The battery and its peripheral circuit 203 are used to supply power to the central processing unit 201.
基于上述系统架构, 如附图 3 所示, 本发明实施例中, 基于射频识别 系统进行通信的详细方法流程如下:  Based on the above system architecture, as shown in FIG. 3, in the embodiment of the present invention, the detailed method flow for communication based on the radio frequency identification system is as follows:
步骤 301 : 接收阅读器在当前清点周期内发送的数据帧。  Step 301: Receive a data frame sent by the reader during the current inventory period.
如附图 4所示, 根据应用场景的不同, 阅读器的一个清点周期内包含 的数据帧的个数以及时隙的个数也不相同, 本发明实施例中, 设定一个清 点周期包含 N个数据帧和 个时隙。 本发明实施例中, 电子标签接收阅读 器在当前清点周期内发送的数据帧之前, 需要配置电子标签为定时唤醒模 式, 即针对电子标签配置定时唤醒模式所需的参数, 例如, 休眠时长以及 唤醒时长。  As shown in FIG. 4, the number of data frames and the number of time slots included in an inventory period of the reader are different according to the application scenario. In the embodiment of the present invention, an inventory period is set to include N. Data frames and time slots. In the embodiment of the present invention, before the electronic tag receiving reader sends the data frame in the current inventory period, the electronic tag needs to be configured as a timed wake mode, that is, parameters required for configuring the timed wake mode for the electronic tag, for example, sleep duration and wakeup. duration.
较佳地, 在电子标签中, 由射频芯片接收阅读器在当前清点周期内发 送的数据帧之前, 由中央处理器配置射频芯片为定时唤醒模式, 并由中央 处理器向射频芯片发送控制命令, 使射频芯片处于定时唤醒状态, 以在该 定时唤醒状态下接收阅读器在当前清点周期内发送的数据帧。  Preferably, in the electronic tag, before the radio frequency chip receives the data frame sent by the reader during the current inventory period, the central processor configures the radio frequency chip to be in a timed wake mode, and the central processor sends a control command to the radio frequency chip. The radio frequency chip is placed in a timed wake state to receive data frames transmitted by the reader during the current inventory period in the timed wake state.
其中, 在电子标签每次进入定时唤醒状态后, 记录在该定时唤醒状态 下首次接收阅读器发送的数据帧的时间。  Wherein, each time the electronic tag enters the timed wake state, the time of receiving the data frame sent by the reader for the first time in the timed wake state is recorded.
步骤 302: 解析数据帧并从预定字段提取帧序号,基于提取的帧序号计 算当前清点周期进入信道空闲状态需等待的时长, 并在确定阅读器为信道 空闲状态时, 从当前清点周期包含的时隙中选择一个时隙。 Step 302: Parse the data frame and extract a frame sequence number from the predetermined field, calculate a duration to wait for the current inventory period to enter the channel idle state based on the extracted frame sequence number, and determine that the reader is a channel. In the idle state, one slot is selected from the slots included in the current inventory period.
本发明实施例中, 定义阅读器发送的数据帧的格式如附图 5 所示, 在 原始信息字段即帧头信息和阅读器信息之后, 增加新的字段, 以在该增加 的字段保存当前数据帧的帧序号。 较佳地, 增加的字段为 2字节。  In the embodiment of the present invention, the format of the data frame sent by the reader is defined as shown in FIG. 5. After the original information field, that is, the frame header information and the reader information, a new field is added to save the current data in the added field. The frame number of the frame. Preferably, the added field is 2 bytes.
其中, 解析数据帧并从预定字段提取帧序号之后, 计算当前清点周期 进入信道空闲状态需等待的时长, 具体为: 根据当前清点周期发送占用的 总时间, 发送单个数据帧占用的时间, 以及从数据帧的预定字段提取的帧 序号, 计算信道空闲需等待的时间。  After parsing the data frame and extracting the frame number from the predetermined field, calculating a duration of waiting for the current inventory period to enter the channel idle state, specifically: sending the total time occupied by the current inventory period, sending the time occupied by the single data frame, and The frame number extracted from the predetermined field of the data frame, and the time to wait for the channel to idle.
定义当前清点周期发送占用的总时间为 7; , 发送单个数据帧占用的时 间为 7> ,首次接收阅读器发送的数据帧的时间为 7: , 从数据帧的预定字段提 取的帧序号为 , 则计算进入信道空闲状态的起始时间 Ί]的公式如下: The total time occupied by the current inventory cycle is 7; the time taken to send a single data frame is 7>, the time of receiving the data frame sent by the reader is 7:, and the frame number extracted from the predetermined field of the data frame is Then the formula for calculating the start time 进入] of entering the channel idle state is as follows:
Ti = T +T - Nf xTf , 则进一步可计算得到进入信道空闲状态需等待的时间 为: = 7· -7; = Γ - Nf xTfT i = T + T - N f xT f , then the time to wait for the idle state of the incoming channel is further calculated as: = 7· -7; = Γ - N f xT f .
本发明实施例中, 在电子标签中, 由中央处理器根据当前清点周期发 送占用的总时间为 7;, 发送单个数据帧占用的时间为 7> , 以及从数据帧的 预定字段提取的帧序号为 N, , 计算得到进入信道空闲状态需等待的时间 Δη , 并根据该 设置中央处理器内部的定时器, 此时射频芯片处于休眠状 态, 实时监测中央处理器内部的定时器, 并在定时器达到设置的时间后, 确定进入当前清点周期的空闲状态。  In the embodiment of the present invention, in the electronic tag, the total time occupied by the central processor according to the current inventory cycle is 7; the time occupied by sending a single data frame is 7>, and the frame number extracted from the predetermined field of the data frame. For N, , calculate the time Δη to wait for entering the channel idle state, and according to the setting of the internal timer of the central processing unit, the radio frequency chip is in a sleep state, real-time monitoring the internal timer of the central processing unit, and in the timer After the set time has elapsed, it is determined that the idle state of the current inventory cycle is entered.
其中, 在确定阅读器为信道空闲状态时, 进行时隙选择, 本发明实施 例中, 确定当前清点周期中处于信道空闲状态的时隙数目, 并根据该时隙 数目生成随机数, 选择该随机数对应的时隙。  In the embodiment of the present invention, the number of time slots in the channel idle state in the current inventory period is determined, and the random number is generated according to the number of the time slots, and the random number is selected. The number of corresponding time slots.
若一个清点周期中包含的时隙数目为 Ns , 其中, 每个时隙占用的时间 为 7: , 则 电子标签向 阅读器发送消 息的起始 时 间 Γ„ 为 : Tu = Ti + random^ ~ N s、xTsIf the number of time slots included in an inventory cycle is N s , where each time slot occupies 7:, the start time of the message sent by the electronic tag to the reader Γ „ is: T u = Ti + random^ ~ N s , xT s .
较佳地, 根据一个清点周期中包含的时隙数目, 生成一个随机数时, 可以基于中央处理器内部的低频时钟对高频时钟进行捕获生成随机数。 具 体为, 根据一个清点周期中包含的时隙数目确定随机数占用的比特数, 并 初始化该随机数; 然后判断捕获次数是否达到随机数占用的比特数, 若没 有达到随机数占用的比特数, 将随机数左移一个比特位, 启动定时器并基 于低频时钟对高频时钟进行捕获, 将捕获的数据的最低比特位的值作为随 机数的最低比特位的值, 并将捕获次数加 1后再次判断捕获次数是否达到 随机数占用的比特数; 若达到随机数占用的比特数, 选择与该随机数对应 的时隙向阅读器发送消息。  Preferably, when a random number is generated according to the number of time slots included in an inventory period, the high frequency clock can be captured based on a low frequency clock inside the central processing unit to generate a random number. Specifically, determining the number of bits occupied by the random number according to the number of time slots included in an inventory period, and initializing the random number; and determining whether the number of times of the capture reaches the number of bits occupied by the random number, and if the number of bits occupied by the random number is not reached, Move the random number to the left by one bit, start the timer and capture the high frequency clock based on the low frequency clock, take the value of the lowest bit of the captured data as the value of the lowest bit of the random number, and add 1 to the number of captures. It is determined again whether the number of acquisitions reaches the number of bits occupied by the random number; if the number of bits occupied by the random number is reached, the time slot corresponding to the random number is selected to send a message to the reader.
例如,一个清点周期中包含的时隙数目 为 7,则随机数占用的比特数 为 3 , 并将随机数初始化为零; 判断捕获次数为零次, 则将随机数左移一个 比特位, 启动定时器并基于低频时钟对高频时钟进行捕获, 若捕获的数据 的最低比特位为 1 ,则将随机数的最低比特位置为 1 ,并将捕获次数加 1 (捕 获次数为 1 ); 再次判断捕获次数为 1 , 则将随机数左移一个比特位, 启动 定时器并基于低频时钟对高频时钟进行捕获, 若捕获的数据的最低比特位 为 0, 则将随机数的最低比特位置为 0, 并将捕获次数加 1 (捕获次数为 2 ); 判断捕获次数为 2, 则将随机数左移一个比特位, 启动定时器并基于低频时 钟对高频时钟进行捕获, 若捕获的数据的最低比特位为 1 , 则将随机数的最 低比特位置为 1 , 并将捕获次数加 1 (捕获次数为 3 ); 则判断捕获次数为 3 , 达到了随机数占用的比特数,则生成随机数,且随机数用二进制表示为 101 , 即为 5 , 则从第 5个时隙开始向阅读器发送信息。  For example, if the number of slots included in an inventory cycle is 7, the number of bits occupied by the random number is 3, and the random number is initialized to zero. When the number of captures is determined to be zero, the random number is shifted to the left by one bit, and the start is performed. The timer captures the high frequency clock based on the low frequency clock. If the lowest bit of the captured data is 1, the lowest bit position of the random number is 1 and the number of captures is increased by 1 (the number of captures is 1); If the number of captures is 1, the random number is shifted to the left by one bit, the timer is started, and the high frequency clock is captured based on the low frequency clock. If the lowest bit of the captured data is 0, the lowest bit position of the random number is 0. , and increase the number of captures by 1 (the number of captures is 2); to determine the number of captures is 2, the random number is shifted to the left by one bit, the timer is started, and the high frequency clock is captured based on the low frequency clock, if the captured data is the lowest If the bit is 1, the lowest bit position of the random number is 1 and the number of captures is increased by 1 (the number of captures is 3); then the number of captures is 3, and the random number is occupied. The number of bits, a random number is generated, and the random number represented in binary as 101, that is 5, the fifth slot from the start to send information to the reader.
步骤 303: 基于选择的时隙向阅读器发送消息。  Step 303: Send a message to the reader based on the selected time slot.
实际应用中,可以在生成随机数 Random后,根据该随机数计算等待时 间 Δ7; ,并根据该等待时间配置中央处理器内部的定时器为 Δ7; ,在等待 Δ71时 长后向阅读器发送消息。 In practical applications, after generating the random number Random, the waiting time Δ7 is calculated according to the random number; and the timer inside the central processing unit is configured to be Δ7 according to the waiting time; while waiting for Δ71 Long after sending a message to the reader.
基于上述技术方案, 本发明实施例中, 通过在阅读器的数据帧中增加 字段, 并在增加的字段中放置数据帧的帧序号, 电子标签在接收阅读器在 当前清点周期内发送的数据帧后, 解析该数据帧并从预定字段提取帧序号, 再基于提取的帧序号计算当前清点周期进入信道空闲状态需等待的时长, 并在等待该时长后, 确定阅读器为信道空闲状态时, 选择时隙向阅读器发 送消息, 从而实现了电子标签和阅读器之间的双向通信, 并且, 不会增加 有源电子标签对电池能量的消耗, 保证了电子标签和阅读器之间通信的稳 定性。 另外, 本发明实施例所提供的技术方案并不需要改变射频通信系统 原有的硬件结构, 实现简单。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。  Based on the foregoing technical solution, in the embodiment of the present invention, by adding a field in a data frame of the reader, and placing a frame number of the data frame in the added field, the electronic tag transmits the data frame in the current inventory period of the reader. After that, the data frame is parsed and the frame number is extracted from the predetermined field, and then the length of time that the current inventory period enters the channel idle state is calculated based on the extracted frame number, and after waiting for the duration, when the reader is determined to be the channel idle state, the selection is performed. The time slot sends a message to the reader, thereby realizing the two-way communication between the electronic tag and the reader, and does not increase the energy consumption of the battery by the active electronic tag, thereby ensuring the stability of communication between the electronic tag and the reader. . In addition, the technical solution provided by the embodiment of the present invention does not need to change the original hardware structure of the radio frequency communication system, and the implementation is simple. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims

权利要求书 Claim
1、 一种基于射频识别系统的通信方法, 其特征在于, 包括:  A communication method based on a radio frequency identification system, characterized in that it comprises:
接收阅读器在当前清点周期内发送的数据帧;  Receiving a data frame sent by the reader during the current inventory period;
解析所述数据帧并从预定字段提取帧序号, 基于提取的帧序号计算所 述当前清点周期进入信道空闲状态需等待的时长, 并在确定所述阅读器为 信道空闲状态时, 从所述当前清点周期包含的时隙中选择一个时隙;  Parsing the data frame and extracting a frame number from a predetermined field, calculating a duration of waiting for the current inventory period to enter a channel idle state based on the extracted frame number, and determining that the reader is a channel idle state, from the current Selecting one time slot from the time slots included in the inventory period;
基于选择的时隙向所述阅读器发送消息。  A message is sent to the reader based on the selected time slot.
2、 如权利要求 1所述的方法, 其特征在于, 所述接收阅读器在当前清 点周期内发送的数据帧之前, 进一步包括:  2. The method according to claim 1, wherein the receiving reader before the data frame sent in the current inventory period further comprises:
预设阅读器发送的数据帧的格式, 在数据帧中的预定字段内预置所述 数据帧的帧序号。  Presetting the format of the data frame sent by the reader, and presetting the frame number of the data frame in a predetermined field in the data frame.
3、 如权利要求 1所述的方法, 其特征在于, 所述基于提取的帧序号计 算当前清点周期进入信道空闲状态需等待的时长, 包括:  The method according to claim 1, wherein the calculating, based on the extracted frame number, a duration of waiting for the current inventory period to enter the channel idle state, includes:
根据当前清点周期中发送占用的总时间, 发送单个数据帧占用的时间, 以及从所述数据帧的预定字段提取的帧序号, 计算进入信道空闲状态需等 待的时间。  The time taken to send a single data frame according to the total time of transmission in the current inventory period, and the frame number extracted from the predetermined field of the data frame, to calculate the waiting time for entering the channel idle state.
4、 如权利要求 1、 2或 3所述的方法, 其特征在于, 所述在确定阅读 器为信道空闲状态时, 从当前清点周期包含的时隙中选择一个时隙, 包括: 确定当前清点周期中处于信道空闲状态的时隙数目, 并根据所述时隙 数目生成随机数, 选择所述随机数对应的时隙。  The method according to claim 1, 2 or 3, wherein, when determining that the reader is in a channel idle state, selecting a time slot from the time slots included in the current inventory period includes: determining a current inventory The number of time slots in the channel idle state in the period, and generates a random number according to the number of time slots, and selects the time slot corresponding to the random number.
5、 如权利要求 4所述的方法, 其特征在于, 所述根据时隙数目生成随 机数时, 包括:  The method according to claim 4, wherein when the random number is generated according to the number of time slots, the method includes:
根据所述时隙数目确定随机数占用的比特数, 并初始化所述随机数; 判断捕获次数是否达到随机数占用的比特数, 若没有达到随机数占用 的比特数, 将随机数左移一个比特位, 启动定时器并基于低频时钟对高频 时钟进行捕获, 将捕获的数据的最低比特位的值作为所述随机数的最低比 特位的值, 并将捕获次数加 1 后再次判断捕获次数是否达到随机数占用的 比特数; Determining, according to the number of time slots, the number of bits occupied by the random number, and initializing the random number; determining whether the number of times of capturing reaches the number of bits occupied by the random number, and if the number of bits occupied by the random number is not reached, shifting the random number to the left by one bit Bit, start timer and based on low frequency clock to high frequency The clock is captured, and the value of the lowest bit of the captured data is used as the value of the lowest bit of the random number, and the number of times of capture is incremented by one to determine whether the number of times of capture reaches the number of bits occupied by the random number;
若达到随机数占用的比特数, 选择所述随机数对应的时隙。  If the number of bits occupied by the random number is reached, the time slot corresponding to the random number is selected.
6、 一种基于射频识别系统的通信装置, 其特征在于, 包括:  6. A communication device based on a radio frequency identification system, comprising:
射频芯片, 用于接收阅读器在当前清点周期内发送的数据帧, 并基于 中央处理器选择的时隙向阅读器发送消息;  a radio frequency chip, configured to receive a data frame sent by the reader during a current inventory period, and send a message to the reader based on a time slot selected by the central processing unit;
中央处理器, 用于解析射频芯片接收的数据帧, 并从预定字段提取帧 序号, 基于提取的帧序号计算所述当前清点周期进入信道空闲状态需等待 的时长, 并在确定所述阅读器为信道空闲状态时, 从所述当前清点周期包 含的时隙中选择一个时隙。  a central processing unit, configured to parse a data frame received by the radio frequency chip, and extract a frame serial number from a predetermined field, calculate a duration of waiting for the current inventory period to enter a channel idle state, and determine that the reader is In the channel idle state, one time slot is selected from the time slots included in the current inventory period.
7、 如权利要求 6所述的装置, 其特征在于, 在所述射频芯片接收阅读 器在当前清点周期内发送的数据帧之前, 预设阅读器发送的数据帧的格式, 在数据帧中的预定字段内预置所述数据帧的帧序号。  7. The apparatus according to claim 6, wherein the format of the data frame sent by the reader is preset in the data frame before the radio frequency chip receives the data frame sent by the reader in the current inventory period. The frame number of the data frame is preset in a predetermined field.
8、 如权利要求 6所述的装置, 其特征在于, 所述中央处理器基于提取 的帧序号计算当前清点周期进入信道空闲状态需等待的时长, 具体为: 根据当前清点周期中发送占用的总时间, 发送单个数据帧占用的时间, 以及从所述数据帧的预定字段提取的帧序号, 计算进入信道空闲状态需等 待的时间。  The device according to claim 6, wherein the central processor calculates, according to the extracted frame number, a duration that the current inventory period has to wait for entering the channel idle state, specifically: according to the total number of transmissions occupied in the current inventory period Time, the time taken to transmit a single data frame, and the frame number extracted from the predetermined field of the data frame, to calculate the time to wait for entering the channel idle state.
9、 如权利要求 6、 7或 8所述的装置, 其特征在于, 所述中央处理器 在确定阅读器为信道空闲状态时, 从当前清点周期包含的时隙中选择一个 时隙, 具体为:  The device according to claim 6, 7 or 8, wherein the central processor selects a time slot from the time slots included in the current inventory period when determining that the reader is in the channel idle state, specifically :
确定当前清点周期中处于信道空闲状态的时隙数目, 并根据所述时隙 数目生成随机数, 选择所述随机数对应的时隙。  Determining the number of time slots in the channel idle state in the current inventory period, and generating a random number according to the number of the time slots, and selecting the time slot corresponding to the random number.
10、 如权利要求 9所述的装置, 其特征在于, 所述中央处理器根据时 隙数目生成随机数, 具体为: 10. The apparatus of claim 9, wherein the central processor is time dependent The number of slots generates a random number, which is specifically:
根据所述时隙数目确定随机数占用的比特数, 并初始化所述随机数; 判断捕获次数是否达到随机数占用的比特数, 若没有达到随机数占用 的比特数, 将随机数左移一个比特位, 启动定时器并基于低频时钟对高频 时钟进行捕获, 将捕获的数据的最低比特位的值作为所述随机数的最低比 特位的值, 并将捕获次数加 1 后再次判断捕获次数是否达到随机数占用的 比特数;  Determining, according to the number of time slots, the number of bits occupied by the random number, and initializing the random number; determining whether the number of times of capturing reaches the number of bits occupied by the random number, and if the number of bits occupied by the random number is not reached, shifting the random number to the left by one bit Bit, start the timer and capture the high frequency clock based on the low frequency clock, take the value of the lowest bit of the captured data as the value of the lowest bit of the random number, and add 1 to the number of captures to determine whether the number of captures is again The number of bits occupied by the random number is reached;
若达到随机数占用的比特数, 选择所述随机数对应的时隙。  If the number of bits occupied by the random number is reached, the time slot corresponding to the random number is selected.
11、 一种基于射频识别的通信系统, 其特征在于, 包括:  11. A radio frequency identification based communication system, comprising:
阅读器, 用于向电子标签发送数据帧, 并接收电子标签发送的消息; 电子标签, 用于接收阅读器在当前清点周期内发送的数据帧, 解析所 述数据帧并从预定字段提取帧序号, 基于提取的帧序号计算所述当前清点 周期进入信道空闲状态需等待的时长, 在确定所述阅读器为信道空闲状态 时, 从所述当前清点周期包含的时隙中选择一个时隙, 并基于选择的时隙 向所述阅读器发送消息。  a reader, configured to send a data frame to the electronic tag, and receive the message sent by the electronic tag; the electronic tag is configured to receive the data frame sent by the reader during the current inventory period, parse the data frame, and extract the frame serial number from the predetermined field And calculating, according to the extracted frame sequence number, a duration that the current inventory period needs to wait for entering the channel idle state, and determining that the reader is a channel idle state, selecting a time slot from the time slots included in the current inventory period, and A message is sent to the reader based on the selected time slot.
PCT/CN2011/076088 2011-04-02 2011-06-22 Radio frequency identification system based communication method, apparatus and system WO2012136019A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110083520.XA CN102737207B (en) 2011-04-02 2011-04-02 Communication method based on radio frequency identification system, apparatus and system thereof
CN201110083520.X 2011-04-02

Publications (1)

Publication Number Publication Date
WO2012136019A1 true WO2012136019A1 (en) 2012-10-11

Family

ID=46968542

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076088 WO2012136019A1 (en) 2011-04-02 2011-06-22 Radio frequency identification system based communication method, apparatus and system

Country Status (2)

Country Link
CN (1) CN102737207B (en)
WO (1) WO2012136019A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366143B (en) * 2013-07-03 2016-01-13 清华大学 The method for quickly identifying of label is lost in large-scale radio-frequency identification system
CN103745181B (en) * 2013-12-31 2016-06-15 浙江网新技术有限公司 A kind of low frequency activates the anti-collision method of active label
CN104573587B (en) * 2014-12-11 2018-01-12 天津中兴智联科技有限公司 A kind of ambiguity path recognition methods with bidirectional communication function

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040066281A1 (en) * 2002-10-02 2004-04-08 Hughes Michael A. System and method to identify multiple RFID tags
US20100141392A1 (en) * 2008-12-04 2010-06-10 Inha Industry Partnership Institute Method for preventing reader collision, method for driving an rfid reader using the method and rfid reader for performing the method
CN101944171A (en) * 2010-07-08 2011-01-12 电子科技大学 Multi-tag identification method of RFID reader

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040066281A1 (en) * 2002-10-02 2004-04-08 Hughes Michael A. System and method to identify multiple RFID tags
US20100141392A1 (en) * 2008-12-04 2010-06-10 Inha Industry Partnership Institute Method for preventing reader collision, method for driving an rfid reader using the method and rfid reader for performing the method
CN101944171A (en) * 2010-07-08 2011-01-12 电子科技大学 Multi-tag identification method of RFID reader

Also Published As

Publication number Publication date
CN102737207A (en) 2012-10-17
CN102737207B (en) 2014-12-17

Similar Documents

Publication Publication Date Title
EP2509032B1 (en) Application system and method thereof
CN108449786B (en) Multi-time-window signal receiving and transmitting method and system
US9336418B2 (en) System and method for polling NFC-A devices alongside RF barcode devices
WO2014110842A1 (en) Method and device for rapidly identifying electronic tag
RU2008136211A (en) METHOD FOR APERIODIC FORCED STANDBY MODE FOR MOBILE STATION
CN101122945A (en) RFID system and method for operating the system under energy-saving mode
CN102542218B (en) Method and system for transmitting radio frequency identification (RFID) data, and hardware platform for RFID label
EP4333530A1 (en) Wake-up method and apparatus, and electronic device
CN105657804A (en) Self-adaptive monitor matching anti-interference method of wireless sensor network
TW202005463A (en) Telecommunication method and device of telecommunication, end-device and gateway based upon relay equipment reducing the unpredictability of sending the first downlink data frame so as to enhance transmission and receiving efficiency
Klair et al. An investigation into thie energy eficiency of pure and slotted aloha based reid anti-collision protocols
CN104202806A (en) Asynchronous wireless sensor network MAC protocol started at sending terminal
CN103745181A (en) Conflict prevention method for low-frequency activated active tags
US11394506B2 (en) Communication system, gateway device, terminal device and communication method for reducing power consumption
WO2012136019A1 (en) Radio frequency identification system based communication method, apparatus and system
CN108513345B (en) Bidirectional awakening method and system
CN111092631B (en) 433M communication system for realizing low power consumption
CN113812167B (en) Method for reading a fluid table
CN105426949A (en) Method and device for low power consumption timing wake-up
JP2015177284A (en) Radio device and program to be executed therein
CN111083648A (en) Very-low-cost BLE Beacon hardware architecture and compatible broadcast packet generation method
CN105959979B (en) Frame length system adaptive recognition method in wireless sensor network based on MAC protocol
CN103679079B (en) Active label data receiver method and device
KR101001682B1 (en) Tag Sleep Method for Tag Collection in Active RFID Systems
CN114449632A (en) Method, device, chip and computer readable storage medium for receiving beacon frame

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11862888

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11862888

Country of ref document: EP

Kind code of ref document: A1