Book management method and device based on RFID and electronic equipment
By adopting RFID-based book management methods in libraries, books are automatically identified and positioned, and readers are guided through indicator arrays, the problems of low efficiency and high error rate in the prior art are solved, and the efficiency and experience of book borrowing are significantly improved.
Patent Information
- Application Number
- CN202411867146.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-05-02
Smart Images

Figure CN119920042A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a RFID-based book management method, device and electronic equipment. Background Art
[0002] With the rapid development of information technology, libraries, as a distribution center for knowledge and information, are also constantly exploring how to improve service efficiency and quality. One of the basic services of libraries is book lending, which not only involves book retrieval, lending and returning, but also includes book organization and management.
[0003] At present, most libraries still use barcodes or other visual recognition-based technologies to manage books. Although these technologies provided certain conveniences in the early stage, they showed obvious deficiencies in processing large-scale data, updating book location information in real time, and quickly locating specific books. For example, barcode technology requires direct line of sight to scan, which limits its efficiency in book locating. In addition, manual search is prone to search errors, reducing the efficiency of book search.
[0004] Therefore, there is an urgent need for a book management method, device and electronic equipment based on RFID. Summary of the invention
[0005] The present application provides a RFID-based book management method, device and electronic equipment, which improves the efficiency of book borrowing.
[0006] In a first aspect of the present application, a RFID-based book management method is provided, the method comprising: obtaining a borrowing request submitted by a reader; parsing the borrowing request to identify an identification code of a book to be borrowed; matching the identification code with preset book location information to obtain a target bookshelf area where the book to be borrowed is located; sending an instruction to a target RFID reader / writer in the target bookshelf area to control the target RFID reader / writer to turn on a radio frequency signal of a preset frequency band to scan the target bookshelf area to activate multiple RFID electronic tags corresponding to the target bookshelf area; wherein the target bookshelf area includes multiple books, and one of the books corresponds to one of the RFID electronic tags; obtaining a book identification code and book location information sent by each of the RFID electronic tags; determining a target book that matches the identification code of the book to be borrowed according to the book identification code; sending the target location information of the target book to the reader, and controlling the positioning indicator array corresponding to the target bookshelf area to light up the positioning indicator corresponding to the target location information.
[0007] By adopting the above technical solution, by obtaining the borrowing request submitted by the reader, the identification code of the book to be borrowed is automatically identified, and it is matched with the preset book location information, so as to quickly and accurately determine the bookshelf area where the target book is located. Send instructions to the RFID reader in the target bookshelf area to control it to turn on the radio frequency signal of the preset frequency band to scan the bookshelf, and activate the RFID electronic tags attached to all books in the area. By collecting the book identification code and location information returned by the RFID electronic tag, the target book that matches the reader's borrowed book can be accurately located. Finally, the specific location of the target book is sent to the reader, and the positioning indicator array on the target bookshelf area is controlled to light up the lights at the corresponding position, so as to intuitively guide the reader to find the book quickly. The method uses RFID technology to achieve accurate positioning and intelligent guidance of books, avoiding the inefficiency and errors of manual search. Readers can submit borrowing requests through terminal devices such as mobile phones, and automatically complete the entire process of book positioning and prompting, which greatly saves the time of readers searching one by one in front of the bookshelf. At the same time, the method introduces a positioning indicator array to guide readers in a visual way, providing a more intuitive and humanized guidance service. Through this method, readers can quickly and accurately find the books they need, greatly improving the efficiency and experience of book borrowing.
[0008] Optionally, the obtaining of the book identification code and the book location information sent by each of the RFID electronic tags specifically includes: obtaining a response signal sent by each of the RFID electronic tags; generating spatial coordinate data of each of the RFID electronic tags based on the signal strength and arrival time difference of the response signal; and determining the relative position of each of the RFID electronic tags in the target bookshelf area based on the spatial coordinate data to obtain the book location information.
[0009] By adopting the above technical solution, the spatial coordinate data of each RFID electronic tag is generated by analyzing the signal strength and arrival time difference of the response signal returned by the RFID electronic tag, so as to determine the relative position of the book in the bookshelf area. Combining the signal strength and arrival time difference, the coordinates of the RFID electronic tag in three-dimensional space can be obtained. Furthermore, since each RFID electronic tag corresponds to a book, the book location information of each book on the bookshelf can be determined through the coordinate data.
[0010] Optionally, generating the spatial coordinate data of each of the RFID electronic tags based on the signal strength and arrival time difference of the response signal specifically includes: obtaining the signal strength of the response signal sent by each of the RFID electronic tags; calculating the distance from each of the RFID electronic tags to the target RFID reader based on the signal strength; obtaining the time difference between the response signal sent by each of the RFID electronic tags and the arrival of the target RFID reader; calculating the relative position relationship between each of the RFID electronic tags based on the time difference; and generating the spatial coordinate data of each of the RFID electronic tags based on the distance and the relative position relationship.
[0011] By adopting the above technical solution, the signal strength of each electronic tag response signal is obtained, and the distance from the RFID electronic tag to the RFID reader is calculated based on the signal strength. Signal strength is an indicator of radio signal strength. The larger the signal strength value, the closer the electronic tag is to the reader. By measuring the signal strength, the distance between the electronic tag and the reader can be estimated. Secondly, the time difference between the RFID electronic tag response signal reaching the reader is obtained, and the relative position relationship between the RFID electronic tags is calculated based on the time difference. The time difference refers to the time difference between the signal emitted by the same electronic tag reaching different readers. By comparing the time difference of the received signals of different readers, the orientation of the RFID electronic tag relative to the reader can be determined. Finally, the distance information and relative position information are comprehensively used to generate the absolute coordinate data of the RFID electronic tag in three-dimensional space. Once the coordinates of each electronic tag are obtained, the spatial position of each book on the bookshelf can be obtained. This method makes full use of the inherent signal detection and processing capabilities of the RFID electronic tag. By analyzing the signal strength and time difference parameters of the RFID electronic tag response signal, the location of the book can be located.
[0012] Optionally, before obtaining the borrowing request submitted by the reader, the method further includes: obtaining reader identity information input by the reader; determining whether the reader identity information is preset identity information; if it is determined that the reader identity information is preset identity information, obtaining the borrowing request submitted by the reader.
[0013] By adopting the above technical solution, a reader identity verification step is added before obtaining the reader's borrowing request. Then it is compared with the preset identity information to determine whether the reader is a legitimate user. Only after the reader passes the identity verification will the reader's borrowing request be accepted and processed. The introduction of the identity verification mechanism can prevent illegal users from stealing other people's identities or abusing book borrowing rights, thereby ensuring the security of book borrowing. At the same time, by limiting illegal requests, the system load pressure can also be reduced and processing efficiency can be improved.
[0014] Optionally, real-time load information of each bookshelf area in the library is obtained; based on the real-time load information, the reader density of each bookshelf area in the library is calculated; the reader density is sorted by size to determine the target bookshelf with the lowest reader density; and the location information of the target bookshelf is sent to the reader.
[0015] By adopting the above technical solution, the load information of each bookshelf area in the library is obtained in real time, that is, how many books are in each bookshelf area, and the reader density of the bookshelf area is calculated based on this. The reader density can reflect how many readers are looking for or reading books in an area. By sorting the reader density, the idle bookshelf with the least current traffic can be determined. While providing readers with the location information of the target book, the idle bookshelf location with the least traffic can also be sent to the reader. In this way, readers can be guided to move to areas with fewer people, alleviate the pressure of traffic in crowded areas, and improve the readers' borrowing experience. When multiple readers query books, readers can be diverted to different areas according to the real-time load of different bookshelves to achieve intelligent diversion of traffic. This method uses the counting and statistical function of RFID to monitor the number of books in each bookshelf area in real time to infer the reader density of the bookshelf area. Since RFID can quickly scan a large number of books and realize automatic inventory of books on the bookshelf, it can accurately and efficiently obtain bookshelf load data.
[0016] Optionally, the obtaining of real-time load information of each bookshelf area in the library specifically includes: sending a scanning instruction to an RFID reader / writer in each of the bookshelf areas; obtaining a response signal of an RFID electronic tag scanned by each of the RFID readers / writers; and counting the number of RFID electronic tags in each of the bookshelf areas based on the response signal, and using the number as the real-time load information.
[0017] By adopting the above technical solution, by sending scanning instructions to the RFID reader in each bookshelf area, the response signals of all RFID electronic tags in the area are actively obtained. By analyzing the response of the electronic tags, the total number of books in each bookshelf area can be counted and used as the real-time load information of the area. By scanning the bookshelf area regularly or continuously, the book distribution data can be dynamically updated to grasp the real-time status of the bookshelf. This state perception capability is an important feature of the smart library. Through large-scale parallel scanning, RFID can complete the inventory of books in a short time. Real-time load information can not only be used for reader density analysis and intelligent navigation, but also support a variety of intelligent applications in the library.
[0018] Optionally, after sending the target location information of the target book to the reader, the method further includes: obtaining the reader's borrowing confirmation information for the target book; and based on the borrowing confirmation information, updating the status information of the RFID electronic tag corresponding to the target book to a borrowed status.
[0019] By adopting the above technical solution, the method utilizes the read-write characteristics of RFID tags and rewrites the status field in the electronic tag to realize the automation of status update. This state perception and state synchronization capability can significantly improve the efficiency and accuracy of book circulation management.
[0020] In a second aspect of the present application, a book management device based on RFID is provided, the device comprising: an acquisition module and a processing module, wherein: the acquisition module is used to acquire a borrowing request submitted by a reader; the processing module is used to parse the borrowing request and identify an identification code of a book to be borrowed; the processing module is also used to match the identification code with preset book location information to obtain a target bookshelf area where the book to be borrowed is located; the processing module is also used to send an instruction to a target RFID reader / writer in the target bookshelf area to control the target RFID reader / writer to turn on a radio frequency signal in a preset frequency band to scan the target bookshelf area. Scanning to activate multiple RFID electronic tags corresponding to the target bookshelf area; wherein the target bookshelf area includes multiple books, and one of the books corresponds to one of the RFID electronic tags; the acquisition module is also used to acquire the book identification code and book location information sent by each of the RFID electronic tags; the processing module is also used to determine the target book that matches the identification code of the book to be borrowed according to the book identification code; the processing module is also used to send the target location information of the target book to the reader, and control the positioning indicator light array corresponding to the target bookshelf area to light up the positioning indicator light corresponding to the target location information.
[0021] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.
[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.
[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By obtaining the borrowing request submitted by the reader, the identification code of the book to be borrowed is automatically identified, and it is matched with the preset book location information to quickly and accurately determine the bookshelf area where the target book is located. Send instructions to the RFID reader in the target bookshelf area to control it to turn on the radio frequency signal of the preset frequency band to scan the bookshelf and activate the RFID electronic tags attached to all books in the area. By collecting the book identification code and location information returned by the RFID electronic tag, the target book that matches the reader's borrowed book can be accurately located. Finally, the specific location of the target book is sent to the reader, and the positioning indicator array on the target bookshelf area is controlled to light up the lights at the corresponding position, intuitively guiding the reader to find the book quickly. This method uses RFID technology to achieve accurate positioning and intelligent guidance of books, avoiding the inefficiency and errors of manual search. Readers can submit borrowing requests through terminal devices such as mobile phones, and automatically complete the entire process of book positioning and prompting, which greatly saves the time of readers searching one by one in front of the bookshelf. At the same time, the method introduces a positioning indicator array to guide readers in a visual way, providing a more intuitive and humanized guidance service. Through this method, readers can quickly and accurately find the required books, greatly improving the efficiency and experience of book borrowing.
[0024] 2. By analyzing the signal strength and arrival time difference of the response signal returned by the RFID electronic tag, the spatial coordinate data of each RFID electronic tag is generated to determine the relative position of the book in the bookshelf area. Combining the signal strength and arrival time difference, the coordinates of the RFID electronic tag in three-dimensional space can be obtained. Furthermore, since each RFID electronic tag corresponds to a book, the book location information of each book on the bookshelf can be determined through the coordinate data.
[0025] 3. Obtain the signal strength of each electronic tag response signal, and calculate the distance from the RFID electronic tag to the RFID reader based on the signal strength. Signal strength is an indicator of radio signal strength. The larger the signal strength value, the closer the electronic tag is to the reader. By measuring the signal strength, the distance between the electronic tag and the reader can be estimated. Secondly, obtain the time difference between the RFID electronic tag response signal reaching the reader, and calculate the relative position relationship between the RFID electronic tags based on the time difference. The time difference refers to the time difference between the signal emitted by the same electronic tag reaching different readers. By comparing the time difference of receiving signals from different readers, the orientation of the RFID electronic tag relative to the reader can be determined. Finally, the distance information and relative position information are comprehensively used to generate the absolute coordinate data of the RFID electronic tag in three-dimensional space. Once the coordinates of each electronic tag are obtained, the spatial position of each book on the bookshelf can be obtained. This method makes full use of the inherent signal detection and processing capabilities of RFID electronic tags. By analyzing the signal strength and time difference parameters of the RFID electronic tag response signal, the location of the book can be located. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flowchart of a RFID-based book management method disclosed in an embodiment of the present application; Figure 2 It is a module schematic diagram of an RFID-based book management device disclosed in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0027] Explanation of the reference numerals: 201, acquisition module; 202, processing module; 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION
[0028] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0029] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0030] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0031] This application provides a book management method based on RFID, referring to Figure 1 , Figure 1 1 is a flow chart of a RFID-based book management method provided in an embodiment of the present application. The method is applied to a server, which is a server that executes the RFID-based book management method. The server can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. The method includes steps S101 to S107, which are as follows: Step S101: Obtain a borrowing request submitted by a reader.
[0032] In step S101, the server obtains the borrowing request submitted by the reader by interacting with the reader's terminal device. Preferably, the server can be implemented through a web page or a mobile application. The reader uses his terminal device (such as a computer, tablet computer or smart phone) to access the web page of the library management system or open the mobile application. In the web page or application, the reader can browse the book catalog, search for books of interest, and view detailed information of the book, such as the title, author, publisher, RFID number, content introduction, etc. When the reader finds the book he wants to borrow, he can click the "borrow" button or link, and the library management system will pop up a borrowing request form, requiring the reader to fill in some necessary information, such as the reader's name, borrowing card number, contact information, etc. After the reader fills in the form and submits it, the borrowing request will be sent to the server.
[0033] In a possible implementation, before obtaining the borrowing request submitted by the reader, the method further includes: obtaining reader identity information input by the reader; determining whether the reader identity information is preset identity information; if it is determined that the reader identity information is preset identity information, obtaining the borrowing request submitted by the reader.
[0034] Specifically, the server obtains the reader identity information input by the reader. The reader identity information may include the reader's name, borrowing card number, password, etc. The reader may enter this information through a web page, a mobile application, or a self-service borrowing machine. For example, on a web page, the reader may enter a user name and password in a login form.
[0035] Next, the server compares the reader's identity information entered by the reader with the preset identity information. The preset identity information refers to the information of the legal readers who have registered in the library management system, which is usually stored in the database. The server queries the database for records that match the reader's identity information entered by the reader. If a matching record is found, it means that the reader is legal; if no matching record is found, it means that the reader's identity is illegal. If the server determines that the reader is a legal reader, it allows him to perform subsequent borrowing operations.
[0036] If during the verification process, the server finds that the reader's reader identity information does not match the preset identity information, the reader's borrowing request will be rejected. For example, if the reader enters the wrong password or uses a non-existent username, the server will display an error message and prompt the reader to re-enter the correct information. If the reader's borrowing rights have expired, the server will also display a prompt message telling the reader that he needs to renew or re-apply for a borrowing card.
[0037] Step S102: parsing the borrowing request to identify the identification code of the book to be borrowed.
[0038] In step S102, the server receives a borrowing request submitted by a reader. A borrowing request usually contains multiple fields, such as the title and author of the book. The specific content of these fields depends on the information filled in by the reader when submitting the request. The server parses the borrowing request into a structured data object for subsequent processing. Next, the server extracts the identification information of the book to be borrowed from the borrowing request. The identification information of the book to be borrowed can be in various forms, such as RFID tag number, barcode number, etc. For example, if the system uses RFID tags to identify books, the server will search for the RFID tag number field in the borrowing request and extract the value therein. The RFID tag number is usually a long string consisting of letters and numbers, and each RFID tag number is unique.
[0039] Step S103: matching the identification code with the preset book location information to obtain the target bookshelf area where the book to be borrowed is located.
[0040] In step S103, the server matches the identification code of the book with the preset book location information. The preset book location information refers to the storage location of the book in the library, usually including the shelf number, number of layers, number of columns, etc. This information can be stored in a database, and each book corresponds to a unique location information.
[0041] The server searches the database for the corresponding location information based on the identification code of the book to be borrowed. For example, if the identification code of the book is "B35580", the server will execute an SQL query statement similar to "SELECT location FROMbooks WHERE id='B35580'" to obtain the shelf area of the book with id "B35580" from the books table in the database.
[0042] After determining the target shelf area for the book to be borrowed, the server saves the information in the borrowing record and returns it to the reader. For example, the server can send a message to the reader, telling him that "the book you want to borrow is in the A05 shelf area, please go to this area to find it."
[0043] Step S104: Sending instructions to the target RFID reader / writer of the target bookshelf area to control the target RFID reader / writer to turn on the radio frequency signal of a preset frequency band to scan the target bookshelf area, so as to activate multiple RFID electronic tags corresponding to the target bookshelf area; wherein the target bookshelf area includes multiple books, and one book corresponds to one RFID electronic tag.
[0044] In step S104, the server sends a command to the RFID reader in the target bookshelf area, asking it to turn on the radio frequency signal of the preset frequency band. RFID readers usually work in a specific frequency band, such as low frequency, high frequency, ultra-high frequency, etc. The server needs to select a suitable frequency band according to the design of the system and include the frequency band information in the command.
[0045] Next, the RFID reader turns on the radio frequency signal according to the server's instructions and scans the target bookshelf area. The radio frequency signal activates the RFID electronic tag on the bookshelf and puts it into operation. Each book is attached with an RFID electronic tag, which stores the book's identification code and other related information. When the RFID electronic tag is activated by the radio frequency signal, it sends its information to the RFID reader. This process is usually achieved through backscattering, that is, the tag modulates the received radio frequency signal and reflects it back to the reader. After receiving the reflected signal, the reader can demodulate the data sent by the tag.
[0046] For example, suppose there are 20 books in the target bookshelf area, and each book is affixed with an RFID electronic tag. The server sends a command to the RFID reader in the target bookshelf area, asking it to turn on the 920MHz radio frequency signal for scanning. After receiving the command, the reader starts to transmit the 920MHz radio frequency signal, and the signal covers the entire bookshelf area. After receiving the radio frequency signal, the 20 RFID electronic tags on the bookshelf are activated and enter the working state. Each tag sends the book identification code and other information stored in it to the RFID reader by backscattering. The RFID reader receives the reflected signal sent by each tag, demodulates the signal, extracts the data sent by the RFID electronic tag, and sends the data to the server.
[0047] After receiving the data sent by the RFID reader, the server can obtain the identification codes and other information of all books in the target bookshelf area. The server can save this information in the database for subsequent query and processing.
[0048] Step S105: Acquire the book identification code and book location information sent by each of the RFID electronic tags.
[0049] In step S105, the book identification code and book location information sent by each of the RFID electronic tags are obtained, specifically including: obtaining the response signal sent by each of the RFID electronic tags; generating the spatial coordinate data of each of the RFID electronic tags according to the signal strength and arrival time difference of the response signal; and determining the relative position of each of the RFID electronic tags in the target bookshelf area based on the spatial coordinate data to obtain the book location information.
[0050] In a possible implementation, the spatial coordinate data of each of the RFID electronic tags is generated based on the signal strength and arrival time difference of the response signal, specifically including: obtaining the signal strength of the response signal sent by each of the RFID electronic tags; calculating the distance from each of the RFID electronic tags to the target RFID reader based on the signal strength; obtaining the time difference between the response signal sent by each of the RFID electronic tags and the arrival of the target RFID reader; calculating the relative position relationship between each of the RFID electronic tags based on the time difference; and generating the spatial coordinate data of each of the RFID electronic tags based on the distance and the relative position relationship.
[0051] Specifically, after the RFID reader scans the target bookshelf area, the server can obtain the data sent by all RFID electronic tags in the area, including the book identification code and book location information. This process can be achieved through the following steps: First, the server receives the response signal of each RFID electronic tag sent by the RFID reader. The response signal contains the identification code, signal strength, reception time and other information of each RFID electronic tag. The signal strength indicates the distance between the tag and the reader, and the reception time indicates the time when the tag response signal reaches the reader. Then, the server calculates the spatial coordinates of each tag based on the signal strength and reception time difference of the response signal. Specifically, the server first estimates the distance between the tag and the reader based on the signal strength. Since the propagation speed of electromagnetic waves is fixed, the greater the signal strength, the closer the tag is to the reader. The server can use a preset formula to convert the signal strength into a distance value. In one possible implementation, the server uses a free space propagation model to convert the signal strength into a distance value. According to the free space propagation model, the signal strength RSSI received by the RFID reader and the distance (d) from each of the RFID electronic tags to the target RFID reader satisfy the following relationship: RSSI=-10nlog10(d)+A Where n is the propagation factor, usually 2; A is the signal strength at a reference distance (such as 1 meter).
[0052] For example, if A is equal to -50dBm and n is equal to 2, then the relationship between distance and signal strength is: RSSI=-20log10(d)-50; the server can substitute the received RSSI value into the above formula to calculate the corresponding distance d. Then, the server calculates the relative position between each of the RFID electronic tags based on the reception time difference of the tag response signal. If the response signals of two RFID electronic tags arrive at the reader at the same time, it means that the two RFID electronic tags are at the same distance from the reader and are located on the same sphere. If the response signal of one RFID electronic tag arrives at the reader earlier than that of another RFID electronic tag, it means that the RFID electronic tag is closer to the reader and is located on the inner side of the other RFID electronic tag. The server can calculate the relative position relationship between them in space by comparing the reception time difference of the response signals of each RFID electronic tag. Assume that there are n readers, whose coordinates are (xi, yi, zi), i=1, 2,..., n, and the clocks of the readers are synchronized. The unknown coordinates of the tag are (x, y, z). Define the distance from the tag to the i-th reader as ri, then: ri=sqrt((x-xi)^2+(y-yi)^2+(z-zi)^2), i=1, 2,..., n Assuming that the time when the tag's response signal reaches the i-th reader is ti, and the time when the first reader receives the tag signal is t1, the time difference between the time when the i-th reader receives the tag signal and the time when the first reader receives the tag signal is: Δti=ti-t1,i=2,3,...,n Substituting the distance formula into the time difference formula, we get: sqrt((x-xi)^2+(y-yi)^2+(z-zi)^2)-sqrt((x-x1)^2+(y-y1)^2+(z-z1)^2)=c·Δti, i=2, 3,..., n Among them, c is the propagation speed of electromagnetic waves in the air, which is about 3×10^8m / s.
[0053] The above formula can be written in standard form: fi(x,y,z)=sqrt((x-xi)^2+(y-yi)^2+(z-zi)^2)- sqrt((x-x1)^2+(y-y1)^2+(z-z1)^2)-c·Δti=0, where i=2, 3,..., n This is a nonlinear system of equations with n-1 equations and 3 unknowns (x, y, z). When n ≥ 4, the system of equations has a solution, which can be solved by numerical optimization methods, such as: (x,y,z)=argmin∑(i=2ton)(fi(x,y,z))^2 The above formula indicates that finding a set (x, y, z) that minimizes the sum of squares of all equations is the coordinate of the RFID electronic tag.
[0054] Finally, the server combines the distance information and relative position relationship of each RFID tag to generate the spatial coordinates of the RFID tag. Through the principle of triangulation, the server can calculate the specific position of each RFID tag in three-dimensional space, expressed as (x, y, z) coordinates. Since the position of the RFID reader is fixed, the server can use the coordinates of the RFID reader as the origin to establish a coordinate system, and then convert the coordinates of the RFID tag to this coordinate system.
[0055] For example, suppose the RFID reader scans the bookshelf area numbered A05. There are 5 tags in the area, numbered T1, T2, T3, T4, and T5. After receiving the response signals from the 5 RFID tags, the reader sends the signal to the server. The server first calculates the distance between each RFID tag and the RFID reader. Assume that T1 has the largest signal strength, and the corresponding distance is 1 meter; T2 has the second largest signal strength, and the corresponding distance is 1.2 meters; T3, T4, and T5 have decreasing signal strengths, and the corresponding distances are 1.5 meters, 1.8 meters, and 2 meters, respectively. Next, the server compares the reception time difference of each tag response signal. Assume that T1's response signal arrives at the RFID reader first, followed by T2, and then T3, T4, and T5. Based on this, the server infers that T1 is located at the innermost side, T2 is located at the outer side of T1, and T3, T4, and T5 are located further outwards.
[0056] Finally, the server combines the distance information and the relative position relationship to generate the spatial coordinates of each RFID tag. Assuming the coordinates of the RFID reader are (0, 0, 0), the server calculates the coordinates of T1 to be (0, 1, 0), the coordinates of T2 to be (1, 1, 0), the coordinates of T3 to be (-1, 1.5, 0), the coordinates of T4 to be (0, 1.8, 1), and the coordinates of T5 to be (0, 2, -1). These coordinates represent the relative position of each RFID tag in the bookshelf area and can be used for subsequent book positioning and navigation.
[0057] Step S106: According to the book identification code, a target book matching the identification code of the book to be borrowed is determined.
[0058] In step S106, after obtaining the identification codes of all books in the target bookshelf area, the server needs to search for a target book that matches the identification code of the book to be borrowed. This process can be achieved by the following steps: First, the server compares the identification code of the book to be borrowed with the identification codes of the books in the target bookshelf area. The identification code of a book is usually unique and is represented by an RFID tag number. The server can use a simple string matching algorithm, such as the KMP algorithm and the Boyer-Moore algorithm, to quickly find books with the same identification code as the book to be borrowed. If the server finds a book that completely matches the identification code of the book to be borrowed, it marks the book as the target book.
[0059] Step S107: sending the target location information of the target book to the reader, and controlling the positioning indicator light array corresponding to the target bookshelf area to light up the positioning indicator lights corresponding to the target location information.
[0060] In step S107, the server sends the target location information of the target book to the reader. The server can be implemented in a variety of ways, such as text messages, emails, and push notifications. The server formats the location information of the target book into easy-to-understand text or images, such as "A05 bookshelf, 3rd layer, 6th column" or "A05-3-6", and sends it to the reader's mobile device. Secondly, the server controls the positioning indicator light array of the target bookshelf area to light up the indicator light corresponding to the target location information. The positioning indicator light array is usually composed of multiple LED lights, each light corresponding to a grid of the bookshelf. The server communicates with the indicator light array through a wireless or wired network and sends a control command to instruct the lights at specific locations to light up. After receiving the command, the indicator light array lights up the LED lights at the corresponding position, which generally lasts for a few minutes to prompt the reader where the book is located.
[0061] In a possible implementation, after step S107, the method further includes: obtaining the reader's borrowing confirmation information for the target book; and updating the status information of the RFID electronic tag corresponding to the target book to a borrowed status based on the borrowing confirmation information.
[0062] Specifically, the server returns detailed information of the target book to the reader, including the identification code, title, author, and collection location of the target book. After receiving this information, the reader can confirm whether to borrow the target book. The server obtains the reader's borrowing confirmation information and updates the status information of the target book accordingly. The server sends a confirmation message to the reader to determine whether the reader is sure to borrow the target book. The confirmation message can be sent through multiple channels such as the library's mobile application, web page, and text message. Then, the server waits for the reader's reply. The reader transmits the borrowing intention to the server by replying to the confirmation message, clicking the confirmation button on the application or web page, etc. After receiving the reader's reply, the server parses the reply content to determine whether the reader confirms to borrow. If the reader replies "yes" or clicks the confirmation button, the server considers that the reader confirms to borrow the target book. Then, the server updates the status information of the RFID electronic tag corresponding to the target book to the "borrowed" state.
[0063] In a possible implementation, the method further includes: obtaining real-time load information of each bookshelf area in the library; calculating the reader density of each bookshelf area in the library based on the real-time load information; sorting the reader densities to determine a target bookshelf with the lowest reader density; and sending the location information of the target bookshelf to the reader.
[0064] In a possible implementation, obtaining real-time load information of each bookshelf area in the library specifically includes: sending a scanning instruction to an RFID reader / writer in each of the bookshelf areas; obtaining a response signal of an RFID electronic tag scanned by each of the RFID readers / writers; and counting the number of RFID electronic tags in each of the bookshelf areas based on the response signal, and using the number as the real-time load information.
[0065] Specifically, the server sends a scan command to the RFID reader in each bookshelf area in the library. Each bookshelf area is usually equipped with one or more RFID readers to read the RFID electronic tag information of the books in the area. For example, the server can send a scan command to the RFID reader in each bookshelf area every 30 minutes between 9 am and 9 pm every day. The command specifies a scan time range of 5 minutes, a power of 30dBm, and a frequency of 920MHz. In this way, the reader will use the specified power and frequency to conduct a comprehensive scan of the bookshelf area in the next 5 minutes.
[0066] Next, the server waits for and obtains the response signals of the RFID tags scanned by each RFID reader. When the reader scans the bookshelf area, the RFID tags in the area are activated by the radio frequency signal and send a response signal to the reader. The response signal contains the unique identifier (UID) of the RFID tag, the identification code of the book, the security status and other information.
[0067] After receiving the response signal, the RFID reader will organize these signals into a data packet and send it to the server through the network. The data packet contains metadata such as the RFID reader number, scanning time, and scanning parameters, so that the server can identify and classify the scanning results of different readers. After receiving the data packets sent by each RFID reader, the server parses and counts the data packets. The server classifies the data packets into the corresponding bookshelf area according to the RFID reader number and scanning time. Then, the server traverses the data packets in each bookshelf area, extracts the RFID electronic tag UID, and performs deduplication processing.
[0068] Through deduplication, the server can obtain the number of unique RFID tags in each bookshelf area. This number reflects the number of books in the bookshelf area, that is, the real-time load information of the area. The server can save this real-time load information to the database and associate it with the bookshelf area number, scanning time and other information for subsequent query and analysis.
[0069] For example, the server counts the data packets in the A01 bookshelf area and finds that they contain 100 unique RFID electronic tag UIDs. This means that there are 100 books in the A01 bookshelf area during this scanning time. The server records this number as the real-time load information of the A01 area.
[0070] Next, the server needs to calculate the reader density of each bookshelf area based on real-time load information. Reader density refers to the number of readers per unit area, reflecting the degree of crowding in the bookshelf area. The server can calculate reader density using the following formula: Reader density = number of readers / bookshelf area The number of readers can be obtained through the library's access control system, monitoring system, etc., or estimated based on experience. The area of the bookshelf area can be obtained from the library's design drawings, measurement data, etc.
[0071] For example, the server learns from the access control system that there are 500 readers in the library. Based on the real-time load information and area data of the A01-A10 bookshelf area, the server calculates the reader density of each area, and the results are as follows: Area A01: 100 books, 50 square meters, reader density 0.2 people / square meter; Area A02: 150 books, 60 square meters, reader density 0.25 people / square meter; Area A03: 80 books, area 40 square meters, reader density 0.15 people / square meter Finally, the server sorts the reader density, determines the target bookshelf with the lowest reader density, and sends the location information of the target bookshelf to the reader. In this way, the server can guide readers to the bookshelf area with fewer people, improving their reading experience.
[0072] Reference Figure 2The present application also provides an RFID-based book management device, which is a server, and the server includes an acquisition module 201 and a processing module 202, wherein: the acquisition module 201 is used to acquire a borrowing request submitted by a reader; the processing module 202 is used to parse the borrowing request and identify an identification code of a book to be borrowed; the processing module 202 is also used to match the identification code with preset book location information to obtain a target bookshelf area where the book to be borrowed is located; the processing module 202 is also used to send an instruction to a target RFID reader in the target bookshelf area to control the target RFID reader to turn on a radio frequency signal of a preset frequency band to read the target book. The target bookshelf area is scanned to activate multiple RFID electronic tags corresponding to the target bookshelf area; wherein the target bookshelf area includes multiple books, and one book corresponds to one RFID electronic tag; the acquisition module 201 is also used to acquire the book identification code and book location information sent by each of the RFID electronic tags; the processing module 202 is also used to determine the target book that matches the identification code of the book to be borrowed according to the book identification code; the processing module 202 is also used to send the target location information of the target book to the reader, and control the positioning indicator light array corresponding to the target bookshelf area to light up the positioning indicator light corresponding to the target location information.
[0073] In a possible implementation, the acquisition module 201 acquires the book identification code and book location information sent by each of the RFID electronic tags, specifically including: the acquisition module 201 acquires the response signal sent by each of the RFID electronic tags; the processing module 202 generates the spatial coordinate data of each of the RFID electronic tags according to the signal strength and arrival time difference of the response signal; the processing module 202 determines the relative position of each of the RFID electronic tags in the target bookshelf area based on the spatial coordinate data to obtain the book location information.
[0074] In a possible implementation, the processing module 202 generates spatial coordinate data of each of the RFID electronic tags based on the signal strength and arrival time difference of the response signal, specifically including: the acquisition module 201 acquires the signal strength of the response signal sent by each of the RFID electronic tags; the processing module 202 calculates the distance from each of the RFID electronic tags to the target RFID reader based on the signal strength; the acquisition module 201 acquires the time difference between the response signal sent by each of the RFID electronic tags and the arrival of the target RFID reader; the processing module 202 calculates the relative position relationship between each of the RFID electronic tags based on the time difference; the processing module 202 generates spatial coordinate data of each of the RFID electronic tags based on the distance and the relative position relationship.
[0075] In a possible implementation, before the acquisition module 201 acquires the borrowing request submitted by the reader, the method further includes: the acquisition module 201 acquires the reader identity information input by the reader; the processing module 202 determines whether the reader identity information is the preset identity information; if the processing module 202 determines that the reader identity information is the preset identity information, then acquires the borrowing request submitted by the reader.
[0076] In a possible implementation, the acquisition module 201 acquires the real-time load information of each bookshelf area in the library; the processing module 202 calculates the reader density of each bookshelf area in the library according to the real-time load information; the processing module 202 sorts the reader density by size and determines the target bookshelf with the lowest reader density; the processing module 202 sends the location information of the target bookshelf to the reader.
[0077] In a possible implementation, the acquisition module 201 acquires the real-time load information of each bookshelf area in the library, specifically including: the processing module 202 sends a scanning instruction to the RFID reader / writer of each of the bookshelf areas; the acquisition module 201 acquires the response signal of the RFID electronic tag scanned by each of the RFID readers / writers; the processing module 202 counts the number of RFID electronic tags in each of the bookshelf areas according to the response signal, and uses the number as the real-time load information.
[0078] In a possible implementation, after the processing module 202 sends the target location information of the target book to the reader, the method further includes: the acquisition module 201 acquires the reader's borrowing confirmation information for the target book; the processing module 202 updates the status information of the RFID electronic tag corresponding to the target book to a borrowed status based on the borrowing confirmation information.
[0079] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0080] The present application also provides an electronic device. Figure 3 , Figure 3The electronic device 300 may include: at least one processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .
[0081] The communication bus 302 is used to realize the connection and communication between these components.
[0082] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0083] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0084] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0085] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally also be at least one storage device located away from the aforementioned processor 301. Refer to Figure 3 , the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a book management method based on RFID.
[0086] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 301 can be used to call the application program of a book management method based on RFID stored in the memory 305, and when executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described order of actions, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0087] The present application also provides a computer-readable storage medium, which stores instructions. When executed by one or more processors 301, the electronic device 300 executes one or more of the methods described in the above embodiments.
[0088] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0090] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0091] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0092] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0093] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0094] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A book management method based on RFID, characterized in that: The method comprises: Get borrowing requests submitted by readers; Parsing the borrowing request to identify the identification code of the book to be borrowed; Matching the identification code with the preset book location information to obtain the target bookshelf area where the book to be borrowed is located; Sending instructions to the target RFID reader / writer in the target bookshelf area to control the target RFID reader / writer to turn on the radio frequency signal of the preset frequency band to scan the target bookshelf area, so as to activate multiple RFID electronic tags corresponding to the target bookshelf area; wherein the target bookshelf area includes multiple books, and one of the books corresponds to one of the RFID electronic tags; Obtaining the book identification code and book location information sent by each of the RFID electronic tags; According to the book identification code, determining a target book that matches the identification code of the book to be borrowed; The target location information of the target book is sent to the reader, and the positioning indicator light array corresponding to the target bookshelf area is controlled to light up the positioning indicator light corresponding to the target location information.
2. The method according to claim 1, characterized in that The obtaining of the book identification code and the book location information sent by each of the RFID electronic tags specifically includes: Obtaining a response signal sent by each of the RFID electronic tags; Generate spatial coordinate data of each of the RFID electronic tags according to the signal strength and arrival time difference of the response signal; Based on the spatial coordinate data, the relative position of each of the RFID electronic tags in the target bookshelf area is determined to obtain the book position information.
3. The method according to claim 2, characterized in that Generating the spatial coordinate data of each of the RFID electronic tags according to the signal strength and arrival time difference of the response signal specifically includes: Obtaining the signal strength of the response signal sent by each of the RFID electronic tags; Based on the signal strength, calculating the distance from each of the RFID electronic tags to the target RFID reader; Obtaining the time difference between the response signals sent by each of the RFID electronic tags and arriving at the target RFID reader; Based on the time difference, calculating the relative position relationship between each of the RFID electronic tags; The spatial coordinate data of each of the RFID electronic tags is generated according to the distance and the relative position relationship.
4. The method according to claim 1, characterized in that: Before obtaining the borrowing request submitted by the reader, the method further includes: Obtain reader identity information input by the reader; Determining whether the reader identity information is preset identity information; If it is determined that the reader identity information is the preset identity information, then the borrowing request submitted by the reader is obtained.
5. The method according to claim 1, characterized in that The method further comprises: Get real-time load information for each shelf area in the library; Calculating the reader density of each of the bookshelf areas in the library according to the real-time load information; Sort the reader densities by size to determine a target bookshelf with the lowest reader density; The location information of the target bookshelf is sent to the reader.
6. The method according to claim 5, characterized in that The obtaining of real-time load information of each bookshelf area in the library specifically includes: Sending a scanning instruction to the RFID reader / writer in each of the bookshelf areas; Acquire response signals of RFID electronic tags scanned by each of the RFID readers; According to the response signal, the number of RFID electronic tags in each of the bookshelf areas is counted, and the number is used as the real-time load information.
7. The method according to claim 1, characterized in that After sending the target location information of the target book to the reader, the method further includes: Obtaining the reader's borrowing confirmation information for the target book; Based on the borrowing confirmation information, the status information of the RFID electronic tag corresponding to the target book is updated to a borrowed status.
8. A book management device based on RFID, characterized in that: The device comprises an acquisition module (201) and a processing module (202), wherein: The acquisition module (201) is used to acquire a borrowing request submitted by a reader; The processing module (202) is used to parse the borrowing request and identify the identification code of the book to be borrowed; The processing module (202) is further used to match the identification code with the preset book location information to obtain the target bookshelf area where the book to be borrowed is located; The processing module (202) is further used to send an instruction to a target RFID reader / writer in the target bookshelf area to control the target RFID reader / writer to turn on a radio frequency signal of a preset frequency band to scan the target bookshelf area, so as to activate a plurality of RFID electronic tags corresponding to the target bookshelf area; wherein the target bookshelf area includes a plurality of books, and one of the books corresponds to one of the RFID electronic tags; The acquisition module (201) is also used to acquire the book identification code and book location information sent by each of the RFID electronic tags; The processing module (202) is further used to determine, based on the book identification code, a target book that matches the identification code of the book to be borrowed; The processing module (202) is further used to send the target location information of the target book to the reader, and control the positioning indicator light array corresponding to the target bookshelf area to light up the positioning indicator light corresponding to the target location information.
9. An electronic device, characterized in that: The electronic device (300) comprises a processor (301), a memory (305), a user interface (303) and a network interface (304), wherein the memory (305) is used to store instructions, the user interface (303) and the network interface (304) are used to communicate with other devices, and the processor (301) is used to execute the instructions stored in the memory (305) so that the electronic device (300) executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.
Citation Information
Cited By
Internet-of-things hemostatic clip positioning system and positioning method
CN120770878A
Internet of things hemostatic clip positioning system and positioning method
CN120770878B