CN104134083A - Method for reading and writing RFID electronic tag data - Google Patents

Method for reading and writing RFID electronic tag data Download PDF

Info

Publication number
CN104134083A
CN104134083A CN201410362943.9A CN201410362943A CN104134083A CN 104134083 A CN104134083 A CN 104134083A CN 201410362943 A CN201410362943 A CN 201410362943A CN 104134083 A CN104134083 A CN 104134083A
Authority
CN
China
Prior art keywords
electronic tag
data
information
rfid
read
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.)
Pending
Application number
CN201410362943.9A
Other languages
Chinese (zh)
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.)
Anhui Ma Gang Automated Information Technology Co Ltd
Magang Group Holding Co Ltd
Original Assignee
Anhui Ma Gang Automated Information Technology Co Ltd
Magang Group Holding 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 Anhui Ma Gang Automated Information Technology Co Ltd, Magang Group Holding Co Ltd filed Critical Anhui Ma Gang Automated Information Technology Co Ltd
Priority to CN201410362943.9A priority Critical patent/CN104134083A/en
Publication of CN104134083A publication Critical patent/CN104134083A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method for reading and writing RFID (Radio Frequency Identification) electronic tag data. According to the method, the RFID electronic tag identification effectiveness is checked, and the integral reading and writing is realized; through two-stage database operation processing, practically stored fund information of a user is subjected to decryption operation; after the comparison result shows that no error exists, business data in an RFID electronic tag is read step by step; a specified data block and a standby data block of an RFID electronic tag identification are continuously subjected to reading and writing operation by calling DLL (Dynamic Link Library) software; after the complete information is formed, the decryption operation is completed; the complete information is transmitted into a local database through an online POS (Point Of Sale) machine and is transmitted into a center database through middleware; the two-stage database operation processing is realized; the business data operation is carried out; and finally, the integral writing-in and reading-out operation of business information data is realized. An application system can effectively recognize and manage RFID cards, and importantly, the integrality and the security of information data on the RFID electronic tag and the application system can be improved.

Description

