CN111596976B - Information reading and writing method, device, equipment and storage medium based on RFID - Google Patents

Information reading and writing method, device, equipment and storage medium based on RFID Download PDF

Info

Publication number
CN111596976B
CN111596976B CN202010366116.2A CN202010366116A CN111596976B CN 111596976 B CN111596976 B CN 111596976B CN 202010366116 A CN202010366116 A CN 202010366116A CN 111596976 B CN111596976 B CN 111596976B
Authority
CN
China
Prior art keywords
data value
main
storage area
rfid
standby
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
CN202010366116.2A
Other languages
Chinese (zh)
Other versions
CN111596976A (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.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic Technology 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 Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202010366116.2A priority Critical patent/CN111596976B/en
Publication of CN111596976A publication Critical patent/CN111596976A/en
Application granted granted Critical
Publication of CN111596976B publication Critical patent/CN111596976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves

Abstract

The embodiment of the invention provides an information reading and writing method, device, equipment and storage medium based on RFID, wherein the method comprises the following steps: when a call request of an application is received, reading a main data value recorded in a main storage area in the RFID label and a standby data value recorded in a standby storage area in the RFID label; the main storage area and the standby storage area are two independent storage areas in the RFID tag, and the main data value and the standby data value are sequentially written in a serial mode; when the main data value and the standby data value are different, comparing the main data value and the standby data value with a preset reasonable interval respectively to obtain a comparison result; and returning a correct data value to the application initiating the data call according to the comparison result, and rewriting the RFID label according to the correct data value. The invention realizes backup protection of the written information and ensures normal identification and use of the application.

Description

Information reading and writing method, device, equipment and storage medium based on RFID
Technical Field
The invention relates to the technical field of RFID (radio frequency identification devices), in particular to an information reading and writing method, an information reading and writing device, information reading and writing equipment and a storage medium based on RFID.
Background
RFID technology is an important contactless automatic identification technology. It uses radio frequency signal to realize non-contact bidirectional data communication by space coupling (alternating magnetic field or electromagnetic field), and achieves the aim of identification by the transmitted information. RFID radio frequency tags have been widely used in various industries as an anti-counterfeit technology. Some applications only need to simply read information on the card for identification, and some applications need to write some information in the using process, such as bus cards, rechargeable cards of shopping malls, or anti-counterfeit labels. However, a certain time is required for writing information into the RFID tag, and the specific time is determined according to the implementation of the memory, and if abnormal conditions such as power failure occur in the writing process, written information may be wrong, so that information acquired next time when the information is read is lost or abnormal, an illegal value is obtained, and the identification and use of the application are affected.
Disclosure of Invention
In view of the above, embodiments of the present invention provide an RFID-based information reading and writing method, apparatus, device and storage medium, which can prevent the written information of the RFID tag from being lost or abnormal.
The embodiment of the invention provides an information reading and writing method based on RFID, which comprises the following steps:
reading a main data value recorded in a main storage area in the RFID tag and a standby data value recorded in a standby storage area in the RFID tag when a call request of an application is received; the main storage area and the standby storage area are two independent storage areas in the RFID tag, and the main data value and the standby data value are sequentially written in a serial mode;
when the main data value and the standby data value are different, comparing the main data value and the standby data value with a preset reasonable interval respectively to obtain a comparison result;
and returning a correct data value to the application initiating the data call according to the comparison result, and rewriting the RFID label according to the correct data value.
Preferably, a correct data value is returned to the application initiating the data call according to the comparison result, and the RFID tag is rewritten according to the correct data value, specifically including:
when one of the main data value and the standby data value is not in the reasonable interval, acquiring a correct data value and an incorrect data value, and returning the correct data value to an application initiating data calling; wherein the correct data value is a data value in the reasonable interval; the incorrect data value is a data value which is not in the reasonable interval;
and writing the correct data value into the storage area corresponding to the incorrect data value.
Preferably, a correct data value is returned to the application initiating the data call according to the comparison result, and the RFID tag is rewritten according to the correct data value, further comprising:
when the main data value and the standby data value are both in the reasonable interval, returning the main data value to the application initiating data calling;
writing the primary data value to the spare storage area.
The RFID-based information reading and writing method according to claim 1, further comprising:
and when the main data value and the standby data value are the same, returning the main data value to the application initiating the data call.
Preferably, the method comprises the following steps:
acquiring information to be stored;
writing the information into a main storage area in the RFID tag to obtain a main data value;
and after the information is written in the main storage area, writing the information into a spare storage area in the RFID tag to obtain a spare data value.
Preferably, after writing the information into the main storage area in the RFID tag and obtaining the main data value, the method further includes:
the primary data value in the primary storage area is checked.
The embodiment of the invention also provides an information reading and writing device based on RFID, which comprises:
a data value acquisition unit configured to read a main data value of a main storage area described in the RFID tag and a spare data value of a spare storage area described in the RFID tag when a call request of an application is received; the main storage area and the standby storage area are two independent storage areas in the RFID tag, and the main data value and the standby data value are sequentially written in a serial mode;
a comparison result obtaining unit, configured to, when the main data value and the standby data value are different, compare the main data value and the standby data value with a preset reasonable interval, respectively, so as to obtain a comparison result;
and the rewriting unit is used for returning a correct data value to the application initiating the data call according to the comparison result and rewriting the RFID label according to the correct data value.
Preferably, the rewriting unit specifically includes:
the first correct data returning module is used for acquiring a correct data value and an incorrect data value when one of the main data value and the standby data value is not in the reasonable interval, and returning the correct data value to an application initiating data calling; wherein the correct data value is a data value in the reasonable interval; the incorrect data value is a data value which is not in the reasonable interval;
and the first information rewriting module is used for writing the correct data value into the storage area corresponding to the incorrect data value.
The embodiment of the invention also provides information reading and writing equipment based on the RFID, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the information reading and writing method based on the RFID when executing the program.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program runs, the computer-readable storage medium is controlled to execute the information reading and writing method based on the RFID.
In the embodiment, the information to be stored is sequentially written in the two independent storage areas in the RFID tag in a serial mode, so that when the writing operation is performed, the next partition is written only after the writing operation of one partition is completed, and thus, it can be ensured that when the writing operation is performed, only the data of one storage area is abnormal under the abnormal conditions such as power failure at any time, and the other storage area retains correct information. Therefore, backup protection of written information is achieved, and the situation that the effectiveness of the RFID tag is lost due to the fact that data are abnormal or even completely lost due to power failure is prevented.
In the embodiment, the main data value and the standby data value are respectively compared with the preset reasonable interval, so that the correct data value stored before power failure can be obtained, and the abnormal information in the RFID tag is rewritten, thereby facilitating the next information reading and ensuring the normal identification and use of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of an RFID-based information reading and writing method according to a first embodiment of the present invention.
Fig. 2 is a schematic flow chart of a preferred embodiment of the first embodiment of the present invention.
Fig. 3 is a schematic flow chart of an RFID-based information reading and writing method according to a second embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an RFID-based information reading/writing device according to a third embodiment of the present invention.
Icon: 301-a data value acquisition unit; 302-a comparison result obtaining unit; 303-rewrite unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to better understand the technical scheme of the invention, the following detailed description of the embodiments of the invention is made with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all 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 terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In the embodiments, the references to "first \ second" are merely to distinguish similar objects and do not represent a specific ordering for the objects, and it is to be understood that "first \ second" may be interchanged with a specific order or sequence, where permitted. It should be understood that "first \ second" distinguishing objects may be interchanged under appropriate circumstances such that the embodiments described herein may be implemented in sequences other than those illustrated or described herein.
As shown in fig. 1, a first embodiment of the present invention provides an RFID-based information reading and writing method, which can be executed by an RFID-based information reading and writing device (hereinafter referred to as a device), and at least includes the following steps:
s101, when receiving a call request of an application, reading a main data value of a main storage area recorded in the RFID label and a standby data value of a standby storage area recorded in the RFID label; the main storage area and the standby storage area are two independent storage areas in the RFID tag, and the main data value and the standby data value are sequentially written in a serial mode.
In this embodiment, the device may be a terminal device having an RFID read/write module, such as an RFID reader, a scanner, a communicator, etc., and performs bidirectional data transmission with the RFID tag by using a radio frequency method, such as reading data recorded in the RFID tag or writing data into the RFID tag.
The storage area in the RFID tag has a plurality of separate physical sectors that can be used to store data predefined by the user. The main storage area and the spare storage area are respectively arranged on different physical sectors, and information to be stored can be sequentially written in a serial mode to obtain a main data value and a spare data value.
In this embodiment, the application may be a wired or wireless network application that initiates a data invocation request to the device and performs a predefined action based on the data value returned from the device.
S102, when the main data value is different from the standby data value, comparing the main data value with the standby data value with a preset reasonable interval respectively to obtain a comparison result.
In this embodiment, in the information storage process, the data that is normally written into the primary storage area and the spare storage area sequentially in a serial manner is the same. However, a certain time is required for writing information into the RFID tag, abnormal situations such as power failure are likely to occur during writing, since only one storage area is performing writing operation when a power failure occurs, the written information of the storage area is erroneous, and the other storage area is normally written after being powered on, so the written information is correct. The primary data value and the alternate data value are different indicating a loss or exception to the read data value.
In the process of reading and writing the non-contact information by adopting the RFID radio frequency mode, data errors are easy to occur due to power failure, and the main data value and the standby data value need to be compared with a preset reasonable interval so as to judge whether the corresponding storage area is powered down or not.
S103, returning a correct data value to the application initiating the data call according to the comparison result, and rewriting the RFID label according to the correct data value.
In this embodiment, the storage area in which the write operation is being executed when the power failure occurs can be determined by comparing the results, so as to obtain the storage area in which the correct data value is located and return the data value in the storage area to the application.
Particularly, after the correct data value is obtained, the RFID tag is rewritten according to the correct data value, so that the correct data value is written into the two storage areas, and the data can be conveniently and normally read next time.
In one particular embodiment: when one of the main data value and the standby data value is not in the reasonable interval, acquiring a correct data value and an incorrect data value, and returning the correct data value to an application initiating data calling; and writing the correct data value into the storage area corresponding to the incorrect data value. Wherein the correct data value is a data value in the reasonable interval; the incorrect data value is a data value which is not in the reasonable interval;
in the above embodiment, when one of the main data value and the spare data value is not in the reasonable interval, it indicates that an abnormal condition occurs in the writing process for the data value that is not in the reasonable interval, and the data value should be discarded. And returning the data value in the reasonable interval as a correct data value to the application and writing the data value into a storage area where the incorrect data value is located.
In another specific embodiment: when the main data value and the standby data value are both in the reasonable interval, returning the main data value to the application initiating data calling; writing the primary data value to the spare storage area.
In the above embodiment, when both the main data value and the spare data value are in the reasonable interval, it indicates that no power failure occurs in the writing process, and at this time, the main data value written first is returned to the application as a correct data value and the data value is written into the spare storage area.
It should be noted that, the situation that neither the main data value nor the spare data value is in the reasonable interval is unlikely to occur. This is because in the information writing process, if the power failure does not occur, both the main data value and the spare data value are normal and are necessarily in the reasonable interval. In the event of a power loss, since data is written in a serial manner, it is inevitable that only one memory region is performing a write operation: for example, when a power failure occurs, a main data value is being written into the main storage area, the main data value is continuously written after power-on, and then a spare data value is written into the spare storage area, where the main data value is abnormal and the spare data value is normal, that is, the spare data value is in the reasonable interval and the main data value is not in the reasonable interval. For another example, when a power failure occurs, a spare data value is being written into the spare storage area, the spare data value continues to be written after power is turned on, and since the main data value is written into the main storage area before the power failure occurs, the spare data value is abnormal and the main data value is normal, that is, the main data value is in the reasonable interval, and the spare data value is not in the reasonable interval.
In the embodiment, the information to be stored is sequentially written into the two independent storage areas in the RFID tag in a serial mode, so that when the writing operation is performed, the next partition can be written only after the writing operation of one partition is completed, and thus, the situation that when the writing operation is performed, data of only one storage area is abnormal and the other storage area retains correct information no matter abnormal conditions such as power failure occur at any time can be ensured. Therefore, backup protection of the written information is realized, and the loss of effectiveness of the RFID caused by abnormal data loss or even complete data loss due to power failure is prevented. By comparing the main data value and the standby data value with the preset reasonable interval respectively, the correct data value stored before power failure can be obtained, and abnormal information in the RFID tag is rewritten, so that the next time of information reading is facilitated, and normal identification and use of application are guaranteed.
Referring to fig. 2, on the basis of the foregoing embodiment, in a preferred embodiment, when the main data value and the spare data value are the same, it indicates that no power failure occurs during information reading and writing, and no misrecognition and data error occur, and then the main data value is returned to the application initiating the data call.
Referring to fig. 3, fig. 3 is a flowchart of an RFID-based information reading and writing method according to a second embodiment of the present invention, where the method is described from the writing side, and includes the following steps:
s201, obtaining information to be stored;
s202, writing the information into a main storage area in the RFID tag to obtain a main data value;
and S203, after the information is written in the main storage area, writing the information into a standby storage area in the RFID label to obtain a standby data value.
In this embodiment, after writing the information into the main storage area in the RFID tag and obtaining the main data value, the method further includes: the primary data value in the primary storage area is checked. Error codes and conflicts can be prevented through verification, the read-write reliability and stability of data are improved, and the accuracy is ensured. Of course, after the spare data value is obtained, the spare data value may be further verified, which are all within the scope of the present invention.
In the embodiment, the information to be stored is sequentially written in the two independent storage areas in the RFID tag in a serial mode, so that when the writing operation is performed, the next partition is written only after the writing operation of one partition is completed, and thus, it can be ensured that when the writing operation is performed, only the data of one storage area is abnormal under the abnormal conditions such as power failure at any time, and the other storage area retains correct information. Therefore, backup protection of the written information is realized, and the condition that the validity of the RFID label is lost due to abnormal data or even complete data loss caused by power failure is prevented.
Referring to fig. 4, a third embodiment of the present invention provides an RFID-based information reading/writing apparatus, including:
a data value acquisition unit 301 configured to read a main data value of a main storage area described in the RFID tag and a spare data value of a spare storage area described in the RFID tag when a call request of an application is received; the main storage area and the standby storage area are two independent storage areas in the RFID tag, and the main data value and the standby data value are sequentially written in a serial mode;
a comparison result obtaining unit 302, configured to compare the main data value and the standby data value with a preset reasonable interval respectively to obtain a comparison result when the main data value and the standby data value are different;
and the rewriting unit 303 is configured to return a correct data value to the application initiating the data call according to the comparison result, and rewrite the RFID tag according to the correct data value.
Preferably, the rewriting unit 303 specifically includes:
the first correct data returning module is used for acquiring a correct data value and an incorrect data value when one of the main data value and the standby data value is not in the reasonable interval, and returning the correct data value to an application initiating data calling; wherein the correct data value is a data value in the reasonable interval; the incorrect data value is a data value which is not in the reasonable interval;
and the first information rewriting module is used for writing the correct data value into the storage area corresponding to the incorrect data value.
Preferably, the rewriting unit 303 further includes:
a second correct data returning module, configured to return the main data value to the application initiating the data call when both the main data value and the standby data value are in the reasonable interval;
and the second information rewriting module is used for writing the main data value into the spare storage area.
Preferably, the rewriting unit 303 further includes:
and the third correct data returning module is used for returning the main data value to the application initiating the data call when the main data value is the same as the standby data value.
Preferably, the RFID-based information reading and writing device includes:
the information acquisition unit is used for acquiring information to be stored;
a main data value obtaining unit, configured to write the information into a main storage area in the RFID tag, to obtain a main data value;
and the standby data value acquisition unit is used for writing the information into a standby storage area in the RFID tag after the information is written into the main storage area, so as to obtain a standby data value.
Preferably, the RFID-based information reading/writing device further includes:
and the checking unit is used for checking the main data value in the main storage area.
A fourth embodiment of the present invention provides an RFID-based information reading and writing device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor executes the computer program to implement the RFID-based information reading and writing method described above.
A fifth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program controls, when running, an apparatus where the computer-readable storage medium is located to execute the RFID-based information reading and writing method described above.
Illustratively, the computer programs described herein can be divided into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of the computer program in the implementation device. For example, the device described in the second embodiment of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an APPlication Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the printing method, and various interfaces and lines connecting the various parts throughout the implementation of the document printing method.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the printing method by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the user terminal, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module for realizing the user terminal can be stored in a computer readable storage medium if it is realized in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be 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 the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. An information reading and writing method based on RFID is characterized by comprising the following steps:
reading a main data value recorded in a main storage area in an RFID label and a standby data value recorded in a standby storage area in the RFID label when a call request of an application is received; the main storage area and the standby storage area are two independent storage areas in the RFID tag, and the main data value and the standby data value are sequentially written in a serial mode;
when the main data value and the standby data value are different, comparing the main data value and the standby data value with a preset reasonable interval respectively to obtain a comparison result;
returning a correct data value to the application initiating the data call according to the comparison result, and rewriting the RFID label according to the correct data value;
the returning of a correct data value to the application initiating the data call according to the comparison result and the rewriting of the RFID tag according to the correct data value specifically include:
when one of the main data value and the standby data value is not in the reasonable interval, acquiring a correct data value and an incorrect data value, and returning the correct data value to an application initiating data calling; wherein the correct data value is a data value in the reasonable interval; the incorrect data value is a data value which is not in the reasonable interval;
and writing the correct data value into the storage area corresponding to the incorrect data value.
2. The RFID-based information reading and writing method according to claim 1, wherein a correct data value is returned to an application that initiates data call according to the comparison result, and the RFID tag is rewritten according to the correct data value, further comprising:
when the main data value and the standby data value are both in the reasonable interval, returning the main data value to the application initiating data calling;
writing the primary data value to the spare storage area.
3. The RFID-based information reading and writing method according to claim 1, further comprising:
and when the main data value and the standby data value are the same, returning the main data value to the application initiating the data call.
4. An RFID-based information reading and writing method according to claim 1, characterized by comprising the steps of:
acquiring information to be stored;
writing the information into a main storage area in the RFID tag to obtain a main data value;
and after the information is written in the main storage area, writing the information into a spare storage area in the RFID tag to obtain a spare data value.
5. The RFID-based information reading and writing method according to claim 4, wherein after writing the information into the main storage area in the RFID tag and obtaining the main data value, further comprising:
the primary data value in the primary storage area is checked.
6. An information read-write device based on RFID is characterized by comprising:
a data value acquisition unit for reading a main data value recorded in a main storage area in an RFID tag and a spare data value recorded in a spare storage area in the RFID tag when a call request of an application is received; the main storage area and the standby storage area are two independent storage areas in the RFID tag, and the main data value and the standby data value are sequentially written in a serial mode;
a comparison result obtaining unit, configured to, when the main data value and the standby data value are different, compare the main data value and the standby data value with a preset reasonable interval, respectively, so as to obtain a comparison result;
the rewriting unit is used for returning a correct data value to the application initiating the data calling according to the comparison result and rewriting the RFID label according to the correct data value;
the rewriting unit specifically includes:
the first correct data returning module is used for acquiring a correct data value and an incorrect data value when one of the main data value and the standby data value is not in the reasonable interval, and returning the correct data value to an application initiating data calling; wherein the correct data value is a data value in the reasonable interval; the incorrect data value is a data value which is not in the reasonable interval;
and the first information rewriting module is used for writing the correct data value into the storage area corresponding to the incorrect data value.
7. An RFID-based information reading and writing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the RFID-based information reading and writing method according to any one of claims 1 to 5 when executing the program.
8. A computer-readable storage medium, on which a computer program is stored, wherein the computer program controls an apparatus in which the computer-readable storage medium is located to execute the RFID-based information reading and writing method according to any one of claims 1 to 5.
CN202010366116.2A 2020-04-30 2020-04-30 Information reading and writing method, device, equipment and storage medium based on RFID Active CN111596976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010366116.2A CN111596976B (en) 2020-04-30 2020-04-30 Information reading and writing method, device, equipment and storage medium based on RFID

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010366116.2A CN111596976B (en) 2020-04-30 2020-04-30 Information reading and writing method, device, equipment and storage medium based on RFID

Publications (2)

Publication Number Publication Date
CN111596976A CN111596976A (en) 2020-08-28
CN111596976B true CN111596976B (en) 2022-07-12

Family

ID=72191000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010366116.2A Active CN111596976B (en) 2020-04-30 2020-04-30 Information reading and writing method, device, equipment and storage medium based on RFID

Country Status (1)

Country Link
CN (1) CN111596976B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991870A (en) * 2005-12-28 2007-07-04 株式会社Pfu Preventing method and preventing system for data deletion
CN101361297A (en) * 2006-02-20 2009-02-04 株式会社神户制钢所 Information synchronization system
CN103345647A (en) * 2013-05-09 2013-10-09 马钢控制技术有限责任公司 Back-up and access method of data at RFID electronic tag
CN109447558A (en) * 2018-11-09 2019-03-08 四川长虹电器股份有限公司 A method of efficiently read-write section is chosen based on RFID device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100058906A (en) * 2008-11-25 2010-06-04 삼성전자주식회사 Method for operating rfid device and rfid system including rfid device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1991870A (en) * 2005-12-28 2007-07-04 株式会社Pfu Preventing method and preventing system for data deletion
CN101361297A (en) * 2006-02-20 2009-02-04 株式会社神户制钢所 Information synchronization system
CN103345647A (en) * 2013-05-09 2013-10-09 马钢控制技术有限责任公司 Back-up and access method of data at RFID electronic tag
CN109447558A (en) * 2018-11-09 2019-03-08 四川长虹电器股份有限公司 A method of efficiently read-write section is chosen based on RFID device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑熠.一种超高频 RFID 读写器的设计.《河北北方学院学报(自然科学版)》.2014,第1-4页. *

Also Published As

Publication number Publication date
CN111596976A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
EP2296108A1 (en) Portable electronic device and control method thereof
EP2674898B1 (en) Improved serialization of RFID tags
CN110286853B (en) Data writing method and device and computer readable storage medium
US20170139798A1 (en) Mobile device and chassis with contactless tags to diagnose hardware and software faults
US8164424B2 (en) System and method of integrated processing of electronic tag
US9940489B2 (en) Radiofrequency transponder circuit
WO2022083523A1 (en) Control method and system for preventing incorrect identification in near-field transmission, and device and medium
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN103577961A (en) Hardware equipment management system and method for processing and querying information of hardware equipment management system
US20110298593A1 (en) Electronic device and method for controlling the same
CN106557716B (en) Near field communication device
CN113361293A (en) Card swiping method, card controller, electronic device and storage medium
CN103679250A (en) Interface arbitration for wired tag
US9223739B2 (en) Detection method and apparatus for hot-swapping of SD card
US9223740B2 (en) Detection method and apparatus for hot-swapping of SD card
CN114866404A (en) Intelligent gateway disaster recovery method and device, electronic equipment and storage medium
CN111596976B (en) Information reading and writing method, device, equipment and storage medium based on RFID
US6722572B2 (en) Recording medium control method, data management apparatus, and recording medium
CN115659426A (en) Anti-counterfeiting method, device and medium for hard disk
JP2008310596A (en) Portable electronic equipment and control method for potable electronic equipment
CN110968255B (en) Data processing method, device, storage medium and processor
CN113741985A (en) Method, device and equipment for cold start of system after BIOS (basic input output System) upgrade and readable medium
CN111857785A (en) MCU starting method and device and terminal equipment
CN111310875A (en) Reagent detection system, method, computer device and readable storage medium
CN110647455A (en) Storage device restart recording method and system

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