Disclosure of Invention
The invention provides a book positioning device of an intelligent bookshelf based on an RFID technology, which is characterized in that a plurality of antennas are arranged on each layer of bookshelf, so that each label can be identified, when the same label is read by the plurality of antennas, an RSSI (Received Signal Strength Indication) value is selected for storage, and the problem of positioning of a position frame can be eliminated, so that the problem of contradiction between reading of a full label and positioning accuracy is solved, and the purpose of accurately positioning books is achieved.
The invention further provides a book positioning method of the intelligent bookshelf based on the RFID technology.
The invention also provides computer equipment.
The invention also proposes a non-transitory computer-readable storage medium.
The technical scheme adopted by the invention is as follows:
an embodiment of a first aspect of the present invention provides a book positioning device for an intelligent bookshelf based on an RFID technology, where the intelligent bookshelf has multiple layers, and the book positioning device includes: the label is arranged in a book in the intelligent bookshelf; the route selector is arranged corresponding to each layer of the intelligent bookshelf; the intelligent bookshelf comprises a plurality of antennas, a plurality of radio frequency identification devices and a plurality of radio frequency identification devices, wherein the antennas are uniformly distributed on each layer of the intelligent bookshelf and are connected to radio frequency output ports of route selectors on corresponding layers through radio frequency lines, each antenna is provided with a unique code and is used for reading label information of a label; the reader is connected to a radio frequency input port of the route selector through a radio frequency line and used for reading the label information, the antenna code corresponding to the label information and the RSSI value corresponding to the label information; the reader-writer comprises a reader-writer, a controller and a tag information storage unit, wherein the reader-writer is used for reading tag information, tag information and RSSI (received signal strength indicator) values, the tag information is used for reading tag information, the tag information corresponds to antenna codes, the RSSI values correspond to the tag information, the tag information corresponds to antenna codes with larger RSSI values, and books are positioned according to the tag information, the antenna codes corresponding to the tag information and the RSSI values corresponding to the tag information.
According to an embodiment of the invention, the controller is specifically configured to: the controller sends out an instruction to sequentially control each route selector to select a corresponding antenna to read the label information of the label, and obtain the label information read by the reader, the antenna code corresponding to the label information and the RSSI value corresponding to the label information; judging whether the RSSI value is larger than a preset threshold value or not, if so, storing the current tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information; if the RSSI value is smaller than or equal to a preset threshold value, discarding the current label information; after all the RSSI values are judged, if the tag information corresponds to a plurality of antenna codes, the antenna codes with larger RSSI values are stored; and book positioning is carried out according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
According to one embodiment of the present invention, the tag information includes: book classification, book name, book author, book publishing information.
According to one embodiment of the invention, 4 antennas are uniformly distributed on each layer of the intelligent bookshelf.
The embodiment of the second aspect of the invention provides a book positioning method of an intelligent bookshelf based on RFID technology, wherein the intelligent bookshelf has multiple layers and comprises the following steps: the label is arranged in a book in the intelligent bookshelf; the route selector is arranged corresponding to each layer of the intelligent bookshelf; the intelligent bookshelf comprises a plurality of antennas, a plurality of radio frequency identification devices and a plurality of radio frequency identification devices, wherein the antennas are uniformly distributed on each layer of the intelligent bookshelf and are connected to radio frequency output ports of route selectors on corresponding layers through radio frequency lines, each antenna is provided with a unique code and is used for reading label information of a label; the reader is connected to a radio frequency input port of the route selector through a radio frequency line and used for reading the label information, the antenna code corresponding to the label information and the RSSI value corresponding to the label information; the book positioning method comprises the following steps: sending a control sending instruction to control the route selector to select a corresponding antenna to work, and acquiring the tag information read by the reader, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information; and if the tag information corresponds to a plurality of antenna codes, storing the antenna code with the larger RSSI value, and positioning the book according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
According to an embodiment of the present invention, the book positioning method of the intelligent bookshelf based on the RFID technology further includes: sending an instruction to sequentially control each route selector to select a corresponding antenna to read the tag information of the tag, and acquiring the tag information read by the reader, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information; judging whether the RSSI value is larger than a preset threshold value or not, if so, storing the current tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information; if the RSSI value is smaller than or equal to a preset threshold value, discarding the current label information; after all the RSSI values are judged, if the tag information corresponds to a plurality of antenna codes, the antenna codes with larger RSSI values are stored; and positioning the book according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
According to one embodiment of the present invention, the tag information includes: book classification, book name, book author, book publishing information.
According to one embodiment of the invention, 4 antennas are uniformly distributed on each layer of the intelligent bookshelf.
In an embodiment of the third aspect of the present invention, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the book positioning method for the intelligent bookshelf based on the RFID technology according to the embodiment of the first aspect of the present invention is implemented.
A fourth aspect of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the book locating method for the intelligent bookshelf based on the RFID technology according to the first aspect of the present invention.
The invention has the beneficial effects that:
the invention arranges a plurality of antennae on each layer of bookshelf, can ensure that each label is identified, selects the RSSI value to store when the same label is read by the plurality of antennae, and can eliminate the problem of positioning the position of the position changing shelf, thereby solving the problem of contradiction between reading the whole label and positioning accuracy and achieving the purpose of accurately positioning books.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a block schematic view of a book positioning device of an intelligent bookshelf based on RFID technology according to an embodiment of the present invention. As shown in fig. 1, the apparatus includes: a label (not shown in detail), a router 1, an antenna 2, a reader/writer 3, and a controller 4.
The intelligent bookshelf comprises a book, a tag, a book and a book, wherein the tag is arranged in the book in the intelligent bookshelf; the route selector 1 is arranged corresponding to each layer of the intelligent bookshelf; a plurality of antennas 2 (4 are taken as examples in fig. 1) are uniformly distributed on each layer of the intelligent bookshelf, each antenna 2 is connected to the radio frequency output port of the router 1 of the corresponding layer through radio frequency wires (R2-R5, R7-R10, R12-R15, R17-R20, R22-R25 in fig. 1), each antenna 2 has a unique code, and the antenna 2 is used for reading the tag information of the tag; the reader-writer 3 is connected to the radio frequency input port of the router 1 through radio frequency lines (R1, R6, R11, R16, R21), and the reader-writer 3 is used for reading the tag information, the antenna code corresponding to the tag information, and the RSSI value corresponding to the tag information; the controller 4 is connected with the reader-writer 3 through a communication line (L1), and the controller 4 is used for sending a control sending instruction to control the route selector 1 to select a corresponding antenna to work, and acquiring the tag information read by the reader-writer 3, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information, wherein if the tag information corresponds to a plurality of antenna codes, the antenna code with a larger RSSI value is stored, and book positioning is performed according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
Specifically, as shown in fig. 1, a plurality of antennas 2 may be uniformly arranged on each layer of the intelligent bookshelf, each antenna has a unique code, and the codes may be coded according to the positions of the antennas, for example, 11-14, 21-24, 31-34, 41-44, and 51-54 in the figure, where a first number represents the number of layers, and a second number represents the sequence of the layers, and the position of the antenna can be obtained by obtaining the codes of the antennas. One route selector 1 is arranged on each floor, the route selector 1 can be correspondingly arranged on the back of each intelligent bookshelf, the route selector 1 on each floor is connected with the antenna 2 on the floor, and the route selector 1 is connected to the reader-writer 3 through communication lines L2, L3, L4, L5 and L6 in a cascade mode. The antenna 2 is configured to read tag information of the tag, and the reader/writer may read the tag information read by the antenna 2, an antenna code corresponding to the tag information (i.e., tag information read by which antenna), and an RSSI value corresponding to the tag information. The controller 4 sequentially sends out a control sending instruction to control the route selector 1 on each layer to select the corresponding antenna to work, for example, the control sending instruction is sent out first to control the route selector 1 on the first layer to work, the route selector 1 controls the antennas 11 to 14 to work, the antennas 11 to 14 read the tag information, the reader-writer 3 can read the tag information read by the antennas 11 to 14, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information, and then the second layer route selector 1 is controlled to work until all the antennas are polled completely. If the same tag information is read by a plurality of antennas, namely the tag information corresponds to a plurality of antenna codes, the antenna code with the larger RSSI value is stored. And finally, according to the RSSI value corresponding to the antenna code and the tag information, the position of the tag can be judged by using an RSSI positioning algorithm, and the book can be accurately positioned according to the position of the tag and the tag information.
It can be understood that the antenna-to-tag distances corresponding to different RSSI values can be stored in advance according to the correlation detection experiment. The communication line may be an RS485 communication line. The controller 4 and the reader/writer 3 are supplied with power by a power supply.
Therefore, the device is provided with the plurality of antennas on each layer of bookshelf, so that each tag can be ensured to be identified, when the same tag is read by the plurality of antennas, the RSSI value is selected to be stored, and the problem of positioning the location shelf can be solved, thereby solving the problems of reading the full tag and positioning the accurate contradiction, and achieving the purpose of accurately positioning books.
According to an embodiment of the invention, the controller 4 is specifically configured to: the controller sends out an instruction to sequentially control each route selector to select the corresponding antenna to read the label information of the label, and obtain the label information read by the reader, the antenna code corresponding to the label information and the RSSI value corresponding to the label information; judging whether the RSSI value is greater than a preset threshold value or not, if so, storing the current tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information; if the RSSI value is less than or equal to the preset threshold value, discarding the current label information; after all RSSI values are judged, if the tag information corresponds to a plurality of antenna codes, the antenna codes with larger RSSI values are stored; and book positioning is carried out according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
Specifically, the controller 4 sequentially sends out a control sending instruction to control the route selector 1 on each layer to select the corresponding antenna to work, for example, the control sending instruction is sent out first to control the route selector 1 on the first layer to work, the route selector 1 controls the antennas 11 to 14 to work, the antennas 11 to 14 read the tag information, the reader-writer 3 can read the tag information read by the antennas 11 to 14, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information, and judge whether the RSSI value is greater than a preset threshold value, if not, the tag is far away from the antenna, and the current tag information is discarded, so that the tag away from the book shelf can be eliminated, and the problem that people pass through the tagged book and are mistakenly read is avoided; and if the RSSI value is larger than the preset threshold value, storing the current tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information. And then controlling the second-layer route selector 1 to work until all the antennas are polled completely. If the same tag information is read by a plurality of antennas, namely the tag information corresponds to a plurality of antenna codes, the antenna code with the larger RSSI value is stored. And finally, according to the antenna code and the RSSI value corresponding to the tag information, the position of the tag can be judged by using an RSSI positioning algorithm, and according to the position of the tag and the tag information, the book can be accurately positioned.
Therefore, each antenna works in a time-sharing mode, data such as label information, RSSI values and antenna codes are cached in two levels, accurate positioning of the labels is guaranteed through two-level screening, labels of books from the shelf can be eliminated through first-level primary selection, and the problem of positioning of the books from the shelf can be eliminated through second-level primary selection, so that the problems of full label reading and accurate positioning contradiction are solved, and the layer where the labels are located is accurately positioned.
In an embodiment of the present invention, the tag information may include: book classification, book name, book author, book publishing information, etc. Each layer of intelligent bookshelf can be evenly distributed with 4 antennae and can be set according to the actual width of the function data.
In summary, according to the book positioning device of the intelligent bookshelf based on the RFID technology of the embodiment of the present invention, the controller sends out the instruction to sequentially control each route selector to select the corresponding antenna to read the tag information of the tag, and obtain the tag information read by the reader, the antenna code corresponding to the tag information, and the RSSI value corresponding to the tag information; judging whether the RSSI value is greater than a preset threshold value or not, if so, storing the current tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information; if the RSSI value is less than or equal to the preset threshold value, discarding the current label information; after all RSSI values are judged, if the tag information corresponds to a plurality of antenna codes, the antenna codes with larger RSSI values are stored; and book positioning is carried out according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information. Therefore, each antenna works in a time-sharing mode, data such as label information, RSSI values and antenna codes are cached in two levels, accurate positioning of the labels is guaranteed through two-level screening, labels of books from the shelf can be eliminated through first-level primary selection, and the problem of positioning of the books from the shelf can be eliminated through second-level primary selection, so that the problems of full label reading and accurate positioning contradiction are solved, and the layer where the labels are located is accurately positioned.
Corresponding to the book positioning device of the intelligent bookshelf based on the RFID technology, the invention also provides a book positioning method of the intelligent bookshelf based on the RFID technology. Since the method embodiment of the present invention corresponds to the apparatus embodiment described above, details that are not disclosed in the method embodiment may refer to the apparatus embodiment described above, and are not described again in the present invention.
As shown in fig. 1, the smart bookshelf has a plurality of layers including: the label is arranged in the book in the intelligent bookshelf; the route selector 1 is arranged corresponding to each layer of the intelligent bookshelf; the intelligent bookshelf comprises a plurality of antennas 2, wherein a plurality of antennas 2 are uniformly distributed on each layer of the intelligent bookshelf, each antenna 2 is connected to a radio frequency output port of a corresponding layer of the route selector 1 through a radio frequency line, each antenna 2 has a unique code, and the antennas 2 are used for reading label information of a label; and the reader-writer 3 is connected to a radio frequency input port of the route selector through a radio frequency line, and the reader-writer 3 is used for reading the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
As shown in FIG. 2, the book locating method includes the following steps:
and S1, sending a control sending instruction to control the route selector to select the corresponding antenna to work, and acquiring the tag information read by the reader, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
S2, if the tag information corresponds to a plurality of antenna codes, the antenna code having the larger RSSI value is stored.
And S3, book positioning is carried out according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
According to an embodiment of the present invention, as shown in fig. 3, the book locating method of the intelligent bookshelf based on the RFID technology may further include the following steps:
and S10, sending an instruction to sequentially control each route selector to select the corresponding antenna to read the label information of the label, and acquiring the label information read by the reader, the antenna code corresponding to the label information and the RSSI value corresponding to the label information.
And S20, judging whether the RSSI value is larger than a preset threshold value.
And S30, if the RSSI value is larger than the preset threshold value, storing the current tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
S40, if the RSSI value is less than or equal to the preset threshold, discarding the current tag information.
And S50, after all RSSI values are judged, if the label information corresponds to a plurality of antenna codes, the antenna code with the larger RSSI value is stored.
And S60, book positioning is carried out according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information.
In an embodiment of the present invention, the tag information may include: book classification, book name, book author, book publishing information, etc. Each layer of intelligent bookshelf can be evenly distributed with 4 antennae and can be set according to the actual width of the function data.
In summary, according to the book positioning method of the intelligent bookshelf based on the RFID technology of the embodiment of the present invention, an instruction is issued to sequentially control each route selector to select a corresponding antenna to read the tag information of the tag, and the tag information read by the reader, the antenna code corresponding to the tag information, and the RSSI value corresponding to the tag information are obtained; judging whether the RSSI value is greater than a preset threshold value or not, if so, storing the current tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information; if the RSSI value is less than or equal to the preset threshold value, discarding the current label information; after all RSSI values are judged, if the tag information corresponds to a plurality of antenna codes, the antenna codes with larger RSSI values are stored; and book positioning is carried out according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information. Therefore, each antenna works in a time-sharing mode, data such as label information, RSSI values and antenna codes are cached in two levels, accurate positioning of the labels is guaranteed through two-level screening, labels of books from the shelf can be eliminated through first-level primary selection, and the problem of positioning of the books from the shelf can be eliminated through second-level primary selection, so that the problems of full label reading and accurate positioning contradiction are solved, and the layer where the labels are located is accurately positioned.
The invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the book positioning method of the intelligent bookshelf based on the RFID technology is realized.
According to the computer equipment provided by the embodiment of the invention, when the processor executes the computer program stored on the memory, the processor sends out a control sending instruction to control the route selector to select the corresponding antenna to work, and obtains the tag information read by the reader-writer, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information, if the tag information corresponds to a plurality of antenna codes, the antenna code with the larger RSSI value is stored, and book positioning is carried out according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information. Therefore, when the same tag is read by a plurality of antennas, the RSSI value is selected for storage, and the problem of positioning the position location frame can be solved, so that the problem of contradiction between reading the full tag and positioning accuracy is solved, and the purpose of accurately positioning books is achieved.
The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the book locating method of the intelligent bookshelf based on RFID technology according to the above-described embodiments of the present invention
According to the non-transitory computer readable storage medium of the embodiment of the invention, when the computer program stored thereon is executed by the processor, the control sending instruction is sent out to control the route selector to select the corresponding antenna to work, the tag information read by the reader-writer, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information are obtained, if the tag information corresponds to a plurality of antenna codes, the antenna code with the larger RSSI value is stored, and book positioning is performed according to the tag information, the antenna code corresponding to the tag information and the RSSI value corresponding to the tag information. Therefore, when the same tag is read by a plurality of antennas, the RSSI value is selected for storage, and the problem of positioning the position location frame can be solved, so that the problem of contradiction between reading the full tag and positioning accuracy is solved, and the purpose of accurately positioning books is achieved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.