UHF electronic tag reading and writing control method, device and reading and writing equipment
By introducing encryption modules and authentication mechanisms into the UHF RFID system, random passwords are generated and compared, which solves the problems of tag password leakage and insufficient device authentication, and achieves security protection for electronic tag data and avoids unauthorized rewriting.
Patent Information
- Application Number
- CN201810813267.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-07-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2038-07-23
AI Technical Summary
Existing ultra-high frequency radio frequency identification (RFID) systems have deficiencies in data security. Tag passwords are easily leaked and reading and writing devices lack authentication mechanisms, allowing unauthorized devices to rewrite electronic tag data.
The encryption module is introduced into the reading and writing device of the electronic tag, and after receiving the connection command from the host computer software, a random number is generated and encrypted, a random password is generated, and compared with the password calculated by the host computer software and the encryption module. Determine the consistency. If inconsistent, an authentication failure signal will be fed back, and the device will be controlled to enter a standby state to avoid unauthorized rewriting.
It effectively improves the security of electronic tag data, prevents unauthorized software or equipment from rewriting tag data, and ensures data security.
Smart Images

Figure CN108763994B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of radio frequency identification technology, and in particular to a read-write control method, device and read-write equipment of an ultra-high frequency electronic tag. Background Art
[0002] Ultra-high frequency radio frequency identification (RFID) is a technology that uses microwave signals for wireless communication. It can identify specific targets and read and write related data through microwave signals without the need for mechanical or optical contact between the identification system and the specific target. Ultra-high frequency radio frequency identification technology has the characteristics of fast reading and writing speed, long recognition distance, and the ability to read and write more electronic tags. It has been increasingly widely used in many fields such as railway safety, smart parking lots, and production line management.
[0003] The RFID reading and writing system consists of electronic tags, reading and writing devices and host computer software (i.e., RFID application software). At present, in terms of the security of RFID reading and writing at home and abroad, the electronic tags and reading and writing devices are generally based on password authentication, and the reading and writing devices and host computer software are based on data encryption transmission to protect the security of tag data. However, there are still some shortcomings. For example, the tag password is easy to leak, and there is a lack of authentication mechanism for the reading and writing devices. If the tag password of the electronic tag is leaked, then the attacker can use the same type of reading and writing device to change the data of the electronic tag according to this password. Summary of the invention
[0004] The main technical problem solved by the embodiments of the present invention is to provide a read-write control method, device and read-write device for an ultra-high frequency electronic tag. By storing the tag password through an encryption module and authenticating the legitimacy of the read-write device, the data in the electronic tag can be prevented from being rewritten by unauthorized software or unauthorized devices, thereby improving the security of the data.
[0005] A technical solution adopted by an embodiment of the present invention is: in a first aspect, a method for controlling the reading and writing of an ultra-high frequency electronic tag is provided, which is applied to a main control module of an electronic tag reading and writing device, wherein the main control module is connected to a radio frequency module and an encryption module respectively, and the encryption module stores a tag password of the electronic tag, and the method comprises:
[0006] After receiving the connection command from the host computer software, a verification command is sent to the encryption module;
[0007] Receive the random number returned by the encryption module, and transmit the random number to the host computer software;
[0008] Perform encryption operation on the random number according to a preset encryption algorithm to generate a random password;
[0009] Receiving a third password calculated by the host computer software based on the random number, and a fourth password calculated by the encryption module based on the random number;
[0010] respectively determining whether the random password is consistent with the third password and the fourth password;
[0011] If the random password is inconsistent with the third password, and / or the random password is inconsistent with the fourth password, a signal of authentication failure is fed back to the host computer software, and the reading and writing device is controlled to enter a standby state.
[0012] Optionally, the method further comprises:
[0013] If the random password is consistent with the third password, and the random password is consistent with the fourth password, acquiring characteristic information of the encryption module from the encryption module, and transmitting the characteristic information to the host computer software, so that the host computer software checks the characteristic information;
[0014] If a check failure signal is received from the host computer software, the read-write device is controlled to enter a standby state.
[0015] In one embodiment, performing encryption operation on the random number according to a preset encryption algorithm to generate a random password specifically includes:
[0016] Performing encryption operations on the random number according to a first preset encryption algorithm and a second preset encryption algorithm respectively to generate a first random password and a second random password;
[0017] The respectively determining whether the random password is consistent with the third password and the fourth password specifically includes:
[0018] Determine whether the first random password is consistent with the third password, and determine whether the second random password is consistent with the fourth password.
[0019] Optionally, the method further comprises:
[0020] After receiving the write command from the host computer software, a read command is sent to the radio frequency module, wherein the write command includes the number of tags;
[0021] Acquire tag identification numbers of all electronic tags within the radio frequency range through the radio frequency module;
[0022] Obtaining the tag password of the electronic tag from the encryption module;
[0023] Locking the TID storage area of the electronic tag to be written with data, and controlling the radio frequency module to write data to the electronic tag;
[0024] After all the electronic tags have completed the data writing work, controlling the radio frequency module to read the data of the multiple electronic tags;
[0025] The read data is transmitted to the host computer software so that the host computer software displays the data.
[0026] Optionally, after acquiring the tag identification numbers of all electronic tags within the radio frequency range through the radio frequency module, the method further includes:
[0027] If the number of tag identification numbers obtained is greater than the number of tags, a signal indicating an abnormal number of tags is fed back to the host computer software, and subsequent steps are abandoned.
[0028] In one embodiment, the main control module is also connected to the printing module, and the method further includes:
[0029] The read data is sent to the printing module, and the printing module is controlled to print the data.
[0030] In a second aspect, an embodiment of the present invention further provides a read-write control device for an ultra-high frequency electronic tag, which is applied to a main control module of an electronic tag reading and writing device, wherein the main control module is connected to a radio frequency module and an encryption module respectively, and the encryption module stores a tag password of the electronic tag, and the device comprises:
[0031] A verification command sending unit, configured to send a verification command to the encryption module after receiving a connection command from the host computer software;
[0032] A random number acquisition unit, used for receiving the random number returned by the encryption module and transmitting the random number to the host computer software;
[0033] A random number encryption unit, used to perform encryption operation on the random number according to a preset encryption algorithm to generate a random password;
[0034] A password receiving unit, used to receive a third password calculated by the host computer software based on the random number, and a fourth password calculated by the encryption module based on the random number;
[0035] a password judging unit, used to judge whether the random password is consistent with the third password and the fourth password respectively;
[0036] The first standby unit is used to feed back a signal of authentication failure to the host computer software if the random password is inconsistent with the third password and / or the random password is inconsistent with the fourth password, so as to control the reading and writing device to enter a standby state.
[0037] Optionally, the device further comprises:
[0038] a characteristic information acquisition unit, configured to acquire characteristic information of the encryption module from the encryption module if the random password is consistent with the third password and the random password is consistent with the fourth password, and transmit the characteristic information to the host computer software so that the host computer software checks the characteristic information;
[0039] The second standby unit is used to control the read-write device to enter a standby state if a check failure signal is received from the host computer software.
[0040] In one embodiment, the random number encryption unit is specifically used to:
[0041] Performing encryption operations on the random number according to a first preset encryption algorithm and a second preset encryption algorithm respectively to generate a first random password and a second random password;
[0042] The password determination unit is specifically used for:
[0043] Determine whether the first random password is consistent with the third password, and determine whether the second random password is consistent with the fourth password.
[0044] Optionally, the device further comprises:
[0045] A first read command sending unit, configured to send a read command to the radio frequency module after receiving a write command from the host computer software, wherein the write command includes the number of tags;
[0046] A tag identification number acquisition unit, used to acquire tag identification numbers of all electronic tags within a radio frequency range through the radio frequency module;
[0047] A label password obtaining unit, used for obtaining the label password of the electronic label from the encryption module;
[0048] A write command control unit, used to lock the TID storage area of the electronic tag to which data is to be written, and control the radio frequency module to write data to the electronic tag;
[0049] A second read command sending unit, used for controlling the radio frequency module to read the data of the plurality of electronic tags after all the electronic tags have completed the data writing work;
[0050] The data transmission unit is used to transmit the read data to the host computer software so that the host computer software displays the data.
[0051] Optionally, the device further comprises:
[0052] The tag abnormality feedback unit is used to feedback a tag quantity abnormality signal to the host computer software if the number of tag identification numbers obtained is greater than the tag number, and give up executing subsequent steps.
[0053] In one embodiment, the main control module is also connected to the printing module, and the device further comprises:
[0054] A printing control unit is used to send the read data to the printing module and control the printing module to print the data.
[0055] In a third aspect, an embodiment of the present invention further provides an ultra-high frequency electronic tag reading and writing device, the reading and writing device comprising a main control module, and a radio frequency module and an encryption module respectively connected to the main control module, the encryption module stores a tag password of the electronic tag, and the main control module comprises:
[0056] at least one processor; and
[0057] A memory connected to the at least one processor; wherein,
[0058] The memory stores an instruction program that can be executed by the at least one processor. The instruction program is executed by the at least one processor to enable the at least one processor to perform the method described above.
[0059] Optionally, the reading and writing device further includes a printing module connected to the main control module;
[0060] The instruction program is executed by the at least one processor and enables the at least one processor to perform the method described above.
[0061] In a fourth aspect, an embodiment of the present invention further provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a main control module of a read-write device, the main control module executes the method described above.
[0062] The beneficial effect of the embodiment of the present invention is: different from the prior art, after receiving the connection command of the host computer software, the embodiment of the present invention generates a random password by performing encryption operation on the random number generated by the encryption module, and judges whether the random password is consistent with the third password calculated by the host computer software and the fourth password calculated by the encryption module. If the random password is inconsistent with the third password, and / or the random password is inconsistent with the fourth password, it means that the host computer software is unauthorized software or the read-write device is an unauthorized device, and a signal of authentication failure is fed back to the host computer software, and the read-write device is controlled to enter the standby state, which can prevent the data in the electronic tag from being rewritten by unauthorized software or unauthorized devices, thereby improving the security of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0064] Figure 1 It is a schematic diagram of the structure of the implementation environment involved in the embodiment of the present invention;
[0065] Figure 2 It is a schematic diagram of the logical storage structure of the electronic tag;
[0066] Figure 3 The functional structure of the reading and writing device of one embodiment of the present invention is shown in FIG. Figure 1 ;
[0067] Figure 4 yes Figure 3 A schematic diagram of the three-dimensional structure of the reading and writing device shown;
[0068] Figure 5 yes Figure 3 A schematic diagram of the structure of the cover of the reading and writing device shown;
[0069] Figure 6 yes Figure 3 The internal structure diagram of the reading and writing device shown is excluding the printer main board and the shielding plate;
[0070] Figure 7 yes Figure 3 A schematic diagram of the structure of the main control circuit board of the reading and writing device shown;
[0071] Figure 8 yes Figure 3 The internal structure diagram of the reading and writing device shown;
[0072] Fig. 9 yes Figure 3 The structural diagram of the print execution mechanism and detection module of the read-write device shown;
[0073] Fig.10 yes Figure 3 A schematic diagram of the structure of a power switch of a read-write device shown;
[0074] Fig.11 is a schematic diagram of a read-write control method for an ultra-high frequency electronic tag according to a first embodiment of the present invention;
[0075] Fig.12 is a schematic diagram of a read-write control method for an ultra-high frequency electronic tag according to a second embodiment of the present invention;
[0076] Fig.13 It is a schematic diagram of some steps in the read-write control method of an ultra-high frequency electronic tag according to the third embodiment of the present invention;
[0077] Fig.14 It is a structural schematic diagram of a read-write control device of an ultra-high frequency electronic tag according to an embodiment of the present invention;
[0078] Fig.15 The functional structure of the reading and writing device of one embodiment of the present invention is shown in FIG. Figure 2 . DETAILED DESCRIPTION
[0079] In order to facilitate the understanding of the present invention, the present invention is described in more detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that when an element is described as "fixed to" another element, it can be directly on the other element, or there can be one or more centered elements therebetween. When an element is described as "connected to" another element, it can be directly connected to the other element, or there can be one or more centered elements therebetween.
[0080] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0081] The term "and / or" used in this specification includes any and all combinations of one or more related listed items. In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0082] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of a structure of an implementation environment involved in an embodiment of the present invention, such as Figure 1As shown, the RFID system includes: an electronic tag, a reader / writer that communicates with the electronic tag wirelessly, and a radio frequency antenna that transmits radio frequency signals between the tag and the reader / writer. The reader / writer is connected to the host computer through a communication interface (such as RS232 or USB interface).
[0083] The electronic tag is the carrier of the entire RFID system data, storing the data to be read by the reading and writing device. Its logical storage structure is as follows: Figure 2 As shown in the figure, logically, the tag has 4 different storage areas, namely RESERVED storage area, EPC storage area, TID (Tag identification) storage area and USER storage area. The RESERVED storage area is mainly used to store the passwords required for the Kill and Access commands, the EPC storage area is mainly used to store the EPC of the tag, the TID storage area is used to store the tag identification code of the tag (such as the serial number of the tag), and the storage organization structure of the USER storage area is defined by the user to store the user's unique data.
[0084] The RF antenna includes two types of antennas: one is the antenna on the RFID tag, and the other is the antenna of the reader / writer device, which can be built into the reader / writer device or connected to the RF output port of the reader / writer device through a coaxial cable. Since the antenna on the RFID tag has been integrated with the RFID tag, the antennas described in this embodiment are all RF antennas of the reader / writer device.
[0085] The basic working process of the RFID system is as follows: 1. First, the reader / writer device sends a radio frequency signal of a certain frequency through the radio frequency antenna under the control of the upper computer software; 2. When the tag enters the effective area of the radio frequency antenna, it obtains energy and becomes activated. The reader / writer device sends a command, and the tag sends the signal through its built-in radio frequency antenna. The reader / writer device receives the radio frequency carrier signal and decodes the signal; 3. The reader / writer device sends the decoded signal to the upper computer software for related processing. After the processing is completed, the upper computer software issues a control command to control the reader / writer device and the tag.
[0086] Among them, the protocols applicable to the ultra-high frequency band (860-960MHz) RFID system are ISO180006A / 6B / 6C. The ISO18000-6C protocol mainly specifies the physical layer and tag identification layer of the ultra-high frequency band RFID system. The physical layer defines the physical medium, communication rate, communication coding and modulation method, etc. for communication between the reader and the tag. The entire communication process includes communication in two directions, from the reader to the tag and from the tag to the reader, and the commands used by the reader and the tag for communication are implemented in the tag identification layer. The protocol mainly followed by the reader described in this embodiment is ISO18000-6C (i.e., EPCGen2 protocol).
[0087] See also Figure 3 , Figure 3 FIG. 1 is a functional structure diagram of a read-write device according to one embodiment of the present invention. Figure 3 As shown, the reading and writing device includes a main control module 1, and a radio frequency module 2, an encryption module 3, a printing module 4, a detection module 5 and a power module 6 respectively connected to the main control module 1, and the printing module 4 is also respectively connected to the detection module 5 and the power module 6.
[0088] The main control module 1 is composed of an MCU (such as a C8051F series single-chip microcomputer) and its peripheral circuits. It is mainly responsible for sending and receiving commands and data, and communicates with the host computer software through a communication interface to execute control instructions issued by the host computer software. For example, according to the control instructions of the host computer software, the radio frequency module 2 is controlled to read and write electronic tags; the encryption module 3 is controlled to encrypt data; according to the control instructions of the host computer software, the information read from the electronic tag is transmitted to the printing module 4, and the printing module 4 is controlled to print the above information; the data of the detection module 5 is received, and the status of the printing module 4 is monitored according to the information fed back by the detection module 5.
[0089] The RF module 2 is the core part of the reader / writer, including a RF chip (such as an AS3992 chip), peripheral circuits and a RF antenna 21. The RF antenna 21 and the RF chip are designed separately and connected to the RF output port of the RF chip through wires. Since the angle of the tag relative to the reader / writer changes, the RF antenna 21 needs to have omnidirectional or hemispherical coverage, and multiple antennas, such as 4 antennas, can be used.
[0090] The RF module 2 is mainly responsible for activating the electronic tag, receiving commands and data information sent by the main control module 1, encoding and modulating the information, sending the information to the tag via the RF antenna 21, and then encoding and decoding the information returned by the tag and transmitting it to the main control module 1 for processing.
[0091] The encryption module 3 is a PSAM (Purchase Secure Access Module) card or a SAM card, which is used to authenticate the legitimacy of the reading and writing device, has encryption and decryption functions, and also stores the tag password of the electronic tag.
[0092] The printing module 4 includes a printer main board 41 and a printing actuator 42, and the printing actuator 42 includes a paper roller, a thermal print head, a paper pressing shaft and a driving motor. Among them, the printer main board 41 is responsible for data interaction with the main control module 1 and the detection module 5, such as receiving control commands from the main control module 1, receiving detection signals from the detection module 5, and is responsible for controlling the printing actuator 42 to execute the printing task and print the target information. Specifically, the paper roller supports the rolled thermal printing paper, the printing actuator 42 prints the target information on the thermal printing paper through the thermal print head, and the paper pressing shaft drives the printing paper to move at an appropriate speed under the drive of the driving motor for continuous printing.
[0093] The detection module 5 is responsible for monitoring the status of the printing module 4 and feeding back the data to the main control module 1 in a timely manner. The detection module 5 includes a paper pressing shaft detection module 51 and a printing paper detection module 52. The paper pressing shaft detection module 51 is used to detect whether the paper pressing shaft is normal, and the printing paper detection module 52 is used to detect whether there is printing paper in the reading and writing device.
[0094] The power module 6 is responsible for providing DC power to the main control module 1 and the printing module 4. In this embodiment, the power module 6 includes a power main body 61 and a power switch 62 connected to the power main body 61. The power main body 61 is used to rectify AC power into DC power, and the power switch 62 is used to control the on and off of the power supply.
[0095] The following is a detailed introduction to the structure of the read-write device:
[0096] like Figure 4 As shown, the reading and writing device includes a bottom plate 10, a surface shell 20 and a printing paper cover plate 30, which together enclose an internal space of the reading and writing device.
[0097] Please also read Figure 5 The inner side of the housing 20 is provided with a print actuator installation cavity 210, a power main body installation cavity 211, a main control circuit board installation position 212, a printer main board installation position 213, a paper feed button protrusion position 214 and an indicator light accommodating cavity 215. The print actuator installation cavity 210 and the power main body installation cavity 211 are arranged side by side in the upper half of the read-write device, the main control circuit board installation position 212 and the printer main board installation position 213 are arranged side by side in the lower half of the read-write device, and the paper feed button protrusion position 214 and the indicator light accommodating cavity 215 are arranged at the bottom side of the read-write device, near the main control circuit board installation position 212. The side of the housing 20 is provided with a switch button installation hole 216 and a USB access hole 217.
[0098] The outer side of the cover 20 is provided with a label placement groove 218 and an indicator light guide window 219. The label placement groove 218 is provided at the lower part of the reading and writing device. The indicator light guide window 219 is provided corresponding to the indicator light receiving cavity 215, so as to facilitate observing the change of the indicator light outside the reading and writing device. The printing paper cover 30 is movably connected to the cover 20 and is provided in cooperation with the printing actuator installation cavity 210 as an installation entrance for printing paper. Exemplarily, the printing paper cover 30 is hinged to the cover 20.
[0099] like Figure 6 and Figure 7 As shown, except for the RF antenna 21, the main control module 1, the RF module 2 and the encryption module 3 are integrated on the same circuit board, namely the main control circuit board 11, and the main control circuit board 11 is fixed to the main control circuit board mounting position 212. A heat sink 12 is provided above the RF module 2 of the main control circuit board 11, and the heat sink 12 is covered on the RF module 2 by thermal conductive silicone grease to assist in heat dissipation. The main control circuit board 11 is connected to the RF antenna 21, the printer main board 41 and the detection module 5 through wires, and the RF antenna 21 is arranged at the bottom side of the printer main board mounting position 213. The main control circuit board 11 is also provided with an indicator light (not shown in the figure) and a USB interface 13, and the indicator light is accommodated in the indicator light accommodating cavity 215, and the USB interface 13 is arranged corresponding to the USB access hole 217.
[0100] like Figure 8 As shown, the printing module 4 includes a printer main board 41 and a printing actuator 42. The printer main board 41 is fixed to the printer main board mounting position 213 by screws, and a shielding plate 22 is also installed above the RF antenna 21, that is, the printer main board 41 is arranged above the shielding plate 22 to shield the signal interference of the printer main board 41 to the RF antenna 21. The shielding plate 22 can be made of a copper clad plate.
[0101] The printer main board 41 is also an integrated circuit board, which is connected to the main control circuit board 11 and the print actuator 42 respectively to receive commands from the main control module 1, drive the print actuator 42 to print, monitor the operating status of the print actuator 42, and feed back the monitoring information to the main control module 1.
[0102] like Fig. 9As shown, the printing actuator 42 includes a thermal print head 421, a paper pressing shaft 422, a paper rolling shaft (not shown in the figure) and a driving motor 423. The thermal print head 421 and the driving motor 423 are respectively connected to the printer main board 41. The thermal print head 421 receives the command of the printer main board 41, heats different points, and prints information on the thermal printing paper. The paper pressing shaft 422 presses the thermal printing paper tightly on the thermal print head 421 for printing. At the same time, the thermal printing paper is driven to move by the driving motor 423 for continuous printing.
[0103] The printing actuator 42 and the detection module 5 are both arranged in the printing actuator installation cavity 210. Among them, the paper pressing shaft detection module 51 includes a limit switch, which is arranged on the outside of the paper pressing shaft 422. When the paper pressing shaft 422 is installed in place, the limit switch is pressed down, and the corresponding IC pin is grounded; when the paper pressing shaft is not installed in place, the corresponding IC pin is high level, and the indicator light guide window 219 shows abnormality. The printing paper detection module 52 uses a photoelectric sensor to determine whether there is printing paper according to whether the light is blocked.
[0104] The power module 6 is connected to the main control circuit board 11 and the printer main board 41 through wires. Figure 8 and Fig.10 The power module 6 includes a power main body 61 and a power switch 62 connected to the power main body 61. The power main body 31 is installed in the power main body installation cavity 211 and fixed to the housing 20 by screws. The power switch 62 passes through the switch button installation hole 216 and is fixed to the side of the housing 20. The power switch 62 includes a power cord jack 621 and a button switch 622. In actual applications, the power cord jack 621 can be connected to 220V AC through a power cord, and the button switch 622 controls the on and off of the power supply.
[0105] Based on the implementation environment and the structure of the reading and writing device described above, an embodiment of the present invention provides a method for reading and writing ultra-high frequency electronic tags. The method is applied to the main control module of the reading and writing device. The main control module is connected to the radio frequency module and the encryption module respectively. The encryption module stores the tag password of the electronic tag. Fig.11 As shown, the read-write control method of the UHF electronic tag of the first embodiment of the present invention specifically includes:
[0106] Step 101: After receiving the connection command from the host computer software, a verification command is sent to the encryption module.
[0107] During specific implementation, the user connects the read-write device to the host computer. After the read-write device is powered on, the host computer software is opened and the serial port connection is clicked. The host computer software sends a connection command to the read-write device.
[0108] Step 102: Receive the random number returned by the encryption module and transmit the random number to the upper computer software.
[0109] After receiving the inspection command from the main control module, the encryption module generates a random number and returns it to the main control module, which then transmits the random number to the host computer software.
[0110] Step 103: Perform encryption operation on the random number according to a preset encryption algorithm to generate a random password.
[0111] The preset encryption algorithm may be a DES encryption algorithm, an MD5 encryption algorithm, a SHA1 encryption algorithm or the like.
[0112] Step 104: Receive a third password calculated by the host computer software based on the random number, and a fourth password calculated by the encryption module based on the random number.
[0113] Step 105: Determine whether the random password is consistent with the third password and the fourth password.
[0114] Step 106: If the random password is inconsistent with the third password, and / or the random password is inconsistent with the fourth password, a signal indicating authentication failure is fed back to the upper computer software, and the read-write device is controlled to enter a standby state.
[0115] When the random password is inconsistent with the third password, that is, the random password obtained by the main control module encrypting the random number according to the preset encryption algorithm is inconsistent with the third password calculated by the host computer software based on the random number, it means that the host computer software is unauthorized software or the read-write device is an unauthorized device; when the random password is inconsistent with the fourth password, that is, the random password obtained by the main control module encrypting the random number according to the preset encryption algorithm is inconsistent with the fourth password calculated by the encryption module based on the random number, it means that the read-write device is an unauthorized device.
[0116] Therefore, after the main control module determines that the random password is inconsistent with the third password, and / or the random password is inconsistent with the fourth password, it will feedback an authentication failure signal to the host computer software and control the read-write device to enter the standby state. The user cannot control the read-write device through the host computer software, and the read-write device cannot read and write the electronic tag, thereby preventing the data in the electronic tag from being rewritten by unauthorized devices and improving the security of the data.
[0117] After receiving the connection command from the host computer software, this embodiment generates a random password by performing encryption operation on the random number generated by the encryption module, and judges whether the random password is consistent with the third password calculated by the host computer software and the fourth password calculated by the encryption module. If the random password is inconsistent with the third password, and / or the random password is inconsistent with the fourth password, it means that the host computer software is unauthorized software or the read-write device is an unauthorized device, and a signal of authentication failure is fed back to the host computer software, and the read-write device is controlled to enter the standby state, which can prevent the data in the electronic tag from being rewritten by unauthorized software or unauthorized devices, thereby improving the security of the data.
[0118] See also Fig.12 , Fig.12 A schematic diagram of a read-write control method for an ultra-high frequency electronic tag provided in a second embodiment of the present invention, the method specifically comprising:
[0119] Step 201: After receiving the connection command from the host computer software, a verification command is sent to the encryption module.
[0120] Step 202: Receive the random number returned by the encryption module, and transmit the random number to the upper computer software.
[0121] Step 203: Perform encryption operations on the random number according to the first preset encryption algorithm and the second preset encryption algorithm respectively to generate a first random password and a second random password.
[0122] The first preset encryption algorithm and the second preset encryption algorithm are different encryption algorithms. Exemplarily, the first preset encryption algorithm is a 3DES encryption algorithm, and the second preset encryption algorithm is an MD5 encryption algorithm.
[0123] Step 204: Receive the third password calculated by the host computer software based on the random number, and the fourth password calculated by the encryption module based on the random number.
[0124] Step 205: Determine whether the first random password is consistent with the third password, and determine whether the second random password is consistent with the fourth password.
[0125] Step 206: If the first random password is inconsistent with the third password, and / or the second random password is inconsistent with the fourth password, a signal indicating authentication failure is fed back to the upper computer software, and the read-write device is controlled to enter a standby state.
[0126] It can be understood that when the first random password is inconsistent with the third password, it means that the upper computer software is unauthorized software or the read-write device is an unauthorized device; when the second random password is inconsistent with the fourth password, it means that the read-write device is an unauthorized device. Therefore, after the main control module determines that the first random password is inconsistent with the third password, and / or the second random password is inconsistent with the fourth password, it feeds back a signal of authentication failure to the upper computer software, and controls the read-write device to enter the standby state.
[0127] Step 207: If the first random password is consistent with the third password, and the second random password is consistent with the fourth password, a signal indicating that the initial authentication is successful is fed back to the upper computer software.
[0128] When the first random password is consistent with the third password, that is, the first random password obtained by the main control module encrypting the random number according to the first preset encryption algorithm is consistent with the third password calculated by the host computer software based on the random number, it means that the host computer software and the main control module use the same encryption algorithm to encrypt the random number; when the second random password is consistent with the fourth password, that is, the second random password obtained by the main control module encrypting the random number according to the second preset encryption algorithm is consistent with the fourth password calculated by the encryption module based on the random number, it means that the encryption module and the main control module also use the same encryption algorithm to encrypt the random number, and the preliminary authentication of the legitimacy of the host computer software and the read-write device is successful.
[0129] Therefore, after the main control module determines that the first random password is consistent with the third password, and the second random password is consistent with the fourth password, the security of the communication link can be preliminarily determined, and a signal of preliminary authentication success can be fed back to the upper computer software. In the process of authenticating the upper computer software and the read-write device, the random number is encrypted by using different encryption algorithms, further improving the security of the link.
[0130] Step 208: After receiving the verification command from the host computer software, the characteristic information of the encryption module is obtained from the encryption module, and the characteristic information is transmitted to the host computer software so that the host computer software verifies the characteristic information.
[0131] Step 209: If a check failure signal is received from the host computer software, the read / write device is controlled to enter a standby state.
[0132] The encryption module is an encryption card, such as a PSAM card or a SAM card. Specifically, the characteristic information of the encryption module may include information such as the card issuance time, the card issuance agency, and the card number. The main control module transmits the above characteristic information to the host computer software, and the host computer software checks the characteristic information of the card.
[0133] If the host computer software verifies successfully, it confirms that the read / write device is an authorized device, and the authentication between the host computer software, encryption module and read / write device is successful, and the read / write device can start working normally under the control of the host computer software. If the host computer software verifies unsuccessfully, the host computer software prompts that the authentication failed, and sends a verification failure signal to the main control module. After receiving the above signal, the main control module controls the read / write device to enter the standby state.
[0134] It should be noted that, in another embodiment, after the main control module determines that the first random password is consistent with the third password, and the second random password is consistent with the fourth password, the main control module can also directly obtain the characteristic information of the encryption module from the encryption module, and transmit the above characteristic information to the host computer software, thereby reducing the information interaction between the main control module and the host computer software.
[0135] This embodiment performs encryption operation on the random number according to the first preset encryption algorithm and the second preset encryption algorithm respectively to generate a first random password and a second random password. If the first random password is consistent with the third password calculated by the host computer software, and the second random password is consistent with the fourth password calculated by the encryption module, characteristic information of the encryption module is obtained from the encryption module, and the above characteristic information is transmitted to the host computer software so that the host computer software verifies the characteristic information. If a verification failure signal is received from the host computer software, the read-write device is controlled to enter a standby state, so that the writing of data in the electronic tag can only be performed in authorized read-write devices and authorized software, further improving the security of the data.
[0136] See also Fig.13 In addition to the steps in the first embodiment or the second embodiment, the read-write control method of the UHF electronic tag provided in the third embodiment of the present invention further includes:
[0137] Step 301: After receiving a write command from the host computer software, a read command is sent to the radio frequency module, wherein the write command includes the number of tags.
[0138] The reader / writer has two working modes, single tag mode and multi-tag mode. Users can select the working mode through the host computer software. When single tag mode is selected, the default number of tags is 1. When multi-tag mode is selected, users need to enter the number of tags.
[0139] Step 302: Obtain tag identification numbers of all electronic tags within the radio frequency range through the radio frequency module.
[0140] When multiple electronic tags are within the radio frequency range of the reader / writer at the same time, the reader / writer can simultaneously inventory multiple tags. Tags in the response state respond to the command of the reader / writer and return their own ID information (PC, EPC, CRC16 information). The reader / writer obtains the tag identification number by reading the data in the TID storage area of the tag.
[0141] Step 303: If the number of tag identification numbers obtained is greater than the number of tags, a signal indicating that the number of tags is abnormal is fed back to the upper computer software, and subsequent steps are abandoned.
[0142] Specifically, in the single tag mode, if more than one electronic tag is detected within the radio frequency range of the reader / writer, the host computer software prompts that the number of electronic tags is greater than 1, and the reader / writer does not continue to work.
[0143] In multi-tag mode, if the number of electronic tags detected within the radio frequency range of the reader / writer is greater than the number of tags entered by the user, the host computer software prompts that the number of electronic tags is abnormal and the reader / writer does not continue to work; if the number of electronic tags detected is 1, the reader / writer still works normally, but the host computer software prompts that only one tag is detected.
[0144] Step 304: Obtain the tag password of the electronic tag from the encryption module.
[0145] The tag password is the tag password written by the user after writing data to the electronic tag for the first time. The tag password is the access instruction of the electronic tag. Before the read-write device writes to the tag, it needs to determine whether the tag has been encrypted by the Lock command. If it has been encrypted, it needs to perform password verification before writing to prevent unauthorized users from writing to the tag.
[0146] Step 305: Lock the TID storage area of the electronic tag to which data is to be written, and control the radio frequency module to write data to the electronic tag.
[0147] The main function of the Lock command of the ISO18000-6C protocol is to lock some storage areas of the tag, such as the EPC storage area, the USER storage area and the TID storage area. Because the data in the TID storage area will not change during the entire data writing process, and the data in the EPC area or the USER area may be different before and after writing, therefore, in the process of writing data to the electronic tag, after locking the TID storage area of the electronic tag, it will not cause the locked tag to be lost, or it will be impossible to determine whether the data is successfully written into the specified data area of the specified tag. In the multi-tag mode, it can effectively avoid the confusion of tags and ensure the accurate writing of data.
[0148] In multi-tag mode, the read / write device of this embodiment uses a time division multiple access anti-collision algorithm to write data to multiple tags. Time division multiple access divides time into time slots. The read / write device uses different time slots to communicate with different tags. Only one tag can communicate with the read / write device in one time slot.
[0149] The user controls the read-write device to perform read-write operations within the specified range by inputting different command codes in the upper computer software. For example, when the number of tags is 2, the process of writing data to two electronic tags is as follows: 1. The main control module locks the TID storage area of the first electronic tag and controls the radio frequency module to write data to the first electronic tag (write the EPC storage area and / or USER storage area of the tag); 2. After the first electronic tag completes the data writing work, the main control module locks the TID storage area of the second electronic tag and controls the radio frequency module to write data to the second electronic tag; 3. The writing work is completed.
[0150] Among them, during the data transmission process, the data transmitted between the host computer software and the read-write device is encrypted data. For example, the host computer software uses 3DES and adds MAC code protection to encrypt the data. After the main control module of the read-write device receives the encrypted data, it controls the encryption module to decrypt the encrypted data and then writes the decrypted data into the electronic tag.
[0151] Step 306: After all electronic tags have completed the data writing process, the radio frequency module is controlled to read the data of the multiple electronic tags.
[0152] Step 307: Transmit the read data to the host computer software so that the host computer software displays the data.
[0153] After the host computer software displays the above data, the user can check whether the data written into the electronic tag is correct.
[0154] Optionally, the main control module is further connected to the printing module, and the method further comprises:
[0155] Step 308: Send the read data to the printing module, and control the printing module to print the above data.
[0156] The printing module includes a printer main board and a printing actuator. The main control module sends the read data to the printer main board and controls the printer main board to drive the printing actuator to print the above data.
[0157] By setting up a printing module in the reading and writing device, after all the electronic tags have completed the data writing work, the written data can also be printed out, so that the user can fix the printed label data on the corresponding electronic tag to identify the electronic tag and avoid confusion.
[0158] In the process of writing data to the electronic tag, this embodiment can effectively avoid confusion of labels and ensure accurate writing of data in multi-label mode by locking the TID storage area of the electronic tag to which the data is to be written. After all the electronic tags have completed the data writing work, the read data can be sent to the printing module to control the printing module to print the above data, so that the user can fix the data in the label on the corresponding electronic label to identify the electronic label and avoid confusion.
[0159] The embodiment of the present invention also provides a read-write control device for an ultra-high frequency electronic tag, which is applied to a main control module of a read-write device, and the main control module is connected to a radio frequency module and an encryption module respectively, and the encryption module stores the tag password of the electronic tag. Fig.14 As shown, the read-write control device 70 of the ultra-high frequency electronic tag of one embodiment of the present invention specifically includes:
[0160] The verification command sending unit 71 is used to send a verification command to the encryption module after receiving a connection command from the host computer software;
[0161] The random number acquisition unit 72 is used to receive the random number returned by the encryption module and transmit the random number to the upper computer software;
[0162] The random number encryption unit 73 is used to perform encryption operation on the random number according to a preset encryption algorithm to generate a random password;
[0163] The password receiving unit 74 is used to receive the third password calculated by the host computer software based on the random number, and the fourth password calculated by the encryption module based on the random number;
[0164] A password determination unit 75, used to determine whether the random password is consistent with the third password and the fourth password;
[0165] The first standby unit 76 is used to feed back a signal of authentication failure to the upper computer software if the random password is inconsistent with the third password and / or the random password is inconsistent with the fourth password.
[0166] After receiving the connection command from the upper computer software, the present embodiment performs encryption operation on the random number generated by the encryption module through the random number encryption unit 73 to generate a random password. The password judgment unit 75 judges whether the random password is consistent with the third password calculated by the upper computer software and the fourth password calculated by the encryption module. If the random password is inconsistent with the third password and / or the random password is inconsistent with the fourth password, it means that the upper computer software is unauthorized software or the read-write device is an unauthorized device. The first standby unit 76 feeds back a signal of authentication failure to the upper computer software and controls the read-write device to enter the standby state, which can prevent the data in the electronic tag from being rewritten by unauthorized software or unauthorized devices, thereby improving the security of the data.
[0167] Optionally, the device 70 further includes:
[0168] The characteristic information acquisition unit 77 is used to acquire characteristic information of the encryption module from the encryption module if the random password is consistent with the third password and the random password is consistent with the fourth password, and transmit the characteristic information to the host computer software so that the host computer software checks the characteristic information;
[0169] The second standby unit 78 is used to control the read-write device to enter a standby state if a check failure signal is received from the upper computer software.
[0170] In one embodiment, the random number encryption unit 73 is specifically used for:
[0171] The random number is encrypted according to the first preset encryption algorithm and the second preset encryption algorithm to generate a first random password and a second random password.
[0172] The password determination unit 75 is specifically used for:
[0173] Determine whether the first random password is consistent with the third password, and determine whether the second random password is consistent with the fourth password.
[0174] In this embodiment, the random number encryption unit 73 performs encryption operation on the random number according to the first preset encryption algorithm and the second preset encryption algorithm respectively to generate a first random password and a second random password. If the first random password is consistent with the third password calculated by the host computer software, and the second random password is consistent with the fourth password calculated by the encryption module, the characteristic information acquisition unit 77 obtains the characteristic information of the encryption module from the encryption module, and transmits the above characteristic information to the host computer software so that the host computer software verifies the above characteristic information. If a verification failure signal is received from the host computer software, the second standby unit 78 controls the read-write device to enter the standby state, so that the writing of data in the electronic tag can only be performed in the authorized read-write device and the authorized host computer software, thereby further improving the security of the data.
[0175] Optionally, the device 70 further includes:
[0176] A first read command sending unit 81 is used to send a read command to the RF module after receiving a write command from the host computer software, wherein the write command includes the number of tags;
[0177] The tag identification number acquisition unit 82 is used to acquire the tag identification numbers of all electronic tags within the radio frequency range through the radio frequency module;
[0178] The tag password obtaining unit 83 is used to obtain the tag password of the electronic tag from the encryption module;
[0179] A write command control unit 84 is used to lock the TID storage area of the electronic tag to which data is to be written, and control the radio frequency module to write data to the electronic tag;
[0180] The second read command sending unit 85 is used to control the radio frequency module to read the data of multiple electronic tags after all the electronic tags have completed the data writing work;
[0181] The data transmission unit 86 is used to transmit the read data to the upper computer software so that the upper computer software displays the data.
[0182] Optionally, the device 70 further includes:
[0183] The tag abnormality feedback unit 87 is used to feedback a tag quantity abnormality signal to the upper computer software if the number of tag identification numbers obtained is greater than the number of tags.
[0184] Optionally, the main control module is also connected to the printing module, and the device 70 further includes:
[0185] The printing control unit 88 is used to send the read data to the printing module and control the printing module to print the data.
[0186] In the process of writing data to the electronic tag in this embodiment, the TID storage area of the electronic tag to which the data is to be written is locked by the write command control unit 84. In the multi-tag mode, it can effectively avoid confusion of labels and ensure accurate writing of data. After all electronic tags have completed the data writing work, the printing control unit 88 can also send the read data to the printing module and control the printing module to print the above data, so as to facilitate the user to fix the data in the label on the corresponding electronic label to identify the electronic label and avoid confusion.
[0187] It should be noted that since the device embodiment and the method embodiment of the embodiment of the present invention are based on the same inventive concept, the technical content in the method embodiment is also applicable to the device embodiment. Therefore, the technical content in the device embodiment that is the same as that in the method embodiment will not be repeated here.
[0188] The embodiment of the present invention also provides an ultra-high frequency electronic tag reading and writing device, such as Fig.15 As shown, the read-write device 100 includes a main control module 90, an encryption module 91 and a radio frequency module 92 connected to the main control module 90, the encryption module 91 stores the tag password of the electronic tag, and the main control module 90 stores executable instructions, which can execute the read-write control method of the ultra-high frequency electronic tag in any of the above method embodiments.
[0189] Optionally, the reading and writing device 100 further includes a printing module 93 connected to the main control module 90 .
[0190] The main control module 90 includes: one or more processors 901 and a memory 902. FIG. 15 takes one processor 901 as an example.
[0191] The processor 901 and the memory 902 may be connected via a bus or other means. Fig.15 The example of connecting through bus is taken in the following.
[0192] The memory 902 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the read-write control method of the ultra-high frequency electronic tag in the embodiment of the present invention (for example, Fig.14 The processor 901 executes various functional applications and data processing of the read-write control device of the UHF electronic tag by running the non-volatile software programs, instructions and modules stored in the memory 902, that is, realizes the read-write control method of the UHF electronic tag of the above method embodiment and the functions of the various modules of the above device embodiment.
[0193] The memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. The program instructions / modules are stored in the memory 902, and when executed by the one or more processors 901, the read and write control method of the ultra-high frequency electronic tag in any of the above method embodiments is executed, for example, the above described Figures 11 to 13 The steps shown can also be implemented Fig.14 The functions of each module are described.
[0194] The read-write device 100 of this embodiment includes a main control module 90 and an encryption module 91 connected to the main control module 90. After receiving the connection command from the host computer software, the main control module 90 generates a random password by performing encryption operation on the random number generated by the encryption module 91, and judges whether the random password is consistent with the third password calculated by the host computer software and the fourth password calculated by the encryption module. If the random password is inconsistent with the third password, and / or the random password is inconsistent with the fourth password, it means that the host computer software is unauthorized software or the read-write device is an unauthorized device, and a signal of authentication failure is fed back to the host computer software, and the read-write device is controlled to enter the standby state, which can prevent the data in the electronic tag from being rewritten by unauthorized software or unauthorized devices, thereby improving the security of the data.
[0195] An embodiment of the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are executed by one or more processors, such as Fig.15 A processor 901 in the embodiment may enable the one or more processors to execute the read and write control method of the UHF electronic tag in any of the above method embodiments, for example, to execute the above described Figures 11 to 13 The steps shown can also be implemented Fig.14 The functions of each module are described.
[0196] The embodiment of the present invention further provides an RFID system, including an electronic tag and the ultra-high frequency electronic tag reading and writing device as described above.
[0197] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0198] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0199] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for controlling the reading and writing of ultra-high frequency electronic tags, applied to a main control module of an electronic tag reading and writing device, characterized in that: The main control module is connected to the radio frequency module and the encryption module respectively, and the encryption module stores the tag password of the electronic tag. The method includes: After receiving the connection command from the host computer software, a verification command is sent to the encryption module; Receive the random number returned by the encryption module, and transmit the random number to the host computer software; Perform encryption operation on the random number according to a preset encryption algorithm to generate a random password; Receiving a third password calculated by the host computer software based on the random number, and a fourth password calculated by the encryption module based on the random number; respectively determining whether the random password is consistent with the third password and the fourth password; If the random password is inconsistent with the third password, and / or the random password is inconsistent with the fourth password, a signal of authentication failure is fed back to the host computer software, and the reading and writing device is controlled to enter a standby state; The performing encryption operation on the random number according to a preset encryption algorithm to generate a random password specifically includes: Performing encryption operations on the random number according to a first preset encryption algorithm and a second preset encryption algorithm respectively to generate a first random password and a second random password; The respectively determining whether the random password is consistent with the third password and the fourth password specifically includes: Determine whether the first random password is consistent with the third password, and determine whether the second random password is consistent with the fourth password; The method further comprises: If the random password is consistent with the third password, and the random password is consistent with the fourth password, acquiring characteristic information of the encryption module from the encryption module, and transmitting the characteristic information to the host computer software, so that the host computer software checks the characteristic information; If a check failure signal is received from the host computer software, the read-write device is controlled to enter a standby state.
2. The method according to claim 1, characterized in that The method further comprises: After receiving the write command from the host computer software, a read command is sent to the radio frequency module, wherein the write command includes the number of tags; Acquire tag identification numbers of all electronic tags within the radio frequency range through the radio frequency module; Obtaining the tag password of the electronic tag from the encryption module; Locking the TID storage area of the electronic tag to be written with data, and controlling the radio frequency module to write data to the electronic tag; After all electronic tags have completed data writing, the radio frequency module is controlled to read the data of multiple electronic tags; The read data is transmitted to the host computer software so that the host computer software displays the data.
3. The method according to claim 2, characterized in that After obtaining the tag identification numbers of all electronic tags within the radio frequency range through the radio frequency module, the method further includes: If the number of tag identification numbers obtained is greater than the number of tags, a signal indicating an abnormal number of tags is fed back to the host computer software, and subsequent steps are abandoned.
4. The method according to claim 2, characterized in that: The main control module is also connected to the printing module, and the method further includes: The read data is sent to the printing module, and the printing module is controlled to print the data.
5. A read-write control device for an ultra-high frequency electronic tag, applied to a main control module of an electronic tag reading and writing device, wherein the main control module is connected to a radio frequency module and an encryption module respectively, and the encryption module stores the tag password of the electronic tag, characterized in that: The device comprises: A verification command sending unit, used to send a verification command to the encryption module after receiving a connection command from the host computer software; A random number acquisition unit, used for receiving the random number returned by the encryption module and transmitting the random number to the host computer software; A random number encryption unit, used to perform encryption operation on the random number according to a preset encryption algorithm to generate a random password; A password receiving unit, used to receive a third password calculated by the host computer software based on the random number, and a fourth password calculated by the encryption module based on the random number; a password judging unit, used to judge whether the random password is consistent with the third password and the fourth password respectively; A first standby unit is used to feed back a signal of authentication failure to the host computer software if the random password is inconsistent with the third password and / or the random password is inconsistent with the fourth password, and control the reading and writing device to enter a standby state; The random number encryption unit is specifically used for: Performing encryption operations on the random number according to a first preset encryption algorithm and a second preset encryption algorithm respectively to generate a first random password and a second random password; The password determination unit is specifically used for: Determine whether the first random password is consistent with the third password, and determine whether the second random password is consistent with the fourth password; The device also includes: a characteristic information acquisition unit, configured to acquire characteristic information of the encryption module from the encryption module if the random password is consistent with the third password and the random password is consistent with the fourth password, and transmit the characteristic information to the host computer software so that the host computer software checks the characteristic information; The second standby unit is used to control the read-write device to enter a standby state if a check failure signal is received from the host computer software.
6. The device according to claim 5, characterized in that The device also includes: A first read command sending unit, configured to send a read command to the radio frequency module after receiving a write command from the host computer software, wherein the write command includes the number of tags; A tag identification number acquisition unit, used to acquire tag identification numbers of all electronic tags within a radio frequency range through the radio frequency module; A label password obtaining unit, used for obtaining the label password of the electronic label from the encryption module; A write command control unit, used to lock the TID storage area of the electronic tag to be written with data, and control the radio frequency module to write data to the electronic tag; A second read command sending unit is used to control the radio frequency module to read the data of multiple electronic tags after all the electronic tags have completed the data writing work; The data transmission unit is used to transmit the read data to the host computer software so that the host computer software displays the data.
7. The device according to claim 6, characterized in that The device also includes: The tag abnormality feedback unit is used to feedback a tag quantity abnormality signal to the host computer software if the number of tag identification numbers obtained is greater than the tag number, and give up executing subsequent steps.
8. The device according to claim 6, characterized in that The main control module is also connected to the printing module, and the device also includes: A printing control unit is used to send the read data to the printing module and control the printing module to print the data.
9. An ultra-high frequency electronic tag reading and writing device, characterized in that: The reading and writing device includes a main control module, and a radio frequency module and an encryption module respectively connected to the main control module, wherein the encryption module stores the tag password of the electronic tag, and the main control module includes: at least one processor; and A memory connected to the at least one processor; wherein, The memory stores an instruction program executable by the at least one processor, and the instruction program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 3.
10. The reading and writing device according to claim 9, characterized in that: The reading and writing device also includes a printing module connected to the main control module; The instruction program is executed by the at least one processor and enables the at least one processor to perform the method according to claim 4.
11. A non-volatile computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a main control module of a read-write device, the main control module executes the method according to any one of claims 1 to 4.
