Book sorting method on the basis of RSSI signal value of RFID tag

10275620 ยท 2019-04-30

Assignee

Inventors

Cpc classification

International classification

Abstract

A book sorting method based on RSSI signal values of RFID tags, including the following steps: reading book RFID tags placed in books by using an RFID device, wherein each tag signal includes: an EPC number EPC of the book RFID tag, the RSSI value r of the book RFID tag, and the time t of reading the book RFID tag, and three attribute values corresponding to one book corresponding to one time are marked as a record; classifying books with the same EPC number of the tags as a category, obtaining a curve chart of the RSSI values of the category of book RFID tags according to a time sequence, and preprocessing the curve chart; and establishing a model; and obtaining the position sequence of each book RFID tag according to the model so as to sort the books.

Claims

1. A method for sorting RFID (Radio Frequency Identification)-tag books with an RFID device, comprising the following steps: 1) reading, by the RFID device, the information of book RFID tags placed in books, wherein the information of each book RFID tag comprises: an EPC (Electronic Product Code) number, the RSSI (Received Signal Strength Indicator) value, and a time (named as t) when the book RFID tag is read, and three attribute values corresponding to one book are marked as a record <EPC number, RSSI value, time t>; 2) classifying, by a processor, books with the same EPC number of the book RFID tags as a category, obtaining a curve chart of the RSSI values of the category of book RFID tags according to the sequence of the time t, and preprocessing the curve chart: dividing the book RFID tags obtained in step 1) according to the EPC numbers of the book RFID tags, classifying the book RFID tags with the same EPC numbers as a category to represent the RSSI values returned by the book RFID tag of one book at different time t; in each divided category, sorting the RSSI values of each category of book RFID tags according to the sequence of the time t to obtain a curve chart varying with the time t of the RSSI values of one RFID tag; and forming a curve via the changes of the RSSI values of the book RFID tags with the time t, finding the highest wave crest in the curve chart, retaining a segment of continuous curve having the highest wave crest, and eliminating a segment of curve having discrete points or having a wave crest but not the highest wave crest; 3) further processing, by a processor, the curve obtained in step 2) to obtain a time-varying rule of the RSSI values of the book RFID tags, and establishing a quadratic curve model; and 4) obtaining the position sequence of each book RFID tag according to the quadratic curve model for sorting the books.

2. The method of claim 1, wherein step 3) comprises: performing quadratic curve fitting on the curved retained in step 2) to obtain the time T where the wave crest, namely the highest point, of the fitted curve is located.

3. The method of claim 2, wherein step 4) comprises: sorting the time T of all the book RFID tags obtained in step 3) from small to large, and the obtained time sequence corresponds to the position sequence of each book on a bookshelf.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The present invention will be further described below with reference to the accompanying drawings and specific embodiments, and the advantages of the foregoing and/or other aspects of the present invention will become clearer.

(2) FIG. 1 is a position relationship diagram between an antenna and a bookshelf.

(3) FIG. 2 is a time-varying chart of RSSI values.

(4) FIG. 3 is a flowchart of an embodiment.

DETAILED DESCRIPTION OF THE EMBODIMENTS

Embodiment 1

(5) The RFID technology consists of three parts: an antenna, a reader and RFID tags. Radio frequency signals emitted by the antennas will be reflected by the tags after arriving at the RFID tags, the reader identifies the RFID tags through received reflected signals, wherein the reflected signals include an RSSI signal. In the present embodiment, the books in a library are sorted by using the RSSI signal values reflected by the tags. The relationship between the distance and the RSSI signal value is as follows:
d=10^((abs(RSSI)A)/(10*n)),
d represents the calculated distance, RSSI is received signal intensity (a negative value), A represents the signal intensity when a transmitting end is one meter away from a receiving end, the optimal range is 45-49, n represents an environmental attenuation factor, and is generally 2-5. The following formula can be converted from the above formula:
RSSI=log(10*n*d+A),

(6) The above formula indicates that the greater the distance d is, the smaller the RSSI value is.

(7) When a layer of books on the bookshelf of the library is sorted, the antenna should be placed in parallel not far away from the book, or otherwise, the RSSI signal values varying with time are not very large for one book, in the present embodiment, the distance from the antenna to the book is set as 10 cm. In a book scanning process, the antenna is slowly moved from one side of the bookshelf to the other side of the bookshelf at a constant speed, and the top view is as shown in FIG. 1.

(8) Through theoretical analysis and experiments, the time-varying rule of the RSSI signal values is as shown in FIG. 2, the horizontal coordinates represent the time of reading the tags, and the vertical coordinates represent the RSSI signal values returned by the tags.

(9) The following conclusions can be drawn from FIG. 2:

(10) When the antenna is close to the RFID tag, the RSSI values progressively increase; and when the antenna is far away from the RFID tag, the RSSI values progressively decrease;

(11) The present embodiment provides a book sorting method based on RSSI signal values of RFID tags, wherein the data collection process is as follows:

(12) 1. An RFID tag is placed in each book, the EPC number of the tag contains an id number of the book, the id number is extracted from the EPC number, and related book information can be inquired by inquiring a background database server.

(13) 2. The antenna is slowly moved from one end of the bookshelf to the other end of the bookshelf at a constant speed in a manner of being parallel to the bookshelf, and the distance between the antenna and the book is kept to be 10 cm.

(14) 3. The collected information includes the EPC number of the book RFID tag, an RSSI signal value r reflected by the tag, and a time t of collecting the tag signal. The three attribute values corresponding to one book are marked as a record, the collected data should contain the records of all the books on the layer of bookshelf, and all the records are stored in the background database for subsequent analysis.

(15) After the data are collected, the books can be sorted, and the specific process is as follows: 1. The background data records are classified according to the EPC numbers of the tags, and the records with the same EPC numbers classified as a category to represent the information of one book. 2. In each classified category, the RSSI values of each record are sorted according to a time sequence to obtain a time-varying curve chart of the RSSI values of an RFID tag. 3. Due to the influence of environmental factors, the RSSI value corresponding to each book may deviate from the curve at some time, thereby generating some discrete points or small waves, and thus these discrete points need to be processed at first. The RSSI value increases with the time, its value progressively increases at first, and then progressively decreases after arriving at the highest point. The highest wave crest in the curve chart is found, a segment of continuous curve having the highest wave crest is retained, and a segment of curve having discrete points or having a wave crest but not the highest wave crest are eliminated; 4. Some books are thinner, so that the times of reading the RFID tags therein are smaller, such that the points on the preprocessed chart are sparse, and thus the quadratic curve fitting needs to be performed on the preprocessed points. 5. The time corresponding to the highest point is found from the fitted curve, each book corresponds to a time, and these times are sorted from small to large, and the obtained time sequence is the position sequence of the corresponding books on the bookshelf.

(16) The flow of sorting the books in the library based on the RSSI values in the present embodiment is as shown in FIG. 3.

(17) 1. Placing the RFID Tag in the Book, Binding the RFID Tag with the Background Database Server

(18) The format of the EPC number of the tag placed in the book is set as follows: OBCXXXXXXXX000000000 0 represents that the type of the tag is a book RFID tag B represents a lending state of the book 0 represents un-lent 1 represents lent 2 represents not allowed to be lent C represents length, and the existing encoding length of the book is 8 XXXXX represents the ID number of the book and is obtained by a bar code of the book 00000: a zero filling operation needs to be performed in the absence of double bytes due to the requirements of RFID encoding;

(19) After the EPC number of the tag is obtained, 8 digits starting from the fourth number of the EPC number are extracted to serve as the id number of the book, the background database contains the information of the book and information of the bookshelf where the book is located. After the id number of the book is extracted from the tag, the book information can be inquired in the background database according to the id number.

(20) 2. Scanning the Book to Obtain Data

(21) The books on the bookshelves in the library should be neatly arranged, or otherwise the sorting effect may be affected by the staggered placement of the books. After the books are trimmed, the antenna is placed at a position away from the books about 10 cm in parallel. The antenna cannot be too far away from the books, or otherwise the RSSI values returned by a book will not be significantly different in a movement process, because there is no major change in the distance of the antenna from the book within a certain range. The moving speed should not be too high, if the moving speed is too high, and the times of reading the tags by the antenna are reduced, and the speed is controlled at about 0.1 m/s in the present embodiment.

(22) The obtained data include the EPC number of the RFID tag of the book, the RSSI signal value r returned by the tag, and the time t of reading the tag. The obtained data is stored in the background database for processing in the subsequent steps. Book sorting can be sorting the books while scanning the books, can also be sorting the books after a layer of books on the bookshelf is scanned, and processing is executed according to actual needs. In the present embodiment, the first manner is adopted, that is, sorting the books while scanning the books.

(23) After a part of books on a layer of the bookshelf is scanned, the data of the corresponding books are extracted from the background database for processing, these books are sorted, the obtained result is stored behind the previous result, and then the data in the database are deleted.

(24) 3. Classifying Data, and Drawing an RSSI Value Curve Chart

(25) The obtained data are staggered data of multiple books, the data need to be extracted and classified, the data with the same EPC numbers classified as a category to represent the RSSI values returned by the RSSI tag of one book at different time. The classified data are respectively sorted according to a time sequence to obtain a time-varying curve chart of the RSSI values.

(26) 4. Preprocessing the Data

(27) Due to the influence of the environmental factors and different thicknesses of the books, resulting in that discrete points or some small wave crests occur in the curve chart obtained in the above step, these are interference factors to the subsequent steps, these points need to be eliminated, and only a segment of continuous curve having the maximum value is retained.

(28) 5. Curve Fitting and Book Sorting

(29) The preprocessed curve is not yet the best model for its analysis, quadratic curve fitting needs to be performed on the curve to obtain a complete wave band that increases progressively and then decreases progressively with time, and the time where the maximum value is located is set as T. The obtained T.sub.1, T.sub.2, T.sub.3 . . . T.sub.n are sorted in a descending order, and this sequence is the position sequence of the books where the tags are located.

(30) The present invention provides a book sorting method based on RSSI signal values of RFID tags, there are many ways and means for implementing the technical solutions, the foregoing descriptions are merely preferred implementation of the present invention, it should be noted that, for those of ordinary skill in the art, various improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications shall also fall within the protection scope of the present invention. The components that are not clearly defined in the present embodiment can be implemented by the prior art.