A kind of method of reading and writing RFID electronic tag data
Technical field
The present invention relates to RFID electronic label technology field, relate in particular to RFID electronic tag backup method.
Background technology
The consumption system of having dinner based on RFID application is to utilize the employee gate inhibition RFID electronic tag (abbreviation rfid card) of current widespread use, be based upon on advanced computer technology, the communication technology and contactless rfid card technology, have dinner for enterprise staff bring convenience, the quick and modern modes of payments.Each employee is equipped with intelligent employee's rfid card.Be used for gate inhibition and sell meal consume system, realizing " one card for multiple uses ".
For example, by the information on RFID electronic label read-write circuit (POS machine, rfid interrogator) reading and writing RFID electronic tag, carry out data communication by special data processing and communication interface and R-T unit, and by wired or wireless mode, information is delivered to central database processing at a distance, can understand timely the information and the true and false that on RFID label, record, also can record information to as required on RFID electronic tag, after rfid interrogator reading information decoding, deliver to CIS (central database) and carry out relevant data processing.
Existing RFID electronic label identification and memory span quantity exceed when DLL once reads and writes capacity and easily go wrong.In practical application, for the electronic tag of each manufacturers produce, the structure of its memory is identical, but can have the difference of tankage size.In application, may exist multiple RFID electronic tags to use on a POS machine simultaneously, or read write line is operation simultaneously in certain spatial dimension, rfid interrogator needs effectively to identify the content of RFID electronic tag, solve Anti-knocking (anticollision), realize entirety read-write, substep calculates, recording-related information.The bottom dynamic link library method of calling meeting that different read write lines provide, data block (byte) length of once reading and writing user storage area have difference, solution memory span exceedes DLL and once reads and writes capacity problem, application system need to be developed unified read-write user storage area data, convenient application.Realization prevents that the function of anti-collision (Anti-knocking) from being RFID institute's essential condition in actual applications.
Summary of the invention
For correlative technology field document and above the deficiencies in the prior art, in a large amount of existing literature research and long-term on the basis of association area Development Practice, the present invention proposes " a kind of electronic tag data backup method ", by " the less radio-frequency sensing apparatus perception RFID validity check of electronic label read/write ", overcome technical barrier such as " data are by improper use or damage " in prior art, realize the beneficial effect of " after rfid interrogator reading information decoding; deliver to local data base and central database, carry out infosystem centralized management ".
For achieving the above object, the present invention is achieved by the following technical solutions: a kind of method of reading and writing RFID electronic tag data, the method comprises the following steps: step 1, first open the read write line port of POS machine inside, by the connectivity port exact connect ion of POS machine read write line port and communication controler and switch on power, if open port success, pass through return parameters, show when the port numbers of front opening, can show the relevant information of read write line, and carry out read-write operation by opening port numbers; If open port failure, by return parameters, show " Communications failure " information; Step 2, first read RFID electronic tag card UID code as RFID electronic label identification, judge RFID type, determine RFID useful capacity; Step 3, current POS temporal information and RFID internal time information character string are compared, determine that RFID electronic tag is whether in blacklist, or the electronic tag losing efficacy, to effective electronic tag, carry out data deciphering computing, check the validity of RFID electronic tag mark; Step 4, by after validity check, read business datum, read the data that are stored in RFID electronic tag mark assigned address and standby address, fund information with user's actual storage is decrypted computing, compare errorlessly, read RFID electronic tag content, carry out service data manipulating, by disposable read-write operation, guarantee that information completely is correct; Step 5, be encrypted computing with user's real consumption information, formation ciphertext deposits in, by calling DLL software, RFID electronic tag mark specified data block and preliminary data block address are carried out to read-write operation continuously, the POS machine that while user's real consumption information exchange is crossed networking imports system database into, and in electronic tag, records the information character string of current time.
The machine-readable data that are stored in RFID electronic tag mark assigned address and special address of getting of described POS, fund information to user's actual storage is decrypted computing, compare errorless, substep reads business datum in RFID electronic tag again, by calling DLL software, RFID electronic tag mark specified data block and standby block are carried out to read-write operation continuously, after complete information, complete cryptographic calculation, POS machine by networking imports local data base into, import central database into by middleware, realize Two Level Database calculation process, carry out service data manipulating, finally realizing business information data entirety writes, read operation.
Described Two Level Database comprises consumption management machine data storehouse and central database.
Described consumption management machine data storehouse gathers the data of front end consume system, and front end consume system comprises consumption terminal POS machine, top-up machines, communication controller and computing machine.
The beneficial effect that the present invention possesses is: by the present invention, can realize RFID electronic tag in effectively identification and access of consume system, guarantee data integrity, can be encrypted the data of card storage inside, decipher, checking and management work.Check RFID electronic tag mark validity, after validity check, realize entirety read-write, by Two Level Database calculation process, realize substep computing method.The machine-readable data that are stored in RFID electronic tag mark assigned address and special address of getting of POS, fund information to user's actual storage is decrypted computing, compare errorless, substep reads business datum in RFID electronic tag again, by calling DLL software, RFID electronic tag mark specified data block and standby block are carried out to read-write operation continuously, after complete information, complete cryptographic calculation, POS machine by networking imports local data base into, import central database into by middleware, realize Two Level Database calculation process, carry out service data manipulating, finally realizing business information data entirety writes, read operation.
RFID electronic tag data backs up a kind of method, it is characterized in that effectively realizing RFID internal data is carried out to access checking inspection, guarantees that information is accurate.Be mainly used in rfid card information back-up and have efficient recovery data function, realizing the content of disposable complete read-write RFID electronic tag.Facilitate functional management department to set up consumption management center, holder is carried out to the blacklist bookkeepings such as hair fastener is supplemented with money, card is reported the loss, card solution extension, pin card, and an administrative center (settlement center) is set in enterprise, manage and dispatch data and the operation (unified management) of all consume systems.Application system can effectively be identified with RFID card extremely important, can improve information data integrality, security on application system and RFID electronic tag.
Brief description of the drawings
Fig. 1 is the rfid card application system structural representation of the specific embodiment of the invention.
Embodiment
Contrast accompanying drawing below, by the description to embodiment, to the specific embodiment of the present invention as related control system, mutual annexation, and implementation method, be described in further detail, to help those skilled in the art to have more complete, accurate and deep understanding to inventive concept of the present invention, technical scheme.
A method of reading and writing RFID electronic tag data, comprises the following steps: step 1, first open the read write line port of POS machine inside, by the connectivity port exact connect ion of POS machine read write line port and communication controler and switch on power.If open port success, by return parameters, show when the port numbers of front opening, can show the relevant information of read write line.Do not open successfully, by return parameters, show " Communications failure " information.Open after port, can carry out read-write operation by opening port numbers.
Step 2, first read RFID electronic tag card UID code as RFID electronic label identification, judge RFID type, determine RFID useful capacity.
Step 3, current POS temporal information and RFID internal time information character string are compared, determine that RFID electronic tag is whether in blacklist, or the electronic tag losing efficacy, to effective electronic tag, carry out data deciphering computing, check the validity of RFID electronic tag mark.
Step 4, by after validity check, read business datum, read the data that are stored in RFID electronic tag mark assigned address and standby address, fund information with user's actual storage is decrypted computing, compare errorlessly, read RFID electronic tag content, carry out service data manipulating, by disposable read-write operation, guarantee that information completely is correct;
Step 5, be encrypted computing with user's real consumption information, formation ciphertext deposits in, by calling DLL software, RFID electronic tag mark specified data block and standby block (address) are carried out to read-write operation continuously, the POS machine that while user's real consumption information exchange is crossed networking imports system database into, and in electronic tag, records the information character string of current time.
Card internal data structure describes taking M enterprise staff rfid card: standard has 64 in the rfid card of ISO15693 standard, 4 byte/block, and the capacity of totally 256 bytes, define byte length is 256 bytes.Operation to card is read and write taking data block as unit, and for ensureing the safety of data in card, Card Reader needs deciphering, writes calorie requirement encryption.Need to realize by calling DLL software blocking interior data integrity Card read/write, RFID electronic tag mark specified data block and standby block (address) are carried out to read-write operation continuously.
1. the data block situation that in card, gate inhibition has used is as following table one
Table one: in card, gate inhibition has used data block
2. consumption time flag service condition as shown in Table 2
Consumption time flag will be used 31,47 two, and 31 primary, and 47 for backup.
Table two: in card, consumption time flag is used detailed
Describe as an example of consume system example, first network will be connected to consume system from network node, its less important front end consume system of setting up, it comprises consumption terminal POS machine, top-up machines, communication controller and computing machine.Network system is the data transfer platform of Eatery Consumption system, and native system adopts double-layer structure, and database centered by ground floor is responsible for the synchronous of the preservation of all data and each subsystem data.The second layer is consumption management machine, is responsible for charge machine and the communication of top-up machines and the preservation of local data.Each dining room is directly or indirectly connected to host node nearby by optical cable, access Eatery Consumption private network.
Hardware running environment: Fit Models, request memory and required hardware device (floppy drive, CD-ROM drive, sound card, display card, other FF09
Fit Models: commercial PC, industrial computer IPC and PC server,
CUP dominant frequency: 2.8GHz (and more than).
Hard disk requires: the above hard drive space of 20GB
Request memory: more than 512MB, recommend 1GB
Operation platform: Windows2000Service Pack4 simplified Chinese edition, Windows2000Profressional simplified Chinese edition, Windows XP Profressional simplified Chinese edition, RFID electronic tag, the application of POS machine.
RFID electronic tag: standard is ISO15693.
Frequency of operation: operating frequency range is 13.56MHz ± 7KHz.
Work magnetic field: minimum value 0.15A/m, maximal value 5A/m.
Procotol: TC/IP, RS232-C, RS485.
Concrete implementation content:
One, by read write line and computer system and corresponding port exact connect ion, and switch on power.
Two, open designated port by software, under Windows environment, programming is used C#.NET programming language.
The mentality of designing of native system is by each consumption management machine (secondary subsystem), be that local data base operates rfid card by RS232 interface connection communication controler control POS machine operation radio-frequency module, again the data in rfid card are processed to computing by POS machine, turn back in the data management system of main frame.In this process, the data communication of POS machine and each consumption management machine data management system is to realize by the dedicated network of safety.By Two Level Database calculation process, complete respectively task, business data processing separately, comprise personnel information management, the management of electronic tag mark, electronic tag mark is reported the loss, blacklist management etc.Each consumption management machine (secondary subsystem) database stresses real-time Communication for Power, strengthening real-time information processing, and each POS machine consumption gathers, information inquiry etc.Central database stresses information management, and personal information is synchronous, electronic tag is supplemented with money, blacklist is managed and Corporate Finance management.
Three, POS machine provides dynamic link libraries (DLL), supports secondary development.Call bottom dynamic link library, the power function of amendment read write line read-write RFID electronic tag data etc.Need to realize by calling DLL software data integrity Card read/write in electronic label card, call DLL and read the data block of an appointment of RFID, by continuous read block, solve piecemeal quantity and exceed DLL capacity problem, the packets of information of complete.RFID electronic tag mark specified data block and standby block (address) are carried out to read-write operation continuously, while carrying out service data manipulating, the UID code of reading RFID electronic tag identifies as RFID electronic tag, check RFID electronic tag mark validity, after validity check, read the data that are stored in RFID electronic tag mark assigned address and standby address, information with user's actual storage is decrypted computing, compare errorless, read RFID electronic labeling information, carry out service data manipulating.By the disposable read-write operation of database, guarantee that information completely is correct.The data manipulation situation of RFID etc. is recorded to entirety and be recorded in central data management system, to grasp the information state of RFID, improve data message integrality on electronic tag, be convenient to user security and use, prevented that data are by improper use or damage simultaneously.Can back up to the data of card storage inside information comparison and management work.
Four, create real-time communication program technic, the information of read write line read-write RFID electronic label function module to certain data block etc., are driven and are connected with central database and exchange message by database Oracle9i or Oracle10g client.
Five, employee job card never consumption time be identified to the processing of free mark, the i.e. initialized problem of time tag.Can in Single Chip Microcomputer (SCM) program, make a decision, if there is no consumption time zone bit, while consumption, write; Or within the regular hour, supplement with money once, by top-up machines, RFID electronic tag is write to consumption time mark.
Six, write RFID electronic tag consumption time flag, the time of taking from machine for punching the card, the time of machine for punching the card, from local computer, solves inaccurate problem of machine for punching the card time in the longer situation of offline period.
Seven, the data manipulation situation of RFID etc. being recorded to entirety is recorded in centre data base management system, to grasp the information state of RFID, improve data message integrality on electronic tag, be convenient to user security and use, prevented that data are by improper use or damage simultaneously.Can back up to the data of card storage inside information comparison and management work.
Eight,, in the consumer field Application and Development of having dinner, when enterprise staff is had dinner consumption, check RFID electronic tag mark validity, after validity check, be decrypted computing with the information of user's actual storage, compare errorless, read RFID electronic tag fund information, carry out service data manipulating.By the method, can read and be stored in RFID electronic tag mark full detail, realize backup.Or the data of read-write assigned address and special address, confirm the consumption amount of money by staff's button, from amount of money data block is had dinner in storage, deduct the corresponding consumption amount of money.Consumption record is stored in charge machine, automatically uploads to local management PC, and be uploaded to consume system central database via synchronization program when networking.Not by validity check, can not use and report to the police, prevent malice consumption, improve information data security on electronic tag.
By the present invention, realize to the reading or write operation of RFID electronic label identification code and internal storage data the DLL that solving different read write lines the provides number of blocks problem that reads and writes data, unified read-write user storage area data, convenient application.Improve data message integrality on electronic tag, be convenient to user security and use, prevented that data are by improper use or damage simultaneously.Can back up to the data of card storage inside information comparison and management work.
The present invention is not limited to above-mentioned specific embodiment; do not departing under spirit of the present invention and real situation thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion; these are tackled mutually the amendment that the present invention carries out or are equal to replacement, and it all should be encompassed in the middle of the scope of claim protection of the present invention.

Claims (4)

1. a method of reading and writing RFID electronic tag data, is characterized in that, the method comprises the following steps:
Step 1, first open the read write line port of POS machine inside, by the connectivity port exact connect ion of POS machine read write line port and communication controler and switch on power, if open port success, pass through return parameters, show when the port numbers of front opening, can show the relevant information of read write line, and carry out read-write operation by opening port numbers; If open port failure, by return parameters, show " Communications failure " information;
Step 2, first read RFID electronic tag card UID code as RFID electronic label identification, judge RFID type, determine RFID useful capacity;
Step 3, current POS temporal information and RFID internal time information character string are compared, determine that RFID electronic tag is whether in blacklist, or the electronic tag losing efficacy, to effective electronic tag, carry out data deciphering computing, check the validity of RFID electronic tag mark;
Step 4, by after validity check, read business datum, read the data that are stored in RFID electronic tag mark assigned address and standby address, fund information with user's actual storage is decrypted computing, compare errorlessly, read RFID electronic tag content, carry out service data manipulating, by disposable read-write operation, guarantee that information completely is correct;
Step 5, be encrypted computing with user's real consumption information, formation ciphertext deposits in, by calling DLL software, RFID electronic tag mark specified data block and preliminary data block address are carried out to read-write operation continuously, the POS machine that while user's real consumption information exchange is crossed networking imports system database into, and in electronic tag, records the information character string of current time.
2. the method for electronic tag data according to claim 1, it is characterized in that: the machine-readable data that are stored in RFID electronic tag mark assigned address and special address of getting of described POS, fund information to user's actual storage is decrypted computing, compare errorless, substep reads business datum in RFID electronic tag again, by calling DLL software, RFID electronic tag mark specified data block and standby block are carried out to read-write operation continuously, after complete information, complete cryptographic calculation, POS machine by networking imports local data base into, import central database into by middleware, realize Two Level Database calculation process, carry out service data manipulating, finally realizing business information data entirety writes, read operation.
3. the method for electronic tag data according to claim 2, is characterized in that: described Two Level Database comprises consumption management machine data storehouse and central database.
4. the method for electronic tag data according to claim 3, is characterized in that: described consumption management machine data storehouse gathers the data of front end consume system, and front end consume system comprises consumption terminal POS machine, top-up machines, communication controller and computing machine.
CN201410362943.9A 2014-07-28 2014-07-28 Method for reading and writing RFID electronic tag data Pending CN104134083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410362943.9A CN104134083A (en) 2014-07-28 2014-07-28 Method for reading and writing RFID electronic tag data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410362943.9A CN104134083A (en) 2014-07-28 2014-07-28 Method for reading and writing RFID electronic tag data

Publications (1)

Publication Number Publication Date
CN104134083A true CN104134083A (en) 2014-11-05

Family

ID=51806757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410362943.9A Pending CN104134083A (en) 2014-07-28 2014-07-28 Method for reading and writing RFID electronic tag data

Country Status (1)

Country Link
CN (1) CN104134083A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5828044A (en) * 1996-03-14 1998-10-27 Kookmin Credit Card Co., Ltd. Non-contacting type radio frequency recognizing credit card system
CN103294978A (en) * 2013-05-09 2013-09-11 马钢控制技术有限责任公司 Method of POS machine for identifying RFID electronic tag
CN103345647A (en) * 2013-05-09 2013-10-09 马钢控制技术有限责任公司 Back-up and access method of data at RFID electronic tag

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5828044A (en) * 1996-03-14 1998-10-27 Kookmin Credit Card Co., Ltd. Non-contacting type radio frequency recognizing credit card system
CN103294978A (en) * 2013-05-09 2013-09-11 马钢控制技术有限责任公司 Method of POS machine for identifying RFID electronic tag
CN103345647A (en) * 2013-05-09 2013-10-09 马钢控制技术有限责任公司 Back-up and access method of data at RFID electronic tag

Similar Documents

Publication Publication Date Title
CN100501758C (en) Communication method for reader and tag in RFID system
CN206775516U (en) Computer room management system based on RFID label tag
CN101398961B (en) Back escort system and method employing biometric identification technology
CN102411351B (en) A kind of finance transport monitor system positioned based on wireless network and GPS and method
CN103999111A (en) Electronic price label system and method
CN1928924B (en) Smart card Ethernet gate inhibition controlling means and its system
CN103440687A (en) RFID (Radio Frequency Identification) technology-based attendance checking method and system
CN202003403U (en) Assets management system of colleges and universities based on active radio frequency identification (RFID)
CN201780593U (en) Fixed type wireless radiofrequency reader-writer
CN103927803A (en) Active radio frequency identification (RFID)-based power door lock control system
CN107657378A (en) A kind of assets whole-life cycle fee method based on RFID
Vo et al. Radio-Mama: An RFID based business process framework for asset management
CN201247475Y (en) System for dynamically managing telecom industry asset physical goods based on RFID technology
CN102034068A (en) Method and system for access control of radio frequency identification tag
CN105809231A (en) Multi-frequency multi-purpose electronic tag and using method thereof
CN103294978A (en) Method of POS machine for identifying RFID electronic tag
CN204631936U (en) Calligraphy artwork Antiforge system
CN104134083A (en) Method for reading and writing RFID electronic tag data
Wang et al. Research and application of Internet of Things in intelligent library
CN206497508U (en) A kind of Campus Security supervisory systems based on RFID technique
CN103345647B (en) A kind of backup access method of data in RFID
CN102054184B (en) A kind of realize the system and method that double-interface smart card real-time transaction data information shows
Turcu et al. ICT and RFID in education: some practical aspects in campus life
CN202720704U (en) Radio frequency identification device (RFID) wireless interconnection security control intelligent terminal management system
Xiao et al. Research and application of RFID technology in smart campus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 243003 Hunan west end of Hunan, Ma'anshan, Anhui

Applicant after: Anhui Ma Gang automated information Technology Co., Ltd.

Applicant after: Magang (Group) Holding Company Ltd.

Address before: 243003 Hunan West Road, Anhui, Ma'anshan

Applicant before: Anhui Ma Gang automated information Technology Co., Ltd.

Applicant before: Magang (Group) Holding Company Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141105