CN109299765B - Anti-collision method and device for radio frequency identification equipment of multiple internet of things and storage medium - Google Patents

Anti-collision method and device for radio frequency identification equipment of multiple internet of things and storage medium Download PDF

Info

Publication number
CN109299765B
CN109299765B CN201811289185.7A CN201811289185A CN109299765B CN 109299765 B CN109299765 B CN 109299765B CN 201811289185 A CN201811289185 A CN 201811289185A CN 109299765 B CN109299765 B CN 109299765B
Authority
CN
China
Prior art keywords
radio frequency
frequency identification
internet
random number
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811289185.7A
Other languages
Chinese (zh)
Other versions
CN109299765A (en
Inventor
杨祎巍
匡晓云
林伟斌
崔超
李舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CSG Electric Power Research Institute
China Southern Power Grid Co Ltd
Original Assignee
CSG Electric Power Research Institute
China Southern Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CSG Electric Power Research Institute, China Southern Power Grid Co Ltd filed Critical CSG Electric Power Research Institute
Priority to CN201811289185.7A priority Critical patent/CN109299765B/en
Publication of CN109299765A publication Critical patent/CN109299765A/en
Application granted granted Critical
Publication of CN109299765B publication Critical patent/CN109299765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0008General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer

Landscapes

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

Abstract

The invention discloses an anti-collision method for radio frequency identification devices of multiple internet of things, which is characterized in that after an original random number range is determined according to the number of radio frequency identification devices of the internet of things in a current service scene, the original random number range is sent to each radio frequency identification device of the internet of things to generate a random number of the radio frequency identification device of the internet of things; then the reader-writer selects a target random number within the range of the original random number and sends the target random number to each Internet of things radio frequency identification device; and finally, receiving the serial number of the target Internet of things radio frequency identification equipment with the random number consistent with the target random number. Therefore, the method can obtain the serial number of each Internet of things radio frequency identification device in a mode of enabling the random number generated by each Internet of things radio frequency identification device and the target random number selected by the reader-writer, can reduce the probability of data collision, and further can shorten time consumption and improve data obtaining efficiency. In addition, the invention also discloses an anti-collision device and a storage medium of the radio frequency identification equipment of the multiple Internet of things, and the effects are as above.

Description

Anti-collision method and device for radio frequency identification equipment of multiple internet of things and storage medium
Technical Field
The invention relates to the field of communication of radio frequency identification equipment of electronic internet of things, in particular to an anti-collision method and device for radio frequency identification equipment of multiple internet of things and a storage medium.
Background
With the development of science and technology, RFID internet-of-things radio frequency identification devices are widely used, data communication with a reader-writer is required, and the reader-writer can only select a specific internet-of-things radio frequency identification device to communicate at a time, however, in practical application, a plurality of internet-of-things radio frequency identification devices are usually present in a radio frequency field of the reader-writer, and the reader-writer does not know a specific serial number of each internet-of-things radio frequency identification device, when the reader-writer needs to acquire the serial number of each internet-of-things radio frequency identification device, an acquisition instruction is usually sent to the plurality of internet-of-things radio frequency identification devices at the same time to acquire the serial number, but the serial number acquisition mode easily causes data collision of each internet-of-things radio frequency identification device, that is, a situation that the reader-writer receives data sent by the plurality of internet-of-things radio frequency identification devices at the same time easily occurs, so that the reader-writer cannot correctly receive the data sent by the internet-of-things radio frequency identification devices, the problems of time consuming and inefficient data acquisition arise.
Therefore, the problem that how to overcome the problems of long time consumption and low efficiency caused by the traditional data acquisition mode of the radio frequency identification device of the internet of things is a problem to be solved urgently by technical personnel in the field.
Disclosure of Invention
The embodiment of the application provides an anti-collision method and device for multiple Internet of things radio frequency identification devices and a storage medium, and aims to solve the problems of long time consumption and low efficiency caused by a traditional data acquisition mode of the Internet of things radio frequency identification devices in the prior art.
In order to solve the technical problem, the invention provides an anti-collision method for radio frequency identification devices of multiple internet of things, which comprises the following steps:
determining an original random number range according to the number of the Internet of things radio frequency identification devices estimated in the current service scene;
sending the original random number range to each Internet of things radio frequency identification device so that each Internet of things radio frequency identification device generates a random number in the original random number range;
selecting a target random number within the range of the original random number, and sending the target random number to each Internet of things radio frequency identification device;
and receiving the serial number of the target Internet of things radio frequency identification equipment, wherein the random number of the target Internet of things radio frequency identification equipment is consistent with the target random number.
Preferably, after the selecting a target random number within the range of the original random number and sending the target random number to each of the internet of things radio frequency identification devices, the method further includes:
judging whether serial number data sent by each Internet of things radio frequency identification device is received;
if not, representing that each random number per se is inconsistent with the target random number, updating the target random number to form a current target random number, and sending the current target random number to each Internet of things radio frequency identification device;
if yes, judging whether serial numbers sent by a plurality of target Internet of things radio frequency identification devices are received at the same time;
if serial numbers sent by a plurality of target Internet of things radio frequency identification devices are received at the same time, data collision is represented, and the step of determining the range of the original random number according to the quantity of the Internet of things radio frequency identification devices estimated in the current service scene is carried out or the ALOHA algorithm or the binary search algorithm is called to obtain and record the serial numbers of the target Internet of things radio frequency identification devices which collide;
and if the serial numbers sent by the target Internet of things radio frequency identification devices are not received at the same time, the step of receiving the serial numbers of the target Internet of things radio frequency identification devices with the random numbers consistent with the target random numbers is carried out.
Preferably, when the serial number sent by each radio frequency identification device of the internet of things is not successfully received, the method further includes:
and displaying the first prompt message.
Preferably, after the receiving the serial number of the target internet of things radio frequency identification device with the own random number consistent with the target random number, the method further includes:
checking whether the target random number traverses all numbers in the range of the original random number;
if yes, determining that the serial numbers of all the radio frequency identification devices of the internet of things in the current service scene are acquired;
and if not, the step of selecting the target random number in the range of the original random number and sending the target random number to each Internet of things radio frequency identification device is carried out.
Preferably, after receiving the serial number of the target internet of things radio frequency identification device with the own random number consistent with the target random number, the method further includes:
and displaying the second prompt message and recording the serial number.
In order to solve the technical problem, the invention further provides an anti-collision device of multiple internet of things radio frequency identification devices, which corresponds to the anti-collision method of the multiple internet of things radio frequency identification devices, and the anti-collision device comprises:
the first determining module is used for determining the range of the original random number according to the number of the radio frequency identification devices of the Internet of things estimated in the current service scene;
the sending module is used for sending the original random number range to each Internet of things radio frequency identification device so that each Internet of things radio frequency identification device generates a random number in the original random number range;
the selection module is used for selecting a target random number in the range of the original random number and sending the target random number to each Internet of things radio frequency identification device;
and the receiving module is used for receiving the serial number of the target Internet of things radio frequency identification equipment, wherein the random number of the receiving module is consistent with the target random number.
Preferably, the method further comprises the following steps:
the checking module is used for checking whether the target random number traverses all numbers in the range of the original random number after receiving the serial number of the target internet of things radio frequency identification device with the random number consistent with the target random number, if so, triggering the second determining module, and if not, triggering the selecting module;
the second determining module is configured to determine that the serial numbers of all internet of things radio frequency identification devices in the current service scenario have been acquired.
Preferably, the method further comprises the following steps:
and the display module is used for displaying second prompt information and recording the serial number after the receiving module receives the serial number of the target Internet of things radio frequency identification device.
In order to solve the technical problem, the present invention further provides another anti-collision device for multiple internet of things radio frequency identification devices, which corresponds to the anti-collision method for multiple internet of things radio frequency identification devices, including:
a memory for storing a computer program;
a processor for executing the computer program to implement any one of the above-mentioned steps of the multi-internet-of-things radio frequency identification device anti-collision method.
In order to solve the technical problem, the invention further provides a computer-readable storage medium corresponding to the anti-collision method for multiple internet of things radio frequency identification devices, where the computer-readable storage medium is used for storing a computer program, and the computer program is executed by a processor to implement any one of the steps of the anti-collision method for multiple internet of things radio frequency identification devices.
Compared with the prior art, the anti-collision method for the radio frequency identification devices of the multiple internet of things provided by the invention has the advantages that after the original random number range is determined according to the number of the radio frequency identification devices of the internet of things in the current service scene, the original random number range is sent to the radio frequency identification devices of the internet of things, so that the radio frequency identification devices of the internet of things generate random numbers according to the received original random number range, and a reader-writer can conveniently obtain the serial numbers of the radio frequency identification devices of the corresponding internet of things; then the reader-writer selects a target random number within the range of the original random number and sends the target random number to each Internet of things radio frequency identification device; and finally, receiving the serial number of the target Internet of things radio frequency identification equipment with the random number consistent with the target random number. Therefore, according to the acquiring method, the serial numbers of the radio frequency identification devices of the internet of things are acquired in a mode of enabling the random numbers generated by the radio frequency identification devices of the internet of things and the target random numbers selected by the reader-writer, namely, enabling the radio frequency identification devices of the internet of things to generate one number, and then the serial numbers of the radio frequency identification devices of the internet of things are acquired by combining the numbers selected by the reader-writer, so that the probability of data collision of the radio frequency identification devices of the internet of things can be reduced, and compared with the mode of sending acquiring instructions to the radio frequency identification devices of the internet of things simultaneously in the prior art, the time consumption can be shortened and the data acquiring efficiency can be improved. In addition, the invention also provides an anti-collision device, equipment and a readable storage medium for the radio frequency identification equipment of the multiple Internet of things.
Drawings
Fig. 1 is a flowchart of an anti-collision method for multiple internet of things radio frequency identification devices according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a multi-internet-of-things radio frequency identification device anti-collision device according to an embodiment of the present invention;
fig. 3 is a schematic composition diagram of another anti-collision device for radio frequency identification devices of multiple internet of things according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, 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.
The core of the invention is to provide an anti-collision method, device and storage medium for multiple Internet of things radio frequency identification devices, which can solve the problems of long time consumption and low efficiency caused by a traditional data acquisition mode of the Internet of things radio frequency identification devices in the prior art.
In order that those skilled in the art will better understand the concept of the present invention, the following detailed description of the invention is provided in conjunction with the accompanying drawings and the detailed description of the invention.
Fig. 1 is a flowchart of an anti-collision method for multiple internet of things radio frequency identification devices according to an embodiment of the present invention, and as shown in fig. 1, the obtaining method includes:
s101: and determining a plurality of original random number ranges according to the number of the radio frequency identification devices of the Internet of things estimated in the current service scene.
Specifically, the number of the internet of things radio frequency identification devices is estimated according to the actual service scenes of the internet of things radio frequency identification devices and the reader-writer, and then the original random number range is determined according to the estimated number of the internet of things radio frequency identification devices and the actual service scenes. For example, the reader/writer determines a positive integer N to form an original random number range [0, N ], where N is a positive integer greater than zero, and the value of N may be determined according to a specific application scenario, which is not limited in the present invention.
S102: and sending the original random number range to each Internet of things radio frequency identification device so that each Internet of things radio frequency identification device generates a random number in the original random number range.
After the original random number range is determined, the original random number range is sent to each Internet of things radio frequency identification device, so that each Internet of things radio frequency identification device generates a random number in the received original random number range, that is, each Internet of things radio frequency identification device generates a number representing the identity of the Internet of things radio frequency identification device in the original random range, and a reader-writer can obtain the serial number of the Internet of things radio frequency identification device. The original random number range [0, N ] in step S101 is used for explaining, that is, each internet of things radio frequency identification device generates a random number R between [0, N ].
S103: and selecting a target random number within the range of the original random number, and sending the target random number to each Internet of things radio frequency identification device.
Specifically, a target random number is selected within a determined range of the original random number, and then the selected target random number is sent to each Internet of things radio frequency identification device. For example, a target random number R 'is selected from the range [0, N ] of the original random number, and R' is sent to each internet of things rfid device.
S104: and receiving the serial number of the target Internet of things radio frequency identification equipment, wherein the random number of the target Internet of things radio frequency identification equipment is consistent with the target random number.
When each Internet of things radio frequency identification device generates a random number within the range of the received original random number and receives a target random number sent by a reader-writer, each Internet of things radio frequency identification device can determine whether the random number generated by the Internet of things radio frequency identification device is consistent with the target random number sent by the reader-writer, if the two random numbers are consistent, the Internet of things radio frequency identification device sends a serial number of the Internet of things radio frequency identification device to the reader-writer, and the reader-writer receives and records the serial number; if the radio frequency identification device of the internet of things determines that the received target random number is inconsistent with the self random number generated by the radio frequency identification device of the internet of things, the radio frequency identification device of the internet of things keeps silent, namely, no data is sent to the reader-writer. In the embodiment of the application, the target random number and the self random number are both positive integers.
In practical application, if the serial number of any target internet of things radio frequency identification device is not received after the target random number is sent to each internet of things radio frequency identification device, it is indicated that no target internet of things radio frequency identification device consistent with the target random number exists in the current application scene, and then the next target random number is directly selected to continue to obtain the serial number of the internet of things radio frequency identification device. In the embodiment of the present application, the step S102 and the step S103 are not in sequence, and the step S102 may be executed first, and then the step S103 may be executed; step S102 may be executed after step S103 is executed; of course, on the premise that the condition allows, step S102 and step S103 may also be executed simultaneously, the specific execution sequence of step S102 and step S103 may be determined according to the actual situation, and the execution sequence of step S102 and step S103 does not affect the implementation of the embodiment of the present application.
In the embodiment of the application, each Internet of things radio frequency identification device generates the random number, the random number is used as the temporary identity number of each Internet of things radio frequency identification device, and then the serial number of the Internet of things radio frequency identification device is obtained through the temporary identity number, so that the probability of data collision can be greatly reduced, and the communication efficiency is improved.
According to the anti-collision method for the radio frequency identification devices of the multiple internet of things, provided by the invention, after the original random number range is determined according to the number of the radio frequency identification devices of the internet of things in the current service scene, the original random number range is sent to the radio frequency identification devices of the internet of things, so that the radio frequency identification devices of the internet of things generate random numbers according to the received original random number range, and a reader-writer can conveniently obtain the serial numbers of the radio frequency identification devices of the corresponding internet of things; then the reader-writer selects a target random number within the range of the original random number and sends the target random number to each Internet of things radio frequency identification device; and finally, receiving the serial number of the target Internet of things radio frequency identification equipment with the random number consistent with the target random number. Therefore, according to the acquiring method, the serial numbers of the radio frequency identification devices of the internet of things are acquired in a mode of enabling the random numbers generated by the radio frequency identification devices of the internet of things and the target random numbers selected by the reader-writer, namely, enabling the radio frequency identification devices of the internet of things to generate one number, and then the serial numbers of the radio frequency identification devices of the internet of things are acquired by combining the numbers selected by the reader-writer, so that the probability of data collision of the radio frequency identification devices of the internet of things can be reduced, compared with the mode of sending acquiring instructions to the radio frequency identification devices of the internet of things simultaneously in the prior art, the time consumption can be shortened, and the data acquisition efficiency can be improved.
In order to prevent the situation that after the reader-writer sends the target random number and the original random number range to all the multiple internet of things radio frequency identification devices, the random numbers generated by all the multiple internet of things radio frequency identification devices in the original random number range are all inconsistent with the received target random number, which results in that the reader-writer cannot receive the serial number data of the multiple internet of things radio frequency identification devices, or the situation that the reader-writer cannot identify a specific serial number due to multiple received serial numbers, on the basis of the above embodiment, as a preferred implementation manner, the method further includes, after selecting the target random number in the original random number range and sending the target random number to each internet of things radio frequency identification device:
judging whether serial number data sent by each Internet of things radio frequency identification device is received;
if not, representing that the own random numbers are inconsistent with the target random numbers, updating the target random numbers to form current target random numbers, and sending the current target random numbers to the radio frequency identification equipment of the Internet of things;
if yes, judging whether serial numbers sent by a plurality of target Internet of things radio frequency identification devices are received at the same time;
if serial numbers sent by a plurality of target Internet of things radio frequency identification devices are received at the same time, data collision is represented, and the step of determining the range of an original random number according to the quantity of the Internet of things radio frequency identification devices estimated in the current service scene is carried out or the ALOHA algorithm or the binary search algorithm is called to obtain and record the serial numbers of the collided target Internet of things radio frequency identification devices;
and if the serial numbers sent by the plurality of target Internet of things radio frequency identification devices are not received at the same time, the step of receiving the serial numbers of the target Internet of things radio frequency identification devices with the random numbers consistent with the target random numbers is carried out.
In the embodiment of the application, before the reader selects the target random number in the original random number range and sends the target random number to each internet of things radio frequency identification device, the original random number range is already sent to each internet of things radio frequency identification device, and each internet of things radio frequency identification device generates the random number in the original random number range. Therefore, in order to prevent the above situation, after selecting a target random number within the range of the original random number and sending the target random number to each internet of things radio frequency identification device, the reader-writer needs to determine whether serial number data sent by each internet of things radio frequency identification device can be received, that is, whether any internet of things radio frequency identification device sends serial number data to the reader-writer is determined, if serial number data sent by each internet of things radio frequency identification device cannot be received, the random numbers of all internet of things radio frequency identification devices are represented to be inconsistent with the target random number, at this time, the target random number needs to be updated to form a current target random number, and then the current target random number is sent to each internet of things radio frequency identification device again, that is, the reader-writer reselects a current target random number within the range of the determined random number (the current target random number is different from the target random number), until the Internet of things radio frequency identification equipment which can generate random numbers consistent with the current target exists; if the reader-writer determines that serial number data sent by each internet of things radio frequency identification device can be received, which indicates that the internet of things radio frequency identification device sends serial number data to the reader-writer at the moment, whether the serial numbers sent by a plurality of target internet of things radio frequency identification devices are received at the same time needs to be judged, if the serial numbers sent by the plurality of target internet of things radio frequency identification devices are determined to be received at the same time, which indicates that the random numbers of more than one internet of things radio frequency identification device are consistent with the target random numbers, namely data collision occurs, the step S101 needs to be entered, the steps S101 to S104 are recursively called until the serial numbers of all the collided target internet of things radio frequency identification devices are obtained and recorded, because the reader-writer can only determine that the serial numbers of the plurality of target internet of things radio frequency identification devices are received at the same time, and can not determine which internet of things radio frequency identification devices specifically, that is, it cannot be determined which specific target internet of things radio frequency identification devices are, and therefore, step S101 needs to be performed to determine an original random number range again, but it is worth noting that the original random number range needs to be determined according to the estimated number of collided internet of things radio frequency identification devices, instead of determining according to the number of all internet of things radio frequency identification devices estimated in the current service scene, and a random number (a current target random number selected within the range of the original random number determined according to the estimated number of collided internet of things radio frequency identification devices) is sent to all the internet of things radio frequency identification devices again, and the current target random number at this time needs to be different from the previously sent target random number, and if the target internet of things radio frequency identification devices determine that the current random number generated by the target internet of things is consistent with the received current target random number, the current random number is determined by the target internet of things radio frequency identification devices Then, the serial number of the reader-writer is sent to the reader-writer. Circularly executing the method until receiving the serial numbers of all target Internet of things radio frequency identification devices with data collision; or calling an ALOHA algorithm or a binary search algorithm to obtain and record the serial numbers of the target Internet of things radio frequency identification devices which are collided. The specific process of invoking ALOHA algorithm or binary search algorithm may be referred to in the prior art, and the present invention is not described herein again. If the serial numbers sent by the multiple target internet of things radio frequency identification devices are not received at the same time, that is, if the reader-writer determines that only one serial number sent by one target internet of things radio frequency identification device can be received after the target random number is sent to each internet of things radio frequency identification device, it indicates that no data collision occurs, and the process proceeds to step S104.
In practical application, when only one serial number sent by the target internet of things radio frequency identification device is determined to be received, the serial number needs to be recorded. When the situation of data collision is determined, the serial number of the target Internet of things radio frequency identification device which has collided can be obtained in a corresponding mode according to the actual situation. For example, when the reader may presumably determine that the number of the target internet of things radio frequency identification devices that collide is small, in order to improve the serial number acquisition efficiency, an ALOHA algorithm or an algorithm based on binary search may be selected to acquire and record the serial numbers of the target internet of things radio frequency identification devices that collide. When the reader-writer can probably determine that the number of the target internet of things radio frequency identification devices which are collided is large, in order to improve the serial number obtaining efficiency, the serial numbers of the target internet of things radio frequency identification devices which are collided can be obtained and recorded in a mode of recursively calling the steps S101 to S104.
In order to prompt the relevant personnel in time when the reader-writer cannot successfully receive the serial numbers sent by the radio frequency identification devices of the internet of things, on the basis of the above embodiment, as a preferred implementation manner, when the serial numbers sent by the radio frequency identification devices of the internet of things are not successfully received, the method further includes:
and displaying prompt information. For example, a display is made that "all the random numbers of the radio frequency identification devices of the internet of things are not consistent with the target random number, and the target random number is changed to be acquired again".
In order to prevent some serial numbers of the internet of things radio frequency identification device in a service scenario from being not acquired by the reader/writer, that is, being omitted, on the basis of the foregoing embodiment, as a preferred implementation manner, after receiving a serial number of a target internet of things radio frequency identification device whose own random number is consistent with a target random number, the method further includes:
checking whether the target random number traverses all numbers in the range of the original random number;
if yes, determining that the serial numbers of all the radio frequency identification devices of the internet of things in the current service scene are acquired;
and if not, selecting a target random number in the range of the original random number, and sending the target random number to each Internet of things radio frequency identification device.
Specifically, whether all data in an original random number range are selected is checked, for example, if the original random number range is [1, 10], whether ten positive integers from 1 to 10 are selected as target random numbers is checked, and if so, the serial numbers of all internet-of-things radio frequency identification devices in the current service scene are received by a reader; if not, the step S103 needs to be repeatedly executed until the serial numbers of all the internet of things radio frequency identification devices in the current service scenario are received by the writer.
In order to remind relevant personnel in time when receiving the serial number of the target internet of things radio frequency identification device, on the basis of the above embodiment, as a preferred implementation manner, after receiving the serial number of the target internet of things radio frequency identification device whose own random number is consistent with the target random number, the method further includes:
and displaying the second prompt message and recording the serial number. For example, a prompt message that "the serial number of the XX internet of things radio frequency identification device has been successfully received by the reader, please select the next target random number, and obtain the serial number of another internet of things radio frequency identification device" may be displayed; and simultaneously recording the obtained serial number of the corresponding radio frequency identification equipment of the Internet of things. Of course, other prompt messages may also be displayed, and the invention is not limited.
The target random number, the current target random number, the self random number and the current self random number are named according to habits and preferences under different conditions, other special meanings are not provided, and the target random number, the current target random number, the self random number and the naming mode of the self random number do not influence the implementation of the embodiment of the application.
The embodiment of the anti-collision method for the radio frequency identification devices of the multiple internet of things is described in detail, and based on the anti-collision method for the radio frequency identification devices of the multiple internet of things described in the embodiment, the embodiment of the invention also provides an anti-collision device for the radio frequency identification devices of the multiple internet of things corresponding to the method. Since the embodiment of the apparatus portion and the embodiment of the method portion correspond to each other, the embodiment of the apparatus portion is described with reference to the embodiment of the method portion, and is not described again here.
Fig. 2 is a schematic diagram illustrating a multi-internet-of-things rfid device collision avoidance apparatus according to an embodiment of the present invention, as shown in fig. 2, the apparatus includes a first determining module 201, a sending module 202, a selecting module 203, and a receiving module 204.
A first determining module 201, configured to determine an original random number range according to the number of the internet of things radio frequency identification devices estimated in the current service scenario;
the sending module 202 is configured to send the original random number range to each internet of things radio frequency identification device so that each internet of things radio frequency identification device generates a random number of itself within the original random number range;
the selecting module 203 is used for selecting a target random number within the range of the original random number and sending the target random number to each internet of things radio frequency identification device;
the receiving module 204 is configured to receive a serial number of the target internet of things radio frequency identification device, where the random number of the receiving module is consistent with the target random number.
According to the anti-collision device for the radio frequency identification devices of the multiple internet of things, provided by the invention, after the original random number range is determined according to the number of the radio frequency identification devices of the internet of things in the current service scene, the original random number range is sent to each radio frequency identification device of the internet of things, so that each radio frequency identification device of the internet of things generates a random number per se according to the received original random number range, and a reader-writer can conveniently obtain the serial number of the radio frequency identification device of the corresponding internet of things; then the reader-writer selects a target random number within the range of the original random number and sends the target random number to each Internet of things radio frequency identification device; and finally, receiving the serial number of the target Internet of things radio frequency identification equipment with the random number consistent with the target random number. Therefore, the acquiring device acquires the serial number of each Internet of things radio frequency identification device in a mode of making the random number of each Internet of things radio frequency identification device generate and the target random number selected by the reader-writer, namely, each Internet of things radio frequency identification device generates a number, and then the serial number of each Internet of things radio frequency identification device is acquired by combining the number selected by the reader-writer, so that the probability of data collision of each Internet of things radio frequency identification device can be reduced, and compared with the mode of simultaneously sending acquisition instructions to a plurality of Internet of things radio frequency identification devices in the prior art, the acquiring device can shorten the time consumption and improve the data acquisition efficiency.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the checking module is used for checking whether the target random number traverses all data in the range of the original random number after receiving the serial number of the target Internet of things radio frequency identification equipment with the random number consistent with the target random number, if so, triggering the second determining module, and if not, triggering the selecting module;
and the second determining module is used for determining that the serial numbers of all the radio frequency identification devices of the internet of things in the current service scene are acquired.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the display module is used for displaying the second prompt message and recording the serial number after the receiving module receives the serial number of the target Internet of things radio frequency identification device.
The embodiment of the anti-collision method for the radio frequency identification devices of the multiple internet of things is described in detail above, and based on the anti-collision method for the radio frequency identification devices of the multiple internet of things described in the embodiment, the embodiment of the invention also provides another anti-collision device for the radio frequency identification devices of the multiple internet of things corresponding to the method. Since the embodiment of the apparatus portion and the embodiment of the method portion correspond to each other, the embodiment of the apparatus portion is described with reference to the embodiment of the method portion, and is not described again here.
Fig. 3 is a schematic diagram illustrating a multi-internet-of-things rfid device collision avoidance apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes a memory 301 and a processor 302.
A memory 301 for storing a computer program;
a processor 302 for executing a computer program to implement the steps of the multi-internet-of-things radio frequency identification device anti-collision method provided by any one of the above embodiments.
According to the anti-collision device for the multiple Internet of things radio frequency identification devices, the serial numbers of the Internet of things radio frequency identification devices are obtained in a mode of enabling the random numbers generated by the Internet of things radio frequency identification devices and the target random numbers selected by the reader-writer, namely, the Internet of things radio frequency identification devices generate one number, and then the serial numbers of the Internet of things radio frequency identification devices are obtained by combining the numbers selected by the reader-writer, so that the probability of data collision of the Internet of things radio frequency identification devices can be reduced.
The embodiment of the anti-collision method for the radio frequency identification devices of the multiple internet of things is described in detail above, and based on the anti-collision method for the radio frequency identification devices of the multiple internet of things described in the embodiment, the embodiment of the invention further provides a computer readable storage medium corresponding to the method. Since the embodiment of the computer-readable storage medium portion and the embodiment of the method portion correspond to each other, please refer to the embodiment of the method portion for describing the embodiment of the computer-readable storage medium portion, which is not described herein again.
A computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the anti-collision method for multiple internet of things radio frequency identification devices provided in any one of the above embodiments.
In a computer-readable storage medium provided by the present invention, a processor may read a program stored in the readable storage medium, namely, the steps of the anti-collision method for the multiple internet of things radio frequency identification devices provided by any one of the above embodiments can be realized, the serial number of each internet of things radio frequency identification device is obtained by the random number generated by each internet of things radio frequency identification device and the target random number selected by the reader-writer, namely, each internet of things radio frequency identification device generates a number, then the serial numbers of the radio frequency identification devices of the Internet of things are acquired by combining the numbers selected by the reader-writer, the probability of data collision of the radio frequency identification devices of the Internet of things can be reduced, and compared with the mode that the acquisition instructions are sent to the radio frequency identification devices of the Internet of things simultaneously in the prior art, the time consumption can be shortened and the data acquisition efficiency can be improved.
The anti-collision method, device and storage medium for the radio frequency identification device of multiple internet of things provided by the invention are described in detail above. The principles and embodiments of the present invention have been described herein using several examples, the above description of which is only intended to facilitate the understanding of the method and its core concepts of the present invention; meanwhile, for those skilled in the art, based on the idea of the present invention, there may be variations in the specific embodiments and applications, and in summary, the present disclosure should not be construed as a limitation of the present invention, and those skilled in the art should include modifications, equivalent substitutions, improvements and the like without inventive labor.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the term "comprises/comprising" and the like, such that a unit, device or system comprising a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such unit, device or system.

Claims (9)

1. An anti-collision method for radio frequency identification devices of multiple internet of things is characterized by comprising the following steps:
determining an original random number range according to the number of the Internet of things radio frequency identification devices estimated in the current service scene;
sending the original random number range to each Internet of things radio frequency identification device so that each Internet of things radio frequency identification device generates a random number in the original random number range;
selecting a target random number within the range of the original random number, and sending the target random number to each Internet of things radio frequency identification device;
receiving a serial number of the target Internet of things radio frequency identification device, wherein the random number of the target Internet of things radio frequency identification device is consistent with the target random number;
after the target random number is selected from the range of the original random numbers and sent to each piece of internet-of-things radio frequency identification equipment, the method further comprises the following steps:
judging whether serial number data sent by each Internet of things radio frequency identification device is received;
if not, representing that each random number per se is inconsistent with the target random number, updating the target random number to form a current target random number, and sending the current target random number to each Internet of things radio frequency identification device;
if yes, judging whether serial numbers sent by a plurality of target Internet of things radio frequency identification devices are received at the same time;
if serial numbers sent by a plurality of target Internet of things radio frequency identification devices are received at the same time, data collision is represented, and the step of determining the range of the original random number according to the quantity of the Internet of things radio frequency identification devices estimated in the current service scene is carried out or the ALOHA algorithm or the binary search algorithm is called to obtain and record the serial numbers of the target Internet of things radio frequency identification devices which collide;
and if the serial numbers sent by the target Internet of things radio frequency identification devices are not received at the same time, the step of receiving the serial numbers of the target Internet of things radio frequency identification devices with the random numbers consistent with the target random numbers is carried out.
2. The anti-collision method for multiple internet of things radio frequency identification devices according to claim 1, wherein when the serial number sent by each internet of things radio frequency identification device is not successfully received, the method further comprises:
and displaying the first prompt message.
3. The method for preventing collision of multiple internet of things radio frequency identification devices according to claim 1, further comprising, after the receiving the serial number of the target internet of things radio frequency identification device of which the own random number is identical to the target random number:
checking whether the target random number traverses all numbers in the range of the original random number;
if yes, determining that the serial numbers of all the radio frequency identification devices of the internet of things in the current service scene are acquired;
and if not, the step of selecting the target random number in the range of the original random number and sending the target random number to each Internet of things radio frequency identification device is carried out.
4. The method for preventing collision of multiple internet of things radio frequency identification devices according to any one of claims 1 to 3, wherein after receiving the serial number of the target internet of things radio frequency identification device of which the own random number is consistent with the target random number, the method further comprises:
and displaying the second prompt message and recording the serial number.
5. The utility model provides a many thing networking radio frequency identification equipment collision device which characterized in that includes:
the first determining module is used for determining the range of the original random number according to the number of the radio frequency identification devices of the Internet of things estimated in the current service scene;
the sending module is used for sending the original random number range to each Internet of things radio frequency identification device so that each Internet of things radio frequency identification device generates a random number in the original random number range;
the selection module is used for selecting a target random number in the range of the original random number and sending the target random number to each Internet of things radio frequency identification device;
the receiving module is used for receiving the serial number of the target Internet of things radio frequency identification device, wherein the random number of the receiving module is consistent with the target random number;
further comprising:
the judging module is used for judging whether serial number data sent by each Internet of things radio frequency identification device is received;
if not, representing that each random number per se is inconsistent with the target random number, updating the target random number to form a current target random number, and sending the current target random number to each Internet of things radio frequency identification device;
if yes, judging whether serial numbers sent by a plurality of target Internet of things radio frequency identification devices are received at the same time;
the first cycle module is used for representing that data collision occurs if serial numbers sent by a plurality of target Internet of things radio frequency identification devices are received at the same time, entering the first determination module or calling an ALOHA algorithm or a binary search algorithm to obtain and record the serial numbers of the collided target Internet of things radio frequency identification devices;
and the second circulation module is used for entering the receiving module if serial numbers sent by the target Internet of things radio frequency identification devices are not received at the same time.
6. The multi-internet-of-things radio frequency identification device collision avoidance apparatus of claim 5, further comprising:
the checking module is used for checking whether the target random number traverses all numbers in the range of the original random number after receiving the serial number of the target internet of things radio frequency identification device with the random number consistent with the target random number, if so, triggering the second determining module, and if not, triggering the selecting module;
the second determining module is configured to determine that the serial numbers of all internet of things radio frequency identification devices in the current service scenario have been acquired.
7. The multi-internet-of-things radio frequency identification device collision avoidance apparatus of claim 5, further comprising:
and the display module is used for displaying second prompt information and recording the serial number after the receiving module receives the serial number of the target Internet of things radio frequency identification device.
8. The utility model provides a many thing networking radio frequency identification equipment collision device which characterized in that includes:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the multi-internet-of-things radio frequency identification device collision avoidance method as claimed in any one of claims 1 to 4.
9. A computer-readable storage medium for storing a computer program for execution by a processor to implement the steps of the multi-internet-of-things radio frequency identification device collision avoidance method according to any one of claims 1 to 4.
CN201811289185.7A 2018-10-31 2018-10-31 Anti-collision method and device for radio frequency identification equipment of multiple internet of things and storage medium Active CN109299765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811289185.7A CN109299765B (en) 2018-10-31 2018-10-31 Anti-collision method and device for radio frequency identification equipment of multiple internet of things and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811289185.7A CN109299765B (en) 2018-10-31 2018-10-31 Anti-collision method and device for radio frequency identification equipment of multiple internet of things and storage medium

Publications (2)

Publication Number Publication Date
CN109299765A CN109299765A (en) 2019-02-01
CN109299765B true CN109299765B (en) 2021-11-26

Family

ID=65146170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811289185.7A Active CN109299765B (en) 2018-10-31 2018-10-31 Anti-collision method and device for radio frequency identification equipment of multiple internet of things and storage medium

Country Status (1)

Country Link
CN (1) CN109299765B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113834110B (en) * 2021-11-08 2023-07-25 杭州老板电器股份有限公司 Parallel communication and network health monitoring method and system for central range hood

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768733A (en) * 2011-05-03 2012-11-07 国民技术股份有限公司 Multi-tag anti-collision algorithm applicable to RFID (radio frequency identification) system, RFID system and reader-writer
CN105224970A (en) * 2015-10-09 2016-01-06 上海电机学院 A kind of RFID anti-collision method
CN108537081A (en) * 2018-04-04 2018-09-14 顺丰科技有限公司 A kind of read method and logistic label system of batch logistic label

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090267747A1 (en) * 2003-03-31 2009-10-29 Rivest Ronald L Security and Data Collision Systems and Related Techniques for Use With Radio Frequency Identification Systems
CN1845125A (en) * 2006-05-18 2006-10-11 北京理工大学 Anti-collision system and method for simultaneously reading multi label
KR101048612B1 (en) * 2008-07-25 2011-07-12 성균관대학교산학협력단 RFID tag recognition method to prevent RFID tag collision, RFID reader and RFID tag using same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768733A (en) * 2011-05-03 2012-11-07 国民技术股份有限公司 Multi-tag anti-collision algorithm applicable to RFID (radio frequency identification) system, RFID system and reader-writer
CN105224970A (en) * 2015-10-09 2016-01-06 上海电机学院 A kind of RFID anti-collision method
CN108537081A (en) * 2018-04-04 2018-09-14 顺丰科技有限公司 A kind of read method and logistic label system of batch logistic label

Also Published As

Publication number Publication date
CN109299765A (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN107911487B (en) Information pushing method and device, server and readable storage medium
US10873900B2 (en) Method for wireless fidelity connection and related products
US20200242310A1 (en) Nfc configuration method, mobile terminal, and computer-readable storage medium
CN103345516A (en) Application program searching method based on application program icons and system
CN104185141A (en) Bluetooth beacon device based system and method for detecting stay time of user in area
CN109271611B (en) Data verification method and device and electronic equipment
CN109672608B (en) Method for transmitting messages according to time
CN112202663A (en) Message pushing method, device, terminal and medium
CN112926710A (en) NFC analog card switching method, mobile terminal and computer readable storage medium
CN110297764B (en) Vulnerability test model training method and device
CN109299765B (en) Anti-collision method and device for radio frequency identification equipment of multiple internet of things and storage medium
CN111049735B (en) Group head portrait display method, device, equipment and storage medium
CN110622576B (en) Communication apparatus, communication method, and computer-readable recording medium
CN107888772B (en) Method, device and storage medium for determining configuration information
CN115985382A (en) Flash memory test method, device, equipment and storage medium
CN113010820B (en) Page data updating method, device, electronic equipment, medium and program product
CN110674156B (en) Multi-machine room data synchronization method, computing equipment and computer storage medium
CN110874277B (en) Electronic red packet processing method, electronic red packet processing device and mobile terminal
CN109688578B (en) Method and equipment for adapting SIM card and mobile terminal equipment
CN109542726B (en) Power consumption detection method and device
CN112288528A (en) Malicious community discovery method and device, computer equipment and readable storage medium
CN110110565B (en) Method for estimating number of RFID (radio frequency identification) devices
CN111143583A (en) Method and device for monitoring data change of media database
CN115226152B (en) Communication method, system, electronic equipment and storage medium of satellite network
CN116916295B (en) Resident base station determining method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant