CN103473144A - Data error correction method for IC (Integrated Circuit) card consumption machine - Google Patents
Data error correction method for IC (Integrated Circuit) card consumption machine Download PDFInfo
- Publication number
- CN103473144A CN103473144A CN2013103541029A CN201310354102A CN103473144A CN 103473144 A CN103473144 A CN 103473144A CN 2013103541029 A CN2013103541029 A CN 2013103541029A CN 201310354102 A CN201310354102 A CN 201310354102A CN 103473144 A CN103473144 A CN 103473144A
- Authority
- CN
- China
- Prior art keywords
- data
- card
- byte
- bytes
- error
- 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
Links
Images
Abstract
The invention discloses a method for debugging and correcting data errors of a Mifare1 IC (Integrated Circuit) card consumption machine. An entire data judgment process is divided into a debugging process and an error correcting process, wherein each data block of the Mifare1 IC card is provided with 16 bytes; the first 15 bytes are designed for storing service data; and a sixteenth byte is used for storing a lowest byte of the accumulated value of the first 15 bytes. Through special setting of the two data judging processes, i.e., the debugging process and the error correcting process, the data correcting accuracy of the IC card consumption machine can be increased greatly, and the method is low in cost, has high market competitiveness and is worth of popularizing and applying.
Description
Technical field
Debugging and correction processing method while the invention discloses a kind of Mifare 1 IC-card charge machine error in data.
Background technology
Along with science and technology ground is constantly progressive, increasing place uses machine for punching the card, charge machine etc., has facilitated people's life, has improved the quality of life; The IC-card charge machine is as wherein the most frequently used a kind of, in the situation that data make a mistake, has brought much inconvenience to people and businessman; The more existing charge machine of the IC-card with error correction, precision is not high, job insecurity, urgently improves.
Summary of the invention
The problem existed in order to solve correlation technique, the embodiment of the present invention provides a kind of data error-correcting method that integrates the IC-card charge machine of mistake and error correction.
Technical scheme of the present invention is as follows:
A kind of data error-correcting method of IC-card charge machine, is characterized in that, whole data judgement is divided into debugging and two processes of error correction; Wherein Mifare 1 every of IC-card data are provided with 16 bytes, are designed to the data of front 15 bytes for storing usage data, a minimum byte of the 16th front 15 the byte accumulated values of bytes store.
Further, described debugging process is as follows:
Read IC-card monoblock data, by front 15 byte accumulation calculating, make comparisons by result of calculation low byte and the 16th byte, identical words representative data is correct, and difference is exactly error in data.
Further, described error correction procedure is as follows:
One group of data of first of IC-card storage, backup with second, stores identical data.After reading two blocks of data, do respectively the process of debugging, if a blocks of data mistake wherein covers wrong data block with an other blocks of data.
The present invention is by debugging and two data deterministic processes of error correction, and wherein Mifare 1 every of IC-card data are provided with 16 bytes, be designed to the data of front 15 bytes for storing usage data, a minimum byte of the 16th front 15 the byte accumulated values of bytes store; Correcting data error precision, the cost that can increase substantially the IC-card charge machine be low, have the market competitiveness, is worthy of promotion and application.
The accompanying drawing explanation
Fig. 1 is theory diagram of the present invention;
Fig. 2 is 16 byte schematic diagrams of the present invention.
embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, a kind of data error-correcting method of IC-card charge machine, is characterized in that, whole data judgement is divided into debugging and two processes of error correction; Wherein Mifare 1 every of IC-card data are provided with 16 bytes, are designed to the data of front 15 bytes for storing usage data, a minimum byte of the 16th front 15 the byte accumulated values of bytes store.
Further, described debugging process is as follows:
Read IC-card monoblock data, by front 15 byte accumulation calculating, make comparisons by result of calculation low byte and the 16th byte, identical words representative data is correct, and difference is exactly error in data.
Further, described error correction procedure is as follows:
One group of data of first of IC-card storage, backup with second, stores identical data.After reading two blocks of data, do respectively the process of debugging, if a blocks of data mistake wherein covers wrong data block with an other blocks of data.
The present invention is by debugging and two data deterministic processes of error correction, and wherein Mifare 1 every of IC-card data are provided with 16 bytes, be designed to the data of front 15 bytes for storing usage data, a minimum byte of the 16th front 15 the byte accumulated values of bytes store; Correcting data error precision, the cost that can increase substantially the IC-card charge machine be low, have the market competitiveness, is worthy of promotion and application.
Although below by reference to the accompanying drawings the preferred embodiments of the present invention are described; but the invention is not restricted to above-mentioned embodiment; above-mentioned embodiment is only schematic rather than determinate; those of ordinary skill in the art is under enlightenment of the present invention; under the prerequisite without prejudice to aim of the present invention and claim; can make like multiple types and meaning, within such conversion all falls into protection scope of the present invention.
Claims (3)
1. the data error-correcting method of an IC-card charge machine, is characterized in that, whole data judgement is divided into debugging and two processes of error correction; Wherein every of Mifare1IC card data are provided with 16 bytes, are designed to the data of front 15 bytes for storing usage data, a minimum byte of the 16th front 15 the byte accumulated values of bytes store.
2. the data error-correcting method of IC-card charge machine as claimed in claim 1, is characterized in that, described debugging process is as follows:
Read IC-card monoblock data, by front 15 byte accumulation calculating, make comparisons by result of calculation low byte and the 16th byte, identical words representative data is correct, and difference is exactly error in data.
3. the data error-correcting method of IC-card charge machine as claimed in claim 1, is characterized in that, described error correction procedure is as follows:
One group of data of first of IC-card storage, backup with second, stores identical data.After reading two blocks of data, do respectively the process of debugging, if a blocks of data mistake wherein covers wrong data block with an other blocks of data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013103541029A CN103473144A (en) | 2013-08-14 | 2013-08-14 | Data error correction method for IC (Integrated Circuit) card consumption machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013103541029A CN103473144A (en) | 2013-08-14 | 2013-08-14 | Data error correction method for IC (Integrated Circuit) card consumption machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103473144A true CN103473144A (en) | 2013-12-25 |
Family
ID=49798012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013103541029A Pending CN103473144A (en) | 2013-08-14 | 2013-08-14 | Data error correction method for IC (Integrated Circuit) card consumption machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103473144A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101571410A (en) * | 2009-06-04 | 2009-11-04 | 吴明星 | Intelligent opto-electrical direct reader |
CN101661565A (en) * | 2009-09-24 | 2010-03-03 | 北京握奇数据系统有限公司 | Power-off protection method of intelligent card with Mifare simulation function, device and system |
CN102043683A (en) * | 2010-12-27 | 2011-05-04 | 北京握奇数据系统有限公司 | Smart card and method for operating data in smart card memory |
US20120124445A1 (en) * | 2008-08-04 | 2012-05-17 | Hargan Ebrahim H | Multiple device apparatus, systems, and methods |
CN102984221A (en) * | 2012-11-14 | 2013-03-20 | 西安工程大学 | Transferring method of electric power remote terminal unit |
-
2013
- 2013-08-14 CN CN2013103541029A patent/CN103473144A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120124445A1 (en) * | 2008-08-04 | 2012-05-17 | Hargan Ebrahim H | Multiple device apparatus, systems, and methods |
CN101571410A (en) * | 2009-06-04 | 2009-11-04 | 吴明星 | Intelligent opto-electrical direct reader |
CN101661565A (en) * | 2009-09-24 | 2010-03-03 | 北京握奇数据系统有限公司 | Power-off protection method of intelligent card with Mifare simulation function, device and system |
CN102043683A (en) * | 2010-12-27 | 2011-05-04 | 北京握奇数据系统有限公司 | Smart card and method for operating data in smart card memory |
CN102984221A (en) * | 2012-11-14 | 2013-03-20 | 西安工程大学 | Transferring method of electric power remote terminal unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105468662B (en) | Energy consumption data processing method and system based on table code values | |
CN103472400B (en) | A kind of acquisition methods of battery capacity of mobile terminal and system | |
CN106648982A (en) | Electric energy meter power down protection data storing method | |
CN102279776B (en) | Error checking and correcting ability testing method and device | |
CN103714177A (en) | Method for processing flexible configurable electricity meter stipulations in electric power meter reading and method for meter reading | |
CN110472837B (en) | Energy consumption calculation method applied to energy saving evaluation | |
CN109597588B (en) | Data storage method, data restoration method and device | |
CN103473144A (en) | Data error correction method for IC (Integrated Circuit) card consumption machine | |
US20130009474A1 (en) | Fast-discharging circuit | |
CN105550220A (en) | Fetching method and apparatus for heterogeneous system | |
CN105095102A (en) | Automatic expansion method and device for snapshot volume | |
CN108628960A (en) | It is a kind of specially to become electricity data exception quick diagnosis flow and method | |
CN102494669B (en) | Bar gauge by grading coding | |
CN103823812A (en) | System data management method | |
JP6571027B2 (en) | Data storage device and data storage program | |
CN103118367A (en) | System and method for safety certification of mobile phones | |
CN104296819A (en) | Intelligent water meter treatment system and intelligent water meter treatment method | |
CN204422358U (en) | For detecting the Rockwell Hardness meter of bolt | |
CN108052456A (en) | A kind of electricity data storage method, system and a kind of electricity data storage device | |
CN102609510B (en) | Chinese name data processing method and device | |
CN104616698A (en) | Method for sufficiently utilizing memory redundancy unit | |
CN112511156A (en) | Pulse metering and storing method | |
CN102650941A (en) | Image off-line programming system and method | |
CN110222108A (en) | For data processing method derived from data format and device | |
CN108234054B (en) | A kind of self-healing method of concentrator loss of clock self-test |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20131225 |